Home
last modified time | relevance | path

Searched refs:drawable2 (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DAbsSeekBarTest.java124 Drawable drawable2 = mActivity.getDrawable(R.drawable.pass); in testAccessThumb() local
127 assertFalse(myAbsSeekBar.verifyDrawable(drawable2)); in testAccessThumb()
132 assertFalse(myAbsSeekBar.verifyDrawable(drawable2)); in testAccessThumb()
134 absSeekBar.setThumb(drawable2); in testAccessThumb()
135 assertSame(drawable2, absSeekBar.getThumb()); in testAccessThumb()
137 assertTrue(myAbsSeekBar.verifyDrawable(drawable2)); in testAccessThumb()
148 Drawable drawable2 = mActivity.getDrawable(R.drawable.black); in testAccessTickMark() local
151 assertFalse(myAbsSeekBar.verifyDrawable(drawable2)); in testAccessTickMark()
156 assertFalse(myAbsSeekBar.verifyDrawable(drawable2)); in testAccessTickMark()
158 absSeekBar.setTickMark(drawable2); in testAccessTickMark()
[all …]
DImageViewTest.java260 final PaintDrawable drawable2 = new PaintDrawable(); in testGetDrawable() local
266 assertNotSame(drawable2, mImageViewRegular.getDrawable()); in testGetDrawable()
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DTestUtils.java38 Drawable drawable2 = icon2.loadDrawable(context); in compareIcons() local
40 assertThat(drawable2).isInstanceOf(BitmapDrawable.class); in compareIcons()
42 Bitmap bitmap2 = ((BitmapDrawable) drawable2).getBitmap(); in compareIcons()
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/util/
DWallpaperTestUtils.java106 public static boolean isSimilar(Drawable drawable1, Drawable drawable2, in isSimilar() argument
108 return isSimilar(getBitmap(drawable1), getBitmap(drawable2), requireSameDimensions); in isSimilar()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDevicePolicyResourcesTest.java198 Drawable drawable2 = sDpm.getResources().getDrawable( in setDrawables_updateForMultipleSources_updatesCorrectly() local
203 assertThat(areSameDrawables(drawable2, sContext.getDrawable(R.drawable.test_drawable_2))) in setDrawables_updateForMultipleSources_updatesCorrectly()
547 private static boolean areSameDrawables(Drawable drawable1, Drawable drawable2) { in areSameDrawables() argument
548 return drawable1 == drawable2 || getBitmap(drawable1).sameAs(getBitmap(drawable2)); in areSameDrawables()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DStateListDrawableTest.java381 ColorDrawable drawable2 = new ColorDrawable(Color.YELLOW); in testGetStateDrawableIndex() local
388 stateList.addState(stateSet2, drawable2); in testGetStateDrawableIndex()