summaryrefslogtreecommitdiff
path: root/media/java/android/mtp/MtpDatabase.java
AgeCommit message (Collapse)Author
2014-03-12MTP: Add support for battery level device propertyMike Lockwood
Bug: 7342482 Change-Id: I810e55fe9695e2206816f57334ad14f65e9c641d
2014-01-07am 1e3395c7: am 105b545e: am 0dce19ca: am 79ceb53a: am c58abeea: Merge ↵Narayan Kamath
"AArch64: Use long for pointers in MTP classes" * commit '1e3395c7378a7dd293a2e8a8ac8fbf239adbad0c': AArch64: Use long for pointers in MTP classes
2014-01-07AArch64: Use long for pointers in MTP classesAshok Bhat
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>
2013-11-20Remove unused imports from frameworks/base.John Spurlock
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-08-07Merge "When deleting a db file, Context.deleteDatabase() has to be called ↵Marco Nelissen
instead of File.delete() to guarantee all db related files like journal, wal, shm, etc are deleted together."
2013-07-31When deleting a db file,jangwon.lee
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
2013-04-01MTP: Implement date created field in GetObjectInfoMike Lockwood
Bug: 8293874 Change-Id: I3e50ea1049f63e2ed3a1f849fef74a2fbf206fe8
2013-01-16More work on App Ops service.Dianne Hackborn
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
2012-11-07am 768d9e1a: Merge "Correct executable bit for source files"Kenny Root
* commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04': Correct executable bit for source files
2012-11-07Correct executable bit for source filesKenny Root
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
2012-09-18am ad23333f: am 945080b5: am 1e86994c: Merge "MtpData bmp format file can\'t ↵Mike Lockwood
recognize when copy bmp into DUT" * commit 'ad23333f728471a7f2c49cd1c9575f1cea2503f6': MtpData bmp format file can't recognize when copy bmp into DUT
2012-09-12MtpDatabase: Use actual file size instead of media database size columnMike Lockwood
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>
2012-09-11MtpDatabase: Fix typo affecting parent and format queriesMike Lockwood
Bug: 7114350 Change-Id: I80269cfcebf521ea13cae30c1c9bd477d76adbd1 Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-08-17MtpData bmp format file can't recognize when copy bmp into DUTbo huang
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
2012-06-26MtpDatabase: Fix sqlite3 pattern matching for MTP directory deletesMike Lockwood
Bug: 6684451 Change-Id: I90204550ccfcd1b7a5b1973bed2a88e934aae053 Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-05-22Handle _ and % in pathsMarco Nelissen
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
2012-01-30Merge "Handle adding/removing/renaming nomedia paths"Marco Nelissen
2012-01-27Implement a cancelation mechanism for queries.Jeff Brown
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
2012-01-27Handle adding/removing/renaming nomedia pathsMarco Nelissen
b/5849015 Change-Id: I3ec7419498d1ecc83db6d4605b3d7610349231f7
2011-12-02MTP: Add support for restricting PTP to only certain subdirectories of the ↵Mike Lockwood
storage Bug: 5527220 Change-Id: If68e7481617ecb62abd24e2d89e6b7dfdf95ba2b Signed-off-by: Mike Lockwood <lockwood@google.com>
2011-11-22[Prime K] Fix gabage character issuedujin.cha
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
2011-06-17MTP: Fix some problems with GetObjectHandles and GetNumObjects commandsMike Lockwood
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>
2011-04-21Rework display size access.Dianne Hackborn
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
2011-04-05MTP and media provider support for multiple storage devices:Mike Lockwood
- 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
2011-03-05MTP: Use SharedPreferences for MTP device properties rather than sqlite3Mike Lockwood
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>
2011-02-03Bug 1804058 FLAC extractorGlenn Kasten
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
2011-01-21Remove MTP related log spamMike Lockwood
Change-Id: I9de1792cbeec07fa5ab42ff9a10813f0c3d30fc1 Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-18MTP: Set modification date for abstract playlistsMike Lockwood
BUG: 3224269 Change-Id: I96ae8e6d2f7e28860e9217ceb911331b333e1391 Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-18MTP: Strip ".pla" file extension from name field for WMP playlistsMike Lockwood
BUG: 3309324 Change-Id: Ia136f94406496f971819f4f805f742f2a6829007 Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-18MTP: Fix problems with modification dates for folders and non-media filesMike Lockwood
Also removed an unnecessary parameter to MtpDatabase.endSendobject() BUG: 3352142 Change-Id: I6fd812dcba4814956bc8bc1cbd6bd5c868197790 Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-12Media Provider and MTP now use emulated /mnt/sdcard instead of /data/mediaMike Lockwood
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>
2010-12-30Move MTP Java classes to android.mtp.* package.Mike Lockwood
Change-Id: Ib18bcaabf314241a95e517d0b93be5845d988e2c Signed-off-by: Mike Lockwood <lockwood@android.com>