Home
last modified time | relevance | path

Searched refs:favoriteContacts (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteViewModel.java50 MediatorLiveData<List<Object>> favoriteContacts = new MediatorLiveData<>(); in FavoriteViewModel() local
51 favoriteContacts.addSource(mFavoriteNumberRepository.getFavoriteContacts(), contacts -> { in FavoriteViewModel()
63 favoriteContacts.setValue(contactList); in FavoriteViewModel()
65 favoriteContacts.addSource(mBluetoothFavoriteContacts, contacts -> { in FavoriteViewModel()
76 favoriteContacts.setValue(contactList); in FavoriteViewModel()
79 favoriteContacts, in FavoriteViewModel()
DFavoriteAdapter.java60 public void setFavoriteContacts(List<Object> favoriteContacts) { in setFavoriteContacts() argument
61 L.d(TAG, "setFavoriteContacts %s", favoriteContacts); in setFavoriteContacts()
62 mFavoriteContacts = (favoriteContacts != null) ? favoriteContacts : Collections.emptyList(); in setFavoriteContacts()
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DFavoriteNumberRepository.java168 List<Contact> favoriteContacts = new ArrayList<>(); in convertToContacts()
173 favoriteContacts.add(contact); in convertToContacts()
183 results.postValue(favoriteContacts); in convertToContacts()
258 observeForever(favoriteContacts -> L.d(TAG, "%d favorite contacts loaded.", in FavoriteContactLiveData()
259 favoriteContacts.size())); in FavoriteContactLiveData()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/favorite/
DFavoriteFragmentTest.java74 MutableLiveData<FutureData<List<Object>>> favoriteContacts = new MutableLiveData<>(); in setUp() local
75 favoriteContacts.setValue(new FutureData<>(false, Arrays.asList(mMockContact))); in setUp()
77 when(mMockFavoriteViewModel.getFavoriteContacts()).thenReturn(favoriteContacts); in setUp()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsViewModel.java141 private void onFavoriteContactsChanged(List<Contact> favoriteContacts) { in onFavoriteContactsChanged() argument