summaryrefslogtreecommitdiff
path: root/media/java/android/mtp/MtpDeviceInfo.java
AgeCommit message (Collapse)Author
2021-06-21MTP: Skip runtime thumbnail generation for Android HostJames Wei
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
2016-07-08Add @NonNull / @Nullable annotations to android.mtp API.Daichi Hirono
BUG=26758882 Change-Id: Ic86d2253114b487d68a069f3e63f19b200d6cb97
2016-04-18Handle API review comments from the council.Daichi Hirono
* 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
2016-01-25Add eventsSupported property to MtpDeviceInfo.Daichi Hirono
The property provides the set of event code that are supported by MtpDevice. BUG=26147375 Change-Id: I54be75e4bb52ddfe9aba8630538ddd32d1a641c8
2016-01-08Add operationsSupported to device info.Daichi Hirono
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
2011-02-11Add MTP/PTP host support to the public APIMike Lockwood
Needed for unbundling the Gallery app Change-Id: I57e6b76ee5c9e57cb8c055329ac13251879baafd Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-22New APIs for MTP and PTP host supportMike Lockwood
This replaces the previous ContentProvider based interface Change-Id: I4cea2544854adb9fdcc04345e4d73d8ef05380f3 Signed-off-by: Mike Lockwood <lockwood@android.com>