Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 1 | # Disable the warnings of using dynamic method call in common library. |
| 2 | -dontnote com.android.gallery3d.common.* |
| 3 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 4 | # ctors of subclasses of CameraPreference are called with Java reflection. |
| 5 | -keep class * extends com.android.camera.CameraPreference { |
| 6 | <init>(...); |
| 7 | } |
| 8 | |
| 9 | -keep class com.android.camera.CameraActivity { |
| 10 | public boolean isRecording(); |
| 11 | public long getAutoFocusTime(); |
| 12 | public long getShutterLag(); |
| 13 | public long getShutterToPictureDisplayedTime(); |
| 14 | public long getPictureDisplayedToJpegCallbackTime(); |
| 15 | public long getJpegCallbackFinishTime(); |
| 16 | public long getCaptureStartTime(); |
Kevin Gabayan | a0e8347 | 2014-01-15 15:21:13 -0800 | [diff] [blame] | 17 | public long getFirstPreviewTime(); |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | -keep class com.android.camera.VideoModule { |
| 21 | public void onCancelBgTraining(...); |
| 22 | public void onProtectiveCurtainClick(...); |
| 23 | } |
| 24 | |
| 25 | -keep class * extends android.app.Activity { |
| 26 | @com.android.camera.OnClickAttr <methods>; |
| 27 | } |
| 28 | |
| 29 | -keep class com.android.camera.CameraHolder { |
| 30 | public static void injectMockCamera(...); |
| 31 | } |
| 32 | |
| 33 | # Disable the warnings of using dynamic method calls in EffectsRecorder |
| 34 | -dontnote com.android.camera.EffectsRecorder |
| 35 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 36 | # For unit testing: |
| 37 | |
| 38 | # - Required for running exif tests on userdebug |
| 39 | -keep class com.android.gallery3d.exif.ExifTag { *; } |
| 40 | -keep class com.android.gallery3d.exif.ExifData { *; } |
| 41 | -keep class com.android.gallery3d.exif.ExifInterface { *; } |
| 42 | -keepclassmembers class com.android.gallery3d.exif.Util { |
| 43 | *** closeSilently(...); |
| 44 | } |
| 45 | |