blob: 39e43cbaec245b6589434fc50be2ffd2e410b848 [file] [log] [blame]
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -07001# 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
46# For unit testing:
47
48# - Required for running exif tests on userdebug
49-keep class com.android.gallery3d.exif.ExifTag { *; }
50-keep class com.android.gallery3d.exif.ExifData { *; }
51-keep class com.android.gallery3d.exif.ExifInterface { *; }
52-keepclassmembers class com.android.gallery3d.exif.Util {
53 *** closeSilently(...);
54}
55
56# - Required for running blobcache tests on userdebug
57-keep class com.android.gallery3d.common.BlobCache { *; }
58
59# - Required for running glcanvas tests on userdebug
60-keep class com.android.gallery3d.ui.GLPaint { *; }
61-keep class com.android.gallery3d.ui.GLCanvas { *; }
62-keep class com.android.gallery3d.glrenderer.GLPaint { *; }
63-keep class com.android.gallery3d.glrenderer.GLCanvas { *; }
64-keep class com.android.gallery3d.ui.GLView { *; }
65-keepclassmembers class com.android.gallery3d.util.IntArray {
66 *** toArray(...);
67}
68-keep class com.android.gallery3d.util.ProfileData { *; }
69
70# - Required for running jpeg stream tests on userdebug
71-keep class com.android.gallery3d.jpegstream.JPEGOutputStream { *; }
72-keep class com.android.gallery3d.jpegstream.JPEGInputStream { *; }
73-keep class com.android.gallery3d.jpegstream.StreamUtils { *; }