summaryrefslogtreecommitdiffstats
path: root/include/media/mediascanner.h
Commit message (Collapse)AuthorAgeFilesLines
* Use CharacterEncodingDetector in metadataretrieverMarco Nelissen2014-09-021-1/+0
| | | | | | | | | | | instead of media scanner. This way the java MediaMetadataRetriever API will give the same result as the media scanner. Also apply some tweaks to the encoding detector to improve handling of ISO-8859-1 tags. Bug: 16302581, 17205395 Change-Id: I1682a7a6a8bf04cffaa455044ba72dd7fd152d49
* am 6bf02664: am ccaffa8d: Merge "Use char x[] rather than char x[0]."Elliott Hughes2014-06-131-1/+1
|\ | | | | | | | | * commit '6bf02664bbe4955d4818fe308b00ce0d97f38c8f': Use char x[] rather than char x[0].
| * Use char x[] rather than char x[0].Elliott Hughes2014-06-121-1/+1
| | | | | | | | | | Bug: 15514223 Change-Id: I895ea8ef7e391fd14cdf8976e048385e01c90f8f
* | am 2a8270e6: am c323737d: Merge "Offer a type-safe album art interface."Elliott Hughes2014-06-121-2/+26
|\ \ | |/ | | | | | | * commit '2a8270e6944fb3addfcba87f6885aaad196b8b88': Offer a type-safe album art interface.
| * Offer a type-safe album art interface.Elliott Hughes2014-06-111-2/+26
| | | | | | | | | | Bug: 15514223 Change-Id: Iddfc33a00e6cd3779ca09c01a55f62b151f6ec95
* | Better character set encoding detectionMarco Nelissen2013-12-111-9/+5
|/ | | | | | | | | | Id3 tags are supposed to be ISO-8859-1 or unicode, but often aren't. To better detect the real encoding we now use ICU to detect possible encodings for a given byte sequence, then apply additional heuristics to determine the most likely one. b/5564857 Change-Id: I53bc83b006433da5c2f2ccfcd770ddb3a26b64d0
* Make MediaScanner skip certain directoriesGuang Zhu2011-09-091-1/+5
| | | | | | | | | | The list of directories to skip are configurable via setprop. The main motivation is that some test data folder takes long time to scan, and media scanner may compete for CPU time against perf tests therefore skewing the results. Bug: 5263115 Change-Id: I568213e2a4babf6033021c1d336ef0347c0e3315
* Untangle MediaScanner error handling.Jeff Brown2011-07-201-14/+26
| | | | | | Bug: 5056917 Change-Id: I1a7a73579e3ba4e9709459329fc1901a28b0f4b1
* MediaScanner: reimplement the ".nomedia" feature for hiding files from the ↵Mike Lockwood2011-04-251-3/+2
| | | | | | | | | | | | | | | | media provider Previously we ignored any files and directories that had name started with '.' and ignored any directories that contained a ".nomedia" file. Now to support transferring any file via MTP, we now add these previously ignored files to the media database, but will not mark them as audio, video, image or playlist files. That way they will be included in the files table but will be hidden from the audio, video, images and playlist views that are used by apps like Music and Gallery. Bug: 3405327 Change-Id: I2d7285bd32e06c1a5c4ef6a8a15f8f8b2c33b39b Signed-off-by: Mike Lockwood <lockwood@android.com>
* MediaScanner: Add support for scanning empty directoriesMike Lockwood2010-12-161-1/+2
| | | | | | | | | Currently the media scanner does not create database entries for directories unless they contain a file that is scanned. Fixing this so we provide a consistent view of the world to MTP. Change-Id: Ia776acfeae23192183e7192d63cdc34d830ea889 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Media scanner support for tracking files of arbitrary type.Mike Lockwood2010-09-121-5/+3
| | | | | | | | | | The native media scanner no longer filters files based on file extension. Audio, video, image and playlist files are handled as before, but non-media files are now inserted into the "files" table, which was originally added to support MTP. Change-Id: I9053218fb6d2671a3bb181405c34442b94678afc Signed-off-by: Mike Lockwood <lockwood@android.com>
* Refactor MediaScanner. Some steps on the way towards being able to build the ↵Andreas Huber2009-12-031-20/+27
| | | | tree without OpenCore.
* When encountering a .nomedia file, notify the MediaScannerClient,Marco Nelissen2009-09-031-10/+11
| | | | | | | so that it can erase the data column for entries that are in the folder containing the .nomedia file. This prevents us from deleting (via a delete trigger) files when somebody adds a .nomedia file after the fact.
* get rid of utils.hMathias Agopian2009-05-311-1/+4
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+85
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-85/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+23
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+63