summaryrefslogtreecommitdiff
path: root/proguard.flags
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2019-02-04 21:53:22 -0700
committer Jeff Sharkey <jsharkey@android.com> 2019-02-06 09:07:24 -0700
commit10b4d8df5dc06ee7f2d1bb5c5cc9638df43eea7e (patch)
treea60ab0df5de639f19621b4cde110e67eb84be24c /proguard.flags
parent8aca4c729a46b78506a04f2a7e4538d1f733302e (diff)
Reimplement media scanner in managed code.
The platform media scanner has served faithfully for many years, but it's become tedious to test and maintain, mainly due to the way it weaves obscurely between managed and native code. This modern reimplementation is bug-faithful to the legacy scanner, with tests to confirm that media is scanned identically. Future CLs will flesh out the remaining features and add additional tests to confirm behaviors around hiding/showing directories. Eventually this will also extract XMP metadata from images. Current benchmarks show legacy performance: Scan Initial: 5175ms [220, 1, 94, 94] Scan No-op: 333ms [0, 0, 0, 0] Scan Clean: 111ms [-191, 0, -93, -93] Compared with similar modern performance: Scan Initial: 5822ms [207, 1, 94, 94] Scan No-op: 331ms [0, 0, 0, 0] Scan Clean: 170ms [-191, 0, -93, -93] Bug: 120791890, 122263824, 120862852 Test: atest com.android.providers.media.MediaScannerTest Change-Id: I938b18f7c6cd5309a6b9c4eb97e635d6151b4ead
Diffstat (limited to 'proguard.flags')
-rw-r--r--proguard.flags7
1 files changed, 7 insertions, 0 deletions
diff --git a/proguard.flags b/proguard.flags
new file mode 100644
index 000000000..b07d602ac
--- /dev/null
+++ b/proguard.flags
@@ -0,0 +1,7 @@
+-keep class com.android.providers.media.scan.MediaScanner {
+ *;
+}
+
+-keep class * implements com.android.providers.media.scan.MediaScanner {
+ *;
+}