b828b77985416c4d870771a02cd523397726c215 |
|
14-Sep-2016 |
Philip P. Moltmann <moltmann@google.com> |
Properly close USB device connection in Mtp device Test: Built Fixes: 32073045 Change-Id: I05179377532c1bd4dff1f4a4e0e837cb645317e3
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
ec3cbb2a66cfd4923b15f7eee0e78bfddb517997 |
|
14-Sep-2016 |
Philip P. Moltmann <moltmann@google.com> |
Do not access MTP devices when disabled. The USB data transfer is disabled we should not allow access MTP devices (e.g. usb sticks). We have two ways of accessing them: Either by mounting them or by creating a MTPDevice in an app. Of course an app could implement implement their own MTPDevice implementation. In this case we cannot enforce the policy without completely suppressing all MTP USB devices which would be too restrictive. Note: When the policy is set we do _not_ disconnect already connected MTP devices Fixes: 31472955 Change-Id: I6080c48c49657102774b2b3b4d89ff030245a266
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
452e8fe55946aba95939d4f5a6e709936ea3df0d |
|
05-Jul-2016 |
Daichi Hirono <hirono@google.com> |
Add NonNull and Nullable annotations to MtpDevice. BUG=26758882 Change-Id: I5fa7130b671c71aefca848c109bf37389f57b9da
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
4dfde6079c492ab0f54e699c367abf89a5e0dfa3 |
|
22-Apr-2016 |
Daichi Hirono <hirono@google.com> |
Merge "Add throws definition to MtpDevice#readEvent." into nyc-dev
|
60fa3615bc17f456bba034e7af166a971c237948 |
|
18-Apr-2016 |
Daichi Hirono <hirono@google.com> |
Add throws definition to MtpDevice#readEvent. Previously MtpDevice#readEvent does not have throws IOException at its definition, though internal JNI functions throws it. BUG=28254719 Change-Id: I4e6cf8003d168b7e732c4b4eb2eafe52a12442c2
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
399df701a16704b002475300a535683005d7af8b |
|
13-Apr-2016 |
Daichi Hirono <hirono@google.com> |
Handle API review comments from the council. * 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
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
1337deb6eac47b9eeef0999a928caba0cfca7126 |
|
28-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Update the comment of MtpDevice#getObjectSizeLong BUG=27805369 Change-Id: I63762fedf540e89e9ca811a143cb178881ef1830
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
787821bce4a07f9b9434180210bf99e6bd2639c9 |
|
24-Mar-2016 |
Daichi Hirono <hirono@google.com> |
Add getObjectSizeLong hidden API to MtpDevice class. In the MTP spec, the object size is stored in MtpObjectInfo as unsigned 32-bit integer and fetched by the getObjectInfo operation. For the objects that are more than 4GB, the object size is provided as one of extra properties, which are fetched by different operation. The CL adds to getObjectSizeLong hidden method to Java MtpDevice class so that client code can obtain 4GB+ object size. BUG=27805369 Change-Id: I8a5b85c8db39734f00e49709c61b271eb48ff33d
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
376c5a8d34493a847a513e64cf3a654556f98017 |
|
28-Jan-2016 |
Daichi Hirono <hirono@google.com> |
Merge "Implement MtpDevice#getPartialObject64 in Java API."
|
e0e6654a31ad01fe4712dec0358ad95f8d3c8c8d |
|
15-Jan-2016 |
Daichi Hirono <hirono@google.com> |
Add varietions of MtpDevice's mehtods using long. BUG=26525304 Change-Id: I0a0b187910cf498720d8e7b8fbe9b0590e67e65e
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
038832b9001f66bd2cbebaf1312a7ada2e512114 |
|
22-Jan-2016 |
Daichi Hirono <hirono@google.com> |
Implement MtpDevice#getPartialObject64 in Java API. BUG=26703522 Change-Id: I08510e3a179b7dc8bf247a9e997dc8a160138fc2
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
2dd48256e9657b013dd6fa0ca86d1d7c7c730428 |
|
12-Jan-2016 |
Daichi Hirono <hirono@google.com> |
Change offset and size arguments of MtpDevice#getPartialObject to Java long. To represents full range of 32-bit unsigned integer, we should use jlong instead of jint. BUG=26284424 Change-Id: Id3fa9e3daa778c204ab8e38f821d454c709c317a
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
52da3ad906afbfc5bc57328985543ebc5f7cdb44 |
|
24-Dec-2015 |
Daichi Hirono <hirono@google.com> |
Add getPartialObject to Java MtpDevice class. BUG=26284424 Change-Id: Id05dc6297a1682999eee4e72972fb883fa49a5d1
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
0b494663a4cb177fc6f05988c9bda2ef6277333d |
|
10-Sep-2015 |
Daichi Hirono <hirono@google.com> |
Add readEvent method to MtpDevice. BUG=23368533 Change-Id: Ibefff559fa7dd0bee17e2812bd7cdd129108d804
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
b80a3cfd05fc7492dd59b7f8d4337eb5e29088c2 |
|
24-Aug-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Add support for uploading files via MTP. Change-Id: Id1811ab70cb28be471e0a99999e9ad5380deac49
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
b04990599a1a05cc922b0fe9dd98128440efb56a |
|
06-Aug-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Add API for uploading files to MTP devices. Bug: 22545670 Change-Id: I038c54db06b7cf780bd027d76693e98c685d57a7
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
74d4ff8ab389a64cc16ef84dfbbfe6b2b2f34aea |
|
04-Aug-2015 |
Tomasz Mikolajewski <mtomasz@google.com> |
Add API for streamed reading on MTP devices. The existing APIs required to copy all bytes to memory, which will fail in case of very large files, like movies. Bug: 22908937 Change-Id: I23bdcbdbf08b7c1b1017591799bbb94e53249a57
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
660727c79ed5e39d0260428f3e2fa36ea66c8626 |
|
12-Jun-2015 |
Daichi Hirono <hirono@google.com> |
Fix API doc of MtpDevice#getObjectHandles. BUG=21782579 Change-Id: Iadec8923c74f62b7aed44e876fb469b41c7dc59b
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
c975437ef3338ba38b76b1a07594ccfd6e089709 |
|
07-Jan-2014 |
Narayan Kamath <narayan@google.com> |
am 1e3395c7: am 105b545e: am 0dce19ca: am 79ceb53a: am c58abeea: Merge "AArch64: Use long for pointers in MTP classes" * commit '1e3395c7378a7dd293a2e8a8ac8fbf239adbad0c': AArch64: Use long for pointers in MTP classes
|
e2e59326f13cf291bf5b37989390fd2a55a94f0c |
|
17-Dec-2013 |
Ashok Bhat <ashok.bhat@arm.com> |
AArch64: Use long for pointers in MTP classes For storing pointers, long is used in MTP classes, as native pointers can be 64-bit. In addition, some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: I67805547251722e7b77611d47d0bb632a64d3e6d Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
6090995951c6e2e4dcf38102f01793f8a94166e1 |
|
19-Nov-2013 |
John Spurlock <jspurlock@google.com> |
Remove unused imports from frameworks/base. Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
0cdd9f7def708a71a0d0722361f52c0416370dc6 |
|
06-May-2011 |
Scott Main <smain@google.com> |
docs: add package description for mtp and a little more info to MtpDevice Change-Id: I44b3926c4a286f624de525a7f0cc896879582bf5
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
11dd5ae97b1cd5889bb66862fd12718da62a9c75 |
|
01-Apr-2011 |
Mike Lockwood <lockwood@android.com> |
Improve Javadoc for USB Manager and MTP/PTP support. Bug: 4091519 Change-Id: Ida79593d5a984f7ffd0934ae7bded23b8faf9eef Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
62cfeeb821afb2f3d3b78ad93caa13408cd26eac |
|
12-Mar-2011 |
Mike Lockwood <lockwood@android.com> |
USB: minor cleanup work Bug: 4067029 Change-Id: Icd8f912ab8732b5f770a217b9b3731092597ce02 Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
acc29cc91be634070c92a807df412ced97b9b375 |
|
11-Mar-2011 |
Mike Lockwood <lockwood@android.com> |
UsbDevice: Move IO related methods to new UsbDeviceConnection class UsbDevice is now just an immutable parcelable object like UsbInterface and UsbEndpoint. All IO related functionality is now contained in UsbDeviceConnection and UsbRequest. Bug: 4067029 Change-Id: Ia84da0b512a697acc940eee0c3566711c62e1a68 Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
c4308f01c965571dc2354107c3574df113e397ee |
|
01-Mar-2011 |
Mike Lockwood <lockwood@android.com> |
Move USB framework support from android.hardware to android.hardware.usb package Change-Id: I00fd4f0caaa4aebe48f71c576bb211b5f38bf88d Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
540380fb0a45b12af3970f9ea1ed041607451f46 |
|
10-Feb-2011 |
Mike Lockwood <lockwood@android.com> |
Add MTP/PTP host support to the public API Needed for unbundling the Gallery app Change-Id: I57e6b76ee5c9e57cb8c055329ac13251879baafd Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/java/android/mtp/MtpDevice.java
|
8182e72479a8b0d832df9c392890b25bfa6f97b5 |
|
30-Dec-2010 |
Mike Lockwood <lockwood@android.com> |
New APIs for MTP and PTP host support This replaces the previous ContentProvider based interface Change-Id: I4cea2544854adb9fdcc04345e4d73d8ef05380f3 Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/java/android/mtp/MtpDevice.java
|