summaryrefslogtreecommitdiffstats
path: root/media/jni/android_media_MtpClient.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename MtpClient and MtpCursor to PtpClient and PtpCursorMike Lockwood2010-11-231-254/+0
| | | | | Change-Id: I26fce3bf32c8e9c8d592106af7ab4c35b19e0996 Signed-off-by: Mike Lockwood <lockwood@android.com>
* PTP: Fix permissions problems with files imported via PTPMike Lockwood2010-11-191-1/+2
| | | | | Change-Id: I630a89c67e5b3d6d0c29e6c257f84e1909fa4de2 Signed-off-by: Mike Lockwood <lockwood@android.com>
* PTP: Improve performance and reliability of file importingMike Lockwood2010-11-191-53/+10
| | | | | | | | | | | | | | | | Now the file copy is done completely within the media process rather than pushing data to the client via ContProvider.openFile(). File system writes are now interleaved with USB reads, which allows us to copy the data faster and prevents the camera from timing out during transfer. File is automatically inserted in the media provider after a successful import and a Uri is returned to the client. BUG: 2994234 Change-Id: Ie75c63da76f623343d3d966c6a707aa1ae871972 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP host: Use Java longs for storage and object IDsMike Lockwood2010-09-211-10/+10
| | | | | | | | This avoids problems with unsigned 32 bit numbers with cameras that use storage and object IDs > 0x7FFFFFFF Change-Id: I615f2d468851e9d6ff8882d22966d3687697d8eb Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP host: Add support for reading files from an MTP device via ↵Mike Lockwood2010-07-261-0/+63
| | | | | | | | | | ParcelFileDescriptor Also added some support for sending files to the device that hasn't been debugged yet. Add locking to MtpDevice to prevent it from attempting multiple transactions simultaneously. Change-Id: I2b995ba0af086cc6920bd6b8c869f540ad78560a Signed-off-by: Mike Lockwood <lockwood@android.com>
* Exclude MTP implementation from simulator buildMike Lockwood2010-07-151-0/+20
| | | | | Change-Id: I93364c74c26ba6e2bf6b08f1bd82802b966c8dfb Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Remove an unnecessary thread from the MtpClient class.Mike Lockwood2010-07-011-85/+35
| | | | | | | Now a single thread is used for passing USB host events up to MtpClient. Change-Id: I0e3a277956cb3d1036da122ea10acb03a27844d6 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Move MTP JNI code from libandroid_runtime to libmedia_jniMike Lockwood2010-06-301-0/+263
Signed-off-by: Mike Lockwood <lockwood@android.com> Change-Id: I0c54bbe4e6146beba7d22e782e02ded420f50dbd