OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:PhoneNumberUtil
(Results
1 - 25
of
35
) sorted by null
1
2
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
TestMetadataTestCase.java
22
* Root class for
PhoneNumberUtil
tests that depend on the test metadata file.
33
protected final
PhoneNumberUtil
phoneUtil;
39
static
PhoneNumberUtil
initializePhoneUtilForTesting() {
40
PhoneNumberUtil
phoneUtil = new
PhoneNumberUtil
(
41
TEST_META_DATA_FILE_PREFIX,
PhoneNumberUtil
.DEFAULT_METADATA_LOADER,
43
PhoneNumberUtil
.setInstance(phoneUtil);
PhoneNumberUtilTest.java
19
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
31
* Unit tests for
PhoneNumberUtil
.java
141
"no/such/file", "XX", -1,
PhoneNumberUtil
.DEFAULT_METADATA_LOADER);
147
phoneUtil.loadMetadataFromFile("no/such/file",
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY,
148
123,
PhoneNumberUtil
.DEFAULT_METADATA_LOADER);
307
assertEquals("1",
PhoneNumberUtil
.getCountryMobileToken(phoneUtil.getCountryCodeForRegion(
311
assertEquals("",
PhoneNumberUtil
.getCountryMobileToken(phoneUtil.getCountryCodeForRegion(
332
PhoneNumberUtil
.PhoneNumberType.FIXED_LINE));
335
PhoneNumberUtil
.PhoneNumberType.MOBILE));
339
PhoneNumberUtil
.PhoneNumberType.FIXED_LINE))
[
all
...]
ExampleNumbersTest.java
19
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberType;
38
private
PhoneNumberUtil
phoneNumberUtil
=
39
PhoneNumberUtil
.createInstance(
PhoneNumberUtil
.DEFAULT_METADATA_LOADER);
51
for (String regionCode :
phoneNumberUtil
.getSupportedRegions()) {
53
phoneNumberUtil
.getExampleNumberForType(regionCode, exampleNumberRequestedType);
55
if (!
phoneNumberUtil
.isValidNumber(exampleNumber)) {
60
PhoneNumberType exampleNumberType =
phoneNumberUtil
.getNumberType(exampleNumber);
142
for (String regionCode :
phoneNumberUtil
.getSupportedRegions())
[
all
...]
/packages/apps/Messaging/src/android/support/v7/mms/
PhoneNumberHelper.java
23
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
40
final
PhoneNumberUtil
phoneNumberUtil
=
PhoneNumberUtil
.getInstance();
42
final Phonenumber.PhoneNumber phoneNumber =
phoneNumberUtil
.parse(number, country);
43
if (phoneNumber != null &&
phoneNumberUtil
.isValidNumber(phoneNumber)) {
44
return
phoneNumberUtil
45
.format(phoneNumber,
PhoneNumberUtil
.PhoneNumberFormat.NATIONAL)
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/
PhoneNumberToCarrierMapper.java
19
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
20
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberType;
37
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
/packages/services/Mms/src/com/android/mms/service/
PhoneUtils.java
23
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
45
final
PhoneNumberUtil
phoneNumberUtil
=
PhoneNumberUtil
.getInstance();
46
final Phonenumber.PhoneNumber parsed = getParsedNumber(
phoneNumberUtil
, phoneText, country);
50
return
phoneNumberUtil
51
.format(parsed,
PhoneNumberUtil
.PhoneNumberFormat.NATIONAL)
56
private static Phonenumber.PhoneNumber getParsedNumber(
PhoneNumberUtil
phoneNumberUtil
,
59
final Phonenumber.PhoneNumber phoneNumber =
phoneNumberUtil
.parse(phoneText, country)
[
all
...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/
GeoUtil.java
26
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
50
final
PhoneNumberUtil
phoneNumberUtil
=
PhoneNumberUtil
.getInstance();
53
phoneNumberUtil
.parse(phoneNumber, getCurrentCountryIso(context));
MoreContactUtils.java
20
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
72
// number.
PhoneNumberUtil
already distinguishes between 555 and 55#5.
83
final
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
94
final
PhoneNumberUtil
.MatchType result = util.isNumberMatch(dataPart1, dataPart2);
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
PhoneNumberHelper.java
24
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
31
* This class wraps several
PhoneNumberUtil
calls and TelephonyManager calls. Some of them are
80
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
123
final
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
PhoneNumberMatcher.java
19
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.Leniency;
20
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.MatchType;
21
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
35
* Instances can be created using the {@linkplain
PhoneNumberUtil
#findNumbers factory methods} in
36
* {@link
PhoneNumberUtil
}.
46
* {@code
PhoneNumberUtil
.VALID_PHONE_NUMBER}, but with the following differences:
154
PhoneNumberUtil
.MAX_LENGTH_FOR_NSN +
PhoneNumberUtil
.MAX_LENGTH_COUNTRY_CODE;
160
String punctuation = "[" +
PhoneNumberUtil
.VALID_PUNCTUATION + "]" + punctuationLimit;
164
String leadClassChars = openingParens +
PhoneNumberUtil
.PLUS_CHARS
[
all
...]
AsYouTypeFormatter.java
32
* {@link
PhoneNumberUtil
#getAsYouTypeFormatter}. After that, digits can be added by invoking
58
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
85
Pattern.compile("[" +
PhoneNumberUtil
.VALID_PUNCTUATION + "]*" +
86
"(\\$\\d" + "[" +
PhoneNumberUtil
.VALID_PUNCTUATION + "]*)+");
123
*
PhoneNumberUtil
#getAsYouTypeFormatter}.
184
PhoneNumberUtil
.formattingRuleHasFirstGroupOnly(
422
PhoneNumberUtil
.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches());
569
regexCache.getPatternForRegex("\\" +
PhoneNumberUtil
.PLUS_SIGN + "|" +
580
if (accruedInputWithoutFormatting.charAt(0) !=
PhoneNumberUtil
.PLUS_SIGN)
[
all
...]
ShortNumberInfo.java
39
* {@link
PhoneNumberUtil
}.
517
number =
PhoneNumberUtil
.extractPossibleNumber(number);
518
if (
PhoneNumberUtil
.PLUS_CHARS_PATTERN.matcher(number).lookingAt()) {
529
String normalizedNumber =
PhoneNumberUtil
.normalizeDigitsOnly(number);
562
* {@code
PhoneNumberUtil
}. Ultimately a canonical static version should exist in a separate
563
* utility class (to prevent {@code ShortNumberInfo} needing to depend on
PhoneNumberUtil
).
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/
PhoneNumberOfflineGeocoder.java
20
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
21
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberType;
39
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
92
regionCode.equals(
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY))
116
String mobileToken =
PhoneNumberUtil
.getCountryMobileToken(number.getCountryCode());
219
* A similar method is implemented as
PhoneNumberUtil
.isNumberGeographical, which performs a
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
PhoneNumberTestService.java
27
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
28
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
100
final
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
109
Log.i(TAG, "
PhoneNumberUtil
.format(parse(" + number + ", " + country + "), " + format
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DefaultCallLogInsertionHelper.java
26
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
49
private
PhoneNumberUtil
mPhoneNumberUtil;
94
private synchronized
PhoneNumberUtil
getPhoneNumberUtil() {
96
mPhoneNumberUtil =
PhoneNumberUtil
.getInstance();
/packages/apps/Dialer/src/com/android/dialer/calllog/
PhoneNumberDisplayUtil.java
26
import com.android.dialer.util.
PhoneNumberUtil
;
53
if (
PhoneNumberUtil
.isLegacyUnknownNumbers(number)) {
TelecomCallLogCache.java
30
import com.android.dialer.util.
PhoneNumberUtil
;
86
PhoneNumberUtil
.isVoicemailNumber(mContext, accountHandle, number.toString());
CallLogAsyncTaskUtil.java
35
import com.android.dialer.util.
PhoneNumberUtil
;
155
boolean isVoicemail =
PhoneNumberUtil
.isVoicemailNumber(context, accountHandle, number);
157
PhoneNumberUtil
.canPlaceCallsTo(number, numberPresentation) && !isVoicemail;
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
PrefixTimeZonesMap.java
19
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
92
PhoneNumberUtil
.getInstance().getNationalSignificantNumber(number));
PhonePrefixMap.java
19
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
39
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/
PhoneNumberToTimeZonesMapper.java
19
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberType;
137
PhoneNumberType numberType =
PhoneNumberUtil
.getInstance().getNumberType(number);
147
* A similar method is implemented as
PhoneNumberUtil
.isNumberGeographical, which performs a
150
* TODO: Remove duplication by completing the logic in the method in
PhoneNumberUtil
.
/frameworks/base/telephony/java/android/telephony/
PhoneNumberFormattingTextWatcher.java
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
71
mFormatter =
PhoneNumberUtil
.getInstance().getAsYouTypeFormatter(countryCode);
/external/libphonenumber/demo/src/com/google/phonenumbers/
PhoneNumberParserServlet.java
25
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
26
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
27
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberType;
55
private
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
/packages/apps/Messaging/src/com/android/messaging/util/
PhoneUtils.java
43
import com.google.i18n.phonenumbers.
PhoneNumberUtil
;
44
import com.google.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
746
final
PhoneNumberUtil
phoneNumberUtil
=
PhoneNumberUtil
.getInstance();
748
final PhoneNumber phoneNumber =
phoneNumberUtil
.parse(phoneText, country);
749
if (phoneNumber != null &&
phoneNumberUtil
.isValidNumber(phoneNumber)) {
750
return
phoneNumberUtil
.format(phoneNumber, PhoneNumberFormat.E164);
841
final
PhoneNumberUtil
phoneNumberUtil
= PhoneNumberUtil.getInstance()
[
all
...]
/packages/apps/Dialer/src/com/android/dialer/util/
PhoneNumberUtil.java
34
public class
PhoneNumberUtil
{
Completed in 257 milliseconds
1
2