History log of /frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/TestContentResolver.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8b9024f0c20b1b79df1f2d0bc2f1a82f726b1176 11-Aug-2015 Daichi Hirono <hirono@google.com> Add RootScanner to MtpDocumentsProvider to handle new/removed MTP storages.

BUG=23169303
Change-Id: I5a73da7f869fed2fcf69e6ab7b039d1a60b883e2
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/TestContentResolver.java
6baa16e9109046661fef8dcc25b8754ac68bcdae 12-Aug-2015 Daichi Hirono <hirono@google.com> Let MTPDocumentsProvider load documents in background thread.

The CL introduce DocumentLoader class that has a responsibility for loading
documents on background thread. When the provider is requested documents and the
result is not cached, it returns the cursor containing the first 10 items with
extra loading flag. Then it loads the rest of documents into cache on background
thread and notifies update regularly.

BUG=23067619

Change-Id: I7ac9d919bc3ffee1960ae3e8e7272a792a982ea8
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/TestContentResolver.java