History log of /frameworks/support/room/integration-tests/testapp/src/main/java/android/arch/persistence/room/integration/testapp/database/Customer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fd4fa4a65be59806d14e4625397948da008506b4 31-Aug-2017 Chris Craik <ccraik@google.com> Keyed sample with save/restore, associated fixes

Bug:64809611
Test: room-integration-tests-testapp, paging-common, paging-runtime

Full keyed sample, and save/restore added to both the keyed
and positional samples.

Also moves DataSource#isInvalid() checks to be internal and automatic, so e.g.
DB DataSources don't need to call them manually.

Change-Id: I2c674b2d8d45151a23c953bd7d5354cd38f773ec
/frameworks/support/room/integration-tests/testapp/src/main/java/android/arch/persistence/room/integration/testapp/database/Customer.java
ef346ae131affbba6345e00d833103acc5743c8a 29-Aug-2017 Chris Craik <ccraik@google.com> Paging API refinements, and package name rework

Bug: 64809611
Test: tests in paging-runtime, paging-common, room-integration-tests

Change-Id: I1e26f130d95b31494f9a0ef734fd87594de9ddd1
/frameworks/support/room/integration-tests/testapp/src/main/java/android/arch/persistence/room/integration/testapp/database/Customer.java
9fd8e6171bbdc37f5516fe15b2d96f4ae926ef1a 23-Jun-2017 Chris Craik <ccraik@google.com> Initial commit of paging component.

This commit introduces a paging component to enable gradual, lazy
loading from large data sources, including Room queries.

The primary entry points are:

1) CountedDataSource, the base class for defining a countable (i.e.
fixed, known size) source of items, such as a Database query.

2) LazyList, the lazy-loading List-like component which pages content
in on a background thread from a CountedDataSource.

3) LiveLazyListProvider, the class which produces DataSources, and
presents a LiveData<LazyList<T>>.

4) LazyListAdapterHelper, which takes a LiveData<LazyList>, and
presents the data simply to an adapter. It computes differences
between versions with DiffUtil, and signalling updates to the adapter.

Currently, Room only presents a limit-offset query as an easy means to
get a LiveData of a LazyList, but it's possible to write a custom data
source to page in data from keyed (including composite-keyed) queries.

Test: new tests
Change-Id: I415879a032d83786d734c26c429828da3b8bc76a
/frameworks/support/room/integration-tests/testapp/src/main/java/android/arch/persistence/room/integration/testapp/database/Customer.java