Home
last modified time | relevance | path

Searched refs:geocoder (Results 1 – 5 of 5) sorted by relevance

/external/libphonenumber/geocoder/test/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoderTest.java30 private final PhoneNumberOfflineGeocoder geocoder = field in PhoneNumberOfflineGeocoderTest
73 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE)); in testGetDescriptionForNumberWithNoDataFile()
75 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
77 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
78 assertEquals("", geocoder.getDescriptionForNumber(NUMBER_WITH_INVALID_COUNTRY_CODE, in testGetDescriptionForNumberWithNoDataFile()
80 assertEquals("", geocoder.getDescriptionForNumber(INTERNATIONAL_TOLL_FREE, in testGetDescriptionForNumberWithNoDataFile()
88 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US"))); in testGetDescriptionForNumberWithMissingPrefix()
95 geocoder.getDescriptionForNumber(NANPA_TOLL_FREE, new Locale("en", "US"))); in testGetDescriptionForNumberBelongingToMultipleCountriesIsEmpty()
100 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US()
102 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DGeocoderTest.java21 private Geocoder geocoder; field in GeocoderTest
25 geocoder = new Geocoder(new Activity()); in setUp()
30 geocoder.getFromLocationName("731 Market St, San Francisco, CA 94103", 1); in shouldRecordLastLocationName()
31 String lastLocationName = shadowOf(geocoder).getLastLocationName(); in shouldRecordLastLocationName()
38 shadowOf(geocoder).setSimulatedHasLatLong(true, true); in setsUpHasLocationInAddressFromLocationName()
39 …Address address = geocoder.getFromLocationName("731 Market St, San Francisco, CA 94103", 1).get(0); in setsUpHasLocationInAddressFromLocationName()
42 shadowOf(geocoder).setSimulatedHasLatLong(false, false); in setsUpHasLocationInAddressFromLocationName()
43 address = geocoder.getFromLocationName("731 Market St, San Francisco, CA 94103", 1).get(0); in setsUpHasLocationInAddressFromLocationName()
50 shadowOf(geocoder).setReturnNoResults(true); in canReturnNoAddressesOnRequest()
51 … List<Address> result = geocoder.getFromLocationName("731 Market St, San Francisco, CA 94103", 1); in canReturnNoAddressesOnRequest()
[all …]
/external/libphonenumber/
DAndroid.mk22 geocoder/src \
27 $(call all-java-files-under, geocoder/src) \
40 $(call all-java-files-under, geocoder/test) \
46 geocoder/test \
Dbuild-full.gradle8 'geocoder/src'
Drelease_notes.txt152 - Made isNumberGeographical public, and changed the geocoder to
524 - Changing the offline geocoder to not return any country at all if the number
712 - Added PhoneNumberToTimeZonesMapper including unittests to the geocoder maven project.
734 - Restructured the geocoder binary generation code, moving the classes under tools/ from
739 - Restructured the geocoder, moving the utility classes to a new module internal/prefixmapper.
1241 - An offline phone number geocoder has been added. The current implementation just returns the