Searched refs:getNumbers (Results 1 – 14 of 14) sorted by relevance
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/ |
D | ContactListViewHolderTest.java | 95 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 …]
|
D | ContactListFragmentTest.java | 112 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()
|
D | ContactDetailsFragmentTest.java | 83 when(mMockContact.getNumbers()).thenReturn( in setUp()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/ |
D | DialerUtils.java | 114 } 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/ |
D | FavoriteNumberRepository.java | 210 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/ |
D | FavoriteFragmentTest.java | 92 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/ |
D | ContactResultsFragmentTest.java | 95 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/ |
D | BluetoothFavoriteContactsLiveData.java | 51 if (favoriteEntry.equals(contact) && favoriteEntry.getNumbers().containsAll( in convertToEntity() 52 contact.getNumbers())) { in convertToEntity()
|
D | AddFavoriteFragment.java | 145 if (contact.getNumbers().isEmpty()) { in onShowContactDetail() 149 setPhoneNumbers(contact.getNumbers()); in onShowContactDetail()
|
D | FavoriteContactViewHolder.java | 67 List<PhoneNumber> contactPhoneNumbers = contact.getNumbers(); in onBind()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/ |
D | ContactListViewHolder.java | 89 List<PhoneNumber> numberList = contact.getNumbers(); in setLabelText() 108 boolean hasPhoneNumbers = contact != null && !contact.getNumbers().isEmpty(); in setCallActionView()
|
D | ContactDetailsAdapter.java | 69 mItems.addAll(contact.getNumbers()); in setContact()
|
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/ |
D | InMemoryPhoneBook.java | 238 for (PhoneNumber phoneNumber : contact.getNumbers()) { in onCursorLoaded()
|
D | Contact.java | 484 public List<PhoneNumber> getNumbers() { in getNumbers() method in Contact
|