summaryrefslogtreecommitdiff
path: root/media/java/android/mtp/MtpEvent.java
Commit message (Collapse)AuthorAgeFilesLines
* Handle API review comments from the council.Daichi Hirono2016-04-181-31/+73
| | | | | | | | | | | | | | | * 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
* Reland "Add event parameters to MtpEvent."Daichi Hirono2016-01-121-1/+138
| | | | | | | | | | | | 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
* Move MTP event code to MtpConstants class.Daichi Hirono2016-01-081-20/+1
| | | | | | BUG=25128276 Change-Id: I49530c50d7889e1b04931b8ec61f5f92a1c7e68f
* Add constans for MTP event codes.Daichi Hirono2015-10-131-2/+22
| | | | | | BUG=23368533 Change-Id: I922eb9a26812a44780ba81b8a391be45852cad08
* Add readEvent method to MtpDevice.Daichi Hirono2015-09-251-0/+31
BUG=23368533 Change-Id: Ibefff559fa7dd0bee17e2812bd7cdd129108d804