Searched refs:drawable2 (Results 1 – 6 of 6) sorted by relevance
124 Drawable drawable2 = mActivity.getDrawable(R.drawable.pass); in testAccessThumb() local127 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() local151 assertFalse(myAbsSeekBar.verifyDrawable(drawable2)); in testAccessTickMark()156 assertFalse(myAbsSeekBar.verifyDrawable(drawable2)); in testAccessTickMark()158 absSeekBar.setTickMark(drawable2); in testAccessTickMark()[all …]
260 final PaintDrawable drawable2 = new PaintDrawable(); in testGetDrawable() local266 assertNotSame(drawable2, mImageViewRegular.getDrawable()); in testGetDrawable()
38 Drawable drawable2 = icon2.loadDrawable(context); in compareIcons() local40 assertThat(drawable2).isInstanceOf(BitmapDrawable.class); in compareIcons()42 Bitmap bitmap2 = ((BitmapDrawable) drawable2).getBitmap(); in compareIcons()
106 public static boolean isSimilar(Drawable drawable1, Drawable drawable2, in isSimilar() argument108 return isSimilar(getBitmap(drawable1), getBitmap(drawable2), requireSameDimensions); in isSimilar()
198 Drawable drawable2 = sDpm.getResources().getDrawable( in setDrawables_updateForMultipleSources_updatesCorrectly() local203 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() argument548 return drawable1 == drawable2 || getBitmap(drawable1).sameAs(getBitmap(drawable2)); in areSameDrawables()
381 ColorDrawable drawable2 = new ColorDrawable(Color.YELLOW); in testGetStateDrawableIndex() local388 stateList.addState(stateSet2, drawable2); in testGetStateDrawableIndex()