OSDN Git Service

Snap for 5582435 from c64375f263e6ed1dc7f0bc06477b54d17fb768af to qt-qpr1-release
[android-x86/packages-apps-Gallery2.git] / proguard.flags
1 # Disable the warnings of using dynamic method call in common library.
2 -dontnote com.android.gallery3d.common.*
3
4 # Keep all classes extended from com.android.gallery3d.common.Entry
5 # Since we annotate on the fields and use reflection to create SQL
6 # according to those field.
7
8 -keep class * extends com.android.gallery3d.common.Entry {
9     @com.android.gallery3d.common.Entry$Column <fields>;
10 }
11
12 # ctors of subclasses of CameraPreference are called with Java reflection.
13 -keep class * extends com.android.camera.CameraPreference {
14   <init>(...);
15 }
16
17 -keep class com.android.camera.CameraActivity {
18   public boolean isRecording();
19   public long getAutoFocusTime();
20   public long getShutterLag();
21   public long getShutterToPictureDisplayedTime();
22   public long getPictureDisplayedToJpegCallbackTime();
23   public long getJpegCallbackFinishTime();
24   public long getCaptureStartTime();
25 }
26
27 -keep class com.android.camera.VideoModule {
28   public void onCancelBgTraining(...);
29   public void onProtectiveCurtainClick(...);
30 }
31
32 -keep class * extends android.app.Activity {
33   @com.android.camera.OnClickAttr <methods>;
34 }
35
36 -keep class com.android.camera.CameraHolder {
37   public static void injectMockCamera(...);
38 }
39
40 # Disable the warnings of using dynamic method calls in EffectsRecorder
41 -dontnote com.android.camera.EffectsRecorder
42
43 # Required for ActionBarSherlock
44 -keep class android.support.v4.app.** { *; }
45 -keep interface android.support.v4.app.** { *; }
46 -keep class com.actionbarsherlock.** { *; }
47 -keep interface com.actionbarsherlock.** { *; }
48 -keepattributes *Annotation*
49
50 # Required for JobIntentService
51 -keep class androidx.core.app.CoreComponentFactory { *; }
52
53 # Required for mp4parser
54 -keep public class * implements com.coremedia.iso.boxes.Box
55
56 #-assumenosideeffects junit.framework.Assert {
57 #*;
58 #}
59
60 # For unit testing:
61
62 # - Required for running exif tests on userdebug
63 -keep class com.android.gallery3d.exif.ExifTag { *; }
64 -keep class com.android.gallery3d.exif.ExifData { *; }
65 -keep class com.android.gallery3d.exif.ExifInterface { *; }
66 -keepclassmembers class com.android.gallery3d.exif.Util {
67   *** closeSilently(...);
68 }
69
70 # - Required for running blobcache tests on userdebug
71 -keep class com.android.gallery3d.common.BlobCache { *; }
72
73 # - Required for running glcanvas tests on userdebug
74 -keep class com.android.gallery3d.ui.GLPaint { *; }
75 -keep class com.android.gallery3d.ui.GLCanvas { *; }
76 -keep class com.android.gallery3d.glrenderer.GLPaint { *; }
77 -keep class com.android.gallery3d.glrenderer.GLCanvas { *; }
78 -keep class com.android.gallery3d.ui.GLView { *; }
79 -keepclassmembers class com.android.gallery3d.util.IntArray {
80   *** toArray(...);
81 }
82 -keep class com.android.gallery3d.util.ProfileData { *; }
83
84 # - Required for running jpeg stream tests on userdebug
85 -keep class com.android.gallery3d.jpegstream.JPEGOutputStream { *; }
86 -keep class com.android.gallery3d.jpegstream.JPEGInputStream { *; }
87 -keep class com.android.gallery3d.jpegstream.StreamUtils { *; }
88
89