Searched refs:Customer (Results 1 - 8 of 8) sorted by relevance

/frameworks/support/room/integration-tests/testapp/src/main/java/android/arch/persistence/room/integration/testapp/database/
H A DCustomerDao.java27 * Simple Customer DAO for Room Customer list sample.
34 * @param customer Customer.
37 void insert(Customer customer);
44 void insertAll(Customer[] customers);
52 LivePagedListProvider<Integer, Customer> loadPagedAgeOrder();
63 List<Customer> customerNameInitial(int limit);
66 List<Customer> customerNameLoadAfter(String key, int limit);
72 List<Customer> customerNameLoadBefore(String key, int limit);
H A DLastNameAscCustomerDataSource.java29 public class LastNameAscCustomerDataSource extends KeyedDataSource<String, Customer> {
58 public static String getKeyStatic(@NonNull Customer customer) {
64 public String getKey(@NonNull Customer customer) {
80 public List<Customer> loadInitial(int pageSize) {
86 public List<Customer> loadBefore(@NonNull String customerName, int pageSize) {
92 public List<Customer> loadAfter(@Nullable String customerName, int pageSize) {
H A DSampleDatabase.java25 @Database(entities = {Customer.class},
H A DCustomer.java28 public class Customer { class
70 Customer customer = (Customer) o;
92 return "Customer{"
99 public static final DiffCallback<Customer> DIFF_CALLBACK = new DiffCallback<Customer>() {
101 public boolean areContentsTheSame(@NonNull Customer oldItem, @NonNull Customer newItem) {
106 public boolean areItemsTheSame(@NonNull Customer oldItem, @NonNull Customer newIte
[all...]
/frameworks/support/room/integration-tests/testapp/src/main/java/android/arch/persistence/room/integration/testapp/
H A DCustomerViewModel.java27 import android.arch.persistence.room.integration.testapp.database.Customer;
39 private LiveData<PagedList<Customer>> mLiveCustomerList;
56 Customer[] initialCustomers = new Customer[10];
68 private Customer createCustomer() {
69 Customer customer = new Customer();
84 LiveData<PagedList<Customer>> getLivePagedList(int position) {
96 LiveData<PagedList<Customer>> getLivePagedList(String key) {
98 mLiveCustomerList = new LivePagedListProvider<String, Customer>() {
[all...]
H A DPagedListCustomerAdapter.java21 import android.arch.persistence.room.integration.testapp.database.Customer;
32 class PagedListCustomerAdapter extends PagedListAdapter<Customer, RecyclerView.ViewHolder> {
39 super(Customer.DIFF_CALLBACK);
60 Customer customer = getItem(position);
69 private static int findKeyInPagedList(@NonNull String key, @NonNull PagedList<Customer> list) {
71 @Nullable Customer customer = list.get(i);
81 public void setList(PagedList<Customer> pagedList) {
H A DRoomPagedListActivity.java24 import android.arch.persistence.room.integration.testapp.database.Customer;
56 LiveData<PagedList<Customer>> livePagedList;
72 livePagedList.observe(this, new Observer<PagedList<Customer>>() {
74 public void onChanged(@Nullable PagedList<Customer> items) {
89 PagedList<Customer> list = mAdapter.getCurrentList();
99 Customer customer = list.get(targetPosition);
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/
H A DCustomDatabaseTest.java30 import android.arch.persistence.room.integration.testapp.database.Customer;
55 Customer customer = new Customer();

Completed in 77 milliseconds