summaryrefslogtreecommitdiffstats
path: root/media/java/android/mtp/MtpServer.java
Commit message (Collapse)AuthorAgeFilesLines
* MTP: Add support for battery level device propertyMike Lockwood2014-03-121-0/+6
| | | | | | Bug: 7342482 Change-Id: I810e55fe9695e2206816f57334ad14f65e9c641d
* AArch64: Use long for pointers in MTP classesAshok Bhat2014-01-071-1/+1
| | | | | | | | | | | | | | 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>
* MTP: Clean up MtpServer initialization and threading:Mike Lockwood2011-07-131-20/+10
| | | | | | | Move thread from native to Java code Remove the stop() method (the thread will exit on its own) Change-Id: Ib897c3630162f82669a4ee8c187e8172da50b29d
* MTP: Add support for PTP variant of GetDeviceInfo result.Mike Lockwood2011-06-211-3/+3
| | | | | Change-Id: I09f86fda768b7697665e401adb9516588859bf59 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Remove obsolete setPtpMode supportMike Lockwood2011-06-081-5/+0
| | | | | | | PTP mode will be implemented as a separate USB function instead. Change-Id: I9304c1936c70604ab2ed9704c6b95e11b61f5ba2 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP and media provider support for multiple storage devices:Mike Lockwood2011-04-051-9/+11
| | | | | | | | | | | | | - MTP support for multiple storage units - Add storage_id column to media database for MTP storage ID - Add framework resource for defining mount points and user visible descriptions for multiple volumes - Clean up locking in MtpServer JNI code Change-Id: Iffb66ed156ef5bc80b14228af78fbacee7734360
* MtpServer: Do not attempt to stop MTP if it has not been startedMike Lockwood2011-03-171-2/+13
| | | | | | | | | | Fixes an ANR that occurred if we got a USB disconnected event before the MTP service had started. Bug: 4118033 Change-Id: I6cad4281a5911a9926cae923f34d3a6bf98346c5 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Disable MTP when the keyguard is locked and secureMike Lockwood2011-02-221-0/+7
| | | | | | | BUG: 3402847 Change-Id: I6c77efe18f525cd0af37911c8b6aac4f17352552 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Fix race conditions in MtpServer JNI codeMike Lockwood2011-01-251-4/+0
| | | | | | | | | | Make sure previous MtpThread has exited before starting another to avoid EBUSY opening MTP kernel driver. BUG: 3317803 Change-Id: I81dcbac42bcf5f680ed1b1469839bc0b0e49d53d Signed-off-by: Mike Lockwood <lockwood@android.com>
* Remove MTP related log spamMike Lockwood2011-01-211-9/+0
| | | | | Change-Id: I9de1792cbeec07fa5ab42ff9a10813f0c3d30fc1 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Move MTP Java classes to android.mtp.* package.Mike Lockwood2010-12-301-0/+77
Change-Id: Ib18bcaabf314241a95e517d0b93be5845d988e2c Signed-off-by: Mike Lockwood <lockwood@android.com>