blob: aad638bbf9fd2314e05b12b8113f3b6ce4deade0 [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
Natiq Ahmed32d78212014-09-26 17:15:44 +05305-dontwarn android.content.res.Resources
Weijie Wangb59cf612017-09-05 10:42:58 +08006-dontwarn com.android.internal.widget.ViewInfoStore$InfoRecord
jinwu8045fd42018-02-09 14:54:16 +08007-dontwarn com.android.internal.util.function.pooled.PooledLambdaImpl$Pool
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -07008
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -07009# ctors of subclasses of CameraPreference are called with Java reflection.
10-keep class * extends com.android.camera.CameraPreference {
11 <init>(...);
12}
13
14-keep class com.android.camera.CameraActivity {
15 public boolean isRecording();
16 public long getAutoFocusTime();
17 public long getShutterLag();
18 public long getShutterToPictureDisplayedTime();
19 public long getPictureDisplayedToJpegCallbackTime();
20 public long getJpegCallbackFinishTime();
21 public long getCaptureStartTime();
22}
23
24-keep class com.android.camera.VideoModule {
25 public void onCancelBgTraining(...);
26 public void onProtectiveCurtainClick(...);
27}
28
29-keep class * extends android.app.Activity {
30 @com.android.camera.OnClickAttr <methods>;
31}
32
33-keep class com.android.camera.CameraHolder {
34 public static void injectMockCamera(...);
35}
36
37# Disable the warnings of using dynamic method calls in EffectsRecorder
38-dontnote com.android.camera.EffectsRecorder
39
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070040# For unit testing:
41
42# - Required for running exif tests on userdebug
43-keep class com.android.gallery3d.exif.ExifTag { *; }
44-keep class com.android.gallery3d.exif.ExifData { *; }
45-keep class com.android.gallery3d.exif.ExifInterface { *; }
46-keepclassmembers class com.android.gallery3d.exif.Util {
47 *** closeSilently(...);
48}
49
Jack Yooa02710a2016-04-06 16:07:22 -070050-keepclasseswithmembernames class * {
51 native <methods>;
52}
53
54-keep class * {
55 public <methods>;
56 public <fields>;
57 private <methods>;
58 private <fields>;
59}
60
61-keep class android.renderscript.** { *; }
Weijie Wangb59cf612017-09-05 10:42:58 +080062