Home
last modified time | relevance | path

Searched refs:mRes (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareBitmapTests.java61 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()
203 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot); in testSetDensity()
207 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testSetDensity()
217 InputStream is = mRes.openRawResource(R.drawable.blue_padded_square); in testNinePatch()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java129 private Resources mRes; field in BitmapFactoryTest
139 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup()
141 mTargetDensity = mRes.getDisplayMetrics().densityDpi; in setup()
157 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, in testDecodeResource1()
164 assertNull(BitmapFactory.decodeResource(mRes, R.drawable.start, mOpt2)); in testDecodeResource1()
169 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); in testDecodeResource2()
181 Bitmap b = BitmapFactory.decodeResourceStream(mRes, value, is, r, mOpt1); in testDecodeResourceStream()
429 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseBasic()
436 Bitmap pass = BitmapFactory.decodeResource(mRes, R.drawable.pass, options); in testDecodeReuseBasic()
450 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseAttempt()
[all …]
DNinePatchTest.java56 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()
124 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale); in testDraw()
133 expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled2, mOptNoScale); in testDraw()
186 BitmapFactory.decodeResource(mRes, R.drawable.transparent_border, mOptNoScale); in testHasAlpha()
221 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.transparent_border, mOptNoScale); in testGetTransparentRegion()
239 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.transparent_right, mOptNoScale); in testGetTransparentRegion()
DBitmapTest.java96 private Resources mRes; field in BitmapTest
118 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup()
121 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in setup()
431 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testCreateBitmapFromHardwareBitmap()
882 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testEraseColorOnImmutable()
890 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testEraseColorLongOnImmutable()
940 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testGetColorHardware()
1107 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testExtractAlpha()
1126 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testExtractAlphaWithPaintAndOffset()
1168 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testGetConfig()
[all …]
DBitmapRegionDecoderTest.java135 private Resources mRes; field in BitmapRegionDecoderTest
139 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup()
847 return mRes.openRawResource(resId); in obtainInputStream()
851 return mRes.getAssets().open(assetName); in obtainInputStream()
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSBase.java34 Resources mRes; field in RSBase
81 mRes = mCtx.getResources(); in setUp()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DRSBase.java34 Resources mRes; field in RSBase
86 mRes = mCtx.getResources(); in setUp()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRSBase.java35 Resources mRes; field in RSBase
93 mRes = mCtx.getResources(); in setUp()
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSCppTest.java34 Resources mRes; field in RSCppTest
114 mRes = mCtx.getResources(); in setUp()