OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:phoneUtil
(Results
1 - 8
of
8
) sorted by null
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
TestMetadataTestCase.java
34
protected final PhoneNumberUtil
phoneUtil
;
37
phoneUtil
= initializePhoneUtilForTesting();
42
PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance(
45
return
phoneUtil
;
PhoneNumberUtilTest.java
111
assertTrue(
phoneUtil
.getSupportedRegions().size() > 0);
115
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.US);
136
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.DE);
156
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.AR);
172
PhoneMetadata metadata =
phoneUtil
.getMetadataForNonGeographicalRegion(800);
182
assertTrue(
phoneUtil
.isLeadingZeroPossible(39)); // Italy
183
assertFalse(
phoneUtil
.isLeadingZeroPossible(1)); // USA
184
assertFalse(
phoneUtil
.isLeadingZeroPossible(800)); // International toll free numbers
185
assertFalse(
phoneUtil
.isLeadingZeroPossible(888)); // Not in metadata file, just default to
191
assertEquals(3,
phoneUtil
.getLengthOfGeographicalAreaCode(US_NUMBER))
[
all
...]
PhoneNumberMatcherTest.java
201
PhoneNumber expectedResult =
phoneUtil
.parse(number, RegionCode.US);
204
phoneUtil
.findNumbers(zipPreceding, RegionCode.US).iterator();
214
iterator =
phoneUtil
.findNumbers(zipFollowing, RegionCode.US).iterator();
330
number1.setCountryCode(
phoneUtil
.getCountryCodeForRegion(region));
335
number2.setCountryCode(
phoneUtil
.getCountryCodeForRegion(region));
339
Iterator<PhoneNumberMatch> matches =
phoneUtil
.findNumbers(text, region).iterator();
349
assertTrue(hasNoMatches(
phoneUtil
.findNumbers(text, region)));
557
hasNoMatches(
phoneUtil
.findNumbers(text, region)));
566
hasNoMatches(
phoneUtil
.findNumbers(text, region, Leniency.POSSIBLE,
586
assertTrue(hasNoMatches(
phoneUtil
.findNumbers
[
all
...]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
ShortNumberUtil.java
31
private final PhoneNumberUtil
phoneUtil
;
34
phoneUtil
= PhoneNumberUtil.getInstance();
39
phoneUtil
= util;
80
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(regionCode);
AsYouTypeFormatter.java
55
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
126
int countryCallingCode =
phoneUtil
.getCountryCodeForRegion(regionCode);
127
String mainCountry =
phoneUtil
.getRegionCodeForCountryCode(countryCallingCode);
128
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(mainCountry);
519
int countryCode =
phoneUtil
.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode);
525
String newRegionCode =
phoneUtil
.getRegionCodeForCountryCode(countryCode);
527
currentMetaData =
phoneUtil
.getMetadataForNonGeographicalRegion(countryCode);
PhoneNumberMatcher.java
171
private final PhoneNumberUtil
phoneUtil
;
215
this.
phoneUtil
= util;
418
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(candidate, preferredRegion);
419
if (leniency.verify(number, candidate,
phoneUtil
)) {
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
AreaCodeMap.java
39
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
151
Long.parseLong(number.getCountryCode() +
phoneUtil
.getNationalSignificantNumber(number));
PhoneNumberOfflineGeocoder.java
42
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
132
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
194
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
214
if (!
phoneUtil
.isValidNumber(number)) {
234
if (!
phoneUtil
.isValidNumber(number)) {
Completed in 3321 milliseconds