1 # Disable the warnings of using dynamic method call in common library.
2 -dontnote com.android.gallery3d.common.*
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.
8 -keep class * extends com.android.gallery3d.common.Entry {
9 @com.android.gallery3d.common.Entry$Column <fields>;
12 # ctors of subclasses of CameraPreference are called with Java reflection.
13 -keep class * extends com.android.camera.CameraPreference {
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();
27 -keep class com.android.camera.VideoModule {
28 public void onCancelBgTraining(...);
29 public void onProtectiveCurtainClick(...);
32 -keep class * extends android.app.Activity {
33 @com.android.camera.OnClickAttr <methods>;
36 -keep class com.android.camera.CameraHolder {
37 public static void injectMockCamera(...);
40 # Disable the warnings of using dynamic method calls in EffectsRecorder
41 -dontnote com.android.camera.EffectsRecorder
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*
50 # Required for JobIntentService
51 -keep class androidx.core.app.CoreComponentFactory { *; }
53 # Required for mp4parser
54 -keep public class * implements com.coremedia.iso.boxes.Box
56 #-assumenosideeffects junit.framework.Assert {
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(...);
70 # - Required for running blobcache tests on userdebug
71 -keep class com.android.gallery3d.common.BlobCache { *; }
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 {
82 -keep class com.android.gallery3d.util.ProfileData { *; }
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 { *; }