35654b61e8fe7bc85afcb076ddbb590d51c5865f |
|
15-Jan-2013 |
Dianne Hackborn <hackbod@google.com> |
More work on App Ops service. 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
/frameworks/base/media/java/android/media/MediaInserter.java
|
d121cfcbb45cb9ca734e702861f0bdd422999cf5 |
|
13-Feb-2012 |
Marco Nelissen <marcone@google.com> |
Further optimize media scanner. Inserts of directories can be done in bulk as long as they're inserted before the files contained within. Extend MediaInserter to accommodate giving priority treatment to directories. Bulk deleting of entries can be further sped up (by a factor of ~3 in my tests) by deleting entries in database order. Switch the file cache to use LinkedHashMap instead of HashMap to allow iterating over the cache in database order. Also use bindArgs to allow for better caching of sql statements. Change-Id: Ieb9ffc4e866c6cd505bf795eb80ff5d03ffc56bd
/frameworks/base/media/java/android/media/MediaInserter.java
|
30c918ce7fbe171944b28fc91b3f22b3d631872d |
|
11-Nov-2011 |
Glenn Kasten <gkasten@google.com> |
Use final on new member variables Use final for member fields initialized to a new and that are never modified. Change-Id: I042352c7bc21879613e7a50b1205b6923f8083cf
/frameworks/base/media/java/android/media/MediaInserter.java
|
8e2ed8d512ade2ea481b3a292556782b17a74674 |
|
11-Oct-2011 |
Dongwon Kang <dwkang@google.com> |
Refactor FileInserter in MediaScanner and adding unit tests for the newly added class. Change-Id: Ia0e8c95239916fd4c21cb5bf10ac94201e6eb6f1
/frameworks/base/media/java/android/media/MediaInserter.java
|