Home | History | Annotate | Download | only in Camera2
      1 # Disable the warnings of using dynamic method call in common library.
      2 -dontnote com.android.gallery3d.common.*
      3 
      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();
     17 }
     18 
     19 -keep class com.android.camera.VideoModule {
     20   public void onCancelBgTraining(...);
     21   public void onProtectiveCurtainClick(...);
     22 }
     23 
     24 -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 
     35 # 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 
     45