Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java112 private Resources mRes; field in BitmapFactoryTest
122 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup()
124 mTargetDensity = mRes.getDisplayMetrics().densityDpi; in setup()
140 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, in testDecodeResource1()
147 assertNull(BitmapFactory.decodeResource(mRes, R.drawable.start, mOpt2)); in testDecodeResource1()
152 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); in testDecodeResource2()
164 Bitmap b = BitmapFactory.decodeResourceStream(mRes, value, is, r, mOpt1); in testDecodeResourceStream()
412 Bitmap start = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testDecodeReuseBasic()
419 Bitmap pass = BitmapFactory.decodeResource(mRes, R.drawable.pass, options); in testDecodeReuseBasic()
433 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()
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()
DBitmapTest.java93 private Resources mRes; field in BitmapTest
115 mRes = InstrumentationRegistry.getTargetContext().getResources(); in setup()
118 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in setup()
428 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testCreateBitmapFromHardwareBitmap()
818 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testEraseColorOnImmutable()
826 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testEraseColorLongOnImmutable()
876 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, options); in testGetColorHardware()
1043 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testExtractAlpha()
1062 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); in testExtractAlphaWithPaintAndOffset()
1104 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()
820 return mRes.openRawResource(resId); in obtainInputStream()
824 return mRes.getAssets().open(assetName); in obtainInputStream()
/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()
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/
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()