• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-keep class android.support.v8.renderscript.** { *; }
44
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*
51
52# Required for mp4parser
53-keep public class * implements com.coremedia.iso.boxes.Box
54
55#-assumenosideeffects junit.framework.Assert {
56#*;
57#}
58
59# For unit testing:
60
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(...);
67}
68
69# - Required for running blobcache tests on userdebug
70-keep class com.android.gallery3d.common.BlobCache { *; }
71
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 {
79  *** toArray(...);
80}
81-keep class com.android.gallery3d.util.ProfileData { *; }
82
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 { *; }
87