Searched refs:favoriteContacts (Results 1 – 5 of 5) sorted by relevance
50 MediatorLiveData<List<Object>> favoriteContacts = new MediatorLiveData<>(); in FavoriteViewModel() local51 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()
60 public void setFavoriteContacts(List<Object> favoriteContacts) { in setFavoriteContacts() argument61 L.d(TAG, "setFavoriteContacts %s", favoriteContacts); in setFavoriteContacts()62 mFavoriteContacts = (favoriteContacts != null) ? favoriteContacts : Collections.emptyList(); in setFavoriteContacts()
168 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()
74 MutableLiveData<FutureData<List<Object>>> favoriteContacts = new MutableLiveData<>(); in setUp() local75 favoriteContacts.setValue(new FutureData<>(false, Arrays.asList(mMockContact))); in setUp()77 when(mMockFavoriteViewModel.getFavoriteContacts()).thenReturn(favoriteContacts); in setUp()
141 private void onFavoriteContactsChanged(List<Contact> favoriteContacts) { in onFavoriteContactsChanged() argument