/external/libphonenumber/java/test/com/android/i18n/phonenumbers/ |
PhonenumberTest.java | 19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 20 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource; 25 * Tests for the Phonenumber.PhoneNumber object itself. 32 PhoneNumber numberA = new PhoneNumber(); 35 PhoneNumber numberB = new PhoneNumber(); [all...] |
PhoneNumberMatchTest.java | 19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 35 PhoneNumber number = new PhoneNumber(); 53 new PhoneNumberMatch(-110, "1 800 234 45 67", new PhoneNumber()); 63 new PhoneNumberMatch(10, null, new PhoneNumber());
|
ExampleNumbersTest.java | 21 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 41 private List<PhoneNumber> invalidCases = new ArrayList<PhoneNumber>(); 42 private List<PhoneNumber> wrongTypeCases = new ArrayList<PhoneNumber>(); 69 PhoneNumber exampleNumber = 160 PhoneNumber exampleNumber = null; 199 PhoneNumber exampleNumber = 211 PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumber(regionCode) [all...] |
PhoneNumberMatcherTest.java | 20 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 201 PhoneNumber expectedResult = phoneUtil.parse(number, RegionCode.US); 329 PhoneNumber number1 = new PhoneNumber(); 334 PhoneNumber number2 = new PhoneNumber(); 623 PhoneNumber number1 = new PhoneNumber(); 628 PhoneNumber number2 = new PhoneNumber() [all...] |
PhoneNumberUtilTest.java | 23 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource; 40 private static final PhoneNumber ALPHA_NUMERIC_NUMBER = 41 new PhoneNumber().setCountryCode(1).setNationalNumber(80074935247L); 42 private static final PhoneNumber AR_MOBILE = 43 new PhoneNumber().setCountryCode(54).setNationalNumber(91187654321L); 44 private static final PhoneNumber AR_NUMBER = 45 new PhoneNumber().setCountryCode(54).setNationalNumber(1187654321) [all...] |
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
PhoneNumberMatch.java | 19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 62 private final PhoneNumber number; 71 PhoneNumberMatch(int start, String rawString, PhoneNumber number) { 84 public PhoneNumber number() {
|
Phonenumber.java | 19 * based on the class file compiled from phonenumber.proto. Please refer to that file for detailed 27 public final class Phonenumber { 28 private Phonenumber() {} 29 public static class PhoneNumber implements Serializable { 38 public PhoneNumber() { 47 public PhoneNumber setCountryCode(int value) { 52 public PhoneNumber clearCountryCode() { 63 public PhoneNumber setNationalNumber(long value) { 68 public PhoneNumber clearNationalNumber() { 79 public PhoneNumber setExtension(String value) [all...] |
PhoneNumberMatcher.java | 24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource; 25 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 418 PhoneNumber number = phoneUtil.parseAndKeepRawInput(candidate, preferredRegion); 449 boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, 454 PhoneNumber number, 488 PhoneNumber number, 524 private static String[] getNationalNumberGroups(PhoneNumberUtil util, PhoneNumber number, 547 PhoneNumber number, String candidate, PhoneNumberUtil util, NumberGroupingChecker checker) [all...] |
PhoneNumberUtil.java | 23 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource; 372 * use the PhoneNumber class. 426 * Possible outcomes when testing if a PhoneNumber is possible. 441 * Phone numbers accepted are {@linkplain PhoneNumberUtil#isPossibleNumber(PhoneNumber) 442 * possible}, but not necessarily {@linkplain PhoneNumberUtil#isValidNumber(PhoneNumber) valid}. 446 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { 451 * Phone numbers accepted are {@linkplain PhoneNumberUtil#isPossibleNumber(PhoneNumber) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DefaultCallLogInsertionHelper.java | 25 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 78 private PhoneNumber parsePhoneNumber(String number, String countryIso) { 95 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso);
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
PhoneNumberTestService.java | 29 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 48 private static final String TAG = "phonenumber"; 101 final PhoneNumber pn = util.parse(number, country);
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/ |
AreaCodeMap.java | 20 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 145 String lookup(PhoneNumber number) {
|
PhoneNumberOfflineGeocoder.java | 20 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 131 private String getCountryNameForNumber(PhoneNumber number, Locale language) { 157 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode) { 169 * As per {@link #getDescriptionForValidNumber(PhoneNumber, Locale)} but also considers the 189 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode, 205 * As per {@link #getDescriptionForValidNumber(PhoneNumber, Locale)} but explicitly checks 213 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode) { 221 * As per {@link #getDescriptionForValidNumber(PhoneNumber, Locale, String)} but 232 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode [all...] |
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/ |
PhoneNumberOfflineGeocoderTest.java | 19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 36 private static final PhoneNumber KO_NUMBER1 = 37 new PhoneNumber().setCountryCode(82).setNationalNumber(22123456L); 38 private static final PhoneNumber KO_NUMBER2 = 39 new PhoneNumber().setCountryCode(82).setNationalNumber(322123456L); 40 private static final PhoneNumber KO_NUMBER3 = 41 new PhoneNumber().setCountryCode(82).setNationalNumber(6421234567L); 42 private static final PhoneNumber KO_INVALID_NUMBER = 43 new PhoneNumber().setCountryCode(82).setNationalNumber(1234L) [all...] |
AreaCodeMapTest.java | 19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 38 private PhoneNumber number = new PhoneNumber();
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfo.java | 37 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 59 * Also, it is implied that phoneNumber is more often populated than 61 * names are not known to the device), so phoneNumber should serve as 76 * phoneNumber field. 78 * What we're really doing here is treating phoneNumber as an essential 83 public String phoneNumber; 186 info.phoneNumber = cursor.getString(columnIndex); 294 if (TextUtils.isEmpty(info.phoneNumber)) { 295 info.phoneNumber = number [all...] |
/frameworks/base/telephony/java/android/telephony/ |
PhoneNumberUtils.java | 22 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 206 * Returns null if phoneNumber == null 209 extractNetworkPortion(String phoneNumber) { 210 if (phoneNumber == null) { 214 int len = phoneNumber.length(); 218 char c = phoneNumber.charAt(i); 248 public static String extractNetworkPortionAlt(String phoneNumber) { 249 if (phoneNumber == null) { 253 int len = phoneNumber.length() [all...] |