/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | ImageDecoderTest.java | 43 ImageDecoder.createSource(mContext.getResources(), R.drawable.gettysburg); in onDecodeHeader_png_returnsPopulatedData() 57 ImageDecoder.createSource(mContext.getResources(), R.drawable.animated_webp); in onDecodeHeader_animatedWebP_returnsPopulatedData() 70 ImageDecoder.Source src = ImageDecoder.createSource(new File("/this/file/does/not/exist")); in onDecodeHeader_invalidSource_throwsException() 77 ImageDecoder.createSource(mContext.getResources(), R.drawable.box); in onDecodeHeader_invalidResource_throwsException()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/ |
H A D | ImageLoader.kt | 327 val source = ImageDecoder.createSource(context.contentResolver, icon.uri) 334 ImageDecoder.createSource(it, icon.resId), 352 ImageDecoder.createSource(icon.dataBytes, icon.dataOffset, icon.dataLength), 392 ImageDecoder.createSource(context.resources, source.resId) 394 is File -> ImageDecoder.createSource(source.file) 395 is Uri -> ImageDecoder.createSource(defaultContext.contentResolver, source.uri) 398 ImageDecoder.createSource(context.resources, source.inputStream)
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/app/ |
H A D | HdrImageViewer.kt | 37 val source = ImageDecoder.createSource(contentResolver, data) 43 val source = ImageDecoder.createSource(contentResolver, uri)
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LocalImageResolver.java | 60 ImageDecoder.createSource(context.getContentResolver(), uri); in resolveImage() 147 ImageDecoder.createSource(context.getContentResolver(), uri); in resolveImage() 159 final ImageDecoder.Source source = ImageDecoder.createSource(context.getResources(), resId); in resolveImage() 166 final ImageDecoder.Source source = ImageDecoder.createSource(res, resId); in resolveImage()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | ImageDecoder.java | 961 public static Source createSource(@NonNull Resources res, int resId) in createSource() method in ImageDecoder 984 public static Source createSource(@NonNull ContentResolver cr, in createSource() method in ImageDecoder 996 public static Source createSource(@NonNull ContentResolver cr, in createSource() method in ImageDecoder 1032 public static Source createSource(@NonNull byte[] data, int offset, in createSource() method in ImageDecoder 1062 public static Source createSource(@NonNull byte[] data) { in createSource() method in ImageDecoder 1063 return createSource(data, 0, data.length); in createSource() 1084 public static Source createSource(@NonNull ByteBuffer buffer) { in createSource() method in ImageDecoder 1097 public static Source createSource(Resources res, @NonNull InputStream is) { in createSource() method in ImageDecoder 1111 public static Source createSource(Resources res, @NonNull InputStream is, int density) { in createSource() method in ImageDecoder 1128 public static Source createSource(@NonNull File file) { in createSource() method in ImageDecoder [all …]
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | BitmapTransitionView.kt | 39 ImageDecoder.createSource(context.resources, R.drawable.large_photo)) 41 ImageDecoder.createSource(context.resources, R.drawable.very_large_photo))
|
H A D | RenderEffectViewActivity.kt | 54 val imgSource = ImageDecoder.createSource(resources, R.drawable.scratches)
|
/aosp14/frameworks/base/core/tests/benchmarks/src/android/os/ |
H A D | FileUtilsBenchmark.java | 73 try (MemoryPipe in = MemoryPipe.createSource(mData); in timePipeSourceUserspace() 82 try (MemoryPipe in = MemoryPipe.createSource(mData); in timePipeSourceSplice()
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | ThumbnailUtils.java | 157 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(raw), resizer); in createAudioThumbnail() 207 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(bestFile), resizer); in createAudioThumbnail() 291 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(raw), resizer); in createImageThumbnail() 302 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(file), resizer); in createImageThumbnail() 367 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(raw), resizer); in createVideoThumbnail()
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | GainmapDecodeTest.kt | 64 val source = ImageDecoder.createSource(resources.assets,
|
H A D | GainmapTransformsTest.kt | 35 val source = ImageDecoder.createSource(resources.assets,
|
H A D | GainmapImage.kt | 117 val source = ImageDecoder.createSource(resources.assets,
|
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 169 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(res, stream), in BitmapDrawable() 202 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(res, is), in BitmapDrawable() 845 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
|
H A D | Drawable.java | 1291 source = ImageDecoder.createSource(res, is, density); in getBitmapDrawable() 1293 source = ImageDecoder.createSource(res, is); in getBitmapDrawable()
|
H A D | AnimatedImageDrawable.java | 233 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
|
H A D | NinePatchDrawable.java | 439 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 221 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(() -> { in loadThumbnail()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | FileUtilsTest.java | 183 try (MemoryPipe in = MemoryPipe.createSource(expected); in testCopy_PipeToFile() 200 try (MemoryPipe in = MemoryPipe.createSource(expected); in testCopy_PipeToPipe() 221 try (MemoryPipe in = MemoryPipe.createSource(source); in testCopy_ShortPipeToFile()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/ |
H A D | WallpaperCropper.java | 236 ImageDecoder.createSource(wallpaper.getWallpaperFile()); in generateCropInternal()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | SmartReplyStateInflater.kt | 312 val source = ImageDecoder.createSource(packageContext.contentResolver, icon.uri)
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 1017 ImageDecoder.Source src = ImageDecoder.createSource(mContext.getContentResolver(),
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/ |
H A D | MediaDataManagerTest.kt | 2235 whenever(ImageDecoder.createSource(any(), eq(uri))).thenReturn(imageSource) 2265 whenever(ImageDecoder.createSource(any(), eq(uri))).thenReturn(imageSource)
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 1608 public static MemoryPipe createSource(byte[] data) throws IOException { in createSource() method in FileUtils.MemoryPipe
|
/aosp14/frameworks/base/core/java/android/content/res/ |
H A D | ResourcesImpl.java | 829 ImageDecoder.Source src = ImageDecoder.createSource(wrapper, fis); in decodeImageDrawable()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/pipeline/ |
H A D | MediaDataManager.kt | 1311 val source = ImageDecoder.createSource(context.contentResolver, uri)
|