/frameworks/layoutlib/bridge/src/android/graphics/ |
D | ImageDecoder.java | 45 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/libs/hwui/hwui/ |
D | ImageDecoder.cpp | 27 sk_sp<SkColorSpace> ImageDecoder::getDefaultColorSpace() const { in getDefaultColorSpace() 40 ImageDecoder::ImageDecoder(std::unique_ptr<SkAndroidCodec> codec, sk_sp<SkPngChunkReader> peeker) in ImageDecoder() function in ImageDecoder 52 SkAlphaType ImageDecoder::getOutAlphaType() const { in getOutAlphaType() 57 bool ImageDecoder::setTargetSize(int width, int height) { in setTargetSize() 93 bool ImageDecoder::setCropRect(const SkIRect* crop) { in setCropRect() 113 bool ImageDecoder::setOutColorType(SkColorType colorType) { in setOutColorType() 137 bool ImageDecoder::setUnpremultipliedRequired(bool required) { in setUnpremultipliedRequired() 145 void ImageDecoder::setOutColorSpace(sk_sp<SkColorSpace> colorSpace) { in setOutColorSpace() 149 sk_sp<SkColorSpace> ImageDecoder::getOutputColorSpace() const { in getOutputColorSpace() 155 SkImageInfo ImageDecoder::getOutputInfo() const { in getOutputInfo() [all …]
|
D | ImageDecoder.h | 31 class ANDROID_API ImageDecoder { 36 ImageDecoder(std::unique_ptr<SkAndroidCodec> codec, 66 ImageDecoder(const ImageDecoder&) = delete; 67 ImageDecoder& operator=(const ImageDecoder&) = delete;
|
/frameworks/base/graphics/java/android/graphics/ |
D | ImageDecoder.java | 173 public final class ImageDecoder implements AutoCloseable { class 217 abstract ImageDecoder createImageDecoder(boolean preferAnimation) throws IOException; in createImageDecoder() 231 public ImageDecoder createImageDecoder(boolean preferAnimation) throws IOException { in createImageDecoder() 243 public ImageDecoder createImageDecoder(boolean preferAnimation) throws IOException { in createImageDecoder() 270 public ImageDecoder createImageDecoder(boolean preferAnimation) throws IOException { in createImageDecoder() 299 private static ImageDecoder createFromFile(@NonNull File file, in createFromFile() 309 ImageDecoder decoder = null; in createFromFile() 324 private static ImageDecoder createFromStream(@NonNull InputStream is, in createFromStream() 328 ImageDecoder decoder = null; in createFromStream() 347 private static ImageDecoder createFromAssetFileDescriptor(@NonNull AssetFileDescriptor assetFd, in createFromAssetFileDescriptor() [all …]
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 32 import android.graphics.ImageDecoder; 33 import android.graphics.ImageDecoder.ImageInfo; 34 import android.graphics.ImageDecoder.Source; 83 private static class Resizer implements ImageDecoder.OnHeaderDecodedListener { 93 public void onHeaderDecoded(ImageDecoder decoder, ImageInfo info, Source source) { in onHeaderDecoded() 99 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in onHeaderDecoded() 157 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(raw), resizer); in createAudioThumbnail() 207 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(bestFile), resizer); in createAudioThumbnail() 290 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(raw), resizer); in createImageThumbnail() 291 } catch (ImageDecoder.DecodeException e) { in createImageThumbnail() [all …]
|
/frameworks/base/native/graphics/jni/ |
D | imagedecoder.cpp | 82 *outDecoder = reinterpret_cast<AImageDecoder*>(new ImageDecoder(std::move(androidCodec))); in createFromStream() 141 static ImageDecoder* toDecoder(AImageDecoder* d) { in toDecoder() 142 return reinterpret_cast<ImageDecoder*>(d); in toDecoder() 145 static const ImageDecoder* toDecoder(const AImageDecoder* d) { in toDecoder() 146 return reinterpret_cast<const ImageDecoder*>(d); in toDecoder() 186 ImageDecoder* imageDecoder = toDecoder(decoder); in AImageDecoder_setDataSpace() 195 static const ImageDecoder* toDecoder(const AImageDecoderHeaderInfo* info) { in toDecoder() 196 return reinterpret_cast<const ImageDecoder*>(info); in toDecoder() 228 const ImageDecoder* imageDecoder = toDecoder(info); in AImageDecoderHeaderInfo_getDataSpace() 335 ImageDecoder* imageDecoder = toDecoder(decoder); in AImageDecoder_decodeImage()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ImageUtils.java | 24 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/ |
D | ContentResolverTest.java | 32 import android.graphics.ImageDecoder; 114 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Normal() 129 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Scaling() 144 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Aspect() 159 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Tiny() 175 ImageDecoder.ALLOCATOR_SOFTWARE); in testLoadThumbnail_Large()
|
/frameworks/base/libs/hwui/jni/ |
D | ImageDecoder.cpp | 148 ImageDecoder* decoder = new ImageDecoder(std::move(androidCodec), std::move(peeker)); in native_create() 242 auto* decoder = reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nDecodeBitmap() 465 auto* decoder = reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nGetSampledSize() 472 auto* decoder = reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nGetPadding() 477 delete reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nClose() 481 auto* decoder = reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nGetMimeType() 486 auto* codec = reinterpret_cast<ImageDecoder*>(nativePtr)->mCodec.get(); in ImageDecoder_nGetColorSpace()
|
D | AnimatedImageDrawable.cpp | 45 auto* imageDecoder = reinterpret_cast<ImageDecoder*>(nativeImageDecoder); in AnimatedImageDrawable_nCreate()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | BitmapDrawable.java | 32 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()
|
D | AnimatedImageDrawable.java | 30 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()
|
D | Drawable.java | 38 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()
|
D | NinePatchDrawable.java | 32 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/ |
D | FrameDecoder.h | 148 struct ImageDecoder : public FrameDecoder { struct 149 ImageDecoder(
|
/frameworks/base/non-updatable-api/ |
D | removed.txt | 158 public final class ImageDecoder implements java.lang.AutoCloseable { 164 method @Deprecated public android.graphics.ImageDecoder setAsAlphaMask(boolean); 166 method @Deprecated public android.graphics.ImageDecoder setDecodeAsAlphaMask(boolean); 167 method @Deprecated public android.graphics.ImageDecoder setMutable(boolean); 168 method @Deprecated public android.graphics.ImageDecoder setRequireUnpremultiplied(boolean); 169 method @Deprecated public android.graphics.ImageDecoder setResize(int, int); 170 method @Deprecated public android.graphics.ImageDecoder setResize(int); 176 @Deprecated public static class ImageDecoder.IncompleteException extends java.io.IOException { 177 ctor public ImageDecoder.IncompleteException();
|
/frameworks/av/media/libstagefright/ |
D | FrameDecoder.cpp | 715 ImageDecoder::ImageDecoder( in ImageDecoder() function in android::ImageDecoder 731 sp<AMessage> ImageDecoder::onGetFormatAndSeekOptions( in onGetFormatAndSeekOptions() 804 status_t ImageDecoder::onExtractRect(FrameRect *rect) { in onExtractRect() 843 status_t ImageDecoder::onOutputReceived( in onOutputReceived()
|
/frameworks/base/api/ |
D | removed.txt | 158 public final class ImageDecoder implements java.lang.AutoCloseable { 164 method @Deprecated public android.graphics.ImageDecoder setAsAlphaMask(boolean); 166 method @Deprecated public android.graphics.ImageDecoder setDecodeAsAlphaMask(boolean); 167 method @Deprecated public android.graphics.ImageDecoder setMutable(boolean); 168 method @Deprecated public android.graphics.ImageDecoder setRequireUnpremultiplied(boolean); 169 method @Deprecated public android.graphics.ImageDecoder setResize(int, int); 170 method @Deprecated public android.graphics.ImageDecoder setResize(int); 176 @Deprecated public static class ImageDecoder.IncompleteException extends java.io.IOException { 177 ctor public ImageDecoder.IncompleteException();
|
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 33 import android.graphics.ImageDecoder; 1009 ImageDecoder.Source src = ImageDecoder.createSource(mContext.getContentResolver(), 1011 return ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { 1012 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | MediaDataManager.kt | 29 import android.graphics.ImageDecoder in <lambda>() 460 val source = ImageDecoder.createSource(context.getContentResolver(), uri) in loadBitmapFromUri() 462 ImageDecoder.decodeBitmap(source) { in loadBitmapFromUri()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 45 import android.graphics.ImageDecoder; 499 ImageDecoder.Source src = ImageDecoder.createSource(baos.toByteArray()); in getCurrentWallpaperLocked() 500 return ImageDecoder.decodeBitmap(src, ((decoder, info, source) -> { in getCurrentWallpaperLocked() 2122 void doColorManagement(ImageDecoder decoder, ImageDecoder.ImageInfo info) { in doColorManagement()
|
/frameworks/base/core/java/android/content/res/ |
D | ResourcesImpl.java | 37 import android.graphics.ImageDecoder; 805 ImageDecoder.Source src = new ImageDecoder.AssetInputStreamSource(ais, in decodeImageDrawable() 808 return ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in decodeImageDrawable() 809 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in decodeImageDrawable()
|
/frameworks/base/core/java/android/content/ |
D | ContentResolver.java | 44 import android.graphics.ImageDecoder; 45 import android.graphics.ImageDecoder.ImageInfo; 46 import android.graphics.ImageDecoder.Source; 4023 return loadThumbnail(this, uri, size, signal, ImageDecoder.ALLOCATOR_SOFTWARE); 4039 Bitmap bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(() -> { 4045 }), (ImageDecoder decoder, ImageInfo info, Source source) -> {
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightMetadataRetriever.cpp | 231 sp<ImageDecoder> decoder = new ImageDecoder(componentName, trackMeta, source); in getImageInternal()
|
/frameworks/base/libs/hwui/ |
D | Android.bp | 278 "jni/ImageDecoder.cpp", 399 "hwui/ImageDecoder.cpp",
|