History log of /frameworks/base/media/jni/android_mtp_MtpDevice.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/jni/android_mtp_MtpDevice.cpp
452e8fe55946aba95939d4f5a6e709936ea3df0d 05-Jul-2016 Daichi Hirono <hirono@google.com> Add NonNull and Nullable annotations to MtpDevice.

BUG=26758882

Change-Id: I5fa7130b671c71aefca848c109bf37389f57b9da
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
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/jni/android_mtp_MtpDevice.cpp
1337deb6eac47b9eeef0999a928caba0cfca7126 28-Mar-2016 Daichi Hirono <hirono@google.com> Update the comment of MtpDevice#getObjectSizeLong

BUG=27805369

Change-Id: I63762fedf540e89e9ca811a143cb178881ef1830
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
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/jni/android_mtp_MtpDevice.cpp
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/jni/android_mtp_MtpDevice.cpp
038832b9001f66bd2cbebaf1312a7ada2e512114 22-Jan-2016 Daichi Hirono <hirono@google.com> Implement MtpDevice#getPartialObject64 in Java API.

BUG=26703522

Change-Id: I08510e3a179b7dc8bf247a9e997dc8a160138fc2
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
148954a657941ea95ef17da5b3ce40b9145f8755 21-Jan-2016 Daichi Hirono <hirono@google.com> Add eventsSupported property to MtpDeviceInfo.

The property provides the set of event code that are supported by
MtpDevice.

BUG=26147375

Change-Id: I54be75e4bb52ddfe9aba8630538ddd32d1a641c8
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
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/jni/android_mtp_MtpDevice.cpp
2a9a43369b4717bcf6b372f6798f72e80e938e30 11-Jan-2016 Daichi Hirono <hirono@google.com> Reland "Add event parameters to MtpEvent."

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
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
1d4779c29a95114c89ec353a8899c0cc8eee3ba5 06-Jan-2016 Daichi Hirono <hirono@google.com> Add operationsSupported to device info.

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
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
9c180dd38701a10041537389057b4c0f784907f8 07-Jan-2016 Andreas Gampe <agampe@google.com> Media: Fix MtpDevice call

The signature was changed last minute. Update the media side.

Bug: 26284424
Change-Id: Ia8fb665221f60d3eadd2c32831a12aa21c6c5e9c
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
3ad1a8ee94969bb2c4fae56579fe953cbdeeee7e 07-Jan-2016 Daichi Hirono <hirono@google.com> Add missing style change to android_mtp_MtpDevice.cpp.

BUG=26284424

Change-Id: I0e288712a8fccfb3dd21fa927388bacf5ce155d0
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
52da3ad906afbfc5bc57328985543ebc5f7cdb44 24-Dec-2015 Daichi Hirono <hirono@google.com> Add getPartialObject to Java MtpDevice class.

BUG=26284424

Change-Id: Id05dc6297a1682999eee4e72972fb883fa49a5d1
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
aeaa12c34e0b47df7f3079516177e791b5f2a0d7 28-Sep-2015 Daichi Hirono <hirono@google.com> Merge "Add readEvent method to MtpDevice."
0b494663a4cb177fc6f05988c9bda2ef6277333d 10-Sep-2015 Daichi Hirono <hirono@google.com> Add readEvent method to MtpDevice.

BUG=23368533

Change-Id: Ibefff559fa7dd0bee17e2812bd7cdd129108d804
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
434a481b2191562582c79be29f24c2e0b5ca60d0 24-Sep-2015 Elliott Hughes <enh@google.com> am ea1831d2: am b57dd722: resolved conflicts for a884d81e to stage-aosp-master

* commit 'ea1831d211ea0e6b2d161c714bb0786369ef2df5':
constify JNINativeMethod function pointer tables
76f6a86de25e1bf74717e047e55fd44b089673f3 19-Sep-2015 Daniel Micay <danielmicay@gmail.com> constify JNINativeMethod function pointer tables

Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
b80a3cfd05fc7492dd59b7f8d4337eb5e29088c2 24-Aug-2015 Tomasz Mikolajewski <mtomasz@google.com> Add support for uploading files via MTP.

Change-Id: Id1811ab70cb28be471e0a99999e9ad5380deac49
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
87763e6a91a54e7995cfda9b7e80162f02ac4cbc 10-Aug-2015 Tomasz Mikolajewski <mtomasz@google.com> Wire uploading to MtpDocumentsProvider.

This patch does not yet allow to upload files, but uploading (creating)
directories already works.

Bug: 22545670
Change-Id: If4d5a53aa26f791475bb1a783e0ac9540d6760c1
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
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/jni/android_mtp_MtpDevice.cpp
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/jni/android_mtp_MtpDevice.cpp
4048a4bcb1ea709ddb83a4fde3ff5c53e642f7d0 23-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Remove unused variables and functions, don't warn about unused parameters

Remove unused variables and static functions clang complains about,
disable warnings about unused parameters (needed for clang and for gcc
with -Wextra enabled)

Change-Id: I76a22cd0158b3c7375c54e3d4d15bc1ac448591e
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
5a15d0d31b877ef512b3379eac033c6bb041c86a 11-Nov-2014 Andreas Gampe <agampe@google.com> Frameworks/base: Wall Werror in media/jni

Turn on -Wall -Werror in media/jni. Fix warnings.

Change-Id: I9da54ad379d8172ee535b52ee2b0637a2533f4e3
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
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/jni/android_mtp_MtpDevice.cpp
87eac99a21772ae56018cb81db6966557b459554 10-Sep-2013 Ruben Brunk <rubenbrunk@google.com> Remove dependency on JNIHelp header side effects.

Bug: 10680559
Change-Id: I47870d6c48906e0a420c52b7bc5945ffe29c68a2
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
3762c311729fe9f3af085c14c5c1fb471d994c03 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
5baa3a62a97544669fba6d65a11c07f252e654dd 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
c1b9bbb21c8ad5109978a4e9e770cd18b0257434 13-Jul-2011 Mike Lockwood <lockwood@android.com> Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build

Change-Id: I13d9f251f86c05ae5405f37adbf6b8e9660935ba
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
3977472d9f3380a8323156dbc7d0090cf2f2d310 06-Apr-2011 James Dong <jdong@google.com> Handle the failure from GetStringUTFChars()

Change-Id: I9eb0f9f0fd2fa5116e7be80b1fa2ed4a95521b9d
related-to-bug: 4139926
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
b966b9d9e882835691e5adda292d89dd704df71c 09-Mar-2011 Mike Lockwood <lockwood@android.com> MTP: Convert date created and modified values from seconds to milliseconds

BUG: 4026365

Change-Id: Ifd78cca305299ed1cedd6595609d9bf8d520cd8e
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
40304e227247c788d1c0e8d41c386cdb10cba91b 11-Feb-2011 Mike Lockwood <lockwood@android.com> MTP: Fix JNI warnings in MtpDevice

Needed to add a global ref to the classse to avoid
"not a valid JNI reference" errors when calling the constructor.

Change-Id: Ieb7e69f5d19fd5a090c53d32f69a201040c49112
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/media/jni/android_mtp_MtpDevice.cpp
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/jni/android_mtp_MtpDevice.cpp