History log of /frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
86c1a9bf6081d23c82f05f7293aded3266f61368 26-May-2016 Daichi Hirono <hirono@google.com> Remove MTP API marked as @removed.

BUG=28146379

Change-Id: I4f0a380941663eac423f8a5633447f1eceb516cb
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
637a2010f4a0c0484b13c4cb87aa2858bdf079b2 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
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.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/MtpManagerTest.java
3a6212ae558c945d6f24ace8fd38ab043a7697d1 18-Jan-2016 Daichi Hirono <hirono@google.com> Clean MtpManagerTest code.

* Use try-with-resource block to ensure close auto-closeable stream.
* Define local variables just above the place where they are used.

BUG=None

Change-Id: I9d6c952ebac096c51567a4a787b2bc9fff6502de
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
d426ed27857a444c5328613769e4c9b1e7a24c81 11-Jan-2016 Daichi Hirono <hirono@google.com> Add a test for createDocument and getPartialObject.

BUG=26482337

Change-Id: Ifda5055b422c3960f7c3c5275a1697f96e36bd06
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
0ec431247587cfd98b1f8963fdc3c1c469ae3114 12-Jan-2016 Daichi Hirono <hirono@google.com> Merge "Remove unused lines in MtpDocumentsProvider."
2a9a43369b4717bcf6b372f6798f72e80e938e30 11-Jan-2016 Daichi Hirono <hirono@google.com> Reland "Add event parameters to MtpEvent."

The CL was previously reviewed at ag/842930.

> We can obtain detailed information of MtpEvent from devices. e.g. object
> handle of changed object. The CL adds the detailed information as
> properties of MtpEvent class.
>
> BUG=26480986

Change-Id: I93afad9caf118d74cd0923d70242133c4fb2a648
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
a12e7d1ba67d5874a00a50bef0ab30a3747776b2 11-Jan-2016 Daichi Hirono <hirono@google.com> Remove unused lines in MtpDocumentsProvider.

Change-Id: I8de1b50441003648547829a3e8dd78153e6f8f31
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.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/MtpManagerTest.java
4c4061210e52b7b1786ecb26a2dd7f8c1298e752 23-Dec-2015 Daichi Hirono <hirono@google.com> Fix flakiness MtpManagerTest test.

The test for readEvent cancelling was flakiness because it can
successfully receives an event before the test tries to cancel it.

Change-Id: Ie7625dff53e07b8bc9888da03e78155e683a6d46
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
99b58052f85c18272e63047b471edfd8089c09d3 03-Dec-2015 Daichi Hirono <hirono@google.com> Polish MtpManagerTest.

Change-Id: Ibadd209ee1cb752f0e55694d0f1f631c558f1370
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
b255f58904d7a2aa64ba9f03ed0ede3759fd03c5 01-Dec-2015 Daichi Hirono <hirono@google.com> Extract test utility class.

Change-Id: I8505ab13ceccf32e7a9b6817f84a66766098b09e
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
f26af124e3552f18f127eabf88ebcb9e13a80855 01-Dec-2015 Daichi Hirono <hirono@google.com> Handle Android M as a MTP device in MtpManagerTest.

MtpManagerTest uses real MTP device to test functionallity, but
previously it did not handle Android M's USB client behavior.

BUG=25939006

Change-Id: I53fa8c08c41c3adacf85f24694afdea5ec0781ca
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
0b494663a4cb177fc6f05988c9bda2ef6277333d 10-Sep-2015 Daichi Hirono <hirono@google.com> Add readEvent method to MtpDevice.

BUG=23368533

Change-Id: Ibefff559fa7dd0bee17e2812bd7cdd129108d804
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/MtpManagerTest.java
5bc41d18544d983d913bd42e067bc8b7db0378cd 28-Aug-2015 Daichi Hirono <hirono@google.com> Add simple unit test for MtpManager which uses real MTP device.

BUG=23536467

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