/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactoryTest.java | 104 private Resources mRes; field in BitmapFactoryTest 114 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup() 116 mTargetDensity = mRes.getDisplayMetrics().densityDpi; in setup() 132 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, in testDecodeResource1() 139 assertNull(BitmapFactory.decodeResource(mRes, R.drawable.start, mOpt2)); in testDecodeResource1() 144 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); in testDecodeResource2() 156 Bitmap b = BitmapFactory.decodeResourceStream(mRes, value, is, r, mOpt1); in testDecodeResourceStream() 389 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseBasic() 396 Bitmap pass = BitmapFactory.decodeResource(mRes, R.drawable.pass, options); in testDecodeReuseBasic() 410 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseAttempt() [all …]
|
D | NinePatchTest.java | 56 private Resources mRes; field in NinePatchTest 61 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup() 63 mOptNoScale.inDensity = mOptNoScale.inTargetDensity = mRes.getDisplayMetrics().densityDpi; in setup() 64 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.opaque, mOptNoScale); in setup() 114 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale); in testDraw() 123 expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled2, mOptNoScale); in testDraw() 176 BitmapFactory.decodeResource(mRes, R.drawable.transparent_border, mOptNoScale); in testHasAlpha() 211 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.transparent_border, mOptNoScale); in testGetTransparentRegion() 229 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.transparent_right, mOptNoScale); in testGetTransparentRegion()
|
D | BitmapTest.java | 83 private Resources mRes; field in BitmapTest 105 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup() 108 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in setup() 324 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testCreateBitmapFromHardwareBitmap() 617 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testEraseColorOnImmutable() 625 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testEraseColorLongOnImmutable() 675 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testGetColorHardware() 842 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testExtractAlpha() 861 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testExtractAlphaWithPaintAndOffset() 903 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testGetConfig() [all …]
|
D | ImageDecoderTest.java | 76 private Resources mRes; field in ImageDecoderTest 118 InputStream input = mRes.openRawResource(resId); in writeToStream() 199 .authority(mRes.getResourcePackageName(resId)) in getAsResourceUri() 200 .appendPath(mRes.getResourceTypeName(resId)) in getAsResourceUri() 201 .appendPath(mRes.getResourceEntryName(resId)) in getAsResourceUri() 235 String name = mRes.getResourceEntryName(resId); in testUris() 260 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup() 410 Bitmap reference = BitmapFactory.decodeResource(mRes, in testSetAllocatorDecodeBitmap() 556 InputStream is = mRes.openRawResource(R.drawable.ninepatch_nodpi, value); in testNinepatchWithDensityNone() 558 Drawable dr = Drawable.createFromResourceStream(mRes, value, is, null, null); in testNinepatchWithDensityNone() [all …]
|
D | BitmapRegionDecoderTest.java | 133 private Resources mRes; field in BitmapRegionDecoderTest 137 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup() 704 return mRes.openRawResource(resId); in obtainInputStream() 708 return mRes.getAssets().open(assetName); in obtainInputStream()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 64 private Resources mRes; field in AnimatedImageDrawableTest 83 .authority(mRes.getResourcePackageName(resId)) in getAsResourceUri() 84 .appendPath(mRes.getResourceTypeName(resId)) in getAsResourceUri() 85 .appendPath(mRes.getResourceEntryName(resId)) in getAsResourceUri() 91 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup() 103 AnimatedImageDrawable aid1 = (AnimatedImageDrawable) mRes.getDrawable(R.drawable.animated); in testMutate() 104 AnimatedImageDrawable aid2 = (AnimatedImageDrawable) mRes.getDrawable(R.drawable.animated); in testMutate() 115 mRes.getDrawable(R.drawable.animated).setAlpha(originalAlpha); in testMutate() 527 XmlPullParser parser = mRes.getXml(R.drawable.animatedimagedrawable_tag); in testCreateFromXml() 528 Drawable drawable = Drawable.createFromXml(mRes, parser); in testCreateFromXml() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareBitmapTests.java | 61 private Resources mRes; field in HardwareBitmapTests 73 mRes = getActivity().getResources(); in setup() 79 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testDecodeResource() 109 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testReadbackThroughPicture() 129 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testReadbackThroughPictureNoEndRecording() 151 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); in testCreateScaledBitmapFromPicture() 170 InputStream inputStream = mRes.openRawResource(R.drawable.robot); in testBitmapRegionDecode() 210 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot); in testSetDensity() 214 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testSetDensity() 224 InputStream is = mRes.openRawResource(R.drawable.blue_padded_square); in testNinePatch() [all …]
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | RSBase.java | 34 Resources mRes; field in RSBase 81 mRes = mCtx.getResources(); in setUp()
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | RSBase.java | 34 Resources mRes; field in RSBase 86 mRes = mCtx.getResources(); in setUp()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | RSBase.java | 35 Resources mRes; field in RSBase 93 mRes = mCtx.getResources(); in setUp()
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSCppTest.java | 34 Resources mRes; field in RSCppTest 114 mRes = mCtx.getResources(); in setUp()
|