Home
last modified time | relevance | path

Searched refs:PhoneNumber (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java37 import com.android.car.telephony.common.PhoneNumber;
93 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withOnlyOneNumber_showLabel()
103 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, TYPE, null, in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
117 PhoneNumber phoneNumber = mock(PhoneNumber.class); in testLabel_withOneNumberAndGetNullLabel_showEmptyString()
127 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
129 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
141 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
143 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
156 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
158 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, TYPE, null, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
[all …]
DContactListFragmentTest.java43 import com.android.car.telephony.common.PhoneNumber;
84 private PhoneNumber mMockPhoneNumber;
128 PhoneNumber otherMockPhoneNumber = mock(PhoneNumber.class); in testClickCallActionButton_ContactHasMultipleNumbers_showAlertDialog()
DContactDetailsFragmentTest.java38 import com.android.car.telephony.common.PhoneNumber;
68 private PhoneNumber mMockPhoneNumber1;
70 private PhoneNumber mMockPhoneNumber2;
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DPhoneNumber.java36 public class PhoneNumber implements Parcelable { class
55 static PhoneNumber fromCursor(Context context, Cursor cursor) { in fromCursor()
69 return PhoneNumber.newInstance( in fromCursor()
94 public static PhoneNumber newInstance(Context context, String rawNumber, int type, in newInstance()
99 return new PhoneNumber(i18nPhoneNumber, type, label, isPrimary, id, accountName, in newInstance()
103 private PhoneNumber(I18nPhoneNumberWrapper i18nNumber, int type, @Nullable String label, in PhoneNumber() method in PhoneNumber
117 return obj instanceof PhoneNumber in equals()
118 && mI18nPhoneNumber.equals(((PhoneNumber) obj).mI18nPhoneNumber) in equals()
119 && mAccountName.equals(((PhoneNumber) obj).mAccountName) in equals()
120 && mAccountType.equals(((PhoneNumber) obj).mAccountType); in equals()
[all …]
DContact.java188 private PhoneNumber mPrimaryPhoneNumber;
198 private final List<PhoneNumber> mPhoneNumbers = new ArrayList<>();
328 PhoneNumber newNumber = PhoneNumber.fromCursor(context, cursor); in addPhoneNumber()
331 for (PhoneNumber number : mPhoneNumbers) { in addPhoneNumber()
484 public List<PhoneNumber> getNumbers() { in getNumbers()
513 public PhoneNumber getPrimaryPhoneNumber() { in getPrimaryPhoneNumber()
536 public PhoneNumber getPhoneNumber(Context context, String number) { in getPhoneNumber()
539 for (PhoneNumber phoneNumber : mPhoneNumbers) { in getPhoneNumber()
572 for (PhoneNumber phoneNumber : mPhoneNumbers) { in writeToParcel()
615 contact.mPrimaryPhoneNumber = source.readParcelable(PhoneNumber.class.getClassLoader()); in fromParcel()
[all …]
DI18nPhoneNumberWrapper.java45 private final Phonenumber.PhoneNumber mI18nPhoneNumber;
50 @Nullable Phonenumber.PhoneNumber i18nPhoneNumber) { in I18nPhoneNumberWrapper()
117 Phonenumber.PhoneNumber i18nPhoneNumber =
118 (Phonenumber.PhoneNumber) source.readSerializable();
163 Phonenumber.PhoneNumber i18nPhoneNumber = TelecomUtils.createI18nPhoneNumber(context, in create()
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DContactsPopulator.java48 .addPhoneNumber(new PhoneNumber("+1-302-6365454", Phone.TYPE_MOBILE))
57 .addPhoneNumber(new PhoneNumber("(425) 739-5600", Phone.TYPE_MOBILE))
66 .addPhoneNumber(new PhoneNumber("+44 (0) 20 7031 3000", Phone.TYPE_MOBILE))
75 .addPhoneNumber(new PhoneNumber("+1-650-2530000", Phone.TYPE_HOME))
76 .addPhoneNumber(new PhoneNumber("+1 404-487-9000", Phone.TYPE_WORK))
77 .addPhoneNumber(new PhoneNumber("+61 2 9374 4001", Phone.TYPE_FAX_HOME))
85 .addPhoneNumber(new PhoneNumber("+1-650-2530000", Phone.TYPE_HOME))
86 .addPhoneNumber(new PhoneNumber("+1 303-245-0086;123,456", Phone.TYPE_WORK))
92 .addPhoneNumber(new PhoneNumber("+33 (0)1 42 68 53 00", Phone.TYPE_MOBILE))
98 .addPhoneNumber(new PhoneNumber("+33 (0)1 42 68 53 00", Phone.TYPE_MOBILE))
[all …]
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/
DConstraints.java30 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
31 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
95 Optional<PhoneNumber> parsedPhoneNumber = parsePhoneNumber(numberToCheck, userHomeCountryCode); in meetsPreconditions()
145 private Optional<PhoneNumber> parsePhoneNumber( in parsePhoneNumber()
162 private boolean isNotInternationalNumber(@NonNull Optional<PhoneNumber> parsedPhoneNumber) {
182 private boolean doesNotHaveExtension(@NonNull Optional<PhoneNumber> parsedPhoneNumber) {
195 private boolean isValidNumber(@NonNull Optional<PhoneNumber> parsedPhoneNumber) {
DNumberTransformer.java24 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
56 PhoneNumber phoneNumber = in doAssistedDialingTransformation()
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DFavoriteNumberRepository.java37 import com.android.car.telephony.common.PhoneNumber;
108 public void addToFavorite(Contact contact, PhoneNumber phoneNumber) { in addToFavorite()
122 public void removeFromFavorite(Contact contact, PhoneNumber phoneNumber) { in removeFromFavorite()
213 for (PhoneNumber inMemoryPhoneNumber : inMemoryContact.getNumbers()) { in lookupContact()
228 PhoneNumber phoneNumber) { in matches()
236 private boolean numberMatches(FavoriteNumberEntity favoriteNumber, PhoneNumber phoneNumber) { in numberMatches()
268 for (PhoneNumber phoneNumber : contact.getNumbers()) { in setValue()
275 for (PhoneNumber phoneNumber : contact.getNumbers()) { in setValue()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DAddFavoriteFragment.java29 import com.android.car.telephony.common.PhoneNumber;
55 private Set<PhoneNumber> mSelectedNumbers;
81 for (PhoneNumber number : mSelectedNumbers) { in onCreate()
91 private void setPhoneNumbers(List<PhoneNumber> phoneNumbers) { in setPhoneNumbers()
93 for (PhoneNumber number : phoneNumbers) { in setPhoneNumbers()
114 private void setFavoriteItemState(CarUiContentListItem item, PhoneNumber number) { in setFavoriteItemState()
DFavoriteContactViewHolder.java33 import com.android.car.telephony.common.PhoneNumber;
67 List<PhoneNumber> contactPhoneNumbers = contact.getNumbers(); in onBind()
DFavoriteViewModel.java32 import com.android.car.telephony.common.PhoneNumber;
97 public void addToFavorite(Contact contact, PhoneNumber phoneNumber) { in addToFavorite()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerUtils.java28 import com.android.car.telephony.common.PhoneNumber;
54 void onPhoneNumberSelected(PhoneNumber phoneNumber, boolean always); in onPhoneNumberSelected()
62 List<PhoneNumber> numbers, in showPhoneNumberSelector()
65 final List<PhoneNumber> selectedPhoneNumber = new ArrayList<>(); in showPhoneNumberSelector()
69 for (PhoneNumber number : numbers) { in showPhoneNumberSelector()
DUiCallLogLiveData.java41 import com.android.car.telephony.common.PhoneNumber;
207 PhoneNumber phoneNumber = contact != null in convert()
243 private CharSequence getType(@Nullable PhoneNumber phoneNumber) { in getType()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsAdapter.java31 import com.android.car.telephony.common.PhoneNumber;
45 void onClick(Contact contact, PhoneNumber phoneNumber); in onClick()
82 } else if (obj instanceof PhoneNumber) { in getItemViewType()
127 viewHolder.bind(mContext, mContact, (PhoneNumber) mItems.get(position)); in onBindViewHolder()
DContactDetailsViewModel.java35 import com.android.car.telephony.common.PhoneNumber;
76 public void addToFavorite(Contact contact, PhoneNumber phoneNumber) { in addToFavorite()
86 public void removeFromFavorite(Contact contact, PhoneNumber phoneNumber) { in removeFromFavorite()
DContactListViewHolder.java33 import com.android.car.telephony.common.PhoneNumber;
89 List<PhoneNumber> numberList = contact.getNumbers(); in setLabelText()
/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/
DDialerPhoneNumberUtil.java31 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
87 PhoneNumber phoneNumber = phoneNumberUtil.parse(networkPortion, defaultRegion); in parse()
139 PhoneNumber phoneNumber1 = null; in isMatch()
147 PhoneNumber phoneNumber2 = null; in isMatch()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/favorite/
DFavoriteFragmentTest.java36 import com.android.car.telephony.common.PhoneNumber;
65 private PhoneNumber mMockPhoneNumber;
118 PhoneNumber otherMockPhoneNumber = mock(PhoneNumber.class); in testOnItemClick_contactHasMultiNumbers_notPlaceCall()
/packages/services/Mms/src/com/android/mms/service/
DPhoneUtils.java45 final Phonenumber.PhoneNumber parsed = getParsedNumber(phoneNumberUtil, phoneText, country); in getNationalNumber()
55 private static Phonenumber.PhoneNumber getParsedNumber(PhoneNumberUtil phoneNumberUtil, in getParsedNumber()
58 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); in getParsedNumber()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDefaultCallLogInsertionHelper.java27 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
101 private PhoneNumber parsePhoneNumber(String number, String countryIso) { in parsePhoneNumber()
118 PhoneNumber structuredPhoneNumber = parsePhoneNumber(number, countryIso); in getGeocodedLocationFor()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java42 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
748 final PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); in getValidE164Number()
843 final PhoneNumber phoneNumber = phoneNumberUtil.parse(selfNumber, country); in getSimNumberNoCountryCode()
875 final PhoneNumber parsedNumber = phoneNumberUtil.parse(phoneText, systemCountry); in formatForDisplay()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DPhoneNumberTestService.java29 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
101 final PhoneNumber pn = util.parse(number, country); in dump_PhoneNumberUtil_format()
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneNumberUtilsCompat.java26 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
144 PhoneNumber phoneNumber = null; in createTtsSpanLollipop()

12