blob: d5e8d60b8c29f894523daf37fc5d39a073d66c6a [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.*
Alok Kediyaaed65252013-09-23 14:31:42 +05303#Avoid the library class dependency error
4-dontwarn android.view.inputmethod.InputMethodManager
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -07005
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -07006# ctors of subclasses of CameraPreference are called with Java reflection.
7-keep class * extends com.android.camera.CameraPreference {
8 <init>(...);
9}
10
11-keep class com.android.camera.CameraActivity {
12 public boolean isRecording();
13 public long getAutoFocusTime();
14 public long getShutterLag();
15 public long getShutterToPictureDisplayedTime();
16 public long getPictureDisplayedToJpegCallbackTime();
17 public long getJpegCallbackFinishTime();
18 public long getCaptureStartTime();
19}
20
21-keep class com.android.camera.VideoModule {
22 public void onCancelBgTraining(...);
23 public void onProtectiveCurtainClick(...);
24}
25
26-keep class * extends android.app.Activity {
27 @com.android.camera.OnClickAttr <methods>;
28}
29
30-keep class com.android.camera.CameraHolder {
31 public static void injectMockCamera(...);
32}
33
34# Disable the warnings of using dynamic method calls in EffectsRecorder
35-dontnote com.android.camera.EffectsRecorder
36
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070037# For unit testing:
38
39# - Required for running exif tests on userdebug
40-keep class com.android.gallery3d.exif.ExifTag { *; }
41-keep class com.android.gallery3d.exif.ExifData { *; }
42-keep class com.android.gallery3d.exif.ExifInterface { *; }
43-keepclassmembers class com.android.gallery3d.exif.Util {
44 *** closeSilently(...);
45}
46