OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:phoneUtil
(Results
1 - 13
of
13
) sorted by null
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
TestMetadataTestCase.java
27
* Ideally the {@code
phoneUtil
} field (which uses test metadata) would be the only way that tests
40
protected final PhoneNumberUtil
phoneUtil
;
43
phoneUtil
= new PhoneNumberUtil(new MultiFileMetadataSourceImpl(TEST_METADATA_FILE_PREFIX,
51
PhoneNumberUtil.setInstance(
phoneUtil
);
PhoneNumberUtilTest.java
123
assertTrue(
phoneUtil
.getSupportedRegions().size() > 0);
128
phoneUtil
.getSupportedGlobalNetworkCallingCodes();
132
assertEquals(RegionCode.UN001,
phoneUtil
.getRegionCodeForCountryCode(callingCode));
137
Set<Integer> callingCodes =
phoneUtil
.getSupportedCallingCodes();
141
assertTrue(
phoneUtil
.getRegionCodeForCountryCode(callingCode) != RegionCode.ZZ);
144
assertTrue(callingCodes.size() >
phoneUtil
.getSupportedGlobalNetworkCallingCodes().size());
150
assertNull(
phoneUtil
.getMetadataForRegion("No Such Region"));
151
assertNull(
phoneUtil
.getMetadataForNonGeographicalRegion(-1));
155
assertTrue(
phoneUtil
.getSupportedTypesForRegion(RegionCode.BR)
158
assertFalse(
phoneUtil
.getSupportedTypesForRegion(RegionCode.BR
[
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
...]
/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/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)) {
119
String nationalNumber =
phoneUtil
.getNationalSignificantNumber(number);
124
String region =
phoneUtil
.getRegionCodeForCountryCode(number.getCountryCode());
127
copiedNumber =
phoneUtil
.parse(nationalNumber, region);
169
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
189
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
192
} else if (!
phoneUtil
.isNumberGeographical(numberType, number.getCountryCode())) {
212
PhoneNumberType numberType =
phoneUtil
.getNumberType(number)
[
all
...]
/external/libphonenumber/repackaged/geocoder/src/com/android/i18n/phonenumbers/geocoding/
PhoneNumberOfflineGeocoder.java
41
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
71
phoneUtil
.getRegionCodesForCountryCode(number.getCountryCode());
77
if (
phoneUtil
.isValidNumberForRegion(number, regionCode)) {
122
String nationalNumber =
phoneUtil
.getNationalSignificantNumber(number);
127
String region =
phoneUtil
.getRegionCodeForCountryCode(number.getCountryCode());
130
copiedNumber =
phoneUtil
.parse(nationalNumber, region);
172
String regionCode =
phoneUtil
.getRegionCodeForNumber(number);
193
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
196
} else if (!
phoneUtil
.isNumberGeographical(numberType, number.getCountryCode())) {
216
PhoneNumberType numberType =
phoneUtil
.getNumberType(number)
[
all
...]
/external/libphonenumber/demo/src/com/google/phonenumbers/
PhoneNumberParserServlet.java
62
private PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
161
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(numberStr, defaultCountry);
162
boolean isNumberValid =
phoneUtil
.isValidNumber(number);
164
?
phoneUtil
.formatInOriginalFormat(number, defaultCountry)
167
?
phoneUtil
.format(number, PhoneNumberFormat.INTERNATIONAL)
256
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(phoneNumber, defaultCountry);
270
boolean isPossible =
phoneUtil
.isPossibleNumber(number);
271
boolean isNumberValid =
phoneUtil
.isValidNumber(number);
272
PhoneNumberType numberType =
phoneUtil
.getNumberType(number);
281
phoneUtil
.isPossibleNumberWithReason(number).toString(), output)
[
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));
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/
PhonePrefixMap.java
41
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
184
Long.parseLong(number.getCountryCode() +
phoneUtil
.getNationalSignificantNumber(number));
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
AsYouTypeFormatter.java
58
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
126
int countryCallingCode =
phoneUtil
.getCountryCodeForRegion(regionCode);
127
String mainCountry =
phoneUtil
.getRegionCodeForCountryCode(countryCallingCode);
128
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(mainCountry);
593
int countryCode =
phoneUtil
.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode);
599
String newRegionCode =
phoneUtil
.getRegionCodeForCountryCode(countryCode);
601
currentMetadata =
phoneUtil
.getMetadataForNonGeographicalRegion(countryCode);
PhoneNumberMatcher.java
190
private final PhoneNumberUtil
phoneUtil
;
234
this.
phoneUtil
= util;
414
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(candidate, preferredRegion);
416
if (leniency.verify(number, candidate,
phoneUtil
)) {
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
AsYouTypeFormatter.java
60
private final PhoneNumberUtil
phoneUtil
= PhoneNumberUtil.getInstance();
128
int countryCallingCode =
phoneUtil
.getCountryCodeForRegion(regionCode);
129
String mainCountry =
phoneUtil
.getRegionCodeForCountryCode(countryCallingCode);
130
PhoneMetadata metadata =
phoneUtil
.getMetadataForRegion(mainCountry);
599
int countryCode =
phoneUtil
.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode);
605
String newRegionCode =
phoneUtil
.getRegionCodeForCountryCode(countryCode);
607
currentMetadata =
phoneUtil
.getMetadataForNonGeographicalRegion(countryCode);
PhoneNumberMatcher.java
191
private final PhoneNumberUtil
phoneUtil
;
235
this.
phoneUtil
= util;
415
PhoneNumber number =
phoneUtil
.parseAndKeepRawInput(candidate, preferredRegion);
417
if (leniency.verify(number, candidate,
phoneUtil
)) {
Completed in 663 milliseconds