OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:phoneUtil
(Results
1 - 13
of
13
) sorted by null
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
TestMetadataTestCase.java
33
protected final PhoneNumberUtil
phoneUtil
;
36
phoneUtil
= initializePhoneUtilForTesting();
40
PhoneNumberUtil
phoneUtil
= new PhoneNumberUtil(
43
PhoneNumberUtil.setInstance(
phoneUtil
);
44
return
phoneUtil
;
PhoneNumberUtilTest.java
116
assertTrue(
phoneUtil
.getSupportedRegions().size() > 0);
120
assertNull(
phoneUtil
.getMetadataForRegion("No Such Region"));
121
assertNull(
phoneUtil
.getMetadataForNonGeographicalRegion(-1));
129
phoneUtil
.loadMetadataFromFile(
136
phoneUtil
.loadMetadataFromFile("no/such/file", PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY,
145
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.US);
166
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.DE);
186
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.AR);
202
PhoneMetadata metadata =
phoneUtil
.getMetadataForNonGeographicalRegion(800);
212
assertFalse(
phoneUtil
.isNumberGeographical(BS_MOBILE)); // Bahamas, mobile phone number
[
all
...]
PhoneNumberMatcherTest.java
251
phoneUtil
.findNumbers(text, RegionCode.US).iterator();
271
phoneUtil
.findNumbers(text, RegionCode.US).iterator();
284
phoneUtil
.findNumbers(zipPreceding, RegionCode.US).iterator();
292
iterator =
phoneUtil
.findNumbers(zipFollowing, RegionCode.US).iterator();
404
number1.setCountryCode(
phoneUtil
.getCountryCodeForRegion(region));
409
number2.setCountryCode(
phoneUtil
.getCountryCodeForRegion(region));
413
Iterator<PhoneNumberMatch> matches =
phoneUtil
.findNumbers(text, region).iterator();
423
assertTrue(hasNoMatches(
phoneUtil
.findNumbers(text, region)));
652
hasNoMatches(
phoneUtil
.findNumbers(text, region)));
661
hasNoMatches(
phoneUtil
.findNumbers(text, region, Leniency.POSSIBLE
[
all
...]
AsYouTypeFormatterTest.java
30
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.ZZ);
52
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.ZZ);
72
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.ZZ);
92
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.BY);
107
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.BY);
121
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.US);
215
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.US);
229
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.US);
238
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.US);
254
AsYouTypeFormatter formatter =
phoneUtil
.getAsYouTypeFormatter(RegionCode.US)
[
all
...]
ShortNumberInfoTest.java
30
shortInfo = new ShortNumberInfo(
phoneUtil
);
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
ShortNumberInfo.java
68
private final PhoneNumberUtil
phoneUtil
;
72
phoneUtil
= util;
91
return
phoneUtil
.isNumberPossibleForDesc(shortNumber, generalDesc);
104
List<String> regionCodes =
phoneUtil
.getRegionCodesForCountryCode(number.getCountryCode());
105
String shortNumber =
phoneUtil
.getNationalSignificantNumber(number);
108
if (
phoneUtil
.isNumberPossibleForDesc(shortNumber, phoneMetadata.getGeneralDesc())) {
132
!
phoneUtil
.isNumberMatchingDesc(shortNumber, generalDesc)) {
141
return
phoneUtil
.isNumberMatchingDesc(shortNumber, shortNumberDesc);
154
List<String> regionCodes =
phoneUtil
.getRegionCodesForCountryCode(number.getCountryCode());
155
String shortNumber =
phoneUtil
.getNationalSignificantNumber(number)
[
all
...]
AsYouTypeFormatter.java
58
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
136
int countryCallingCode =
phoneUtil
.getCountryCodeForRegion(regionCode);
137
String mainCountry =
phoneUtil
.getRegionCodeForCountryCode(countryCallingCode);
138
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(mainCountry);
597
int countryCode =
phoneUtil
.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode);
603
String newRegionCode =
phoneUtil
.getRegionCodeForCountryCode(countryCode);
605
currentMetadata =
phoneUtil
.getMetadataForNonGeographicalRegion(countryCode);
PhoneNumberMatcher.java
190
private final PhoneNumberUtil
phoneUtil
;
234
this.
phoneUtil
= util;
416
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(candidate, preferredRegion);
430
if (
phoneUtil
.getRegionCodeForCountryCode(number.getCountryCode()).equals("IL") &&
431
phoneUtil
.getNationalSignificantNumber(number).length() == 4 &&
437
if (leniency.verify(number, candidate,
phoneUtil
)) {
[
all
...]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
PhoneNumberOfflineGeocoder.java
38
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
66
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
100
String nationalNumber =
phoneUtil
.getNationalSignificantNumber(number);
105
String region =
phoneUtil
.getRegionCodeForCountryCode(number.getCountryCode());
108
copiedNumber =
phoneUtil
.parse(nationalNumber, region);
149
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
169
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
192
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/prefixmapper/
PhonePrefixMap.java
39
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
182
Long.parseLong(number.getCountryCode() +
phoneUtil
.getNationalSignificantNumber(number));
/packages/apps/ContactsCommon/libs/
geocoder-2.9.jar
libphonenumber-6.2.jar
/frameworks/base/core/java/android/text/util/
Linkify.java
451
PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
452
Iterable<PhoneNumberMatch> matches =
phoneUtil
.findNumbers(s.toString(),
Completed in 913 milliseconds