summaryrefslogtreecommitdiff
path: root/media/java/android/mtp/MtpConstants.java
Commit message (Collapse)AuthorAgeFilesLines
* heif: add new file and mime types to MediaScannerChong Zhang2017-08-221-0/+2
| | | | | | bug: 64077740 Change-Id: I6d36c2394a5ae527026c98c83786009e70b20958 (cherry picked from commit 6e18ccee2afd30a1b0874c5e26b2c8289309b432)
* Remove MTP API marked as @removed.Daichi Hirono2016-05-261-37/+0
| | | | | | BUG=28146379 Change-Id: I4f0a380941663eac423f8a5633447f1eceb516cb
* Handle API review comments from the council.Daichi Hirono2016-04-181-18/+18
| | | | | | | | | | | | | | | * 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
* Merge "Implement MtpDevice#getPartialObject64 in Java API."Daichi Hirono2016-01-281-0/+2
|\
| * Implement MtpDevice#getPartialObject64 in Java API.Daichi Hirono2016-01-281-0/+2
| | | | | | | | | | | | BUG=26703522 Change-Id: I08510e3a179b7dc8bf247a9e997dc8a160138fc2
* | Enable reading a thumbnail from RAW image files in MtpDatabaseJaesung Chung2016-01-271-6/+13
|/ | | | | | | | | | | | | | | | | | | | | | | | Also introduce new supported RAW image file formats, PEF and SRW. RAW image file formats are not defined in PTP 1.2 specification except for DNG. They are mostly built on top of TIFF or TIFF/EP. (Fuji's RAF is the exception). In this CL, image file formats are classified newly as below: DNG: dng TIFF: cr2, nrw, arw, rw2, orf, pef, srw TIFF/EP: nef Unknown Image Formats(FORMAT_DEFINED): wbmap, webp, raf I referred to the following documents for defining MTP formats of RAW images: * http://www.rags-int-inc.com/PhotoTechStuff/RawStandards/RawSummary.html * https://en.wikipedia.org/wiki/Raw_image_format Bug: 26552863, Bug: 26626825 Change-Id: Ia218f6320c4c1ff051a23ca0060ceac46134b0d7
* Extend MediaScanner and MtpDatabase to support RAW image filesJaesung Chung2016-01-191-0/+2
| | | | | Bug: 25871812 Change-Id: Iee92632585dc9020238a9b562defd06d6d2a91dc
* Add operationsSupported to device info.Daichi Hirono2016-01-081-0/+71
| | | | | | | | | | 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
* Move MTP event code to MtpConstants class.Daichi Hirono2016-01-081-0/+37
| | | | | | BUG=25128276 Change-Id: I49530c50d7889e1b04931b8ec61f5f92a1c7e68f
* USB: minor cleanup workMike Lockwood2011-03-111-1/+1
| | | | | | | Bug: 4067029 Change-Id: Icd8f912ab8732b5f770a217b9b3731092597ce02 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add MTP/PTP host support to the public APIMike Lockwood2011-02-111-111/+259
| | | | | | | Needed for unbundling the Gallery app Change-Id: I57e6b76ee5c9e57cb8c055329ac13251879baafd Signed-off-by: Mike Lockwood <lockwood@android.com>
* Move MTP Java classes to android.mtp.* package.Mike Lockwood2010-12-301-0/+428
Change-Id: Ib18bcaabf314241a95e517d0b93be5845d988e2c Signed-off-by: Mike Lockwood <lockwood@android.com>