• 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# ctors of subclasses of ActivityState are called with Java reflection.
18-keep class * extends com.android.gallery3d.app.ActivityState {
19  <init>(...);
20}
21
22-keep class com.android.camera.CameraActivity {
23  public boolean isRecording();
24  public long getAutoFocusTime();
25  public long getShutterLag();
26  public long getShutterToPictureDisplayedTime();
27  public long getPictureDisplayedToJpegCallbackTime();
28  public long getJpegCallbackFinishTime();
29  public long getCaptureStartTime();
30}
31
32-keep class com.android.camera.VideoModule {
33  public void onCancelBgTraining(...);
34  public void onProtectiveCurtainClick(...);
35}
36
37-keep class * extends android.app.Activity {
38  @com.android.camera.OnClickAttr <methods>;
39}
40
41-keep class com.android.camera.CameraHolder {
42  public static void injectMockCamera(...);
43}
44
45# Disable the warnings of using dynamic method calls in EffectsRecorder
46-dontnote com.android.camera.EffectsRecorder
47
48# Required for ActionBarSherlock
49-keep class android.support.v4.app.** { *; }
50-keep interface android.support.v4.app.** { *; }
51-keep class com.actionbarsherlock.** { *; }
52-keep interface com.actionbarsherlock.** { *; }
53-keepattributes RuntimeVisibleAnnotations,
54                RuntimeVisibleParameterAnnotations,
55                RuntimeVisibleTypeAnnotations,
56                AnnotationDefault
57
58# Required for JobIntentService
59-keep class androidx.core.app.CoreComponentFactory { *; }
60
61# Required for mp4parser
62# TODO(b/373579455): Evaluate if <init> needs to be kept.
63-keep public class * implements com.coremedia.iso.boxes.Box {
64  void <init>();
65}
66
67#-assumenosideeffects junit.framework.Assert {
68#*;
69#}
70
71# For unit testing:
72
73# - Required for running exif tests on userdebug
74-keep class com.android.gallery3d.exif.ExifTag { *; }
75-keep class com.android.gallery3d.exif.ExifData { *; }
76-keep class com.android.gallery3d.exif.ExifInterface { *; }
77-keepclassmembers class com.android.gallery3d.exif.Util {
78  *** closeSilently(...);
79}
80
81# - Required for running blobcache tests on userdebug
82-keep class com.android.gallery3d.common.BlobCache { *; }
83
84# - Required for running glcanvas tests on userdebug
85-keep class com.android.gallery3d.ui.GLPaint { *; }
86-keep class com.android.gallery3d.ui.GLCanvas { *; }
87-keep class com.android.gallery3d.glrenderer.GLPaint { *; }
88-keep class com.android.gallery3d.glrenderer.GLCanvas { *; }
89-keep class com.android.gallery3d.ui.GLView { *; }
90-keepclassmembers class com.android.gallery3d.util.IntArray {
91  *** toArray(...);
92}
93-keep class com.android.gallery3d.util.ProfileData { *; }
94
95# - Required for running jpeg stream tests on userdebug
96-keep class com.android.gallery3d.jpegstream.JPEGOutputStream { *; }
97-keep class com.android.gallery3d.jpegstream.JPEGInputStream { *; }
98-keep class com.android.gallery3d.jpegstream.StreamUtils { *; }
99