blob: 62b9c1f1d34e90c7b6b43a1ffaa329375e2998d7 [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
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070024-keep class * extends android.app.Activity {
25 @com.android.camera.OnClickAttr <methods>;
26}
27
28-keep class com.android.camera.CameraHolder {
29 public static void injectMockCamera(...);
30}
31
32# Disable the warnings of using dynamic method calls in EffectsRecorder
33-dontnote com.android.camera.EffectsRecorder
34
Sascha Haeberling43ec6fa2013-08-06 16:44:42 -070035# For unit testing:
36
37# - Required for running exif tests on userdebug
38-keep class com.android.gallery3d.exif.ExifTag { *; }
39-keep class com.android.gallery3d.exif.ExifData { *; }
40-keep class com.android.gallery3d.exif.ExifInterface { *; }
41-keepclassmembers class com.android.gallery3d.exif.Util {
42 *** closeSilently(...);
43}
44
Jack Yooa02710a2016-04-06 16:07:22 -070045-keepclasseswithmembernames class * {
46 native <methods>;
47}
48
49-keep class * {
50 public <methods>;
51 public <fields>;
52 private <methods>;
53 private <fields>;
54}
55
56-keep class android.renderscript.** { *; }
Weijie Wangb59cf612017-09-05 10:42:58 +080057