X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=proguard.flags;h=72cba51584eb95daa14ff728fb578f8accbfe9ef;hb=d2caee61ded31cd6bb1d807c805eeecae49789cf;hp=b54b0c79144c365fad256afaba1cb7709a9407fb;hpb=86ac467628c063e6955e83df4f44e0c7aa862181;p=android-x86%2Fpackages-apps-Gallery2.git diff --git a/proguard.flags b/proguard.flags index b54b0c791..72cba5158 100644 --- a/proguard.flags +++ b/proguard.flags @@ -14,11 +14,6 @@ (...); } --keep class com.android.camera.ActivityBase { - public int getResultCode(); - public android.content.Intent getResultData(); -} - -keep class com.android.camera.CameraActivity { public boolean isRecording(); public long getAutoFocusTime(); @@ -59,3 +54,33 @@ #*; #} +# 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 { *; } + +