OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:phoneUtil
(Results
1 - 12
of
12
) sorted by null
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
TestMetadataTestCase.java
33
protected final PhoneNumberUtil
phoneUtil
;
36
phoneUtil
= initializePhoneUtilForTesting();
40
PhoneNumberUtil
phoneUtil
= new PhoneNumberUtil(
44
PhoneNumberUtil.setInstance(
phoneUtil
);
45
return
phoneUtil
;
PhoneNumberUtilTest.java
117
assertTrue(
phoneUtil
.getSupportedRegions().size() > 0);
122
phoneUtil
.getSupportedGlobalNetworkCallingCodes();
126
assertEquals(RegionCode.UN001,
phoneUtil
.getRegionCodeForCountryCode(callingCode));
131
assertNull(
phoneUtil
.getMetadataForRegion("No Such Region"));
132
assertNull(
phoneUtil
.getMetadataForNonGeographicalRegion(-1));
136
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.US);
157
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.DE);
177
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(RegionCode.AR);
193
PhoneMetadata metadata =
phoneUtil
.getMetadataForNonGeographicalRegion(800);
203
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
349
return
phoneUtil
.parse(number, regionCode);
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/
PhoneNumberToCarrierMapper.java
37
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
92
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
110
if (
phoneUtil
.isMobileNumberPortableRegion(
phoneUtil
.getRegionCodeForNumber(number))) {
/external/libphonenumber/demo/src/com/google/phonenumbers/
PhoneNumberParserServlet.java
55
private PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
137
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(numberStr, defaultCountry);
138
boolean isNumberValid =
phoneUtil
.isValidNumber(number);
140
?
phoneUtil
.formatInOriginalFormat(number, defaultCountry)
143
?
phoneUtil
.format(number, PhoneNumberFormat.INTERNATIONAL)
173
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(phoneNumber, defaultCountry);
187
boolean isPossible =
phoneUtil
.isPossibleNumber(number);
188
boolean isNumberValid =
phoneUtil
.isValidNumber(number);
189
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
197
phoneUtil
.isPossibleNumberWithReason(number).toString(), output)
[
all
...]
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/
PhoneNumberOfflineGeocoder.java
39
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
68
phoneUtil
.getRegionCodesForCountryCode(number.getCountryCode());
74
if (
phoneUtil
.isValidNumberForRegion(number, regionCode)) {
117
String nationalNumber =
phoneUtil
.getNationalSignificantNumber(number);
122
String region =
phoneUtil
.getRegionCodeForCountryCode(number.getCountryCode());
125
copiedNumber =
phoneUtil
.parse(nationalNumber, region);
166
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
186
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
209
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
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);
600
int countryCode =
phoneUtil
.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode);
606
String newRegionCode =
phoneUtil
.getRegionCodeForCountryCode(countryCode);
608
currentMetadata =
phoneUtil
.getMetadataForNonGeographicalRegion(countryCode);
PhoneNumberMatcher.java
190
private final PhoneNumberUtil
phoneUtil
;
234
this.
phoneUtil
= util;
415
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(candidate, preferredRegion);
429
if (
phoneUtil
.getRegionCodeForCountryCode(number.getCountryCode()).equals("IL") &&
430
phoneUtil
.getNationalSignificantNumber(number).length() == 4 &&
436
if (leniency.verify(number, candidate,
phoneUtil
)) {
[
all
...]
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
PhonePrefixMap.java
39
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
182
Long.parseLong(number.getCountryCode() +
phoneUtil
.getNationalSignificantNumber(number));
/frameworks/base/core/java/android/text/util/
Linkify.java
533
PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
534
Iterable<PhoneNumberMatch> matches =
phoneUtil
.findNumbers(s.toString(),
Completed in 814 milliseconds