Home
last modified time | relevance | path

Searched refs:ImageDecoder (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/layoutlib/bridge/src/android/graphics/
DImageDecoder.java45 public final class ImageDecoder implements AutoCloseable { class
72 abstract ImageDecoder createImageDecoder() throws IOException; in createImageDecoder()
86 public ImageDecoder createImageDecoder() throws IOException { in createImageDecoder()
87 return new ImageDecoder(); in createImageDecoder()
98 public ImageDecoder createImageDecoder() throws IOException { in createImageDecoder()
99 return new ImageDecoder(); in createImageDecoder()
113 public ImageDecoder createImageDecoder() throws IOException { in createImageDecoder()
114 return new ImageDecoder(); in createImageDecoder()
142 public ImageDecoder createImageDecoder() throws IOException { in createImageDecoder()
143 return new ImageDecoder(); in createImageDecoder()
[all …]
/frameworks/base/core/jni/android/graphics/
DImageDecoder.cpp62 static jobject throw_exception(JNIEnv* env, ImageDecoder::Error error, const char* msg, in throw_exception()
83 return throw_exception(env, ImageDecoder::kSourceMalformedData, "Failed to create a stream", in native_create()
86 std::unique_ptr<ImageDecoder> decoder(new ImageDecoder); in native_create()
90 return throw_exception(env, ImageDecoder::kSourceException, "", jexception, source); in native_create()
95 return throw_exception(env, ImageDecoder::kSourceIncomplete, "", nullptr, source); in native_create()
100 return throw_exception(env, ImageDecoder::kSourceMalformedData, msg.c_str(), in native_create()
108 return throw_exception(env, ImageDecoder::kSourceException, "", jexception, source); in native_create()
114 return throw_exception(env, ImageDecoder::kSourceMalformedData, "", nullptr, source); in native_create()
132 return throw_exception(env, ImageDecoder::kSourceMalformedData, in ImageDecoder_nCreateFd()
140 return throw_exception(env, ImageDecoder::kSourceMalformedData, "Could not open file", in ImageDecoder_nCreateFd()
[all …]
DImageDecoder.h27 struct ImageDecoder { struct
53 ImageDecoder() in ImageDecoder() argument
DAnimatedImageDrawable.cpp45 auto* imageDecoder = reinterpret_cast<ImageDecoder*>(nativeImageDecoder); in AnimatedImageDrawable_nCreate()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java173 public final class ImageDecoder implements AutoCloseable { class
217 abstract ImageDecoder createImageDecoder() throws IOException; in createImageDecoder()
231 public ImageDecoder createImageDecoder() throws IOException { in createImageDecoder()
243 public ImageDecoder createImageDecoder() throws IOException { in createImageDecoder()
270 public ImageDecoder createImageDecoder() throws IOException { in createImageDecoder()
294 private static ImageDecoder createFromFile(@NonNull File file, in createFromFile()
304 ImageDecoder decoder = null; in createFromFile()
319 private static ImageDecoder createFromStream(@NonNull InputStream is, in createFromStream()
323 ImageDecoder decoder = null; in createFromStream()
342 private static ImageDecoder createFromAssetFileDescriptor(@NonNull AssetFileDescriptor assetFd, in createFromAssetFileDescriptor()
[all …]
/frameworks/base/media/java/android/media/
DThumbnailUtils.java32 import android.graphics.ImageDecoder;
33 import android.graphics.ImageDecoder.ImageInfo;
34 import android.graphics.ImageDecoder.Source;
91 private static class Resizer implements ImageDecoder.OnHeaderDecodedListener {
101 public void onHeaderDecoded(ImageDecoder decoder, ImageInfo info, Source source) { in onHeaderDecoded()
107 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in onHeaderDecoded()
159 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(raw), resizer); in createAudioThumbnail()
209 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(bestFile), resizer); in createAudioThumbnail()
286 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(raw), resizer); in createImageThumbnail()
287 } catch (ImageDecoder.DecodeException e) { in createImageThumbnail()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java24 import android.graphics.ImageDecoder;
25 import android.graphics.ImageDecoder.ImageInfo;
26 import android.graphics.ImageDecoder.Source;
206 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(() -> { in loadThumbnail()
208 }), (ImageDecoder decoder, ImageInfo info, Source source) -> { in loadThumbnail()
209 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in loadThumbnail()
/frameworks/base/core/tests/coretests/src/android/content/
DContentResolverTest.java29 import android.graphics.ImageDecoder;
109 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Normal()
124 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Scaling()
139 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Aspect()
154 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Tiny()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java32 import android.graphics.ImageDecoder;
169 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(res, stream), in BitmapDrawable()
171 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in BitmapDrawable()
202 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(res, is), in BitmapDrawable()
204 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in BitmapDrawable()
845 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
846 bitmap = ImageDecoder.decodeBitmap(source, (decoder, info, src) -> { in updateStateFromTypedArray()
847 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in updateStateFromTypedArray()
DAnimatedImageDrawable.java30 import android.graphics.ImageDecoder;
233 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
234 drawable = ImageDecoder.decodeDrawable(source, (decoder, info, src) -> { in updateStateFromTypedArray()
293 @Nullable ImageDecoder decoder, int width, int height, in AnimatedImageDrawable()
577 @Nullable ImageDecoder decoder, int width, int height, long colorSpaceHandle, in nCreate()
DDrawable.java38 import android.graphics.ImageDecoder;
1289 ImageDecoder.Source source = null; in getBitmapDrawable()
1297 source = ImageDecoder.createSource(res, is, density); in getBitmapDrawable()
1299 source = ImageDecoder.createSource(res, is); in getBitmapDrawable()
1302 return ImageDecoder.decodeDrawable(source, (decoder, info, src) -> { in getBitmapDrawable()
1303 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in getBitmapDrawable()
1305 return e.getError() == ImageDecoder.DecodeException.SOURCE_INCOMPLETE; in getBitmapDrawable()
DNinePatchDrawable.java32 import android.graphics.ImageDecoder;
439 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
440 bitmap = ImageDecoder.decodeBitmap(source, (decoder, info, src) -> { in updateStateFromTypedArray()
442 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in updateStateFromTypedArray()
/frameworks/av/media/libstagefright/include/
DStagefrightMetadataRetriever.h29 struct ImageDecoder;
65 sp<ImageDecoder> mImageDecoder;
DFrameDecoder.h144 struct ImageDecoder : public FrameDecoder { struct
145 ImageDecoder(
/frameworks/av/media/libstagefright/
DFrameDecoder.cpp563 ImageDecoder::ImageDecoder( in ImageDecoder() function in android::ImageDecoder
579 sp<AMessage> ImageDecoder::onGetFormatAndSeekOptions( in onGetFormatAndSeekOptions()
652 status_t ImageDecoder::onExtractRect(FrameRect *rect) { in onExtractRect()
691 status_t ImageDecoder::onOutputReceived( in onOutputReceived()
DStagefrightMetadataRetriever.cpp228 sp<ImageDecoder> decoder = new ImageDecoder(componentName, trackMeta, source); in getImageInternal()
/frameworks/base/core/java/android/widget/
DImageView.java33 import android.graphics.ImageDecoder;
1007 ImageDecoder.Source src = ImageDecoder.createSource(mContext.getContentResolver(),
1009 return ImageDecoder.decodeDrawable(src, (decoder, info, s) -> {
1010 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE);
/frameworks/base/api/
Dremoved.txt208 public final class ImageDecoder implements java.lang.AutoCloseable {
214 method @Deprecated public android.graphics.ImageDecoder setAsAlphaMask(boolean);
216 method @Deprecated public android.graphics.ImageDecoder setDecodeAsAlphaMask(boolean);
217 method @Deprecated public android.graphics.ImageDecoder setMutable(boolean);
218 method @Deprecated public android.graphics.ImageDecoder setRequireUnpremultiplied(boolean);
219 method @Deprecated public android.graphics.ImageDecoder setResize(int, int);
220 method @Deprecated public android.graphics.ImageDecoder setResize(int);
226 @Deprecated public static class ImageDecoder.IncompleteException extends java.io.IOException {
227 ctor public ImageDecoder.IncompleteException();
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java37 import android.graphics.ImageDecoder;
791 ImageDecoder.Source src = new ImageDecoder.AssetInputStreamSource(ais, in decodeImageDrawable()
794 return ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in decodeImageDrawable()
795 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in decodeImageDrawable()
/frameworks/base/core/java/android/content/
DContentResolver.java42 import android.graphics.ImageDecoder;
43 import android.graphics.ImageDecoder.ImageInfo;
44 import android.graphics.ImageDecoder.Source;
3573 return loadThumbnail(this, uri, size, signal, ImageDecoder.ALLOCATOR_SOFTWARE);
3589 Bitmap bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(() -> {
3595 }), (ImageDecoder decoder, ImageInfo info, Source source) -> {
/frameworks/base/core/jni/
DAndroid.bp134 "android/graphics/ImageDecoder.cpp",
/frameworks/base/core/java/android/provider/
DDocumentsContract.java36 import android.graphics.ImageDecoder;
1300 ImageDecoder.ALLOCATOR_SOFTWARE); in getDocumentThumbnail()
DMediaStore.java45 import android.graphics.ImageDecoder;
/frameworks/base/config/
Ddirty-image-objects93 android.graphics.ImageDecoder
Dpreloaded-classes1194 android.graphics.ImageDecoder$AssetInputStreamSource
1195 android.graphics.ImageDecoder$DecodeException
1196 android.graphics.ImageDecoder$ImageInfo
1197 android.graphics.ImageDecoder$InputStreamSource
1198 android.graphics.ImageDecoder$OnHeaderDecodedListener
1199 android.graphics.ImageDecoder$Source
1200 android.graphics.ImageDecoder

12