b7573e93cde7f229902dda7121dad931279a5ced |
|
18-Aug-2016 |
Daichi Hirono <hirono@google.com> |
Set Root.FLAG_LOCAL_ONLY for MTP roots. The flag indicate whether the root needs network access or not. MTP should be LOCAL_ONLY root. Bug: 30867267 Change-Id: Ia272d4a389cc1ca628d7b963caa37f3dbb6747e3 (cherry picked from commit 83c679e7221460fc50e91402a34787e1866d94ef)
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
f4e7fa80384ac72d0228ca5de6e949a9162cefbf |
|
28-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Use AppFuse to write document. Previously MtpDocumentsProvider used pipes to transfer bytes from an application to the provider when writing a document. The problem was application could not ensure that the last chunk of bytes was successfully written to MTP device, since pipes had been already closed when the provider transferred bytes to MTP device. Though the provider encountered an error, the provider could not report the error to an application. The CL switches the method to transfer bytes from pipes to AppFuse. Now application can flush() bytes on the file descriptor, and flush will not complete until the provider completes writing bytes to MTP device. Fixed: 23093747 Change-Id: I4e28f8cbf19d6c97e591943349a7535241d768f7
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
64111e08d905525c7f4fe27e69953eb71bd62511 |
|
24-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Get object size that is more than 4GB. MtpObjectInfo contains object size as 32-bit integer and the provider needs to invoke MtpDevice#getObjectSizeLong hidden API to get 64-bit object size. The CL switches to use MtpDevice#getObjectSizeLong hidden API if MtpObjectInfo#getCompressedSize() returns 0xffffffffL, which means the object size is more than 4GB. BUG=27805369 Change-Id: I87ea02c09aa784246cf016def309d1f39ed20e90
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
b3383fdac0a6e1419541985f5880f632a0c6bfee |
|
18-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Add root flag correctly. BUG=27369570 Change-Id: I93b9b662667009a374d879c7ab667b10fb7cbf7c
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
678ed36bebb7b0f5ff342e9da30d693bffb8aeb2 |
|
18-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Count error document to complete adding documents to the database. Previously DocumentLoader#LoaderTask had a counter to count loaded documents and completes adding documents to the database. However it does not count documents where a MTP device returns an error for getObjectInfo. The CL fixes the problem to ensure we complete documents loading. BUG=27729653 Change-Id: I696eac790a6535f1bd7a1855dc2d6f932e32eae5
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
1360868de8a2eb724bd82bc30858c2e345c83482 |
|
17-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Merge "Add suffix number when copying a file." into nyc-dev
|
fc7fb7533f46b53247d1e6e6edca6e6c9ac676fe |
|
15-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Add suffix number when copying a file. If we have an existing file in the destination directory, which has the same name with the source file, adding suffix number is DocumentsProvider's responsibility. Because MTP does not provide a way to check existance of files with given name, the logic is implemented as try-and error strategy. The CL lets If we MtpDocumentsProvider assume we have a file that shares the same name with the source file if it failed to invoke MtpDevice#sendObjectInfo. In this case MtpDocumentsProvider retry to invoke sendObjectInfo with new name with suffix number. BUG=26991190 Change-Id: I223ac5031f079bc91eb27709b0356f621a1ed55b
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
acb0e27bb33e373f1c42d6e2ef9344169cae96f0 |
|
14-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Regard timeout as an error in the MtpDocumentsProvider test. Previously if DocumentsProvider found timeout when terminatnig RootScanner's background thread, it just output it in error log. Thus the timeout is not regarded as an error in MtpDocumentsProviderTest, and it makes flaky PipeManagerTest which runs just after MtpDocumentsProviderTest. The CL * lets MtpDocumentsProvider throw TimeoutException for timeout. * removes redundant resumeRootScanner calls to avoid timeout of RootScanner#pause. Also the CL did cleanup the logic that pauses RootScanner when we don't find any devices. Previously the logic was in MtpDocumentsProvider#closeInternal but it is not efficient because we invokes RootScanner#resume just after MtpDocumentsProvider#closeInternal. Now the CL moves the logic to RootScanner so that it can pause itself automatically. BUG=27638500 Change-Id: Ic11bca67c099cbb0f46679db2f035988045d67d6
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
37a655aac1d61ce2fe346531f78cbcfbf51388e9 |
|
04-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Fix null pointer exception in DocumentLoader. BUG=27489909 Change-Id: I1ebc9953f6db6639241d0c46257d110c5b0eb5b0
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
61ba923ca0cb5c928a16729d0aa67b6bf4b2f027 |
|
25-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Set document flag by referring MTP supported operations. BUG=26147375 Change-Id: I6c4244f1f1153c1bbbf21ea9d608dc1a92ca70cd
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
0f32537e40ee2662d4f0b7b625ee280ca9c02066 |
|
21-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Stops performing operations that does not supported by MTP device. MTP devices can return supported operation list. The CL sets root flag by referring it. BUG=26147375 Change-Id: I02397821e208cf5a8fcf7457aa279d2818ce24c7
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
4e94b8deaa646f176bad9b80d5924ce64142743e |
|
21-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Resolve unmapped document when the device is connected. Once MTP device is disconnected from Android, the files on MTP device are marked as 'DISCONNECTED' in metadata database. These metadata will be back when MtpDocumentsProvider finds the reconnected MTP device and fetches the files again. Previously the 'DISCONNECTED' files are not automatically refetched. User needs to see files in Documents UI again to reuse document ID of 'DISCONNECTED' files. The CL changes DocumentLoader so that it automatically refetches disconnected documents. BUG=26212981 Change-Id: I5cb2cc9c11af72632e481c59a505794f43ed62ea
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
ebd24051599280443435606cab220de33b9356ad |
|
06-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Use device key to map device documents. The CL introduces MAPPING_KEY column to the database and lets Mapper use the column to map IDs of devices. It also removes the concept of mapping mode from Mapper for simplyfing. Now Mapper just tries to multiple mapping keys (MTP identifier, display name, and mapping key) to find candidate of ID mapping. BUG=26212981 Change-Id: I19f6c7dac146047e9978de4eb33d5076406037ad (cherry picked from commit 637a2010f4a0c0484b13c4cb87aa2858bdf079b2)
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
2965776ba403ef1f6d9a0e870ebf3c44ee5d8373 |
|
11-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Add error message for locked device. If the remote MTP device is a smartphone, it does not provide files until a user unlocks the device. The CL adds specific error message for the situation. BUG=26318917 Change-Id: Ic4c34609c55ec9c99b7b8a9143d6dae3835784e3
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
c18f8076ebdb2cda8842cfda2583897aa2c388e1 |
|
10-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Show specific error message for busy device. When MTP device is busy (e.g. used by other application), MtpDocumentsProvider cannot open the device. The CL introduces specific error message for the case. BUG=26694828 Change-Id: Iffee2e1c554e4089601186469ff0eac2fd04decd
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
f83ccbd7edd32e728785fb7aad44f11886e79645 |
|
04-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Drop device name from storage document name. When device has multiple storages, storage are shown as directory under the device root. In this case, we would not like to add device name to storage. Note that we still use "device name + storage name" for root name if the device has a single storage because we skip storage directory in this case and shows storage's contents directly under the device. BUG=26625708 Change-Id: Ie13b044e71ae9b5131c4a01ee9d605023d05f168
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
fda7474c5faae1e36a9274d8a5fe83e42ec6503b |
|
01-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Open MTP device on demand. Previously MtpDocumentsProvider opens a device just after device is connected to Android. But MtpDocumentsProvider should open MTP device on demand so that other applications can open device if user starts to use the application before using MtpDocumentsProvider. BUG=26625708 Change-Id: I6083b8c7cef49ee6e9fb0d15ca4adc129734f3eb
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
6a5ea7eae8a70bced97ceef051c965c27cb642ca |
|
02-Feb-2016 |
Daichi Hirono <hirono@google.com> |
Move logic to skip single storage. The tree structure of MTP model looks like /device/storage/objects. But almost all MTP device has only single storage, so it's redundant to show a single storage as a child of device in UI. MtpDocumentsProvider has a special logic to skip single storage, and shows storage's object as a children of device in such case. Previously the logic was applied when MtpDocumentsProvider returned a root list. The provider returns a storage as a Documents.Root, instead of device if the device has only one storage. However the number of root cannot be obtain for closed device. Thus the previous logic did not work for closed devices that have a single storage. The CL moves the logic from queryRoot to queryChildDocuments. Now MtpDocumentsProvider always returns a device as root, then it returns storage's objects as the device's children, where we has already opened the device. BUG=26481574 Change-Id: I25af0fc220410e321a378d67f226798ec4bba19c
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
b36b15586a5d3d0de590773ce4392fa3a82af66a |
|
25-Jan-2016 |
Daichi Hirono <hirono@google.com> |
Fix bugs that prevent from using AppFuse. * Allow buffer size that is greater than requested read size in JNI, because we reuse fixed-size buffer among multiple requests. * Fix condition to check if the file size is greater than 4GB or not. We need to use 0xffffffffl instead of 0xffffffff because 0xffffffff is int and its value is -1. BUG=None Change-Id: I155916e139353b15dc1ab535234faf50d942996d
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
148954a657941ea95ef17da5b3ce40b9145f8755 |
|
21-Jan-2016 |
Daichi Hirono <hirono@google.com> |
Add eventsSupported property to MtpDeviceInfo. The property provides the set of event code that are supported by MtpDevice. BUG=26147375 Change-Id: I54be75e4bb52ddfe9aba8630538ddd32d1a641c8
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
1d4779c29a95114c89ec353a8899c0cc8eee3ba5 |
|
06-Jan-2016 |
Daichi Hirono <hirono@google.com> |
Add operationsSupported to device info. Because not all MTP devices support getPartialObject, we need to check supported operation of MTP devices. The CL adds operationsSupported field to MtpDeviceInfo class. BUG=26147375 Change-Id: Iaad968fb4497a5ad11bf6489097abea99c3cbac7
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
81d48536aef702d301cdc3a339008de767b51f99 |
|
16-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Show MTP device as root when it has multiple/zero storages. The CL updates MtpDocumentsProvider#queryRoots so that it fetches devices from Database as well as storages when we don't have storages under the device, or when we have multiple storages under the device. BUG=26120019 Change-Id: Id2b140f00a1d49fa4da7e17d2564dbbaa1795e1e
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
20754c5a112e418c11cc88176283db2c4bf2efd6 |
|
15-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Store device document even if the device is not opened. BUG=26197156 Change-Id: I2a80bb3e85310cf63253173b1110a155ee1391ba
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
b3fe72bfb288a509a953e5586264ca1c4460d2df |
|
15-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Revert "Revert "Add device document to MtpDatabase."" I suspected that the commit was conflicted with ag/833494, but actually it wasn't. Let me reland this CL again. This reverts commit b63e8c6ccc1425d56f8b9c801f4bddf906d694e5. Change-Id: I4e734422ce10ef93ee7c4ef3b8b72a81beaa769b
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
b63e8c6ccc1425d56f8b9c801f4bddf906d694e5 |
|
15-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Revert "Add device document to MtpDatabase." This reverts commit c0ae45be046b1aed005589791e1ee483c399ab1c. Change-Id: I03337324e768c509bdcf94c89f7abe7ca00c8a18
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
c0ae45be046b1aed005589791e1ee483c399ab1c |
|
14-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Add device document to MtpDatabase. BUG=26175081 Change-Id: Ida91c50f7e33d7b300a32ee318b6f3837edf6606
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
be38848969c91ba9bc3ec8eee31017a34905acfc |
|
14-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Stop reopening MTP devices. BUG=26175809 Change-Id: I45a51c0623b349f12e7d3cf787a89b089f230bc1
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
ed2f8503303eb17edf332e880a2c603ed5744d81 |
|
02-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Merge "Add storage icon for MTP roots."
|
39795da4c948536c4a9d9ceadece5b03fd395d89 |
|
02-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Add storage icon for MTP roots. BUG=22545807 Change-Id: I714b26d52e00b0f9a5c95dea1508be0d617482e3
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
e0282dd7d409dce7738173162e766ce9317ef804 |
|
26-Nov-2015 |
Daichi Hirono <hirono@google.com> |
Reopen MTP devices when the provider is created. When the provider is created, it reopens MTP devices that are recorded in the database. It enables the provider to resume MTP session after the provider process is killed by the system. BUG=25704854 Change-Id: I58ae80fdb2e02cb0f045c63c4ade8943e2baae06
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
259ce80132d55774fe599c60b53a9d9dfc1efa65 |
|
20-Nov-2015 |
Daichi Hirono <hirono@google.com> |
Extract mapping operations to partial class of MtpDatabase. Change-Id: I5fda6d5754206528ad5953bcc179a0ffe0b4982d
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
9e8a4fa78f5b9e3964dca84ad4047210d35c4013 |
|
19-Nov-2015 |
Daichi Hirono <hirono@google.com> |
Change ID format of MtpDocumentsProvider. BUG=25704562 Change-Id: I5d9fc167512eee06964650e07206e226173611b2
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
e1d57710fb38dae2747aadca0e5b6f98a84a0514 |
|
17-Nov-2015 |
Daichi Hirono <hirono@google.com> |
Don't close database when all devices have been detached. ContentProvider is a singleton of the process. So it may live longer than Service. We could not close database when the service is destroyed. BUG=25730042 Change-Id: I591250c1a1e7c5705eb2585c71cac2598c0c0fb9
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
47eb192b2704e27272ca94a95680cac40b6bff3f |
|
16-Nov-2015 |
Daichi Hirono <hirono@google.com> |
Start using MtpDatabase in DocumentLoader. BUG=25704514 Change-Id: I4d9247c148679ee7e40a1a03443e4c0299b1e44d
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
4604b74603ea951c0f0d0fc2d9b6bd46ae54e245 |
|
11-Nov-2015 |
Daichi Hirono <hirono@google.com> |
Prepare for adding MtpDocumentsProvider tests to APCT. BUG=25093356 Change-Id: I0c194e6bf3abeb632171e9be49471b9d94a0cb4c
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
dc47344660035b27a564ab6d9c9a9b58ec340347 |
|
13-Nov-2015 |
Daichi Hirono <hirono@google.com> |
Start to use MtpDatabase in RootScanner. Change-Id: Id99cb61ad8680529b5ee502ca5bb2b3cdd143235
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
b999b0cb0f6cb1e63d4f77dcf87fa05a33960cf2 |
|
27-Oct-2015 |
Daichi Hirono <hirono@google.com> |
Move TestResources class to the outside of MtpDocumentProviderTest. TestResources class will be used in MtpDatabaseTest. BUG=25162822 Change-Id: I4f51b517532bbc111e95e7ebd96787a2e6f0f87a
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
17c8d8bcdae4b31d295431fc089db81bf3721c54 |
|
12-Oct-2015 |
Daichi Hirono <hirono@google.com> |
Add device model name to MtpDocumentsProvider's roots. BUG=24813180 Change-Id: I548c553978357dd9619cf66622ec9c0f61886f33
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
4c1d3dde05308cb10187269dd9824c9bfdbb27de |
|
02-Sep-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Create PipeManager and DocumentLoader per device. Also, reduce MtpManager's synchronization to per device synchronization. Bug: 23733078 Change-Id: Ieedc7d871f2a4d260ca4287c6fa05d67f54fb4c5
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
9d89dc40f175a93bce34a1572b720684356fc272 |
|
01-Sep-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Replace hardcoded numeric literals with those in MtpConstants. Change-Id: Idbac906fefd6da060a88a256187f124359f2205c
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
ab65d363bbff29b3d46a5b0a5e73b8ed20140287 |
|
26-Aug-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Remove redundand code from TestMtpManager. Change-Id: I487dbab4366375c80d82d26ed9757e5ba17a2c56
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
bb430fa930fa0d0700e46e7b4881de2a252223dd |
|
25-Aug-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Remove MtpDocument. Change-Id: Ie4b0e55f6ff2c7b323cf767a5ed3d3c61c12734d
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
b80a3cfd05fc7492dd59b7f8d4337eb5e29088c2 |
|
24-Aug-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Add support for uploading files via MTP. Change-Id: Id1811ab70cb28be471e0a99999e9ad5380deac49
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
c0834cd049ae9372efdca013e62d4fa8d3d85ca6 |
|
25-Aug-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Fix tests in MtpDocumentsProvider. Change-Id: I19c0c39b7865990db5021eaa44d3be70751c5eb3
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
87763e6a91a54e7995cfda9b7e80162f02ac4cbc |
|
10-Aug-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Wire uploading to MtpDocumentsProvider. This patch does not yet allow to upload files, but uploading (creating) directories already works. Bug: 22545670 Change-Id: If4d5a53aa26f791475bb1a783e0ac9540d6760c1
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
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/MtpDocumentsProviderTest.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/MtpDocumentsProviderTest.java
|
124d060bc980c7555616ff9d07a4dc3b8f3cd341 |
|
11-Aug-2015 |
Daichi Hirono <hirono@google.com> |
Implement MtpDocumentsProvider#queryChildDocuemnts. BUG=20274999 Change-Id: Ib18e0f36aa97add1c4b603fe11e9adedfef157ec
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
5fecc6cf032bbbc2616dd2342a50656bf2857832 |
|
04-Aug-2015 |
Daichi Hirono <hirono@google.com> |
Implement MtpDocumentsProvider#deleteDocument. BUG=20274999 Change-Id: I6d07280ddbb0809d3c1334aec5fcbc0c67c4c2aa
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
11bd3cbd2d4934ba9f5b8b4087954d8f68106192 |
|
03-Aug-2015 |
Daichi Hirono <hirono@google.com> |
Random fix for Identity class. * Change separator for ID from ':' to '_' so that the ID can be used as a file name in FAT. * Implements equals and hashCode methods. BUG=20274999 Change-Id: Ibb83151f7d6bdb0c993622dddeb89723aecfa264
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
e5323b7493f2bc1537d7e6b2d4595d69fd01d72e |
|
29-Jul-2015 |
Daichi Hirono <hirono@google.com> |
Implement MtpDocumentsProvider#queryDocument. BUG=20274999 Change-Id: Id5c81f744ea1e28d0a0d352b52db1c33fd5edcc2
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
6ee4a1c1247e2a1d3032bcd432f843cbb7227dcc |
|
31-Jul-2015 |
Daichi Hirono <hirono@google.com> |
Rename MtpManagerMock with TestMtpManager. BUG=20274999 Change-Id: I0db6609ed7cde211d0e174a5cd88ca7551ea64ae
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
beac2184abb4c2ef1bbcbad48b4005fe36f9cb74 |
|
29-Jul-2015 |
Daichi Hirono <hirono@google.com> |
Extract common initialization of MtpDocumentsProviderTest into setUp method. BUG=20274999 Change-Id: Ib8e6907b17d89842bac85e9850bfad301bf51fe6
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
09109567e9816d20f51b5ce0175751116836635f |
|
28-Jul-2015 |
Daichi Hirono <hirono@google.com> |
Add test for queryRoots. BUG=20274999 Change-Id: Iea9ca7514d29bb9dcb9c1ef83ff5554f5dc41901
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
2efe4cac49efd87c5f14f48051a5556f437cedc9 |
|
27-Jul-2015 |
Daichi Hirono <hirono@google.com> |
Add MtpDocumentsService. BUG=20274999 Change-Id: I1d60ebcf100767136ac7f78e619021776c6be02f
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
d5152429e11d3a831a7993dc67ddf69f69bd3912 |
|
15-Jul-2015 |
Daichi Hirono <hirono@google.com> |
Add openDevice and closeDevice methods to MtpDocumentsProvider. These methods will be called in the following CL from the service that handles USB attach and detach intent. BUG=20274999 Change-Id: I7b3c658afc5750d6a2713c07f40c59b26dcd1460
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|
9a05d6b87afa04f81bc3301dd274bb5ae0d4b1b4 |
|
09-Jul-2015 |
Daichi Hirono <hirono@google.com> |
Add test package for MTPDocumentsProvider. BUG=20274999 Change-Id: I179692d3b14392a0634d4c0ace21a9d96a2d0d6a
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpDocumentsProviderTest.java
|