/cts/tests/tests/location/src/android/location/cts/ |
GeocoderTest.java | 23 import android.location.Geocoder; 35 new Geocoder(getContext()); 37 new Geocoder(getContext(), Locale.ENGLISH); 40 new Geocoder(getContext(), null); 48 Geocoder geocoder = new Geocoder(getContext()); local 50 assertFalse(geocoder.isPresent()); 52 assertTrue(geocoder.isPresent()); 67 Geocoder geocoder = new Geocoder(getContext()) local 120 Geocoder geocoder = new Geocoder(getContext(), Locale.US); local [all...] |
/external/libphonenumber/geocoder/test/com/google/i18n/phonenumbers/geocoding/ |
PhoneNumberOfflineGeocoderTest.java | 30 private final PhoneNumberOfflineGeocoder geocoder = field in class:PhoneNumberOfflineGeocoderTest 73 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE)); 75 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US"))); 77 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US"))); 78 assertEquals("", geocoder.getDescriptionForNumber(NUMBER_WITH_INVALID_COUNTRY_CODE, 80 assertEquals("", geocoder.getDescriptionForNumber(INTERNATIONAL_TOLL_FREE, 88 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US"))); 95 geocoder.getDescriptionForNumber(NANPA_TOLL_FREE, new Locale("en", "US"))); 100 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US"))); 102 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US"))) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
GeocoderTest.java | 5 import android.location.Geocoder; 21 private Geocoder geocoder; field in class:GeocoderTest 25 geocoder = new Geocoder(new Activity()); 30 geocoder.getFromLocationName("731 Market St, San Francisco, CA 94103", 1); 31 String lastLocationName = shadowOf(geocoder).getLastLocationName(); 38 shadowOf(geocoder).setSimulatedHasLatLong(true, true); 39 Address address = geocoder.getFromLocationName("731 Market St, San Francisco, CA 94103", 1).get(0); 42 shadowOf(geocoder).setSimulatedHasLatLong(false, false) [all...] |
/packages/apps/Dialer/java/com/android/dialer/location/ |
GeoUtil.java | 36 final PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineGeocoder.getInstance(); local 42 return geocoder.getDescriptionForNumber(structuredPhoneNumber, locale);
|
CountryDetector.java | 24 import android.location.Geocoder; 61 * a {@link android.location.Geocoder} 79 private final Geocoder geocoder; field in class:CountryDetector 88 Geocoder geocoder) { 92 this.geocoder = geocoder; 94 // If the device does not implement Geocoder there is no point trying to get location updates 96 if (Geocoder.isPresent()) 244 @NonNull private final Geocoder geocoder; field in class:CountryDetector.GeocodeCountryWorker [all...] |
/external/libphonenumber/ |
Android.mk | 22 geocoder/src \ 27 $(call all-java-files-under, geocoder/src) \ 40 $(call all-java-files-under, geocoder/test) \ 46 geocoder/test \
|
/packages/apps/Contacts/src/com/android/contacts/ |
GeoUtil.java | 49 final PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineGeocoder.getInstance(); local 55 return geocoder.getDescriptionForNumber(structuredPhoneNumber, locale);
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
GeoUtil.java | 44 final PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineGeocoder.getInstance(); local 50 return geocoder.getDescriptionForNumber(structuredPhoneNumber, locale);
|
/packages/apps/Gallery/src/com/android/camera/ |
ReverseGeocoderTask.java | 20 import android.location.Geocoder; 35 private Geocoder mGeocoder; 40 public ReverseGeocoderTask(Geocoder geocoder, float[] latlng, 42 mGeocoder = geocoder; 62 Log.e(TAG, "Geocoder exception: ", ex); 65 Log.e(TAG, "Geocoder exception: ", ex);
|
MenuHelper.java | 28 import android.location.Geocoder; 237 Geocoder geocoder = new Geocoder(context); local 238 new ReverseGeocoderTask(geocoder, latlng, cb).execute(); [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/location/ |
UpdateCountryService.java | 25 import android.location.Geocoder; 85 final Geocoder geocoder = new Geocoder(context); local 92 geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);
|
CountryDetector.java | 24 import android.location.Geocoder; 53 * a {@link android.location.Geocoder} 101 if (!Geocoder.isPresent()) { 102 // Certain devices do not have an implementation of a geocoder - in that case there is 137 Geocoder geocoder) { 168 if (!Geocoder.isPresent() || !PermissionsUtil.hasLocationPermissions(mContext)) {
|
/packages/apps/TV/src/com/android/tv/util/ |
LocationUtils.java | 21 import android.location.Geocoder; 67 Geocoder geocoder = new Geocoder(sApplicationContext, Locale.getDefault()); local 69 List<Address> addresses = geocoder.getFromLocation(
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
DetailsAddressResolver.java | 48 ReverseGeocoder geocoder = new ReverseGeocoder(mContext.getAndroidContext()); local 49 return geocoder.lookupAddress(mLatlng[0], mLatlng[1], true);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocationClustering.java | 118 ReverseGeocoder geocoder = new ReverseGeocoder(mContext); local 123 String name = generateName(cluster, geocoder); 151 ReverseGeocoder geocoder) { 178 return geocoder.computeAddress(set);
|
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/ |
PhoneNumberHelper.java | 109 PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineGeocoder.getInstance(); local 130 String description = geocoder.getDescriptionForNumber(pn, locale);
|
/development/samples/training/location-aware/src/com/example/android/location/ |
LocationActivity.java | 26 import android.location.Geocoder; 98 Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD && Geocoder.isPresent(); 252 // Bypass reverse-geocoding only if the Geocoder service is available on the device. 337 // AsyncTask encapsulating the reverse-geocoding API. Since the geocoder API is blocked, 349 Geocoder geocoder = new Geocoder(mContext, Locale.getDefault()); local 354 addresses = geocoder.getFromLocation(loc.getLatitude(), loc.getLongitude(), 1);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfo.java | 587 PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineGeocoder.getInstance(); local 603 String description = geocoder.getDescriptionForNumber(pn, locale);
|
/external/robolectric/v3/runtime/ |
android-all-4.4_r1-robolectric-1.jar | |
android-all-5.0.0_r2-robolectric-1.jar | |
android-all-5.1.1_r9-robolectric-1.jar | |
/prebuilts/misc/common/robolectric/lib/ |
android-all-4.4_r1-robolectric-1.jar | |
android-all-5.0.0_r2-robolectric-1.jar | |
android-all-6.0.0_r1-robolectric-0.jar | |