Home
last modified time | relevance | path

Searched refs:createSource (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/graphics/
DImageDecoderTest.java43 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/
DImageLoader.kt327 val source = ImageDecoder.createSource(context.contentResolver, icon.uri) in <lambda>()
334 ImageDecoder.createSource(it, icon.resId), in <lambda>()
352 ImageDecoder.createSource(icon.dataBytes, icon.dataOffset, icon.dataLength), in <lambda>()
397 val source = ImageDecoder.createSource(context.contentResolver, icon.uri) in <lambda>()
446 ImageDecoder.createSource(context.resources, source.resId) in <lambda>()
448 is File -> ImageDecoder.createSource(source.file) in <lambda>()
449 is Uri -> ImageDecoder.createSource(defaultContext.contentResolver, source.uri) in <lambda>()
452 ImageDecoder.createSource(context.resources, source.inputStream) in <lambda>()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/app/
DHdrImageViewer.kt37 val source = ImageDecoder.createSource(contentResolver, data) in onCreate()
43 val source = ImageDecoder.createSource(contentResolver, uri) in onCreate()
/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java60 ImageDecoder.createSource(context.getContentResolver(), uri); in resolveImage()
151 ImageDecoder.createSource(context.getContentResolver(), uri); in resolveImage()
163 final ImageDecoder.Source source = ImageDecoder.createSource(context.getResources(), resId); in resolveImage()
170 final ImageDecoder.Source source = ImageDecoder.createSource(res, resId); in resolveImage()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DCanvasPerfTest.java113 ImageDecoder.createSource(context.getResources(), R.drawable.fountain_night), in testCreateScaledSrgbBitmap()
134 ImageDecoder.createSource(context.getResources(), R.drawable.fountain_night), in testCreateScaledP3Bitmap()
155 ImageDecoder.createSource(context.getResources(), R.drawable.fountain_night), in testCreateScaledBitmapWithGainmap()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DBitmapTransitionView.kt39 ImageDecoder.createSource(context.resources, R.drawable.large_photo)) in <lambda>()
41 ImageDecoder.createSource(context.resources, R.drawable.very_large_photo)) in <lambda>()
DRenderEffectViewActivity.kt54 val imgSource = ImageDecoder.createSource(resources, R.drawable.scratches) in <lambda>()
/frameworks/base/core/tests/benchmarks/src/android/os/
DFileUtilsBenchmark.java73 try (MemoryPipe in = MemoryPipe.createSource(mData); in timePipeSourceUserspace()
82 try (MemoryPipe in = MemoryPipe.createSource(mData); in timePipeSourceSplice()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java937 public static Source createSource(@NonNull Resources res, int resId) in createSource() method in ImageDecoder
960 public static Source createSource(@NonNull ContentResolver cr, in createSource() method in ImageDecoder
972 public static Source createSource(@NonNull ContentResolver cr, in createSource() method in ImageDecoder
982 public static Source createSource(@NonNull AssetManager assets, @NonNull String fileName) { in createSource() method in ImageDecoder
1008 public static Source createSource(@NonNull byte[] data, int offset, in createSource() method in ImageDecoder
1038 public static Source createSource(@NonNull byte[] data) { in createSource() method in ImageDecoder
1039 return createSource(data, 0, data.length); in createSource()
1060 public static Source createSource(@NonNull ByteBuffer buffer) { in createSource() method in ImageDecoder
1073 public static Source createSource(Resources res, @NonNull InputStream is) { in createSource() method in ImageDecoder
1087 public static Source createSource(Resources res, @NonNull InputStream is, int density) { in createSource() method in ImageDecoder
[all …]
/frameworks/base/media/java/android/media/
DThumbnailUtils.java157 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()
/frameworks/av/media/libstagefright/tests/fuzzers/
DWriterFuzzer.cpp51 sp<MediaSource> source = createSource(writerType, &fdp); in LLVMFuzzerTestOneInput()
DFuzzerMediaUtility.h94 sp<FuzzSource> createSource(StandardWriters writerType, FuzzedDataProvider* fdp);
DFuzzerMediaUtility.cpp132 sp<FuzzSource> createSource(StandardWriters writerType, FuzzedDataProvider* fdp) { in createSource() function
/frameworks/av/cmds/stagefright/
Drecord.cpp123 sp<MediaSource> createSource(const char *filename) {
192 sp<MediaSource> source = createSource(argv[1]);
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBitmapTest.java103 Source source = ImageDecoder.createSource(context.getResources(), in testImageDecoder()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DGainmapTransformsTest.kt35 val source = ImageDecoder.createSource(resources.assets, in <lambda>()
DGainmapDecodeTest.kt64 val source = ImageDecoder.createSource(resources.assets, in decode()
DGainmapImage.kt110 val source = ImageDecoder.createSource(resources.assets, in <lambda>()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java221 return ImageDecoder.decodeBitmap(ImageDecoder.createSource(() -> { in loadThumbnail()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java176 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(res, stream), in BitmapDrawable()
209 bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(res, is), in BitmapDrawable()
852 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
DDrawable.java1291 source = ImageDecoder.createSource(res, is, density); in getBitmapDrawable()
1293 source = ImageDecoder.createSource(res, is); in getBitmapDrawable()
DAnimatedImageDrawable.java233 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
DNinePatchDrawable.java439 ImageDecoder.Source source = ImageDecoder.createSource(r, is, density); in updateStateFromTypedArray()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java191 try (MemoryPipe in = MemoryPipe.createSource(expected); in testCopy_PipeToFile()
209 try (MemoryPipe in = MemoryPipe.createSource(expected); in testCopy_PipeToPipe()
231 try (MemoryPipe in = MemoryPipe.createSource(source); in testCopy_ShortPipeToFile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyStateInflater.kt312 val source = ImageDecoder.createSource(packageContext.contentResolver, icon.uri) in inflateActionButton()

12