OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:PhoneNumberUtil
(Results
1 - 17
of
17
) sorted by null
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
TestMetadataTestCase.java
22
* Root class for
PhoneNumberUtil
tests that depend on the test metadata file.
34
protected final
PhoneNumberUtil
phoneUtil;
40
static
PhoneNumberUtil
initializePhoneUtilForTesting() {
41
PhoneNumberUtil
.resetInstance();
42
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance(
PhoneNumberUtilTest.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
30
* Unit tests for
PhoneNumberUtil
.java
266
PhoneNumberUtil
.PhoneNumberType.FIXED_LINE));
269
PhoneNumberUtil
.PhoneNumberType.MOBILE));
273
PhoneNumberUtil
.PhoneNumberType.FIXED_LINE));
275
PhoneNumberUtil
.PhoneNumberType.MOBILE));
278
PhoneNumberUtil
.PhoneNumberType.MOBILE));
292
assertEquals(expectedOutput,
PhoneNumberUtil
.convertAlphaCharactersInNumber(input));
300
PhoneNumberUtil
.normalize(inputNumber));
308
PhoneNumberUtil
.normalize(inputNumber))
[
all
...]
ExampleNumbersTest.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberType;
40
private
PhoneNumberUtil
phoneNumberUtil
;
45
PhoneNumberUtil
.resetInstance();
46
phoneNumberUtil
=
PhoneNumberUtil
.getInstance();
68
for (String regionCode :
phoneNumberUtil
.getSupportedRegions()) {
70
phoneNumberUtil
.getExampleNumberForType(regionCode, exampleNumberRequestedType);
72
if (!
phoneNumberUtil
.isValidNumber(exampleNumber)) {
77
PhoneNumberType exampleNumberType =
phoneNumberUtil
.getNumberType(exampleNumber)
[
all
...]
PhoneNumberMatcherTest.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.Leniency;
167
// The next test differs from
PhoneNumberUtil
-> when matching we don't consider a lone comma to
504
PhoneNumberUtil
.Leniency leniency) {
527
PhoneNumberUtil
.Leniency leniency) {
[
all
...]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
ShortNumberUtil.java
25
* most commercial short numbers are not handled here, but by the
PhoneNumberUtil
.
31
private final
PhoneNumberUtil
phoneUtil;
34
phoneUtil =
PhoneNumberUtil
.getInstance();
38
ShortNumberUtil(
PhoneNumberUtil
util) {
73
number =
PhoneNumberUtil
.extractPossibleNumber(number);
74
if (
PhoneNumberUtil
.PLUS_CHARS_PATTERN.matcher(number).lookingAt()) {
86
String normalizedNumber =
PhoneNumberUtil
.normalizeDigitsOnly(number);
PhoneNumberMatcher.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.Leniency;
30
* Instances can be created using the {@linkplain
PhoneNumberUtil
#findNumbers factory methods} in
31
* {@link
PhoneNumberUtil
}.
43
* {@code
PhoneNumberUtil
.VALID_PHONE_NUMBER}, but with the following differences:
129
PhoneNumberUtil
.MAX_LENGTH_FOR_NSN +
PhoneNumberUtil
.MAX_LENGTH_COUNTRY_CODE;
135
String punctuation = "[" +
PhoneNumberUtil
.VALID_PUNCTUATION + "]" + punctuationLimit;
139
String leadClassChars = openingParens +
PhoneNumberUtil
.PLUS_CHARS;
148
"(?:" +
PhoneNumberUtil
.EXTN_PATTERNS_FOR_MATCHING + ")?",
149
PhoneNumberUtil
.REGEX_FLAGS)
[
all
...]
AsYouTypeFormatter.java
32
* {@link
PhoneNumberUtil
#getAsYouTypeFormatter}. After that, digits can be added by invoking
55
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
79
Pattern.compile("[" +
PhoneNumberUtil
.VALID_PUNCTUATION + "]*" +
80
"(\\$\\d" + "[" +
PhoneNumberUtil
.VALID_PUNCTUATION + "]*)+");
113
*
PhoneNumberUtil
#getAsYouTypeFormatter}.
391
PhoneNumberUtil
.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches());
488
regexCache.getPatternForRegex("\\" +
PhoneNumberUtil
.PLUS_SIGN + "|" +
499
if (accruedInputWithoutFormatting.charAt(0) !=
PhoneNumberUtil
.PLUS_SIGN) {
526
if (
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY.equals(newRegionCode))
[
all
...]
PhoneNumberUtil.java
57
public class
PhoneNumberUtil
{
72
private static final Logger LOGGER = Logger.getLogger(
PhoneNumberUtil
.class.getName());
339
private static
PhoneNumberUtil
instance = null;
432
* Leniency when {@linkplain
PhoneNumberUtil
#findNumbers finding} potential phone numbers in text
437
* Phone numbers accepted are {@linkplain
PhoneNumberUtil
#isPossibleNumber(PhoneNumber)
438
* possible}, but not necessarily {@linkplain
PhoneNumberUtil
#isValidNumber(PhoneNumber) valid}.
442
boolean verify(PhoneNumber number, String candidate,
PhoneNumberUtil
util) {
447
* Phone numbers accepted are {@linkplain
PhoneNumberUtil
#isPossibleNumber(PhoneNumber)
448
* possible} and {@linkplain
PhoneNumberUtil
#isValidNumber(PhoneNumber) valid}. Numbers written
454
boolean verify(PhoneNumber number, String candidate,
PhoneNumberUtil
util)
[
all
...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DefaultCallLogInsertionHelper.java
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
42
private
PhoneNumberUtil
mPhoneNumberUtil;
72
private synchronized
PhoneNumberUtil
getPhoneNumberUtil() {
74
mPhoneNumberUtil =
PhoneNumberUtil
.getInstance();
/packages/apps/Mms/src/com/android/mms/util/
AddressUtils.java
34
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
38
private static
PhoneNumberUtil
mPhoneNumberUtil;
76
mPhoneNumberUtil =
PhoneNumberUtil
.getInstance();
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
PhoneNumberTestService.java
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
21
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
99
final
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
106
Log.i(TAG, "
PhoneNumberUtil
.format(parse(" + number + ", " + country + "), " + format
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
AreaCodeMap.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
39
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
PhoneNumberOfflineGeocoder.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
42
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
141
regionCode.equals(
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY))
/frameworks/base/telephony/java/android/telephony/
PhoneNumberFormattingTextWatcher.java
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
73
mFormatter =
PhoneNumberUtil
.getInstance().getAsYouTypeFormatter(countryCode);
PhoneNumberUtils.java
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
21
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
[
all
...]
/frameworks/base/telephony/java/com/android/internal/telephony/
CallerInfo.java
36
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
538
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
/packages/apps/Contacts/src/com/android/contacts/model/
AccountTypeManager.java
22
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
[
all
...]
Completed in 8769 milliseconds