Home
last modified time | relevance | path

Searched refs:getDrawable (Results 1 – 25 of 50) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DDrawableResourceLoaderTest.java41 ApplicationProvider.getApplicationContext().getResources().getDrawable(R.drawable.rainbow)); in testGetDrawable_rainbow()
46 assertNotNull(resources.getDrawable(android.R.drawable.ic_popup_sync)); in testGetDrawableBundle_shouldWorkWithSystem()
51 assertNotNull(Resources.getSystem().getDrawable(android.R.drawable.ic_menu_help)); in testGetDrawable_red()
56 assertThat(resources.getDrawable(R.drawable.l7_white)).isInstanceOf(BitmapDrawable.class); in testDrawableTypes()
57 assertThat(resources.getDrawable(R.drawable.l0_red)).isInstanceOf(BitmapDrawable.class); in testDrawableTypes()
58 …assertThat(resources.getDrawable(R.drawable.nine_patch_drawable)).isInstanceOf(NinePatchDrawable.c… in testDrawableTypes()
59 assertThat(resources.getDrawable(R.drawable.rainbow)).isInstanceOf(LayerDrawable.class); in testDrawableTypes()
64 …assertThat(resources.getDrawable(R.drawable.an_image_or_vector)).isInstanceOf(BitmapDrawable.class… in testVectorDrawableType_preVectors()
69 …assertThat(resources.getDrawable(R.drawable.an_image_or_vector)).isInstanceOf(VectorDrawable.class… in testVectorDrawableType()
80 .getDrawable(R.drawable.rainbow)) in testLayerDrawable_xlarge()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapDrawableTest.java43 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in getBitmap_shouldReturnBitmapUsedToDraw()
49 BitmapDrawable original = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in mutate_createsDeepCopy()
60 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in draw_shouldCopyDescriptionToCanvas()
76 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in withColorFilterSet_draw_shouldCopyDescriptionToCanvas()
86 Drawable drawable = resources.getDrawable(R.drawable.an_image); in shouldStillHaveShadow()
92 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in shouldSetTileModeXY()
DShadowDrawableTest.java136 assertThat(context.getResources().getDrawable(R.drawable.drawable_with_nine_patch)).isNotNull(); in shouldLoadNinePatchFromDrawableXml()
148 final Drawable anImage = context.getResources().getDrawable(R.drawable.an_image); in drawableIntrinsicWidthAndHeightShouldBeCorrect()
157 final Drawable anImage = context.getResources().getDrawable(R.drawable.robolectric); in drawableShouldLoadImageOfCorrectSizeWithMdpiQualifier()
166 final Drawable anImage = context.getResources().getDrawable(R.drawable.robolectric); in drawableShouldLoadImageOfCorrectSizeWithHdpiQualifier()
177 final Drawable aDrawable = context.getResources().getDrawable(R.drawable.an_image_or_vector); in testGetBitmapOrVectorDrawableAt19()
184 final Drawable aDrawable = context.getResources().getDrawable(R.drawable.an_image_or_vector); in testGetBitmapOrVectorDrawableAt21()
DShadowLayerDrawableTest.java65 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId1()
78 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId2()
DShadowImageViewTest.java28 …assertThat(shadowOf(imageView.getDrawable()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in getDrawableResourceId_shouldWorkWhenTheDrawableWasCreatedFromAResource()
DShadowPhoneWindowTest.java35 Drawable drawable = activity.getResources().getDrawable(android.R.drawable.bottom_bar); in getBackgroundDrawable()
/external/setupdesign/main/src/com/google/android/setupdesign/
DSetupWizardLayout.java109 final Drawable background = a.getDrawable(R.styleable.SudSetupWizardLayout_sudBackground); in init()
114 a.getDrawable(R.styleable.SudSetupWizardLayout_sudBackgroundTile); in init()
121 final Drawable illustration = a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustration); in init()
126 a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustrationImage); in init()
128 a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustrationHorizontalTile); in init()
322 final Drawable backgroundTileDrawable = getContext().getResources().getDrawable(backgroundTile); in setBackgroundTile()
335 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration()
336 final Drawable tile = context.getResources().getDrawable(horizontalTile); in getIllustration()
/external/setupcompat/main/java/com/google/android/setupcompat/template/
DFooterButtonStyleUtils.java335 icon = PartnerConfigHelper.get(context).getDrawable(context, buttonIconConfig); in updateButtonIconWithPartnerConfig()
378 LayerDrawable layerDrawable = (LayerDrawable) ((InsetDrawable) drawable).getDrawable(); in getGradientDrawable()
379 return (GradientDrawable) layerDrawable.getDrawable(0); in getGradientDrawable()
381 if (((RippleDrawable) drawable).getDrawable(0) instanceof GradientDrawable) { in getGradientDrawable()
382 return (GradientDrawable) ((RippleDrawable) drawable).getDrawable(0); in getGradientDrawable()
384 InsetDrawable insetDrawable = (InsetDrawable) ((RippleDrawable) drawable).getDrawable(0); in getGradientDrawable()
385 return (GradientDrawable) insetDrawable.getDrawable(); in getGradientDrawable()
398 return (RippleDrawable) ((InsetDrawable) drawable).getDrawable(); in getRippleDrawable()
DStatusBarMixin.java92 setStatusBarBackground(a.getDrawable(R.styleable.SucStatusBarMixin_sucStatusBarBackground)); in StatusBarMixin()
121 .getDrawable(context, PartnerConfig.CONFIG_STATUS_BAR_BACKGROUND); in setStatusBarBackground()
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DRecyclerItemAdapter.java122 typedArray.getDrawable( in onCreateViewHolder()
126 typedArray.getDrawable(R.styleable.SudRecyclerItemAdapter_selectableItemBackground); in onCreateViewHolder()
139 typedArray.getDrawable(R.styleable.SudRecyclerItemAdapter_android_colorBackground); in onCreateViewHolder()
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DHeaderAreaStyler.java248 && !(imageView.getDrawable() == null in checkImageType()
250 && imageView.getDrawable() instanceof VectorDrawable) in checkImageType()
251 || imageView.getDrawable() instanceof VectorDrawableCompat) in checkImageType()
DPartner.java92 public static Drawable getDrawable(Context context, @DrawableRes int id) { in getDrawable() method in Partner
94 return entry.resources.getDrawable(entry.id); in getDrawable()
/external/angle/src/libANGLE/renderer/gl/glx/
DSurfaceGLX.h24 virtual glx::Drawable getDrawable() const = 0;
DPbufferSurfaceGLX.h54 glx::Drawable getDrawable() const override;
DPixmapSurfaceGLX.h53 glx::Drawable getDrawable() const override;
DWindowSurfaceGLX.h57 glx::Drawable getDrawable() const override;
DPbufferSurfaceGLX.cpp135 glx::Drawable PbufferSurfaceGLX::getDrawable() const in getDrawable() function in rx::PbufferSurfaceGLX
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNotification.java84 return imageView != null && imageView.getDrawable() != null in getBigPicture()
85 ? ((BitmapDrawable) imageView.getDrawable()).getBitmap() : null; in getBigPicture()
/external/glide/library/src/main/java/com/bumptech/glide/request/target/
DImageViewTarget.java26 return view.getDrawable(); in getCurrentDrawable()
/external/libchrome/base/android/java/src/org/chromium/base/
DApiCompatibilityUtils.java458 public static Drawable getDrawable(Resources res, int id) throws NotFoundException { in getDrawable() method in ApiCompatibilityUtils
462 return res.getDrawable(id, null); in getDrawable()
464 return res.getDrawable(id); in getDrawable()
498 Drawable drawable = getDrawable(context.getResources(), id); in getUserBadgedIcon()
/external/replicaisland/src/com/replica/replicaisland/
DKeyboardConfigDialogPreference.java123 mUnselectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border); in onBindDialogView()
124 mSelectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border_active); in onBindDialogView()
DRenderComponent.java83 public DrawableObject getDrawable() { in getDrawable() method in RenderComponent
DMotionBlurComponent.java68 DrawableBitmap drawable = (DrawableBitmap)mBlurTarget.getDrawable(); in update()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerControlView.java454 repeatOffButtonDrawable = resources.getDrawable(R.drawable.exo_controls_repeat_off); in PlayerControlView()
455 repeatOneButtonDrawable = resources.getDrawable(R.drawable.exo_controls_repeat_one); in PlayerControlView()
456 repeatAllButtonDrawable = resources.getDrawable(R.drawable.exo_controls_repeat_all); in PlayerControlView()
457 shuffleOnButtonDrawable = resources.getDrawable(R.drawable.exo_controls_shuffle_on); in PlayerControlView()
458 shuffleOffButtonDrawable = resources.getDrawable(R.drawable.exo_controls_shuffle_off); in PlayerControlView()
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/
DPartnerConfigHelper.java190 public Drawable getDrawable(@NonNull Context context, PartnerConfig resourceConfig) { in getDrawable() method in PartnerConfigHelper
214 result = resource.getDrawable(resId, null); in getDrawable()
216 result = resource.getDrawable(resId); in getDrawable()

12