/cts/tests/tests/location/src/android/location/cts/ |
GeocoderTest.java | 20 import android.location.Geocoder; 32 new Geocoder(getContext()); 34 new Geocoder(getContext(), Locale.ENGLISH); 37 new Geocoder(getContext(), null); 45 Geocoder geocoder = new Geocoder(getContext()); local 47 // There is no guarantee that geocoder.getFromLocation returns accurate results 56 geocoder.getFromLocation(60, 30, 5); 70 geocoder.getFromLocation(-91, 30, 5) 98 Geocoder geocoder = new Geocoder(getContext(), Locale.US); local [all...] |
/external/robolectric/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...] |
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/ |
PhoneNumberOfflineGeocoderTest.java | 30 private final PhoneNumberOfflineGeocoder geocoder = field in class:PhoneNumberOfflineGeocoderTest 69 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE)); 71 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US"))); 73 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US"))); 74 assertEquals("", geocoder.getDescriptionForNumber(NUMBER_WITH_INVALID_COUNTRY_CODE, 76 assertEquals("", geocoder.getDescriptionForNumber(INTERNATIONAL_TOLL_FREE, 84 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US"))); 89 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US"))); 91 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US"))); 93 geocoder.getDescriptionForNumber(US_NUMBER3, new Locale("en", "US"))) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
GeoUtil.java | 49 final PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineGeocoder.getInstance(); local 55 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/ContactsCommon/src/com/android/contacts/common/location/ |
UpdateCountryService.java | 9 import android.location.Geocoder; 70 final Geocoder geocoder = new Geocoder(context); local 73 final List<Address> addresses = geocoder.getFromLocation(
|
CountryDetector.java | 8 import android.location.Geocoder; 39 * 6) Location is not used if the device does not implement a {@link android.location.Geocoder} 94 if (!Geocoder.isPresent()) { 95 // Certain devices do not have an implementation of a geocoder - in that case there is 113 LocationManager locationManager, LocaleProvider localeProvider, Geocoder geocoder) { 161 if (!Geocoder.isPresent()) {
|
/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 | 119 ReverseGeocoder geocoder = new ReverseGeocoder(mContext); local 124 String name = generateName(cluster, geocoder); 152 ReverseGeocoder geocoder) { 179 return geocoder.computeAddress(set);
|
/packages/apps/ContactsCommon/ |
Android.mk | 52 libgeocoding:libs/geocoder-2.9.jar
|
/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);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
CallerInfo.java | 481 PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineGeocoder.getInstance(); local 497 String description = geocoder.getDescriptionForNumber(pn, locale);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfo.java | 561 PhoneNumberOfflineGeocoder geocoder = PhoneNumberOfflineGeocoder.getInstance(); local 576 String description = geocoder.getDescriptionForNumber(pn, locale);
|