Loading src/com/android/gallery3d/data/DecodeUtils.java +13 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import android.os.ParcelFileDescriptor; import java.io.FileDescriptor; import java.io.FileInputStream; import java.io.InputStream; public class DecodeUtils { private static final String TAG = "DecodeService"; Loading Loading @@ -191,6 +192,18 @@ public class DecodeUtils { } } public static BitmapRegionDecoder requestCreateBitmapRegionDecoder( JobContext jc, InputStream is, boolean shareable) { try { return BitmapRegionDecoder.newInstance(is, shareable); } catch (Throwable t) { // We often cancel the creating of bitmap region decoder, // so just log one line. Log.w(TAG, "requestCreateBitmapRegionDecoder: " + t); return null; } } public static BitmapRegionDecoder requestCreateBitmapRegionDecoder( JobContext jc, Uri uri, ContentResolver resolver, boolean shareable) { Loading Loading
src/com/android/gallery3d/data/DecodeUtils.java +13 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import android.os.ParcelFileDescriptor; import java.io.FileDescriptor; import java.io.FileInputStream; import java.io.InputStream; public class DecodeUtils { private static final String TAG = "DecodeService"; Loading Loading @@ -191,6 +192,18 @@ public class DecodeUtils { } } public static BitmapRegionDecoder requestCreateBitmapRegionDecoder( JobContext jc, InputStream is, boolean shareable) { try { return BitmapRegionDecoder.newInstance(is, shareable); } catch (Throwable t) { // We often cancel the creating of bitmap region decoder, // so just log one line. Log.w(TAG, "requestCreateBitmapRegionDecoder: " + t); return null; } } public static BitmapRegionDecoder requestCreateBitmapRegionDecoder( JobContext jc, Uri uri, ContentResolver resolver, boolean shareable) { Loading