summaryrefslogtreecommitdiffstats
path: root/media/java/android/mtp/MtpDatabase.java
Commit message (Collapse)AuthorAgeFilesLines
* MTP: Add support for some audio specific object propertiesMike Lockwood2014-03-131-0/+5
| | | | | | | | | This stops Windows 7 from putting up the "Your device might not be able to play or view this file" dialog when copying MP3 files to the device. Bug: 3195286 Change-Id: Ic5b3fb75309893caae1a4f4b56068a543847f1f7
* MTP: Add support for battery level device propertyMike Lockwood2014-03-121-0/+43
| | | | | | Bug: 7342482 Change-Id: I810e55fe9695e2206816f57334ad14f65e9c641d
* am 1e3395c7: am 105b545e: am 0dce19ca: am 79ceb53a: am c58abeea: Merge ↵Narayan Kamath2014-01-071-1/+1
|\ | | | | | | | | | | | | "AArch64: Use long for pointers in MTP classes" * commit '1e3395c7378a7dd293a2e8a8ac8fbf239adbad0c': AArch64: Use long for pointers in MTP classes
| * 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>
* | Remove unused imports from frameworks/base.John Spurlock2013-11-201-2/+0
|/ | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Merge "When deleting a db file, Context.deleteDatabase() has to be called ↵Marco Nelissen2013-08-071-1/+1
|\ | | | | | | instead of File.delete() to guarantee all db related files like journal, wal, shm, etc are deleted together."
| * When deleting a db file,jangwon.lee2013-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | Context.deleteDatabase() has to be called instead of File.delete() to guarantee all db related files like journal, wal, shm, etc are deleted together. Signed-off-by: jangwon.lee<jangwon.lee@lge.com> Change-Id: I3c3d7dfa13ffbe709ab7d8a5c7cfe6cfa2864fea
* | MTP: Implement date created field in GetObjectInfoMike Lockwood2013-04-011-3/+9
| | | | | | | | | | | | Bug: 8293874 Change-Id: I3e50ea1049f63e2ed3a1f849fef74a2fbf206fe8
* | More work on App Ops service.Dianne Hackborn2013-01-161-18/+25
|/ | | | | | | | | | | | | | | | | | | | | | | | | Implemented reading and writing state to retain information across boots, API to retrieve state from it, improved location manager interaction to monitor both coarse and fine access and only note operations when location data is being delivered back to app (not when it is just registering to get the data at some time in the future). Also implement tracking of read/write ops on contacts and the call log. This involved tweaking the content provider protocol to pass over the name of the calling package, and some infrastructure in the ContentProvider transport to note incoming calls with the app ops service. The contacts provider and call log provider turn this on for themselves. This also implements some of the mechanics of being able to ignore incoming provider calls... all that is left are some new APIs for the real content provider implementation to be involved with providing the correct behavior for query() (return an empty cursor with the right columns) and insert() (need to figure out what URI to return). Change-Id: I36ebbcd63dee58264a480f3d3786891ca7cbdb4c
* am 768d9e1a: Merge "Correct executable bit for source files"Kenny Root2012-11-071-0/+0
|\ | | | | | | | | * commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04': Correct executable bit for source files
| * Correct executable bit for source filesKenny Root2012-11-071-0/+0
| | | | | | | | | | | | | | | | | | Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
* | am ad23333f: am 945080b5: am 1e86994c: Merge "MtpData bmp format file can\'t ↵Mike Lockwood2012-09-181-0/+1
|\ \ | |/ | | | | | | | | | | recognize when copy bmp into DUT" * commit 'ad23333f728471a7f2c49cd1c9575f1cea2503f6': MtpData bmp format file can't recognize when copy bmp into DUT
| * MtpData bmp format file can't recognize when copy bmp into DUTbo huang2012-08-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | add support for bmp format. Change-Id: I67d4703b43cd32abad638bae57bbceb65b4be6de Author: bo huang <bo.b.huang@intel.com> Signed-off-by: bo huang <bo.b.huang@intel.com> Signed-off-by: Wu, Hao <hao.wu@intel.com> Singed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 24555
* | MtpDatabase: Use actual file size instead of media database size columnMike Lockwood2012-09-121-13/+12
| | | | | | | | | | | | | | | | | | | | Fixes problems with file transfer from device to host that can occur if the database size value is wrong. Bug: 6954446 Change-Id: I03c3dd4b75267d1f4613f0b588c8899ded9a70be Signed-off-by: Mike Lockwood <lockwood@google.com>
* | MtpDatabase: Fix typo affecting parent and format queriesMike Lockwood2012-09-111-2/+2
|/ | | | | | | Bug: 7114350 Change-Id: I80269cfcebf521ea13cae30c1c9bd477d76adbd1 Signed-off-by: Mike Lockwood <lockwood@google.com>
* MtpDatabase: Fix sqlite3 pattern matching for MTP directory deletesMike Lockwood2012-06-261-4/+4
| | | | | | | Bug: 6684451 Change-Id: I90204550ccfcd1b7a5b1973bed2a88e934aae053 Signed-off-by: Mike Lockwood <lockwood@google.com>
* Handle _ and % in pathsMarco Nelissen2012-05-221-2/+5
| | | | | | | | When doing a "like" match on a path, add a second non-like constraint so that sqlite wildcard characters don't match arbitrary other characters. b/6501408 Change-Id: I21f9b1c2d8e7c7ef27c0ad5fe24c3e01cd67fb61
* Merge "Handle adding/removing/renaming nomedia paths"Marco Nelissen2012-01-301-0/+32
|\
| * Handle adding/removing/renaming nomedia pathsMarco Nelissen2012-01-271-0/+32
| | | | | | | | | | b/5849015 Change-Id: I3ec7419498d1ecc83db6d4605b3d7610349231f7
* | Implement a cancelation mechanism for queries.Jeff Brown2012-01-271-7/+7
|/ | | | | | | | | | | | | Added new API to enable cancelation of SQLite and content provider queries by means of a CancelationSignal object. The application creates a CancelationSignal object and passes it as an argument to the query. The cancelation signal can then be used to cancel the query while it is executing. If the cancelation signal is raised before the query is executed, then it is immediately terminated. Change-Id: If2c76e9a7e56ea5e98768b6d4f225f0a1ca61c61
* MTP: Add support for restricting PTP to only certain subdirectories of the ↵Mike Lockwood2011-12-021-38/+150
| | | | | | | | | storage Bug: 5527220 Change-Id: If68e7481617ecb62abd24e2d89e6b7dfdf95ba2b Signed-off-by: Mike Lockwood <lockwood@google.com>
* [Prime K] Fix gabage character issuedujin.cha2011-11-221-0/+15
| | | | | | | | | | | Korean characters show up as gabage characters in Music player. Reason : MTP service does not set the locale for the MediaScanner Solution : Set locale when MtpDatabase creates MediaScanner. Bug ID : 5567433 Signed-off-by: dujin.cha <dujin.cha@samsung.com> Change-Id: I4bfe5f603c113170d45bd57a8709c21c665e260b
* MTP: Fix some problems with GetObjectHandles and GetNumObjects commandsMike Lockwood2011-06-171-22/+68
| | | | | | | | These calls did not correctly handle some variants of the arguments, which showed up when running in PTP mode. Change-Id: Iedbaefebfa39111c8bcaee7c6cc3820a65d6c98f Signed-off-by: Mike Lockwood <lockwood@android.com>
* Rework display size access.Dianne Hackborn2011-04-211-2/+2
| | | | | | | | Applications now get the display size from the window manager. No behavior should be changed yet, this is just prep for some real changes. Change-Id: I2958a6660895c1cba2b670509600014e55ee9273
* MTP and media provider support for multiple storage devices:Mike Lockwood2011-04-051-30/+48
| | | | | | | | | | | | | - 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
* MTP: Use SharedPreferences for MTP device properties rather than sqlite3Mike Lockwood2011-03-051-52/+49
| | | | | | | | | sqlite3 is overkill for what we are doing here, and more fragile. BUG: 3512856 Change-Id: I83d86127949d894a3887db3456d91b013060e852 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Bug 1804058 FLAC extractorGlenn Kasten2011-02-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Note: dependent on external/flac for libFLAC Implemented and tested: * FLAC container * mono and stereo * standard sample rates * standard bit depths * sniffer * media scanner * Vorbis comment metadata including album art * random access seeking with "torture test" * web browser integration for audio/flac (not audio/x-flac), but note that most web servers don't correctly report the MIME type Not implemented: * 24-bit to 16-bit dither or noise shaping in AudioFlinger * 96 kHz to 44.1 or 48 kHz downsampling low pass filter in AudioFlinger * replay gain is better done in AudioFlinger * multi-channel, would need AudioFlinger support * Ogg container, does not seem to be very popular yet Change-Id: I300873e8c0cfc2e95403d9adb5064d16a2923f17
* Remove MTP related log spamMike Lockwood2011-01-211-18/+1
| | | | | Change-Id: I9de1792cbeec07fa5ab42ff9a10813f0c3d30fc1 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Set modification date for abstract playlistsMike Lockwood2011-01-181-0/+1
| | | | | | | BUG: 3224269 Change-Id: I96ae8e6d2f7e28860e9217ceb911331b333e1391 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Strip ".pla" file extension from name field for WMP playlistsMike Lockwood2011-01-181-0/+4
| | | | | | | BUG: 3309324 Change-Id: Ia136f94406496f971819f4f805f742f2a6829007 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Fix problems with modification dates for folders and non-media filesMike Lockwood2011-01-181-13/+1
| | | | | | | | | Also removed an unnecessary parameter to MtpDatabase.endSendobject() BUG: 3352142 Change-Id: I6fd812dcba4814956bc8bc1cbd6bd5c868197790 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Media Provider and MTP now use emulated /mnt/sdcard instead of /data/mediaMike Lockwood2011-01-121-14/+2
| | | | | | | | This rips out some complicated code that was added since gingerbread that is no longer necessary. Change-Id: Iab5ecb7314c06221475ce01ef483f34f17003b06 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Move MTP Java classes to android.mtp.* package.Mike Lockwood2010-12-301-0/+842
Change-Id: Ib18bcaabf314241a95e517d0b93be5845d988e2c Signed-off-by: Mike Lockwood <lockwood@android.com>