API Enhancement CountryDetector
-Replace CountryListener with a Consumer<Country> -Add registerCountryDetectorCallback to take an Executor Vs addCountryListener taking Looper -Add unregisterCountryDetectorCallback to remove Consumer<Country> callback interface -Adding getSource to return an IntDef -Expose Country constructor -Adding alternative API with new naming for getCountryIso -Refactoring addCountryListener() & removeCountryListener API's Bug: 252989268, 258197470 CTS-Coverage-Bug: 255511190 Test: manual test && make update-api Change-Id: I5a2f253a87d1037837bc161a80cb873a6471c229
Showing
- core/api/system-current.txt 7 additions, 0 deletionscore/api/system-current.txt
- location/java/android/location/Country.java 75 additions, 34 deletionslocation/java/android/location/Country.java
- location/java/android/location/CountryDetector.java 65 additions, 36 deletionslocation/java/android/location/CountryDetector.java
- location/java/android/location/CountryListener.java 10 additions, 1 deletionlocation/java/android/location/CountryListener.java
- services/core/java/com/android/server/CountryDetectorService.java 4 additions, 0 deletions.../core/java/com/android/server/CountryDetectorService.java
Please register or sign in to comment