summaryrefslogtreecommitdiff
path: root/media/java/android/mtp/MtpDeviceInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* MTP: Skip runtime thumbnail generation for Android HostJames Wei2021-06-211-0/+27
| | | | | | | | | | | | | | | Android Host is not capable to deal with the long processing time for runtime thumbnail generation. Skip runtime thumbnail generation for Android Host but keep no impact to other Host Bug: 188752500 Test: atest MtpTests Test: atest MtpServerTest Test: atest MtpServiceTests Test: manual test on Windows 10 File Explorer Test: manual test on Android Host Files App Change-Id: I24ed3bb29c5a6912398a9e00e7748fd406cf6a64
* Add @NonNull / @Nullable annotations to android.mtp API.Daichi Hirono2016-07-081-7/+9
| | | | | | BUG=26758882 Change-Id: Ic86d2253114b487d68a069f3e63f19b200d6cb97
* Handle API review comments from the council.Daichi Hirono2016-04-181-22/+51
| | | | | | | | | | | | | | | * MtpEvent: Remove public constructor since properties cannot be set directly. * MtpEvent: Move event constants from MtpConstants to MtpEvent class. * getPartialObject64: the byte[] must have indices of Integer.MAX_VALUE at most. Document as such. * sendObjectInfo: what happens if the transfer doesn’t succeed? How is the app notified? If there is a reason for the failure communicated, how does the app find this out? Add docs. * Add isOperationSupported(int) and isEventSupported(int) helpers. Change-Id: Ifd80016d2ddd3b66d5c45f6da76b6133f0c9a617 Fixes: 28146379
* Add eventsSupported property to MtpDeviceInfo.Daichi Hirono2016-01-251-1/+64
| | | | | | | | | The property provides the set of event code that are supported by MtpDevice. BUG=26147375 Change-Id: I54be75e4bb52ddfe9aba8630538ddd32d1a641c8
* Add operationsSupported to device info.Daichi Hirono2016-01-081-1/+13
| | | | | | | | | | 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
* Add MTP/PTP host support to the public APIMike Lockwood2011-02-111-2/+0
| | | | | | | Needed for unbundling the Gallery app Change-Id: I57e6b76ee5c9e57cb8c055329ac13251879baafd Signed-off-by: Mike Lockwood <lockwood@android.com>
* New APIs for MTP and PTP host supportMike Lockwood2011-01-221-0/+72
This replaces the previous ContentProvider based interface Change-Id: I4cea2544854adb9fdcc04345e4d73d8ef05380f3 Signed-off-by: Mike Lockwood <lockwood@android.com>