Home
last modified time | relevance | path

Searched refs:decodeResource (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/graphics/
DGraphicsPerformanceTests.java142 BitmapFactory.decodeResource(mResources, R.drawable.test16x12); in testDecodeBitmap()
143 BitmapFactory.decodeResource(mResources, R.drawable.test32x24); in testDecodeBitmap()
144 BitmapFactory.decodeResource(mResources, R.drawable.test64x48); in testDecodeBitmap()
145 BitmapFactory.decodeResource(mResources, R.drawable.test128x96); in testDecodeBitmap()
146 BitmapFactory.decodeResource(mResources, R.drawable.test256x192); in testDecodeBitmap()
147 BitmapFactory.decodeResource(mResources, R.drawable.test320x240); in testDecodeBitmap()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DBitmapsAlphaActivity.java52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
54 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
58 mBitmap3 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset3, opts); in BitmapsView()
DBitmapsActivity.java63 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
64 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
71 … Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts); in BitmapsView()
DMipMapActivity.java52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.very_large_photo); in BitmapsView()
53 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.very_large_photo); in BitmapsView()
DBitmapsRectActivity.java50 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
51 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
DColorFiltersActivity.java52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
53 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
DAlpha8BitmapActivity.java49 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.spot_mask); in BitmapsView()
55 texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
DBitmapsSkewActivity.java44 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
DBitmaps3dActivity.java51 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
DBitmapMeshLayerActivity.java47 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapMeshView()
DColorFiltersMutateActivity.java72 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
73 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in BitmapsView()
DBitmapMeshActivity.java46 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapMeshView()
DClearActivity.java48 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2); in PathsView()
DQuickRejectActivity.java45 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in QuickRejectView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/
DImageLoaderTest.kt46 BitmapFactory.decodeResource( in setUp()
110 BitmapFactory.decodeResource( in validBitmapResource_loadDrawable_returnsBitmapDrawable()
129 BitmapFactory.decodeResource( in validBitmapResource_loadBitmap_returnsBitmapDrawable()
142 BitmapFactory.decodeResource( in validBitmapUri_returnsBitmapDrawable()
174 BitmapFactory.decodeResource( in validBitmapIcon_returnsBitmapDrawable()
186 BitmapFactory.decodeResource( in validBitmapIcon_loadSize_returnsNull()
197 BitmapFactory.decodeResource( in validUriIcon_returnsBitmapDrawable()
222 BitmapFactory.decodeResource( in validDataIcon_returnsBitmapDrawable()
241 BitmapFactory.decodeResource( in validDataIcon_loadSize_returnsNull()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLocalImageResolverTest.java95 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeBitmapIcon_defaultSize_resizeToDefaultSize()
111 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize()
176 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeBitmapIcon_passedNegativeWidth_dontResize()
189 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeBitmapIcon_passedNegativeHeight_dontResize()
213 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeBitmapIcon_passedSize_resizeToDefinedSize()
225 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.big_a)); in resolveImage_largeAdaptiveBitmapIcon_passedSize_resizeToDefinedSize()
249 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.test32x24)); in resolveImage_smallBitmapIcon_defaultSize_untouched()
264 BitmapFactory.decodeResource(mContext.getResources(), R.drawable.test32x24)); in resolveImage_smallAdaptiveBitmapIcon_defaultSize_untouched()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/
DBitmapUtils.kt37 return BitmapFactory.decodeResource(context.resources, bitmapResourceId, options) in loadBitmap()
45 val bitmap = BitmapFactory.decodeResource(context.resources, bitmapResourceId, options) in getBitmapSize()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java125 BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
132 return BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/materials/
DGlassActivity.kt80 background = BitmapFactory.decodeResource(resources, R.drawable.background1) in <lambda>()
142 background = BitmapFactory.decodeResource(resources, resource) in <lambda>()
/frameworks/rs/tests/java_api/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
DHelloComputeNDK.java59 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java611 public static Bitmap decodeResource(Resources res, int id, Options opts) { in decodeResource() method in BitmapFactory
649 public static Bitmap decodeResource(Resources res, int id) { in decodeResource() method in BitmapFactory
650 return decodeResource(res, id, null); in decodeResource()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/
DUserIconDrawableTest.java44 final Bitmap b = BitmapFactory.decodeResource( in getConstantState_shouldNotBeNull()
/frameworks/layoutlib/bridge/src/android/graphics/
DImageDecoder_Delegate.java45 return BitmapFactory.decodeResource(source.mResources, source.mResId); in decodeBitmapImpl()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DOpenGLUtils.java86 BitmapFactory.decodeResource( in createTexture()
/frameworks/base/media/mca/samples/CameraEffectsRecordingSample/java/android/media/filterfw/samples/
DCameraEffectsRecordingSample.java71 Bitmap sourceBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.android); in createGraph()

123