Home
last modified time | relevance | path

Searched refs:getBitmap (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java423 public static Bitmap getBitmap(Context context, @DrawableRes int resid) {
424 return ((BitmapDrawable) getDrawable(context, resid)).getBitmap();
435 WidgetTestUtils.assertEquals(getBitmap(context, expectedLeftDrawableId),
436 ((BitmapDrawable) compoundDrawables[0]).getBitmap());
441 WidgetTestUtils.assertEquals(getBitmap(context, expectedTopDrawableId),
442 ((BitmapDrawable) compoundDrawables[1]).getBitmap());
447 WidgetTestUtils.assertEquals(getBitmap(context, expectedRightDrawableId),
448 ((BitmapDrawable) compoundDrawables[2]).getBitmap());
453 WidgetTestUtils.assertEquals(getBitmap(context, expectedBottomDrawableId),
454 ((BitmapDrawable) compoundDrawables[3]).getBitmap());
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DImageSwitcherTest.java102 WidgetTestUtils.assertEquals(sceneryBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource()
110 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource()
140 currViewBitmap.getBitmap().getConfig()); in testSetImageURI()
141 WidgetTestUtils.assertEquals(testImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI()
149 currViewBitmap.getBitmap().getConfig()); in testSetImageURI()
152 WidgetTestUtils.assertEquals(sceneryImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI()
DImageViewTest.java221 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageIcon()
237 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageResource()
259 Bitmap.Config viewConfig = imageViewBitmap.getBitmap().getConfig(); in testSetImageURI()
263 WidgetTestUtils.assertEquals(testimageBitmap, imageViewBitmap.getBitmap()); in testSetImageURI()
279 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageDrawable()
296 WidgetTestUtils.assertEquals(bitmap, imageViewBitmap.getBitmap()); in testSetImageBitmap()
DSimpleAdapterTest.java330 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
331 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
354 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
355 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
370 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
DRemoteViewsTest.java240 WidgetTestUtils.assertEquals(dBlack.getBitmap(), in testSetIcon()
241 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetIcon()
254 WidgetTestUtils.assertEquals(dBlue.getBitmap(), in testSetImageViewIcon()
255 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetImageViewIcon()
268 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetImageViewResource()
269 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetImageViewResource()
291 Bitmap imageViewBitmap = ((BitmapDrawable) image.getDrawable()).getBitmap(); in testSetImageViewUri()
403 WidgetTestUtils.assertEquals(d.getBitmap(), in testReapply()
404 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testReapply()
492 WidgetTestUtils.assertEquals(bitmap, ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetImageViewBitmap()
[all …]
DSimpleCursorTreeAdapterTest.java156 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
157 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
182 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
DSimpleCursorAdapterTest.java219 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
220 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
247 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
DTextViewTest.java3964 WidgetTestUtils.assertEquals(TestUtils.getBitmap(mActivity, R.drawable.start), in testCompound()
3965 ((BitmapDrawable) drawables[0]).getBitmap()); in testCompound()
3967 WidgetTestUtils.assertEquals(TestUtils.getBitmap(mActivity, R.drawable.pass), in testCompound()
3968 ((BitmapDrawable) drawables[1]).getBitmap()); in testCompound()
3970 WidgetTestUtils.assertEquals(TestUtils.getBitmap(mActivity, R.drawable.failed), in testCompound()
3971 ((BitmapDrawable) drawables[2]).getBitmap()); in testCompound()
4105 WidgetTestUtils.assertEquals(TestUtils.getBitmap(mActivity, R.drawable.start), in testCursorDrawable_canBeSet_toDrawableResource()
4106 ((BitmapDrawable) mTextView.getTextCursorDrawable()).getBitmap()); in testCursorDrawable_canBeSet_toDrawableResource()
4157 WidgetTestUtils.assertEquals(TestUtils.getBitmap(mActivity, R.drawable.start), in testHandleDrawables_canBeSet_toDrawableResources()
4158 ((BitmapDrawable) mTextView.getTextSelectHandle()).getBitmap()); in testHandleDrawables_canBeSet_toDrawableResources()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java122 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap()); in testGetDrawable()
/cts/tests/tests/media/src/android/media/cts/
DMediaRouterTest.java215 assertTrue(getBitmap(mTestIconDrawable).sameAs(getBitmap(userRoute.getIconDrawable()))); in testUserRouteInfo()
306 assertTrue(getBitmap(mTestIconDrawable).sameAs(getBitmap(routeGroup.getIconDrawable()))); in testRouteGroup()
571 private Bitmap getBitmap(Drawable drawable) { in getBitmap() method in MediaRouterTest
DDecodeAccuracyTestBase.java658 return snapshot.getBitmap(); in generateBitmapFromVideoViewSnapshot()
1308 public abstract Bitmap getBitmap(); in getBitmap() method in VideoViewSnapshot
1332 bitmap = tv.getBitmap(); in run()
1339 public Bitmap getBitmap() { in getBitmap() method in TextureViewSnapshot
1406 public Bitmap getBitmap() { in getBitmap() method in SurfaceViewSnapshot
1522 public Bitmap getBitmap() { in getBitmap() method in GLSurfaceViewSnapshot
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/
DBitmapView.java49 public Bitmap getBitmap() { in getBitmap() method in BitmapView
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRenderScriptTask.java138 rgbdImage = options.rgbz.getBitmap(); in prepareRefocusFilter()
DRGBZ.java94 public Bitmap getBitmap() { in getBitmap() method in RGBZ
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java94 assertNull(bitmapDrawable.getBitmap()); in testConstructor()
101 assertEquals(bitmap, bitmapDrawable.getBitmap()); in testConstructor()
394 bitmapDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in testGetIntrinsicSize()
441 bitmap = bitmapDrawable.getBitmap(); in testSetTargetDensity()
DThemedDrawableTest.java84 assertNotNull(d.getBitmap()); in verifyBitmapDrawable()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewSnapshotTestActivity.java84 Bitmap bitmap = mTexView.getBitmap(); in onSurfaceTextureUpdated()
DTextureViewCameraActivity.java101 Bitmap bitmap = mTextureView.getBitmap(); in onSurfaceTextureUpdated()
DTextureViewTest.java120 activity.getTextureView().getBitmap(bitmap); in testScaling()
136 activity.getTextureView().getBitmap(bitmap); in testRotateScale()
178 activity.getTextureView().getBitmap(bitmap); in testTransformScale()
DTextureViewCtsActivity.java149 this.getTextureView().getBitmap(bitmap); in getContents()
DMenuInflaterTest.java335 WidgetTestUtils.assertEquals(expected, b.getBitmap()); in verifyDrawableContent()
/cts/tests/tests/transition/src/android/transition/cts/
DSharedElementCallbackTest.java71 Bitmap finalBitmap = bitmapDrawable.getBitmap(); in testSnapshot()
DFadeTest.java151 Bitmap bitmap = bitmapDrawable.getBitmap(); in testFadeOutTransition()
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java83 assertEquals(mBitmap, mNinePatch.getBitmap()); in testConstructor()
87 assertEquals(mBitmap, mNinePatch.getBitmap()); in testConstructor()
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java952 Bitmap bitmap0 = mTextureView[viewIdx0].getBitmap(); in testTextureImageWriterReaderOperation()
953 Bitmap bitmap1 = mTextureView[viewIdx1].getBitmap(); in testTextureImageWriterReaderOperation()

12