Home
last modified time | relevance | path

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

12

/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java38 import com.android.car.telephony.common.PhoneNumber;
97 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withOnlyOneNumber_showLabel()
107 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, TYPE, null, in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
121 PhoneNumber phoneNumber = mock(PhoneNumber.class); in testLabel_withOneNumberAndGetNullLabel_showEmptyString()
131 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
133 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
145 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
147 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
160 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
162 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, TYPE, null, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
[all …]
DContactListFragmentTest.java43 import com.android.car.telephony.common.PhoneNumber;
86 private PhoneNumber mMockPhoneNumber;
129 PhoneNumber otherMockPhoneNumber = mock(PhoneNumber.class); in testClickCallActionButton_ContactHasMultipleNumbers_showAlertDialog()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DPhoneNumber.java35 public class PhoneNumber implements Parcelable { class
54 static PhoneNumber fromCursor(Context context, Cursor cursor) { in fromCursor()
68 return PhoneNumber.newInstance( in fromCursor()
93 public static PhoneNumber newInstance(Context context, String rawNumber, int type, in newInstance()
98 return new PhoneNumber(i18nPhoneNumber, type, label, isPrimary, id, accountName, in newInstance()
102 private PhoneNumber(I18nPhoneNumberWrapper i18nNumber, int type, @Nullable String label, in PhoneNumber() method in PhoneNumber
116 return obj instanceof PhoneNumber in equals()
117 && mI18nPhoneNumber.equals(((PhoneNumber) obj).mI18nPhoneNumber) in equals()
118 && mAccountName.equals(((PhoneNumber) obj).mAccountName) in equals()
119 && mAccountType.equals(((PhoneNumber) obj).mAccountType); in equals()
[all …]
DContact.java190 private PhoneNumber mPrimaryPhoneNumber;
200 private final List<PhoneNumber> mPhoneNumbers = new ArrayList<>();
339 PhoneNumber newNumber = PhoneNumber.fromCursor(context, cursor); in addPhoneNumber()
342 for (PhoneNumber number : mPhoneNumbers) { in addPhoneNumber()
506 public List<PhoneNumber> getNumbers() { in getNumbers()
535 public PhoneNumber getPrimaryPhoneNumber() { in getPrimaryPhoneNumber()
558 public PhoneNumber getPhoneNumber(Context context, String number) { in getPhoneNumber()
561 for (PhoneNumber phoneNumber : mPhoneNumbers) { in getPhoneNumber()
594 for (PhoneNumber phoneNumber : mPhoneNumbers) { in writeToParcel()
637 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.java39 import com.android.car.telephony.common.PhoneNumber;
118 public void addToFavorite(Contact contact, PhoneNumber phoneNumber) { in addToFavorite()
132 public void removeFromFavorite(Contact contact, PhoneNumber phoneNumber) { in removeFromFavorite()
223 for (PhoneNumber inMemoryPhoneNumber : inMemoryContact.getNumbers()) { in lookupContact()
238 PhoneNumber phoneNumber) { in matches()
246 private boolean numberMatches(FavoriteNumberEntity favoriteNumber, PhoneNumber phoneNumber) { in numberMatches()
279 for (PhoneNumber phoneNumber : contact.getNumbers()) { in setValue()
286 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;
59 private Set<PhoneNumber> mSelectedNumbers;
84 for (PhoneNumber number : mSelectedNumbers) { in onCreate()
94 private void setPhoneNumbers(List<PhoneNumber> phoneNumbers) { in setPhoneNumbers()
96 for (PhoneNumber number : phoneNumbers) { in setPhoneNumbers()
117 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 bind()
DFavoriteViewModel.java33 import com.android.car.telephony.common.PhoneNumber;
113 public void addToFavorite(Contact contact, PhoneNumber phoneNumber) { in addToFavorite()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerUtils.java30 import com.android.car.telephony.common.PhoneNumber;
56 void onPhoneNumberSelected(PhoneNumber phoneNumber, boolean always); in onPhoneNumberSelected()
64 List<PhoneNumber> numbers, in showPhoneNumberSelector()
67 final List<PhoneNumber> selectedPhoneNumber = new ArrayList<>(); in showPhoneNumberSelector()
71 for (PhoneNumber number : numbers) { in showPhoneNumberSelector()
/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/src/com/android/car/dialer/ui/contact/
DContactDetailsAdapter.java31 import com.android.car.telephony.common.PhoneNumber;
50 void onClick(Contact contact, PhoneNumber phoneNumber); in onClick()
98 } else if (obj instanceof PhoneNumber) { in getItemViewType()
143 viewHolder.bind(mContext, mContact, (PhoneNumber) mItems.get(position)); in onBindViewHolder()
DContactDetailsViewModel.java34 import com.android.car.telephony.common.PhoneNumber;
84 public void addToFavorite(Contact contact, PhoneNumber phoneNumber) { in addToFavorite()
94 public void removeFromFavorite(Contact contact, PhoneNumber phoneNumber) { in removeFromFavorite()
DContactListViewHolder.java34 import com.android.car.telephony.common.PhoneNumber;
101 List<PhoneNumber> numberList = contact.getNumbers(); in setLabelText()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/favorite/
DFavoriteFragmentTest.java42 import com.android.car.telephony.common.PhoneNumber;
66 private PhoneNumber mMockPhoneNumber;
129 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/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/contact/
DContactDetailsFragmentTest.java60 import com.android.car.telephony.common.PhoneNumber;
79 private PhoneNumber mMockPhoneNumber1;
81 private PhoneNumber mMockPhoneNumber2;
/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()
/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/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/search/
DContactResultsFragmentTest.java42 import com.android.car.telephony.common.PhoneNumber;
82 private PhoneNumber mPhoneNumber;

12