Searched refs:Customer (Results 1 – 8 of 8) sorted by relevance
/frameworks/support/room/integration-tests/testapp/src/main/java/androidx/room/integration/testapp/ |
D | CustomerViewModel.java | 30 import androidx.room.integration.testapp.database.Customer; 44 private LiveData<PagedList<Customer>> mLiveCustomerList; 59 Customer[] initialCustomers = new Customer[10]; in createDb() 70 private Customer createCustomer() { in createCustomer() 71 Customer customer = new Customer(); in createCustomer() 87 private static <K> LiveData<PagedList<Customer>> getLivePagedList( in getLivePagedList() 88 K initialLoadKey, DataSource.Factory<K, Customer> dataSourceFactory) { in getLivePagedList() 98 private static <K> Flowable<PagedList<Customer>> getPagedListFlowable( in getPagedListFlowable() 99 DataSource.Factory<K, Customer> dataSourceFactory) { in getPagedListFlowable() 108 Flowable<PagedList<Customer>> getPagedListFlowable() { in getPagedListFlowable() [all …]
|
D | PagedListCustomerAdapter.java | 27 import androidx.room.integration.testapp.database.Customer; 33 class PagedListCustomerAdapter extends PagedListAdapter<Customer, RecyclerView.ViewHolder> { 40 super(Customer.DIFF_CALLBACK); in PagedListCustomerAdapter() 61 Customer customer = getItem(position); in onBindViewHolder() 70 private static int findKeyInPagedList(@NonNull String key, @NonNull PagedList<Customer> list) { in findKeyInPagedList() 72 @Nullable Customer customer = list.get(i); in findKeyInPagedList() 82 public void submitList(PagedList<Customer> pagedList) { in submitList()
|
D | RoomPagedListActivity.java | 28 import androidx.room.integration.testapp.database.Customer; 53 LiveData<PagedList<Customer>> livePagedList; in onCreate() 77 PagedList<Customer> list = mAdapter.getCurrentList(); in onSaveInstanceState() 87 Customer customer = list.get(targetPosition); in onSaveInstanceState()
|
/frameworks/support/room/integration-tests/testapp/src/main/java/androidx/room/integration/testapp/database/ |
D | Customer.java | 28 public class Customer { class 70 Customer customer = (Customer) o; in equals() 99 public static final DiffUtil.ItemCallback<Customer> DIFF_CALLBACK = 100 new DiffUtil.ItemCallback<Customer>() { 102 public boolean areContentsTheSame(@NonNull Customer oldItem, @NonNull Customer newItem) { 107 public boolean areItemsTheSame(@NonNull Customer oldItem, @NonNull Customer newItem) {
|
D | LastNameAscCustomerDataSource.java | 30 public class LastNameAscCustomerDataSource extends ItemKeyedDataSource<String, Customer> { 36 public static Factory<String, Customer> factory(final SampleDatabase db) { in factory() 37 return new Factory<String, Customer>() { in factory() 39 public DataSource<String, Customer> create() { in factory() 67 public static String getKeyStatic(@NonNull Customer customer) { 73 public String getKey(@NonNull Customer customer) { 79 @NonNull LoadInitialCallback<Customer> callback) { 81 List<Customer> list; 112 @NonNull LoadCallback<Customer> callback) { 118 @NonNull LoadCallback<Customer> callback) { [all …]
|
D | CustomerDao.java | 37 void insert(Customer customer); in insert() 44 void insertAll(Customer[] customers); in insertAll() 57 DataSource.Factory<Integer, Customer> loadPagedAgeOrder(); in loadPagedAgeOrder() 68 List<Customer> customerNameInitial(int limit); in customerNameInitial() 71 List<Customer> customerNameLoadAfter(String key, int limit); in customerNameLoadAfter() 77 List<Customer> customerNameLoadBefore(String key, int limit); in customerNameLoadBefore()
|
D | SampleDatabase.java | 25 @Database(entities = {Customer.class},
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/ |
D | CustomDatabaseTest.java | 34 import androidx.room.integration.testapp.database.Customer; 56 Customer customer = new Customer(); in invalidationTrackerAfterClose()
|