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 -keep class android.support.v8.renderscript.** { *; }
45 # Required for ActionBarSherlock
46 -keep class android.support.v4.app.** { *; }
47 -keep interface android.support.v4.app.** { *; }
48 -keep class com.actionbarsherlock.** { *; }
49 -keep interface com.actionbarsherlock.** { *; }
50 -keepattributes *Annotation*
52 # Required for mp4parser
53 -keep public class * implements com.coremedia.iso.boxes.Box
55 #-assumenosideeffects junit.framework.Assert {
61 # - Required for running exif tests on userdebug
62 -keep class com.android.gallery3d.exif.ExifTag { *; }
63 -keep class com.android.gallery3d.exif.ExifData { *; }
64 -keep class com.android.gallery3d.exif.ExifInterface { *; }
65 -keepclassmembers class com.android.gallery3d.exif.Util {
66 *** closeSilently(...);
69 # - Required for running blobcache tests on userdebug
70 -keep class com.android.gallery3d.common.BlobCache { *; }
72 # - Required for running glcanvas tests on userdebug
73 -keep class com.android.gallery3d.ui.GLPaint { *; }
74 -keep class com.android.gallery3d.ui.GLCanvas { *; }
75 -keep class com.android.gallery3d.glrenderer.GLPaint { *; }
76 -keep class com.android.gallery3d.glrenderer.GLCanvas { *; }
77 -keep class com.android.gallery3d.ui.GLView { *; }
78 -keepclassmembers class com.android.gallery3d.util.IntArray {
81 -keep class com.android.gallery3d.util.ProfileData { *; }
83 # - Required for running jpeg stream tests on userdebug
84 -keep class com.android.gallery3d.jpegstream.JPEGOutputStream { *; }
85 -keep class com.android.gallery3d.jpegstream.JPEGInputStream { *; }
86 -keep class com.android.gallery3d.jpegstream.StreamUtils { *; }