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
37
) sorted by null
1
2
/external/libphonenumber/java/test/com/android/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.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberFormat;
30
* Unit tests for
PhoneNumberUtil
.java
130
"no/such/file", "XX", -1,
PhoneNumberUtil
.DEFAULT_METADATA_LOADER);
136
phoneUtil.loadMetadataFromFile("no/such/file",
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY,
137
123,
PhoneNumberUtil
.DEFAULT_METADATA_LOADER);
296
assertEquals("1",
PhoneNumberUtil
.getCountryMobileToken(phoneUtil.getCountryCodeForRegion(
300
assertEquals("",
PhoneNumberUtil
.getCountryMobileToken(phoneUtil.getCountryCodeForRegion(
321
PhoneNumberUtil
.PhoneNumberType.FIXED_LINE));
324
PhoneNumberUtil
.PhoneNumberType.MOBILE));
328
PhoneNumberUtil
.PhoneNumberType.FIXED_LINE))
[
all
...]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/geocoding/
area_code_map.h
34
class
PhoneNumberUtil
;
66
const
PhoneNumberUtil
& phone_util_;
phonenumber_offline_geocoder.h
37
class
PhoneNumberUtil
;
144
const
PhoneNumberUtil
* phone_util_;
/external/chromium_org/components/autofill/core/browser/
phone_number_i18n.cc
17
using i18n::phonenumbers::
PhoneNumberUtil
;
33
PhoneNumberUtil
* phone_util =
PhoneNumberUtil
::GetInstance();
59
PhoneNumberUtil
::PhoneNumberFormat format =
61
PhoneNumberUtil
::NATIONAL :
62
PhoneNumberUtil
::INTERNATIONAL;
64
PhoneNumberUtil
* phone_util =
PhoneNumberUtil
::GetInstance();
99
PhoneNumberUtil
* phone_util =
PhoneNumberUtil
::GetInstance()
[
all
...]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
phonenumbermatcher.h
47
class
PhoneNumberUtil
;
77
PhoneNumberMatcher(const
PhoneNumberUtil
& util,
126
// Parses a phone number from the candidate using
PhoneNumberUtil
::Parse() and
135
ResultCallback4<bool, const
PhoneNumberUtil
&, const PhoneNumber&,
144
const
PhoneNumberUtil
& util,
156
const
PhoneNumberUtil
& util);
171
const
PhoneNumberUtil
& phone_util_;
shortnumberinfo.h
17
// but by the
phonenumberutil
.
35
class
PhoneNumberUtil
;
59
const
PhoneNumberUtil
& phone_util_;
phonenumberutil.cc
18
#include "phonenumbers/
phonenumberutil
.h"
61
const char
PhoneNumberUtil
::kPlusChars[] = "+\xEF\xBC\x8B"; /* "+?" */
68
const char
PhoneNumberUtil
::kValidPunctuation[] =
75
const char
PhoneNumberUtil
::kCaptureUpToSecondNumberStart[] = "(.*)[\\\\/] *x";
78
const char
PhoneNumberUtil
::kRegionCodeForNonGeoEntity[] = "001";
124
PhoneNumberUtil
::PhoneNumberType type) {
126
case
PhoneNumberUtil
::PREMIUM_RATE:
128
case
PhoneNumberUtil
::TOLL_FREE:
130
case
PhoneNumberUtil
::MOBILE:
132
case
PhoneNumberUtil
::FIXED_LINE
[
all
...]
asyoutypeformatter.h
18
// method of the
PhoneNumberUtil
. After that digits can be added by invoking the
52
class
PhoneNumberUtil
;
85
//
PhoneNumberUtil
::GetAsYouTypeFormatter().
199
const
PhoneNumberUtil
& phone_util_;
230
friend class
PhoneNumberUtil
;
phonenumbermatcher.cc
49
#include "phonenumbers/
phonenumberutil
.h"
81
const
PhoneNumberUtil
& util) {
101
!=
PhoneNumberUtil
::NSN_MATCH) {
118
const
PhoneNumberUtil
& util,
273
digit_block_limit_(
PhoneNumberUtil
::kMaxLengthForNsn +
274
PhoneNumberUtil
::kMaxLengthCountryCode),
276
punctuation_(StrCat("[",
PhoneNumberUtil
::kValidPunctuation, "]",
279
lead_class_chars_(StrCat(opening_parens_,
PhoneNumberUtil
::kPlusChars)),
284
PhoneNumberUtil
::GetInstance()->GetExtnPatternsForMatching(),
307
PhoneNumberUtil
::kCaptureUpToSecondNumberStart))
[
all
...]
phonenumberutil.h
62
class
PhoneNumberUtil
: public Singleton<
PhoneNumberUtil
> {
72
friend class Singleton<
PhoneNumberUtil
>;
75
~
PhoneNumberUtil
();
165
// Gets a
PhoneNumberUtil
instance to carry out international phone number
170
// The
PhoneNumberUtil
is implemented as a singleton. Therefore, calling
172
static
PhoneNumberUtil
* GetInstance();
207
// const
PhoneNumberUtil
& phone_util(*
PhoneNumberUtil
::GetInstance());
250
// const
PhoneNumberUtil
& phone_util(*PhoneNumberUtil::GetInstance())
[
all
...]
/external/chromium_org/content/renderer/android/
phone_number_detector.cc
20
using i18n::phonenumbers::
PhoneNumberUtil
;
71
PhoneNumberUtil
* phone_util =
PhoneNumberUtil
::GetInstance();
/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
;
75
final
PhoneNumberUtil
util =
PhoneNumberUtil
.getInstance();
86
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/java/src/com/android/i18n/phonenumbers/
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
}.
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
...]
ShortNumberInfo.java
34
* {@link
PhoneNumberUtil
}.
43
new ShortNumberInfo(
PhoneNumberUtil
.getInstance());
68
private final
PhoneNumberUtil
phoneUtil;
71
ShortNumberInfo(
PhoneNumberUtil
util) {
382
number =
PhoneNumberUtil
.extractPossibleNumber(number);
383
if (
PhoneNumberUtil
.PLUS_CHARS_PATTERN.matcher(number).lookingAt()) {
395
String normalizedNumber =
PhoneNumberUtil
.normalizeDigitsOnly(number);
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}.
418
PhoneNumberUtil
.PLUS_CHARS_PATTERN.matcher(Character.toString(nextChar)).matches());
565
regexCache.getPatternForRegex("\\" +
PhoneNumberUtil
.PLUS_SIGN + "|" +
576
if (accruedInputWithoutFormatting.charAt(0) !=
PhoneNumberUtil
.PLUS_SIGN) {
603
if (
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY.equals(newRegionCode))
[
all
...]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
PhoneNumberOfflineGeocoder.java
20
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
21
import com.android.i18n.phonenumbers.
PhoneNumberUtil
.PhoneNumberType;
38
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
75
regionCode.equals(
PhoneNumberUtil
.REGION_CODE_FOR_NON_GEO_ENTITY))
99
String mobileToken =
PhoneNumberUtil
.getCountryMobileToken(number.getCountryCode());
202
* A similar method is implemented as
PhoneNumberUtil
.isNumberGeographical, which performs a
/packages/apps/Mms/src/com/android/mms/util/
AddressUtils.java
27
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
35
private static
PhoneNumberUtil
mPhoneNumberUtil;
80
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/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/ContactsCommon/libs/
libphonenumber-6.2.jar
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/prefixmapper/
PrefixTimeZonesMap.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
92
PhoneNumberUtil
.getInstance().getNationalSignificantNumber(number));
PhonePrefixMap.java
19
import com.android.i18n.phonenumbers.
PhoneNumberUtil
;
39
private final
PhoneNumberUtil
phoneUtil =
PhoneNumberUtil
.getInstance();
Completed in 1751 milliseconds
1
2