OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:phoneUtil
(Results
1 - 9
of
9
) 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
117
assertTrue(
phoneUtil
.getSupportedRegions().size() > 0);
121
assertNull(
phoneUtil
.getMetadataForRegion("No Such Region"));
122
assertNull(
phoneUtil
.getMetadataForNonGeographicalRegion(-1));
130
phoneUtil
.loadMetadataFromFile("no/such/file", "XX", -1);
136
phoneUtil
.loadMetadataFromFile(
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
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)));
572
hasNoMatches(
phoneUtil
.findNumbers(text, region)));
581
hasNoMatches(
phoneUtil
.findNumbers(text, region, Leniency.POSSIBLE,
601
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
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);
184
phoneUtil
.formattingRuleHasFirstGroupOnly(format.getNationalPrefixFormattingRule())) {
581
int countryCode =
phoneUtil
.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode);
587
String newRegionCode =
phoneUtil
.getRegionCodeForCountryCode(countryCode);
589
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
43
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
133
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
197
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
217
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
240
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
/frameworks/base/core/java/android/text/util/
Linkify.java
451
PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
452
Iterable<PhoneNumberMatch> matches =
phoneUtil
.findNumbers(s.toString(),
Completed in 68 milliseconds