From 43ec6facaec9fdfa7b29ea3cce114e94af95c34c Mon Sep 17 00:00:00 2001 From: Sascha Haeberling Date: Tue, 6 Aug 2013 16:44:42 -0700 Subject: Add .mk files for Camera2. Change-Id: I0678c1b12f40f6dfd76d7589f61d18e99997394f --- proguard.flags | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 proguard.flags (limited to 'proguard.flags') diff --git a/proguard.flags b/proguard.flags new file mode 100644 index 000000000..39e43cbae --- /dev/null +++ b/proguard.flags @@ -0,0 +1,73 @@ +# Disable the warnings of using dynamic method call in common library. +-dontnote com.android.gallery3d.common.* + +# Keep all classes extended from com.android.gallery3d.common.Entry +# Since we annotate on the fields and use reflection to create SQL +# according to those field. + +-keep class * extends com.android.gallery3d.common.Entry { + @com.android.gallery3d.common.Entry$Column ; +} + +# ctors of subclasses of CameraPreference are called with Java reflection. +-keep class * extends com.android.camera.CameraPreference { + (...); +} + +-keep class com.android.camera.CameraActivity { + public boolean isRecording(); + public long getAutoFocusTime(); + public long getShutterLag(); + public long getShutterToPictureDisplayedTime(); + public long getPictureDisplayedToJpegCallbackTime(); + public long getJpegCallbackFinishTime(); + public long getCaptureStartTime(); +} + +-keep class com.android.camera.VideoModule { + public void onCancelBgTraining(...); + public void onProtectiveCurtainClick(...); +} + +-keep class * extends android.app.Activity { + @com.android.camera.OnClickAttr ; +} + +-keep class com.android.camera.CameraHolder { + public static void injectMockCamera(...); +} + +# Disable the warnings of using dynamic method calls in EffectsRecorder +-dontnote com.android.camera.EffectsRecorder + +-keep class android.support.v8.renderscript.** { *; } + + +# For unit testing: + +# - Required for running exif tests on userdebug +-keep class com.android.gallery3d.exif.ExifTag { *; } +-keep class com.android.gallery3d.exif.ExifData { *; } +-keep class com.android.gallery3d.exif.ExifInterface { *; } +-keepclassmembers class com.android.gallery3d.exif.Util { + *** closeSilently(...); +} + +# - Required for running blobcache tests on userdebug +-keep class com.android.gallery3d.common.BlobCache { *; } + +# - Required for running glcanvas tests on userdebug +-keep class com.android.gallery3d.ui.GLPaint { *; } +-keep class com.android.gallery3d.ui.GLCanvas { *; } +-keep class com.android.gallery3d.glrenderer.GLPaint { *; } +-keep class com.android.gallery3d.glrenderer.GLCanvas { *; } +-keep class com.android.gallery3d.ui.GLView { *; } +-keepclassmembers class com.android.gallery3d.util.IntArray { + *** toArray(...); +} +-keep class com.android.gallery3d.util.ProfileData { *; } + +# - Required for running jpeg stream tests on userdebug +-keep class com.android.gallery3d.jpegstream.JPEGOutputStream { *; } +-keep class com.android.gallery3d.jpegstream.JPEGInputStream { *; } +-keep class com.android.gallery3d.jpegstream.StreamUtils { *; } -- cgit v1.2.3