/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | RotateDrawableTest.java | 70 mRotateDrawable = (RotateDrawable) mResources.getDrawable(R.drawable.rotatedrawable); in setup() 88 d = (RotateDrawable) mResources.getDrawable(R.drawable.rotatedrawable_rel); in testInflate() 96 d = (RotateDrawable) mResources.getDrawable(R.drawable.rotatedrawable_abs); in testInflate() 155 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha() 158 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha() 166 ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter()); in testSetColorFilter() 169 assertNull(((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter()); in testSetColorFilter() 179 Drawable drawable = mResources.getDrawable(R.drawable.pass); in testInvalidateDrawable() 264 Drawable drawable = mResources.getDrawable(R.drawable.testimage); in testGetIntrinsicWidthAndHeight() 292 RotateDrawable d1 = (RotateDrawable) mResources.getDrawable(R.drawable.rotatedrawable); in testMutate() [all …]
|
D | InsetDrawableTest.java | 66 mPassDrawable = mContext.getDrawable(R.drawable.pass); in setup() 272 mPassDrawable = mContext.getDrawable(R.drawable.statelistdrawable); in testOnStateChange() 364 mPassDrawable = mContext.getDrawable(R.drawable.scenery); in testGetIntrinsicWidth() 370 mPassDrawable = mContext.getDrawable(R.drawable.scenery); in testGetIntrinsicWidth() 376 mPassDrawable = mContext.getDrawable(R.drawable.inset_color); in testGetIntrinsicWidth() 380 mPassDrawable = mContext.getDrawable(R.drawable.inset_color_fraction); in testGetIntrinsicWidth() 390 mPassDrawable = mContext.getDrawable(R.drawable.scenery); in testGetIntrinsicHeight() 396 mPassDrawable = mContext.getDrawable(R.drawable.scenery); in testGetIntrinsicHeight() 402 mPassDrawable = mContext.getDrawable(R.drawable.inset_color); in testGetIntrinsicHeight() 406 mPassDrawable = mContext.getDrawable(R.drawable.inset_color_fraction); in testGetIntrinsicHeight() [all …]
|
D | LayerDrawableTest.java | 102 assertSame(mBitmapDrawable, layerDrawable.getDrawable(0)); in testConstructor() 103 assertSame(mColorDrawable, layerDrawable.getDrawable(1)); in testConstructor() 126 assertEquals(ColorDrawable.class, layerDrawable.getDrawable(0).getClass()); in testInflate() 127 assertEquals(0x88, layerDrawable.getDrawable(0).getAlpha()); in testInflate() 129 assertEquals(BitmapDrawable.class, layerDrawable.getDrawable(1).getClass()); in testInflate() 131 assertEquals(RotateDrawable.class, layerDrawable.getDrawable(2).getClass()); in testInflate() 133 assertEquals(GradientDrawable.class, layerDrawable.getDrawable(3).getClass()); in testInflate() 258 assertSame(mBitmapDrawable, layerDrawable.getDrawable(0)); in testAccessDrawable() 259 assertSame(mColorDrawable, layerDrawable.getDrawable(1)); in testAccessDrawable() 267 assertEquals(d1, layerDrawable.getDrawable(0)); in testAccessDrawable() [all …]
|
D | ThemedDrawableTest.java | 72 BitmapDrawable d = (BitmapDrawable) mContext.getDrawable(R.drawable.bitmapdrawable_theme); in testBitmapDrawable() 91 ColorDrawable d = (ColorDrawable) mContext.getDrawable(R.drawable.colordrawable_theme); in testColorDrawable() 98 GradientDrawable d = (GradientDrawable) mContext.getDrawable( in testGradientDrawable() 143 NinePatchDrawable d = (NinePatchDrawable) mContext.getDrawable( in testNinePatchDrawable() 157 RippleDrawable d = (RippleDrawable) mContext.getDrawable( in testRippleDrawable() 165 LayerDrawable d = (LayerDrawable) mContext.getDrawable(R.drawable.layerdrawable_theme); in testLayerDrawable() 171 BitmapDrawable bitmapDrawable = (BitmapDrawable) d.getDrawable(0); in testLayerDrawable() 174 NinePatchDrawable ninePatchDrawable = (NinePatchDrawable) d.getDrawable(1); in testLayerDrawable() 180 VectorDrawable d = (VectorDrawable) mContext.getDrawable(R.drawable.heart); in testVectorDrawableWithStateListColorThemeAttrs()
|
D | AnimatedVectorDrawableTest.java | 163 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() 164 AnimatedVectorDrawable d2 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() 165 AnimatedVectorDrawable d3 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testMutate() 191 mResources.getDrawable(mResId).setAlpha(restoreAlpha); in testMutate() 198 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testGetOpacity() 208 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testColorFilter() 217 final AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testReset() 232 final AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) mResources.getDrawable(mResId); in testStop() 251 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackBeforeStart() 269 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackAfterTrigger() [all …]
|
D | ScaleDrawableTest.java | 82 assertSame(d, scaleDrawable.getDrawable()); in testConstructor() 290 d = mContext.getDrawable(R.drawable.statelistdrawable); in testOnStateChange() 479 ScaleDrawable d1 = (ScaleDrawable) mContext.getDrawable(R.drawable.scaledrawable); in testMutate() 480 ScaleDrawable d2 = (ScaleDrawable) mContext.getDrawable(R.drawable.scaledrawable); in testMutate() 481 ScaleDrawable d3 = (ScaleDrawable) mContext.getDrawable(R.drawable.scaledrawable); in testMutate() 487 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 488 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 489 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 493 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 494 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() [all …]
|
D | AnimatedVectorDrawableParameterizedTest.java | 133 mResources.getDrawable(R.drawable.animated_vector_favorite)); in testAnimationOnLayer() 136 (AnimatedVectorDrawable) imageView[0].getDrawable(); in testAnimationOnLayer() 182 AnimatedVectorDrawable avd = (AnimatedVectorDrawable) imageView[0].getDrawable(); in testAnimationOnLayer() 209 (AnimatedVectorDrawable) mResources.getDrawable(resId); in testSingleFrameAnimation() 236 (AnimatedVectorDrawable) mResources.getDrawable(resId); in testEmptyAnimatorSet() 297 imageView[0].setImageDrawable(mResources.getDrawable(R.drawable.infinite_avd)); in testInfiniteAVD() 299 … AnimatedVectorDrawable avd = (AnimatedVectorDrawable) imageView[0].getDrawable(); in testInfiniteAVD() 338 AnimatedVectorDrawable avd = (AnimatedVectorDrawable) imageView[0].getDrawable(); in testInfiniteAVD()
|
D | AdaptiveIconDrawableTest.java | 98 InstrumentationRegistry.getTargetContext().getDrawable(R.drawable.pass)); in testInvalidateDrawable() 106 InstrumentationRegistry.getTargetContext().getDrawable(R.drawable.pass), in testScheduleDrawable() 119 InstrumentationRegistry.getTargetContext().getDrawable(R.drawable.pass), () -> {}); in testUnscheduleDrawable() 184 …nDrawable iconDrawable = (AdaptiveIconDrawable) context.getResources().getDrawable(android.R.drawa… in testDrawSetBounds() 301 …AdaptiveIconDrawable first = (AdaptiveIconDrawable) res.getDrawable(R.drawable.adaptive_icon_drawa… in testMutate() 302 …AdaptiveIconDrawable pre = (AdaptiveIconDrawable) res.getDrawable(R.drawable.adaptive_icon_drawabl… in testMutate() 309 …AdaptiveIconDrawable post = (AdaptiveIconDrawable) res.getDrawable(R.drawable.adaptive_icon_drawab… in testMutate() 325 (AdaptiveIconDrawable) context.getDrawable(R.drawable.adaptive_icon_drawable); in testGetForegroundBackground() 336 (AdaptiveIconDrawable) context.getDrawable(R.drawable.adaptive_icon_drawable); in testGetIntrinsicWidth() 348 (AdaptiveIconDrawable) context.getDrawable(R.drawable.adaptive_icon_drawable); in testGetIntrinsicHeight()
|
D | GradientDrawableTest.java | 589 gradientDrawable = (GradientDrawable) mResources.getDrawable( in testInflateGradientRadius() 595 gradientDrawable = (GradientDrawable) mResources.getDrawable( in testInflateGradientRadius() 631 (GradientDrawable) mResources.getDrawable(R.drawable.gradientdrawable); in testMutate() 633 (GradientDrawable) mResources.getDrawable(R.drawable.gradientdrawable); in testMutate() 635 (GradientDrawable) mResources.getDrawable(R.drawable.gradientdrawable); in testMutate() 688 (GradientDrawable) mResources.getDrawable(R.drawable.gradientdrawable); in testOpticalInsets() 701 ctxTheme.getDrawable(R.drawable.gradientdrawable_mix_theme); in testInflationWithThemeAndNonThemeResources() 720 context.getDrawable(R.drawable.gradientdrawable_mix_theme); in testRadialInflationWithThemeAndNonThemeResources() 732 context.getDrawable(R.drawable.gradientdrawable_invalid_radius); in testRadialGradientWithInvalidRadius() 749 context.getDrawable(R.drawable.gradientdrawable_negative_angle); in testGradientNegativeAngle() [all …]
|
D | CustomAnimationScaleListDrawableTest.java | 67 Drawable dr = mContext.getDrawable(DRAWABLE_ID); in testNonZeroDurationScale() 77 Drawable dr = mContext.getDrawable(DRAWABLE_ID); in testZeroDurationScale()
|
D | LevelListDrawableTest.java | 193 (LevelListDrawable) mResources.getDrawable(R.drawable.levellistdrawable); in testMutate() 195 (LevelListDrawable) mResources.getDrawable(R.drawable.levellistdrawable); in testMutate() 197 (LevelListDrawable) mResources.getDrawable(R.drawable.levellistdrawable); in testMutate() 200 d1.addLevel(100, 200, mResources.getDrawable(R.drawable.testimage)); in testMutate()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ImageViewTest.java | 200 assertNull(mImageViewRegular.getDrawable()); in testGetDrawable() 203 assertEquals(drawable1, mImageViewRegular.getDrawable()); in testGetDrawable() 204 assertNotSame(drawable2, mImageViewRegular.getDrawable()); in testGetDrawable() 211 assertNull(mImageViewRegular.getDrawable()); in testSetImageIcon() 216 assertNotNull(mImageViewRegular.getDrawable()); in testSetImageIcon() 217 Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testSetImageIcon() 219 Drawable imageViewDrawable = mImageViewRegular.getDrawable(); in testSetImageIcon() 228 assertNull(mImageViewRegular.getDrawable()); in testSetImageResource() 232 assertNotNull(mImageViewRegular.getDrawable()); in testSetImageResource() 233 Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testSetImageResource() [all …]
|
D | ImageSwitcherTest.java | 98 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageResource() 101 (BitmapDrawable) ((ImageView) mImageSwitcher.getCurrentView()).getDrawable(); in testSetImageResource() 106 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageResource() 109 (BitmapDrawable) ((ImageView) mImageSwitcher.getCurrentView()).getDrawable(); in testSetImageResource() 113 assertNull(((ImageView) mImageSwitcher.getCurrentView()).getDrawable()); in testSetImageResource() 137 (BitmapDrawable) ((ImageView) mImageSwitcher.getCurrentView()).getDrawable(); in testSetImageURI() 151 (BitmapDrawable) ((ImageView) mImageSwitcher.getCurrentView()).getDrawable(); in testSetImageURI() 169 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageDrawable() 172 assertSame(drawable, ((ImageView) mImageSwitcher.getCurrentView()).getDrawable()); in testSetImageDrawable() 174 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageDrawable() [all …]
|
D | SimpleAdapterTest.java | 327 assertNull(view.getDrawable()); in testSetViewImage() 329 BitmapDrawable d = (BitmapDrawable) mContext.getDrawable(R.drawable.scenery); in testSetViewImage() 331 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage() 335 assertNull(view.getDrawable()); in testSetViewImage() 337 assertNull(view.getDrawable()); in testSetViewImage() 341 assertNull(view.getDrawable()); in testSetViewImage() 351 assertNull(view.getDrawable()); in testSetViewImage() 353 d = (BitmapDrawable) mContext.getDrawable(R.drawable.scenery); in testSetViewImage() 355 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage() 359 assertNull(view.getDrawable()); in testSetViewImage() [all …]
|
D | SimpleCursorTreeAdapterTest.java | 151 assertNull(view.getDrawable()); in testSetViewImage() 154 BitmapDrawable d = (BitmapDrawable) mContext.getResources().getDrawable( in testSetViewImage() 157 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage() 161 assertNull(view.getDrawable()); in testSetViewImage() 163 assertNull(view.getDrawable()); in testSetViewImage() 167 assertNull(view.getDrawable()); in testSetViewImage() 177 assertNull(view.getDrawable()); in testSetViewImage() 182 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
|
D | ImageButtonTest.java | 80 Drawable imageButtonDrawable = mImageButton.getDrawable(); in testImageSource() 86 imageButtonDrawable = mImageButton.getDrawable(); in testImageSource() 91 mImageButton.setImageDrawable(mActivity.getDrawable(R.drawable.icon_yellow)); in testImageSource() 92 imageButtonDrawable = mImageButton.getDrawable(); in testImageSource()
|
D | RemoteViewsTest.java | 233 assertNull(image.getDrawable()); in testSetIcon() 238 assertNotNull(image.getDrawable()); in testSetIcon() 239 BitmapDrawable dBlack = (BitmapDrawable) mContext.getDrawable(R.drawable.icon_black); in testSetIcon() 241 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetIcon() 247 assertNull(image.getDrawable()); in testSetImageViewIcon() 252 assertNotNull(image.getDrawable()); in testSetImageViewIcon() 253 BitmapDrawable dBlue = (BitmapDrawable) mContext.getDrawable(R.drawable.icon_blue); in testSetImageViewIcon() 255 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetImageViewIcon() 262 assertNull(image.getDrawable()); in testSetImageViewResource() 266 assertNotNull(image.getDrawable()); in testSetImageViewResource() [all …]
|
D | SimpleCursorAdapterTest.java | 214 assertNull(view.getDrawable()); in testSetViewImage() 216 assertNotNull(view.getDrawable()); in testSetViewImage() 217 BitmapDrawable d = (BitmapDrawable) mContext.getResources().getDrawable( in testSetViewImage() 220 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage() 224 assertNull(view.getDrawable()); in testSetViewImage() 226 assertNull(view.getDrawable()); in testSetViewImage() 230 assertNull(view.getDrawable()); in testSetViewImage() 241 assertNull(view.getDrawable()); in testSetViewImage() 246 assertNotNull(view.getDrawable()); in testSetViewImage() 247 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
|
D | AbsSeekBarTest.java | 115 Drawable drawable1 = mActivity.getDrawable(R.drawable.scenery); in testAccessThumb() 116 Drawable drawable2 = mActivity.getDrawable(R.drawable.pass); in testAccessThumb() 139 Drawable drawable1 = mActivity.getDrawable(R.drawable.black); in testAccessTickMark() 140 Drawable drawable2 = mActivity.getDrawable(R.drawable.black); in testAccessTickMark() 184 Drawable drawable1 = mActivity.getDrawable(R.drawable.scenery); in testVerifyDrawable() 185 Drawable drawable2 = mActivity.getDrawable(R.drawable.pass); in testVerifyDrawable() 186 Drawable drawable3 = mActivity.getDrawable(R.drawable.blue); in testVerifyDrawable() 187 Drawable drawable4 = mActivity.getDrawable(R.drawable.black); in testVerifyDrawable()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/voicemail/ |
D | VisualVoicemailServiceActivity.java | 62 mInsertSimImage.setImageDrawable(getDrawable(R.drawable.fs_good)); 70 mRemoveSimImage.setImageDrawable(getDrawable(R.drawable.fs_good)); 107 mSetDefaultDialerImage.setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate() 108 mRestoreDefaultDialerImage.setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate() 109 mInsertSimImage.setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate() 110 mRemoveSimImage.setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate() 119 mRemoveSimBeforeTestImage.setImageDrawable(getDrawable(R.drawable.fs_good)); in onCreate()
|
D | VoicemailBroadcastActivity.java | 71 mLeaveVoicemailImage.setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate() 72 … mRestoreDefaultDialerImage.setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate() 83 mLeaveVoicemailImage.setImageDrawable(getDrawable(R.drawable.fs_good)); in onCreate() 94 .setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate() 96 .setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate() 97 mLeaveVoicemailImage.setImageDrawable(getDrawable(R.drawable.fs_warning)); in onCreate()
|
D | DefaultDialerChanger.java | 113 .setImageDrawable(mActivity.getDrawable(R.drawable.fs_indeterminate)); 116 .setImageDrawable(mActivity.getDrawable(R.drawable.fs_good)); 124 mSetDefaultDialerImage.setImageDrawable(mActivity.getDrawable(R.drawable.fs_good)); in updateSetDefaultDialerState() 127 .setImageDrawable(mActivity.getDrawable(R.drawable.fs_indeterminate)); in updateSetDefaultDialerState()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | ImageSpanTest.java | 67 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); in testConstructor() 98 Drawable d = mContext.getDrawable(R.drawable.pass); in testGetSource() 114 Drawable drawable = mContext.getDrawable(R.drawable.pass); in testGetDrawable() 117 assertSame(drawable, imageSpan.getDrawable()); in testGetDrawable() 121 BitmapDrawable resultDrawable = (BitmapDrawable) imageSpan.getDrawable(); in testGetDrawable() 125 assertNull(imageSpan.getDrawable()); in testGetDrawable() 128 assertNull(imageSpan.getDrawable()); in testGetDrawable()
|
D | DynamicDrawableSpanTest.java | 70 Rect rect = dynamicDrawableSpan.getDrawable().getBounds(); in testGetSize() 136 mDrawable = InstrumentationRegistry.getTargetContext().getDrawable(R.drawable.scenery); in MyDynamicDrawableSpan() 141 public Drawable getDrawable() { in getDrawable() method in DynamicDrawableSpanTest.MyDynamicDrawableSpan
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageItemInfoIconTest.java | 62 Drawable expectedIcon = mContext.getDrawable( in testSystemDefault() 76 Drawable expectedIcon = mContext.getDrawable(R.drawable.size_48x48); in testFromAppInfo() 90 Drawable expectedIcon = mContext.getDrawable(R.drawable.start); in testFromActivity() 104 Drawable expectedIcon = mContext.getDrawable( in testDelegatedSystemDefault() 118 Drawable expectedIcon = mContext.getDrawable(R.drawable.size_48x48); in testDelegatedFromAppInfo() 130 Drawable expectedIcon = mContext.getDrawable(R.drawable.start); in testDelegatedFromActivity()
|