diff options
author | Chih-Chung Chang <chihchung@google.com> | 2009-07-27 13:03:29 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2009-07-27 14:22:38 +0800 |
commit | ce033a5871a0b678521411f9a3acaee2ab279178 (patch) | |
tree | 27889d2a8360f96af63e7206330e2cfbb3ed1af0 /tests/src/com | |
parent | 187e9f4fd03bdba56ddb4ff4584800abdbef1952 (diff) | |
download | packages_apps_LegacyCamera-ce033a5871a0b678521411f9a3acaee2ab279178.zip packages_apps_LegacyCamera-ce033a5871a0b678521411f9a3acaee2ab279178.tar.gz packages_apps_LegacyCamera-ce033a5871a0b678521411f9a3acaee2ab279178.tar.bz2 |
Fix http://b/1991523 by limiting the size of a bitmap when we decode a full image.
computeSampleSize() now accepts not only targetWidthOrHeight but also the size of a bitmap.
Diffstat (limited to 'tests/src/com')
-rw-r--r-- | tests/src/com/android/camera/gallery/MockImage.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/src/com/android/camera/gallery/MockImage.java b/tests/src/com/android/camera/gallery/MockImage.java index 16d80ea..97d51b6 100644 --- a/tests/src/com/android/camera/gallery/MockImage.java +++ b/tests/src/com/android/camera/gallery/MockImage.java @@ -20,20 +20,15 @@ public class MockImage implements IImage { this.mContainer = container; } - public Bitmap fullSizeBitmap(int targetWidthOrHeight) { + public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels) { return null; } - public Bitmap fullSizeBitmap(int targetWidthOrHeight, + public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, boolean rotateAsNeeded, boolean useNative) { return null; } - public Cancelable<Bitmap> fullSizeBitmapCancelable(int targetWidthOrHeight, - BitmapFactory.Options options) { - return null; - } - public InputStream fullSizeImageData() { return null; } |