/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
PhonenumberTest.java | 19 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 20 import com.google.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.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 33 PhoneNumber number = new PhoneNumber(); 51 new PhoneNumberMatch(-110, "1 800 234 45 67", new PhoneNumber()); 61 new PhoneNumberMatch(10, null, new PhoneNumber());
|
PhoneNumberUtilTest.java | 23 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 24 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource; 42 private static final PhoneNumber ALPHA_NUMERIC_NUMBER = 43 new PhoneNumber().setCountryCode(1).setNationalNumber(80074935247L); 44 private static final PhoneNumber AE_UAN = 45 new PhoneNumber().setCountryCode(971).setNationalNumber(600123456L); 46 private static final PhoneNumber AR_MOBILE = 47 new PhoneNumber().setCountryCode(54).setNationalNumber(91187654321L) [all...] |
ShortNumberInfoTest.java | 19 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 30 PhoneNumber possibleNumber = new PhoneNumber(); 36 PhoneNumber impossibleNumber = new PhoneNumber(); 43 new PhoneNumber().setCountryCode(44).setNationalNumber(11001L))); 48 new PhoneNumber().setCountryCode(33).setNationalNumber(1010L))); 51 new PhoneNumber().setCountryCode(33).setNationalNumber(123456L))); 57 new PhoneNumber().setCountryCode(44).setNationalNumber(18001L))) [all...] |
ExampleNumbersTest.java | 21 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 42 private List<PhoneNumber> invalidCases = new ArrayList<PhoneNumber>(); 43 private List<PhoneNumber> wrongTypeCases = new ArrayList<PhoneNumber>(); 53 PhoneNumber exampleNumber = 144 PhoneNumber exampleNumber = null; 165 PhoneNumber exampleNumber = 178 PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumber(regionCode) [all...] |
/external/libphonenumber/geocoder/test/com/google/i18n/phonenumbers/geocoding/ |
PhoneNumberOfflineGeocoderTest.java | 19 import com.google.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...] |
/external/libphonenumber/carrier/test/com/google/i18n/phonenumbers/ |
PhoneNumberToCarrierMapperTest.java | 18 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 35 private static final PhoneNumber AO_MOBILE1 = 36 new PhoneNumber().setCountryCode(244).setNationalNumber(917654321L); 37 private static final PhoneNumber AO_MOBILE2 = 38 new PhoneNumber().setCountryCode(244).setNationalNumber(927654321L); 39 private static final PhoneNumber AO_FIXED1 = 40 new PhoneNumber().setCountryCode(244).setNationalNumber(22254321L); 41 private static final PhoneNumber AO_FIXED2 = 42 new PhoneNumber().setCountryCode(244).setNationalNumber(26254321L) [all...] |
/external/libphonenumber/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/ |
PrefixFileReaderTest.java | 19 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 32 private static final PhoneNumber KO_NUMBER = 33 new PhoneNumber().setCountryCode(82).setNationalNumber(22123456L); 34 private static final PhoneNumber US_NUMBER1 = 35 new PhoneNumber().setCountryCode(1).setNationalNumber(6502530000L); 36 private static final PhoneNumber US_NUMBER2 = 37 new PhoneNumber().setCountryCode(1).setNationalNumber(2128120000L); 38 private static final PhoneNumber US_NUMBER3 = 39 new PhoneNumber().setCountryCode(1).setNationalNumber(6174240000L) [all...] |
PrefixTimeZonesMapTest.java | 19 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 92 PhoneNumber number = new PhoneNumber(); 99 PhoneNumber number = new PhoneNumber(); 106 PhoneNumber number = new PhoneNumber(); 113 PhoneNumber number = new PhoneNumber(); [all...] |
/external/libphonenumber/geocoder/test/com/google/i18n/phonenumbers/ |
PhoneNumberToTimeZonesMapperTest.java | 19 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 36 private static final PhoneNumber AU_NUMBER = 37 new PhoneNumber().setCountryCode(61).setNationalNumber(236618300L); 38 private static final PhoneNumber CA_NUMBER = 39 new PhoneNumber().setCountryCode(1).setNationalNumber(6048406565L); 40 private static final PhoneNumber KO_NUMBER = 41 new PhoneNumber().setCountryCode(82).setNationalNumber(22123456L); 42 private static final PhoneNumber KO_INVALID_NUMBER = 43 new PhoneNumber().setCountryCode(82).setNationalNumber(1234L) [all...] |
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
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...] |
PhoneNumberMatch.java | 19 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 60 private final PhoneNumber number; 69 PhoneNumberMatch(int start, String rawString, PhoneNumber number) { 82 public PhoneNumber number() {
|
ShortNumberInfo.java | 23 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 105 private boolean regionDialingFromMatchesNumber(PhoneNumber number, 119 public boolean isPossibleShortNumberForRegion(PhoneNumber number, String regionDialingFrom) { 136 * #isPossibleShortNumberForRegion(PhoneNumber, String)} for details. 141 public boolean isPossibleShortNumber(PhoneNumber number) { 165 public boolean isValidShortNumberForRegion(PhoneNumber number, String regionDialingFrom) { 187 * itself. See {@link #isValidShortNumberForRegion(PhoneNumber, String)} for details. 192 public boolean isValidShortNumber(PhoneNumber number) { 211 * PhoneNumber number = phoneUtil.parse("110", "US") [all...] |
PhoneNumberUtil.java | 22 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 23 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource; 386 * use the PhoneNumber class. 440 * Possible outcomes when testing if a PhoneNumber is possible. 471 * Phone numbers accepted are {@linkplain PhoneNumberUtil#isPossibleNumber(PhoneNumber) 472 * possible}, but not necessarily {@linkplain PhoneNumberUtil#isValidNumber(PhoneNumber) valid}. 476 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { 481 * Phone numbers accepted are {@linkplain PhoneNumberUtil#isPossibleNumber(PhoneNumber) [all...] |
/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/ |
Converter.java | 19 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 22 * Methods for converting from {@link PhoneNumber} POJOs to {@link DialerInternalPhoneNumber} protos 27 static DialerInternalPhoneNumber pojoToProto(PhoneNumber pojo) { 76 static PhoneNumber protoToPojo(DialerInternalPhoneNumber proto) { 77 PhoneNumber pojo = new PhoneNumber(); 84 pojo.setCountryCodeSource(PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN); 87 pojo.setCountryCodeSource(PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_IDD); 90 pojo.setCountryCodeSource(PhoneNumber.CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN) [all...] |
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
SimulatorContacts.java | 46 .addPhoneNumber(new PhoneNumber("+1-302-6365454", Phone.TYPE_MOBILE)) 54 .addPhoneNumber(new PhoneNumber("(425) 739-5600", Phone.TYPE_MOBILE)) 62 .addPhoneNumber(new PhoneNumber("+44 (0) 20 7031 3000", Phone.TYPE_MOBILE)) 70 .addPhoneNumber(new PhoneNumber("+1-650-2530000", Phone.TYPE_HOME)) 71 .addPhoneNumber(new PhoneNumber("+1 404-487-9000", Phone.TYPE_WORK)) 72 .addPhoneNumber(new PhoneNumber("+61 2 9374 4001", Phone.TYPE_FAX_HOME)) 79 .addPhoneNumber(new PhoneNumber("+1-650-2530000", Phone.TYPE_HOME)) 80 .addPhoneNumber(new PhoneNumber("+1 303-245-0086;123,456", Phone.TYPE_WORK)) 85 .addPhoneNumber(new PhoneNumber("+33 (0)1 42 68 53 00", Phone.TYPE_MOBILE)) 90 .addPhoneNumber(new PhoneNumber("+33 (0)1 42 68 53 00", Phone.TYPE_MOBILE) [all...] |
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/ |
PhoneNumberToCarrierMapper.java | 21 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 73 public String getNameForValidNumber(PhoneNumber number, Locale languageCode) { 83 * {@link #getNameForValidNumber(PhoneNumber, Locale)} but explicitly checks the validity of 91 public String getNameForNumber(PhoneNumber number, Locale languageCode) { 109 public String getSafeDisplayName(PhoneNumber number, Locale languageCode) {
|
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/ |
PhoneNumberToTimeZonesMapper.java | 20 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 124 public List<String> getTimeZonesForGeographicalNumber(PhoneNumber number) { 129 * As per {@link #getTimeZonesForGeographicalNumber(PhoneNumber)} but explicitly checks 136 public List<String> getTimeZonesForNumber(PhoneNumber number) { 161 private List<String> getTimeZonesForGeocodableNumber(PhoneNumber number) { 174 private List<String> getCountryLevelTimeZonesforNumber(PhoneNumber number) {
|
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/ |
PhoneNumberOfflineGeocoder.java | 22 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 66 private String getCountryNameForNumber(PhoneNumber number, Locale language) { 112 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode) { 125 PhoneNumber copiedNumber; 143 * As per {@link #getDescriptionForValidNumber(PhoneNumber, Locale)} but also considers the 164 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode, 180 * As per {@link #getDescriptionForValidNumber(PhoneNumber, Locale)} but explicitly checks 188 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode) { 199 * As per {@link #getDescriptionForValidNumber(PhoneNumber, Locale, String)} bu [all...] |
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
PrefixTimeZonesMap.java | 20 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 84 * As per {@link #lookupTimeZonesForNumber(long)}, but receives the number as a PhoneNumber 90 public List<String> lookupTimeZonesForNumber(PhoneNumber number) { 102 public List<String> lookupCountryLevelTimeZonesForNumber(PhoneNumber number) {
|
/packages/services/Mms/src/com/android/mms/service/ |
PhoneUtils.java | 24 import com.android.i18n.phonenumbers.Phonenumber; 46 final Phonenumber.PhoneNumber parsed = getParsedNumber(phoneNumberUtil, phoneText, country); 56 private static Phonenumber.PhoneNumber getParsedNumber(PhoneNumberUtil phoneNumberUtil, 59 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); 60 if (phoneNumberUtil.isValidNumber(phoneNumber)) { 61 return phoneNumber; [all...] |
/external/protobuf/csharp/src/AddressBook/ |
Addressbook.cs | 38 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Examples.AddressBook.Person), global::Google.Protobuf.Examples.AddressBook.Person.Parser, new[]{ "Name", "Id", "Email", "Phones" }, null, new[]{ typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber), global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser, new[]{ "Number", "Type" }, null, null, null)}), 114 private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> _repeated_phones_codec 115 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser); 116 private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> phones_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber>(); 117 public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> Phones { 237 public sealed partial class PhoneNumber : pb::IMessage<PhoneNumber> { 238 private static readonly pb::MessageParser<PhoneNumber> _parser = new pb::MessageParser<PhoneNumber>(() => new PhoneNumber()) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DefaultCallLogInsertionHelper.java | 27 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 101 private PhoneNumber parsePhoneNumber(String number, String countryIso) { 118 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso);
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
GeoUtil.java | 22 import com.google.i18n.phonenumbers.Phonenumber; 35 public static String getGeocodedLocationFor(Context context, String phoneNumber) { 39 final Phonenumber.PhoneNumber structuredPhoneNumber = 40 phoneNumberUtil.parse(phoneNumber, getCurrentCountryIso(context));
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
PhoneNumberHelper.java | 24 import com.google.i18n.phonenumbers.Phonenumber; 42 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(number, country); 43 if (phoneNumber != null && phoneNumberUtil.isValidNumber(phoneNumber)) { 45 .format(phoneNumber, PhoneNumberUtil.PhoneNumberFormat.NATIONAL)
|