/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | DrawableResourceLoaderTest.java | 41 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/ |
D | ShadowBitmapDrawableTest.java | 43 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()
|
D | ShadowDrawableTest.java | 136 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()
|
D | ShadowLayerDrawableTest.java | 65 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId1() 78 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId2()
|
D | ShadowPhoneWindowTest.java | 35 Drawable drawable = activity.getResources().getDrawable(android.R.drawable.bottom_bar); in getBackgroundDrawable()
|
D | ShadowImageViewTest.java | 28 …assertThat(shadowOf(imageView.getDrawable()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in getDrawableResourceId_shouldWorkWhenTheDrawableWasCreatedFromAResource()
|
/external/setupdesign/main/src/com/google/android/setupdesign/ |
D | SetupWizardLayout.java | 103 final Drawable background = a.getDrawable(R.styleable.SudSetupWizardLayout_sudBackground); in init() 108 a.getDrawable(R.styleable.SudSetupWizardLayout_sudBackgroundTile); in init() 115 final Drawable illustration = a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustration); in init() 120 a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustrationImage); in init() 122 a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustrationHorizontalTile); in init() 316 final Drawable backgroundTileDrawable = getContext().getResources().getDrawable(backgroundTile); in setBackgroundTile() 329 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration() 330 final Drawable tile = context.getResources().getDrawable(horizontalTile); in getIllustration()
|
D | DividerItemDecoration.java | 88 a.getDrawable(R.styleable.SudDividerItemDecoration_android_listDivider); in DividerItemDecoration()
|
/external/setupdesign/main/src/com/google/android/setupdesign/items/ |
D | RecyclerItemAdapter.java | 113 typedArray.getDrawable( in onCreateViewHolder() 117 typedArray.getDrawable(R.styleable.SudRecyclerItemAdapter_selectableItemBackground); in onCreateViewHolder() 128 typedArray.getDrawable(R.styleable.SudRecyclerItemAdapter_android_colorBackground); in onCreateViewHolder()
|
/external/setupcompat/main/java/com/google/android/setupcompat/template/ |
D | StatusBarMixin.java | 92 setStatusBarBackground(a.getDrawable(R.styleable.SucStatusBarMixin_sucStatusBarBackground)); in StatusBarMixin() 118 .getDrawable(context, PartnerConfig.CONFIG_STATUS_BAR_BACKGROUND); in setStatusBarBackground()
|
D | FooterBarMixin.java | 673 icon = PartnerConfigHelper.get(context).getDrawable(context, buttonIconConfig); 746 LayerDrawable layerDrawable = (LayerDrawable) ((InsetDrawable) drawable).getDrawable(); 747 return (GradientDrawable) layerDrawable.getDrawable(0); 749 InsetDrawable insetDrawable = (InsetDrawable) ((RippleDrawable) drawable).getDrawable(0); 750 return (GradientDrawable) insetDrawable.getDrawable(); 763 return (RippleDrawable) ((InsetDrawable) drawable).getDrawable();
|
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/ |
D | PartnerConfigHelper.java | 119 public Drawable getDrawable(@NonNull Context context, PartnerConfig resourceConfig) { in getDrawable() method in PartnerConfigHelper 141 result = resource.getDrawable(resourceEntry.getResourceId(), null); in getDrawable() 143 result = resource.getDrawable(resourceEntry.getResourceId()); in getDrawable()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowNotification.java | 84 return imageView != null && imageView.getDrawable() != null in getBigPicture() 85 ? ((BitmapDrawable) imageView.getDrawable()).getBitmap() : null; in getBigPicture()
|
/external/setupdesign/main/src/com/google/android/setupdesign/util/ |
D | Partner.java | 63 public static Drawable getDrawable(Context context, @DrawableRes int id) { in getDrawable() method in Partner 65 return entry.resources.getDrawable(entry.id); in getDrawable()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | KeyboardConfigDialogPreference.java | 123 mUnselectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border); in onBindDialogView() 124 mSelectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border_active); in onBindDialogView()
|
D | RenderComponent.java | 83 public DrawableObject getDrawable() { in getDrawable() method in RenderComponent
|
D | MotionBlurComponent.java | 68 DrawableBitmap drawable = (DrawableBitmap)mBlurTarget.getDrawable(); in update()
|
D | FadeDrawableComponent.java | 124 DrawableObject drawable = mRenderComponent.getDrawable(); in update()
|
D | MainMenuActivity.java | 194 …((ImageView)mStartButton).setImageDrawable(getResources().getDrawable(R.drawable.ui_button_continu… in onResume() 197 …((ImageView)mStartButton).setImageDrawable(getResources().getDrawable(R.drawable.ui_button_start)); in onResume()
|
D | AnimationPlayerActivity.java | 83 mAnimation = (AnimationDrawable) canvasImage.getDrawable(); in onCreate()
|
/external/glide/library/src/main/java/com/bumptech/glide/request/target/ |
D | ImageViewTarget.java | 26 return view.getDrawable(); in getCurrentDrawable()
|
/external/glide/library/src/main/java/com/bumptech/glide/request/ |
D | GenericRequest.java | 381 errorDrawable = context.getResources().getDrawable(errorResourceId); in getErrorDrawable() 388 placeholderDrawable = context.getResources().getDrawable(placeholderResourceId); in getPlaceholderDrawable()
|
/external/skia/src/core/ |
D | SkPictureData.h | 116 SkDrawable* getDrawable(SkReadBuffer* reader) const { in getDrawable() function
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/fakes/ |
D | RoboMenuItem.java | 107 this.icon = iconRes == 0 ? null : context.getResources().getDrawable(iconRes); in setIcon()
|
/external/skqp/src/core/ |
D | SkPictureData.h | 116 SkDrawable* getDrawable(SkReadBuffer* reader) const { in getDrawable() function
|