Home
last modified time | relevance | path

Searched refs:getNumbers (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java95 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber)); in testLabel_withOnlyOneNumber_showLabel()
105 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber)); in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
119 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber)); in testLabel_withOneNumberAndGetNullLabel_showEmptyString()
131 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
145 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
160 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
179 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testLabel_HasPrimaryNumberButGetNullLabel_showMultipleLabel()
193 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber)); in testClickCallActionButton_ContactHasOneNumber_placeCall()
213 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testClickCallActionButton_HasMultipleNumbersAndNoPrimaryNumber_showAlertDialog()
232 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testClickCallActionButton_HasMultipleNumbersAndPrimaryNumber_callPrimaryNumber()
[all …]
DContactListFragmentTest.java112 when(mMockContact1.getNumbers()).thenReturn(Arrays.asList(mMockPhoneNumber)); in testClickCallActionButton_ContactHasOneNumber_placeCall()
129 when(mMockContact1.getNumbers()).thenReturn( in testClickCallActionButton_ContactHasMultipleNumbers_showAlertDialog()
143 when(mMockContact1.getNumbers()).thenReturn(new ArrayList<>()); in testClickCallActionButton_ContactHasNoNumbers_callActionButtonNotEnabled()
156 when(mMockContact1.getNumbers()).thenReturn(Arrays.asList(mMockPhoneNumber)); in testClickShowContactDetailView_withPhoneNumberAndAddress_showContactDetail()
DContactDetailsFragmentTest.java83 when(mMockContact.getNumbers()).thenReturn( in setUp()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerUtils.java114 } else if (contact.getNumbers().size() == 1) { in promptForPrimaryNumber()
115 callback.onPhoneNumberSelected(contact.getNumbers().get(0), false); in promptForPrimaryNumber()
116 } else if (contact.getNumbers().size() > 0) { in promptForPrimaryNumber()
117 showPhoneNumberSelector(context, contact.getNumbers(), (phoneNumber, always) -> { in promptForPrimaryNumber()
143 && (!contact.getNumbers().isEmpty() || DialerUtils.hasPostalAddress( in hasContactDetail()
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DFavoriteNumberRepository.java210 contact.getNumbers().clear(); in lookupContact()
213 for (PhoneNumber inMemoryPhoneNumber : inMemoryContact.getNumbers()) { in lookupContact()
215 contact.getNumbers().add(inMemoryPhoneNumber); in lookupContact()
218 if (!contact.getNumbers().isEmpty()) { in lookupContact()
268 for (PhoneNumber phoneNumber : contact.getNumbers()) { in setValue()
275 for (PhoneNumber phoneNumber : contact.getNumbers()) { in setValue()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/favorite/
DFavoriteFragmentTest.java92 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(mMockPhoneNumber)); in testOnItemClick_contactHasPrimaryNumber_placeCall()
106 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(mMockPhoneNumber)); in testOnItemClick_contactHasOnlyOneNumber_placeCall()
119 when(mMockContact.getNumbers()).thenReturn( in testOnItemClick_contactHasMultiNumbers_notPlaceCall()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/search/
DContactResultsFragmentTest.java95 when(mContact1.getNumbers()).thenReturn(Collections.singletonList(mPhoneNumber)); in setUp()
98 when(mContact2.getNumbers()).thenReturn(Collections.singletonList(mPhoneNumber)); in setUp()
101 when(mContact3.getNumbers()).thenReturn(Collections.singletonList(mPhoneNumber)); in setUp()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DBluetoothFavoriteContactsLiveData.java51 if (favoriteEntry.equals(contact) && favoriteEntry.getNumbers().containsAll( in convertToEntity()
52 contact.getNumbers())) { in convertToEntity()
DAddFavoriteFragment.java145 if (contact.getNumbers().isEmpty()) { in onShowContactDetail()
149 setPhoneNumbers(contact.getNumbers()); in onShowContactDetail()
DFavoriteContactViewHolder.java67 List<PhoneNumber> contactPhoneNumbers = contact.getNumbers(); in onBind()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactListViewHolder.java89 List<PhoneNumber> numberList = contact.getNumbers(); in setLabelText()
108 boolean hasPhoneNumbers = contact != null && !contact.getNumbers().isEmpty(); in setCallActionView()
DContactDetailsAdapter.java69 mItems.addAll(contact.getNumbers()); in setContact()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DInMemoryPhoneBook.java238 for (PhoneNumber phoneNumber : contact.getNumbers()) { in onCursorLoaded()
DContact.java484 public List<PhoneNumber> getNumbers() { in getNumbers() method in Contact