Home
last modified time | relevance | path

Searched defs:drawable (Results 1 – 25 of 47) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java124 Drawable drawable = ImageDecoder.decodeDrawable(source); in createFromImageDecoder() local
135 Drawable drawable = createFromImageDecoder(RES_ID); in testDecodeAnimatedImageDrawable() local
148 public void onAnimationStart(Drawable drawable) { in onAnimationStart()
155 public void onAnimationEnd(Drawable drawable) { in onAnimationEnd()
164 AnimatedImageDrawable drawable = createFromImageDecoder(R.drawable.animated); in testRegisterWithoutLooper() local
174 AnimatedImageDrawable drawable = createFromImageDecoder(R.drawable.animated); in testRegisterCallback() local
189 AnimatedImageDrawable drawable = createFromImageDecoder(R.drawable.animated); in testClearCallbacks() local
223 private void setContentView(AnimatedImageDrawable drawable) { in setContentView()
231 AnimatedImageDrawable drawable = createFromImageDecoder(R.drawable.animated); in testUnregisterCallback() local
253 AnimatedImageDrawable drawable = createFromImageDecoder(RES_ID); in testLifeCycle() local
[all …]
DGradientDrawableTest.java464 GradientDrawable drawable = new GradientDrawable(); in testGradientPadding() local
478 GradientDrawable drawable = new GradientDrawable(); in testGradientThickness() local
508 GradientDrawable drawable = new GradientDrawable(); in testGradientThicknessRatio() local
518 GradientDrawable drawable = new GradientDrawable(); in testGradientInnerRadius() local
547 GradientDrawable drawable = new GradientDrawable(); in testGradientInnerRadiusRatio() local
687 GradientDrawable drawable = in testOpticalInsets() local
700 GradientDrawable drawable = (GradientDrawable) in testInflationWithThemeAndNonThemeResources() local
719 GradientDrawable drawable = (GradientDrawable) in testRadialInflationWithThemeAndNonThemeResources() local
748 GradientDrawable drawable = (GradientDrawable) in testGradientNegativeAngle() local
755 GradientDrawable drawable = new GradientDrawable(Orientation.TOP_BOTTOM, null); in testGradientDrawableOrientationConstructor() local
[all …]
DAnimatable2Callback.java69 public void onAnimationStart(Drawable drawable) { in onAnimationStart()
79 public void onAnimationEnd(Drawable drawable) { in onAnimationEnd()
DRippleDrawableTest.java64 RippleDrawable drawable = in testAccessRadius() local
73 RippleDrawable drawable = in testRadiusAttr() local
DRotateDrawableTest.java179 Drawable drawable = mResources.getDrawable(R.drawable.pass); in testInvalidateDrawable() local
264 Drawable drawable = mResources.getDrawable(R.drawable.testimage); in testGetIntrinsicWidthAndHeight() local
DVectorDrawableSizeTest.java71 VectorDrawable drawable = (VectorDrawable) mResources.getDrawable(mResId, null); in testVectorDrawableSize() local
DInsetDrawableTest.java463 InsetDrawable drawable = new InsetDrawable(mPassDrawable, 1, 2, 3, 4); in testOpticalInsets() local
515 public MockInsetDrawable(Drawable drawable, float inset) { in MockInsetDrawable()
519 public MockInsetDrawable(Drawable drawable, int inset) { in MockInsetDrawable()
DDrawableTest.java392 Drawable drawable = Drawable.createFromStream(is, null); in testImageIntrinsicScaledForDensity() local
406 Drawable drawable = Drawable.createFromResourceStream( in testImageIntrinsicScaledForDensityWithBitmapOptions() local
420 Drawable drawable = Drawable.createFromXml(mResources, parser); in testCreateFromXml() local
433 Drawable drawable = Drawable.createFromXml(mResources, parser, theme); in testCreateFromXmlThemed() local
448 Drawable drawable = Drawable.createFromXmlInner(mResources, parser, attrs); in testCreateFromXmlInner() local
465 Drawable drawable = Drawable.createFromXmlInner(mResources, parser, attrs, theme); in testCreateFromXmlInnerThemed() local
DAnimatedVectorDrawableTest.java97 AnimatedVectorDrawable drawable = new AnimatedVectorDrawable(); in testInflate() local
117 AnimatedVectorDrawable drawable = new AnimatedVectorDrawable(); in testGetOpticalInsets() local
DDrawableWrapperTest.java400 MockDrawable drawable = new MockDrawable(); in testGetOpticalInsetsFromInternalDrawable() local
474 public MockDrawableWrapper(Drawable drawable) { in MockDrawableWrapper()
/cts/tests/tests/widget/src/android/widget/cts/
DImageViewTest.java217 Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testSetImageIcon() local
233 Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testSetImageResource() local
272 final Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testSetImageDrawable() local
322 PaintDrawable drawable = new PaintDrawable(); in testSetImageLevel() local
377 final Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testAccessBaseline() local
397 final Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testSetColorFilter1() local
411 final Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testSetColorFilterTintBlendMode() local
425 final Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testClearColorFilter() local
439 final Drawable drawable = mActivity.getDrawable(R.drawable.testimage); in testSetColorFilter2() local
495 Drawable drawable = spy(mActivity.getDrawable(R.drawable.icon_red)); in testOnDraw() local
[all …]
DImageSwitcherTest.java98 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageResource() local
169 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageDrawable() local
DToggleButtonTest.java130 final StateListDrawable drawable = new StateListDrawable(); in testDrawableStateChanged() local
201 final Drawable drawable = mActivity.getDrawable(R.drawable.scenery); in testSetBackgroundDrawable() local
DCompoundButtonTest.java200 Drawable drawable = mActivity.getDrawable(R.drawable.statelistdrawable); in testDrawableStateChanged() local
282 Drawable drawable; in testOnDraw() local
347 Drawable drawable = mActivity.getDrawable(R.drawable.scenery); in testVerifyDrawable() local
DFrameLayoutTest.java266 Drawable drawable = mActivity.getResources().getDrawable(R.drawable.scenery); in testVerifyDrawable() local
310 private static void assertCenterAligned(View container, Drawable drawable) { in assertCenterAligned()
/cts/tests/app/src/android/app/cts/
DWallpaperColorsTest.java94 ColorDrawable drawable = new ColorDrawable(Color.GREEN); in fromDrawableTest() local
104 ColorDrawable drawable = new ColorDrawable(Color.GREEN); in fromDrawableDoesntMutateBounds() local
DInstrumentationTest.java627 public void setBackgroundDrawable(Drawable drawable) { in setBackgroundDrawable()
631 public void setChildDrawable(int featureId, Drawable drawable) { in setChildDrawable()
651 public void setFeatureDrawable(int featureId, Drawable drawable) { in setFeatureDrawable()
745 public void setResizingCaptionDrawable(Drawable drawable) { in setResizingCaptionDrawable()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodIconSamplerActivity.java63 Drawable drawable = getPackageManager().getUserBadgedIcon(getAppIcon(), userHandle); in sampleImage() local
/cts/tests/tests/transition/src/android/transition/cts/
DSharedElementCallbackTest.java68 Drawable drawable = finalView.getDrawable(); in testSnapshot() local
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java114 Drawable drawable = mContext.getDrawable(R.drawable.pass); in testGetDrawable() local
/cts/tests/tests/preference/src/android/preference/cts/
DDialogPreferenceTest.java55 Drawable drawable = mDialogPreference.getDialogIcon(); in testGetDialogIcon() local
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java292 Drawable drawable = ImageDecoder.decodeDrawable(src); in testDecodeDrawable() local
587 Drawable drawable = ImageDecoder.decodeDrawable(src, l); in testPostProcessorOverridesNinepatch() local
722 Drawable drawable = ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in testPostProcessorAndScale() local
981 Drawable drawable = ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in testOnPartialImage() local
1230 Drawable drawable = ImageDecoder.decodeDrawable(src, l); in testTargetSize() local
1248 Drawable drawable = ImageDecoder.decodeDrawable(src, l); in testTargetSize() local
1393 Drawable drawable = ImageDecoder.decodeDrawable(src, l); in testCrop() local
1940 Drawable drawable = ImageDecoder.decodeDrawable( in testZeroLengthByteBuffer() local
2023 Drawable drawable = ImageDecoder.decodeDrawable(src); in testOffsetByteArray() local
2039 Drawable drawable = ImageDecoder.decodeDrawable(src); in testResourceSource() local
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewOverlayTest.java211 final ColorDrawable drawable = new ColorDrawable(Color.RED); in testOverlayDynamicChangesToDrawable() local
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowTest.java426 ColorDrawable drawable = new ColorDrawable(0); in testSetBackgroundDrawable() local
858 public void setBackgroundDrawable(Drawable drawable) { in setBackgroundDrawable()
867 public void setFeatureDrawable(int featureId, Drawable drawable) { in setFeatureDrawable()
921 public void setChildDrawable(int featureId, Drawable drawable) { in setChildDrawable()
975 public void setResizingCaptionDrawable(Drawable drawable) { in setResizingCaptionDrawable()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageItemInfoIconTest.java175 private Bitmap drawableToBitmap(Drawable drawable) { in drawableToBitmap()

12