OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:regionCode
(Results
1 - 7
of
7
) sorted by null
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
ShortNumberUtil.java
50
* @param
regionCode
the region where the phone number is being dialed
53
public boolean connectsToEmergencyNumber(String number, String
regionCode
) {
54
return matchesEmergencyNumberHelper(number,
regionCode
, true /* allows prefix match */);
64
* @param
regionCode
the region where the phone number is being dialed
67
public boolean isEmergencyNumber(String number, String
regionCode
) {
68
return matchesEmergencyNumberHelper(number,
regionCode
, false /* doesn't allow prefix match */);
71
private boolean matchesEmergencyNumberHelper(String number, String
regionCode
,
80
PhoneMetadata metadata = phoneUtil.getMetadataForRegion(
regionCode
);
89
return (!allowPrefixMatch ||
regionCode
.equals("BR"))
PhoneNumberUtil.java
[
all
...]
AsYouTypeFormatter.java
115
* @param
regionCode
the country/region where the phone number is being entered
117
AsYouTypeFormatter(String
regionCode
) {
118
defaultCountry =
regionCode
;
125
private PhoneMetadata getMetadataForRegion(String
regionCode
) {
126
int countryCallingCode = phoneUtil.getCountryCodeForRegion(
regionCode
);
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
ExampleNumbersTest.java
68
for (String
regionCode
: phoneNumberUtil.getSupportedRegions()) {
70
phoneNumberUtil.getExampleNumberForType(
regionCode
, exampleNumberRequestedType);
159
for (String
regionCode
: phoneNumberUtil.getSupportedRegions()) {
162
phoneNumberUtil.getMetadataForRegion(
regionCode
).getNoInternationalDialling();
165
exampleNumber = phoneNumberUtil.parse(desc.getExampleNumber(),
regionCode
);
183
for (String
regionCode
: phoneNumberUtil.getSupportedRegions()) {
185
phoneNumberUtil.getMetadataForRegion(
regionCode
).getEmergency();
191
LOGGER.log(Level.SEVERE, "Emergency example number test failed for " +
regionCode
);
211
for (String
regionCode
: phoneNumberUtil.getSupportedRegions()) {
212
PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumber(
regionCode
);
[
all
...]
PhoneNumberMatcherTest.java
39
doTestFindInContext("033316005",
RegionCode
.NZ);
40
// ("33316005",
RegionCode
.NZ) is omitted since the national prefix is obligatory for these
43
doTestFindInContext("03-331 6005",
RegionCode
.NZ);
44
doTestFindInContext("03 331 6005",
RegionCode
.NZ);
47
doTestFindInContext("0064 3 331 6005",
RegionCode
.NZ);
50
doTestFindInContext("01164 3 331 6005",
RegionCode
.US);
51
doTestFindInContext("+64 3 331 6005",
RegionCode
.US);
53
doTestFindInContext("64(0)64123456",
RegionCode
.NZ);
55
doTestFindInContext("123/45678",
RegionCode
.DE);
56
doTestFindInContext("123-456-7890",
RegionCode
.US)
[
all
...]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
PhoneNumberOfflineGeocoder.java
132
String
regionCode
= phoneUtil.getRegionCodeForNumber(number);
133
return getRegionDisplayName(
regionCode
, language);
139
private String getRegionDisplayName(String
regionCode
, Locale language) {
140
return (
regionCode
== null ||
regionCode
.equals("ZZ") ||
141
regionCode
.equals(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY))
142
? "" : new Locale("",
regionCode
).getDisplayCountry(language);
194
String
regionCode
= phoneUtil.getRegionCodeForNumber(number);
195
if (userRegion.equals(
regionCode
)) {
199
return getRegionDisplayName(
regionCode
, languageCode)
[
all
...]
/frameworks/base/telephony/java/android/telephony/
PhoneNumberUtils.java
[
all
...]
Completed in 262 milliseconds