OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:PhoneNumberUtil
(Results
1 - 18
of
18
) 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
137
"no/such/file",
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY, 123);
312
PhoneNumberUtil
.PhoneNumberType.FIXED_LINE));
315
PhoneNumberUtil
.PhoneNumberType.MOBILE));
319
PhoneNumberUtil
.PhoneNumberType.FIXED_LINE));
321
PhoneNumberUtil
.PhoneNumberType.MOBILE));
324
PhoneNumberUtil
.PhoneNumberType.MOBILE));
339
assertEquals(expectedOutput,
PhoneNumberUtil
.convertAlphaCharactersInNumber(input));
347
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
520
PhoneNumberUtil
.Leniency leniency) {
543
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;
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.MatchType;
21
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
35
* Instances can be created using the {@linkplain
PhoneNumberUtil
#findNumbers factory methods} in
36
* {@link
PhoneNumberUtil
}.
48
* {@code
PhoneNumberUtil
.VALID_PHONE_NUMBER}, but with the following differences:
134
PhoneNumberUtil
.MAX_LENGTH_FOR_NSN +
PhoneNumberUtil
.MAX_LENGTH_COUNTRY_CODE;
140
String punctuation = "[" +
PhoneNumberUtil
.VALID_PUNCTUATION + "]" + punctuationLimit;
144
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}.
411
PhoneNumberUtil
.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches());
550
regexCache.getPatternForRegex("\\" +
PhoneNumberUtil
.PLUS_SIGN + "|" +
561
if (accruedInputWithoutFormatting.charAt(0) !=
PhoneNumberUtil
.PLUS_SIGN) {
588
if (
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY.equals(newRegionCode))
[
all
...]
PhoneNumberUtil.java
58
public class
PhoneNumberUtil
{
73
private static final Logger LOGGER = Logger.getLogger(
PhoneNumberUtil
.class.getName());
356
private static
PhoneNumberUtil
instance = null;
453
* Leniency when {@linkplain
PhoneNumberUtil
#findNumbers finding} potential phone numbers in text
458
* Phone numbers accepted are {@linkplain
PhoneNumberUtil
#isPossibleNumber(PhoneNumber)
459
* possible}, but not necessarily {@linkplain
PhoneNumberUtil
#isValidNumber(PhoneNumber) valid}.
463
boolean verify(PhoneNumber number, String candidate,
PhoneNumberUtil
util) {
468
* Phone numbers accepted are {@linkplain
PhoneNumberUtil
#isPossibleNumber(PhoneNumber)
469
* possible} and {@linkplain
PhoneNumberUtil
#isValidNumber(PhoneNumber) valid}. Numbers written
475
boolean verify(PhoneNumber number, String candidate,
PhoneNumberUtil
util)
[
all
...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DefaultCallLogInsertionHelper.java
24
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
41
private
PhoneNumberUtil
mPhoneNumberUtil;
71
private synchronized
PhoneNumberUtil
getPhoneNumberUtil() {
73
mPhoneNumberUtil =
PhoneNumberUtil
.getInstance();
/packages/apps/Mms/src/com/android/mms/util/
AddressUtils.java
27
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
36
private static
PhoneNumberUtil
mPhoneNumberUtil;
81
mPhoneNumberUtil =
PhoneNumberUtil
.getInstance();
/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/apps/ContactsCommon/src/com/android/contacts/common/
MoreContactUtils.java
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
74
final
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
85
final
PhoneNumberUtil
.MatchType result = util.isNumberMatch(dataPart1, dataPart2);
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
PhoneNumberOfflineGeocoder.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberType;
43
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
142
regionCode.equals(
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY))
250
* A similar method is implemented as
PhoneNumberUtil
.isNumberGeographical, which performs a
AreaCodeMap.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
39
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
/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/core/java/android/text/util/
Linkify.java
41
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
42
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.Leniency;
451
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
/frameworks/base/telephony/java/com/android/internal/telephony/
CallerInfo.java
37
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
539
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
Completed in 287 milliseconds