Searched refs:drawable1 (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsSeekBarTest.java | 123 Drawable drawable1 = mActivity.getDrawable(R.drawable.scenery); in testAccessThumb() local 126 assertFalse(myAbsSeekBar.verifyDrawable(drawable1)); in testAccessThumb() 129 absSeekBar.setThumb(drawable1); in testAccessThumb() 130 assertSame(drawable1, absSeekBar.getThumb()); in testAccessThumb() 131 assertTrue(myAbsSeekBar.verifyDrawable(drawable1)); in testAccessThumb() 136 assertFalse(myAbsSeekBar.verifyDrawable(drawable1)); in testAccessThumb() 147 Drawable drawable1 = mActivity.getDrawable(R.drawable.black); in testAccessTickMark() local 150 assertFalse(myAbsSeekBar.verifyDrawable(drawable1)); in testAccessTickMark() 153 absSeekBar.setTickMark(drawable1); in testAccessTickMark() 154 assertSame(drawable1, absSeekBar.getTickMark()); in testAccessTickMark() [all …]
|
D | ImageViewTest.java | 259 final PaintDrawable drawable1 = new PaintDrawable(); in testGetDrawable() local 264 mImageViewRegular.setImageDrawable(drawable1); in testGetDrawable() 265 assertEquals(drawable1, mImageViewRegular.getDrawable()); in testGetDrawable()
|
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/ |
D | TestUtils.java | 37 Drawable drawable1 = icon1.loadDrawable(context); in compareIcons() local 39 if (drawable1 instanceof BitmapDrawable) { in compareIcons() 41 Bitmap bitmap1 = ((BitmapDrawable) drawable1).getBitmap(); in compareIcons()
|
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/util/ |
D | WallpaperTestUtils.java | 106 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/ |
D | DevicePolicyResourcesTest.java | 191 Drawable drawable1 = sDpm.getResources().getDrawable( in setDrawables_updateForMultipleSources_updatesCorrectly() local 196 assertThat(areSameDrawables(drawable1, sContext.getDrawable(R.drawable.test_drawable_1))) 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/ |
D | StateListDrawableTest.java | 380 ColorDrawable drawable1 = new ColorDrawable(Color.CYAN); in testGetStateDrawableIndex() local 387 stateList.addState(stateSet1, drawable1); in testGetStateDrawableIndex()
|