Home
last modified time | relevance | path

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

12345678910>>...17

/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DCat.java381 body = context.getDrawable(R.drawable.body);
382 head = context.getDrawable(R.drawable.head);
383 leg1 = context.getDrawable(R.drawable.leg1);
384 leg2 = context.getDrawable(R.drawable.leg2);
385 leg3 = context.getDrawable(R.drawable.leg3);
386 leg4 = context.getDrawable(R.drawable.leg4);
387 tail = context.getDrawable(R.drawable.tail);
388 leftEar = context.getDrawable(R.drawable.left_ear);
389 rightEar = context.getDrawable(R.drawable.right_ear);
390 rightEarInside = context.getDrawable(R.drawable.right_ear_inside);
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DImageViewBindingAdapterTest.java43 assertEquals(mBindingObject.getSrc(), mView.getDrawable()); in testImageView()
49 assertEquals(mBindingObject.getSrc(), mView.getDrawable()); in testImageView()
56 assertNull(mBinder.view2.getDrawable()); in testImageSource()
57 assertNull(mBinder.view3.getDrawable()); in testImageSource()
66 assertNotNull(mBinder.view2.getDrawable()); in testImageSource()
67 assertNotNull(mBinder.view3.getDrawable()); in testImageSource()
74 assertNotNull(mBinder.view4.getDrawable()); in testConditionalSource()
77 assertNull(mBinder.view4.getDrawable()); in testConditionalSource()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DIconUtils.java33 return pm.getDrawable(info.packageName, icon, info.applicationInfo); in loadPackageIcon()
36 return context.getDrawable(icon); in loadPackageIcon()
46 return context.getDrawable(R.drawable.ic_grid_folder); in loadMimeIcon()
48 return context.getDrawable(com.android.internal.R.drawable.ic_doc_folder); in loadMimeIcon()
60 final Drawable icon = context.getDrawable(drawableId); in applyTintColor()
/frameworks/base/core/java/com/android/internal/util/
DMimeIconUtils.java202 return context.getDrawable(R.drawable.ic_doc_folder); in loadMimeIcon()
208 return context.getDrawable(resId); in loadMimeIcon()
219 return context.getDrawable(R.drawable.ic_doc_audio); in loadMimeIcon()
221 return context.getDrawable(R.drawable.ic_doc_image); in loadMimeIcon()
223 return context.getDrawable(R.drawable.ic_doc_text); in loadMimeIcon()
225 return context.getDrawable(R.drawable.ic_doc_video); in loadMimeIcon()
227 return context.getDrawable(R.drawable.ic_doc_generic); in loadMimeIcon()
/frameworks/support/compat/java/android/support/v4/content/res/
DResourcesCompat.java57 public static Drawable getDrawable(@NonNull Resources res, @DrawableRes int id, in getDrawable() method in ResourcesCompat
60 return ResourcesCompatApi21.getDrawable(res, id, theme); in getDrawable()
62 return res.getDrawable(id); in getDrawable()
97 return res.getDrawable(id); in getDrawableForDensity()
/frameworks/base/core/java/android/widget/
DTabWidget.java101 mLeftStrip = a.getDrawable(R.styleable.TabWidget_tabStripLeft); in TabWidget()
103 mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left_v4); in TabWidget()
105 mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left); in TabWidget()
110 mRightStrip = a.getDrawable(R.styleable.TabWidget_tabStripRight); in TabWidget()
112 mRightStrip = context.getDrawable(R.drawable.tab_bottom_right_v4); in TabWidget()
114 mRightStrip = context.getDrawable(R.drawable.tab_bottom_right); in TabWidget()
246 setDividerDrawable(mContext.getDrawable(resId)); in setDividerDrawable()
273 setLeftStripDrawable(mContext.getDrawable(resId)); in setLeftStripDrawable()
312 setRightStripDrawable(mContext.getDrawable(resId)); in setRightStripDrawable()
DAnalogClock.java82 mDial = a.getDrawable(com.android.internal.R.styleable.AnalogClock_dial); in AnalogClock()
84 mDial = context.getDrawable(com.android.internal.R.drawable.clock_dial); in AnalogClock()
87 mHourHand = a.getDrawable(com.android.internal.R.styleable.AnalogClock_hand_hour); in AnalogClock()
89 mHourHand = context.getDrawable(com.android.internal.R.drawable.clock_hand_hour); in AnalogClock()
92 mMinuteHand = a.getDrawable(com.android.internal.R.styleable.AnalogClock_hand_minute); in AnalogClock()
94 mMinuteHand = context.getDrawable(com.android.internal.R.drawable.clock_hand_minute); in AnalogClock()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DTintResourcesTest.java45 tintResources.getDrawable(android.R.drawable.ic_delete); in testTintResourcesDelegateBackToOriginalResources()
62 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable() method in TintResourcesTest.TestResources
64 return super.getDrawable(id); in getDrawable()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DVectorEnabledTintResources.java64 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable() method in VectorEnabledTintResources
69 return super.getDrawable(id); in getDrawable()
74 return super.getDrawable(id); in superGetDrawable()
DAppCompatImageHelper.java44 Drawable drawable = mView.getDrawable(); in loadFromAttributes()
54 drawable = AppCompatResources.getDrawable(mView.getContext(), id); in loadFromAttributes()
73 final Drawable d = AppCompatResources.getDrawable(mView.getContext(), resId); in setImageResource()
DTintTypedArray.java67 public Drawable getDrawable(int index) { in getDrawable() method in TintTypedArray
71 return AppCompatResources.getDrawable(mContext, resourceId); in getDrawable()
74 return mWrapped.getDrawable(index); in getDrawable()
81 return AppCompatDrawableManager.get().getDrawable(mContext, resourceId, true); in getDrawableIfKnown()
DTintResources.java44 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable() method in TintResources
45 Drawable d = super.getDrawable(id); in getDrawable()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DDrawableLayoutDirectionHelperTest.java46 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableLtr()
63 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableRtl()
80 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableViewRtl()
107 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableContextRtl()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DMoreNinePatchesActivity.java53 mDrawable1 = res.getDrawable(R.drawable.progress_vertical_holo_dark); in PatchView()
54 mDrawable2 = res.getDrawable(R.drawable.scrubber_progress_vertical_holo_dark); in PatchView()
55 mDrawable3 = res.getDrawable(R.drawable.scrubber_vertical_primary_holo); in PatchView()
DThinPatchesActivity.java54 mPatch1 = resources.getDrawable(R.drawable.patch); in PatchView()
55 mPatch2 = resources.getDrawable(R.drawable.btn_toggle_on); in PatchView()
56 mPatch3 = resources.getDrawable(R.drawable.patch2); in PatchView()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DSetupWizardLayout.java89 a.getDrawable(R.styleable.SuwSetupWizardLayout_suwBackground); in init()
94 a.getDrawable(R.styleable.SuwSetupWizardLayout_suwBackgroundTile); in init()
102 a.getDrawable(R.styleable.SuwSetupWizardLayout_suwIllustration); in init()
107 a.getDrawable(R.styleable.SuwSetupWizardLayout_suwIllustrationImage); in init()
108 final Drawable horizontalTile = a.getDrawable( in init()
332 getContext().getResources().getDrawable(backgroundTile); in setBackgroundTile()
345 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration()
346 final Drawable tile = context.getResources().getDrawable(horizontalTile); in getIllustration()
/frameworks/support/compat/api21/android/support/v4/content/
DContextCompatApi21.java25 public static Drawable getDrawable(Context context, int id) { in getDrawable() method in ContextCompatApi21
26 return context.getDrawable(id); in getDrawable()
/frameworks/support/core-utils/java/android/support/v4/content/res/
DTypedArrayUtils.java41 public static Drawable getDrawable(TypedArray a, @StyleableRes int index, in getDrawable() method in TypedArrayUtils
43 Drawable val = a.getDrawable(index); in getDrawable()
45 val = a.getDrawable(fallbackIndex); in getDrawable()
/frameworks/support/compat/api21/android/support/v4/content/res/
DResourcesCompatApi21.java25 public static Drawable getDrawable(Resources res, int id, Theme theme) in getDrawable() method in ResourcesCompatApi21
27 return res.getDrawable(id, theme); in getDrawable()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineButtonsTest.java65 int pauseHeight = Math.max(mPause.getDrawable().getIntrinsicHeight() in testLayout()
68 int prevHeight = Math.max(mPrev.getDrawable().getIntrinsicHeight() + mPrev.getPaddingTop() in testLayout()
71 int nextHeight = Math.max(mNext.getDrawable().getIntrinsicHeight() + mNext.getPaddingTop() in testLayout()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/
DMusicConsumptionExampleFragment.java81 res.getDrawable(R.drawable.ic_playlist_add_white_24dp, in onCreate()
83 res.getDrawable(R.drawable.ic_playlist_add_filled_24dp, in onCreate()
91 res.getDrawable(R.drawable.ic_favorite_border_white_24dp, in onCreate()
93 res.getDrawable(R.drawable.ic_favorite_filled_24dp, in onCreate()
104 metaData.setCover(getResources().getDrawable(song.getImageResource(getActivity()), null)); in onCreate()
303 metaData.setCover(getResources().getDrawable(song.getImageResource(getActivity()), null)); in startPlayback()
/frameworks/base/core/tests/coretests/src/android/view/
DMutateDrawable.java34 ok.setBackgroundDrawable(getResources().getDrawable( in onCreate()
39 cancel.setBackgroundDrawable(getResources().getDrawable( in onCreate()
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/
DRecyclerItemAdapter.java80 Drawable selectableItemBackground = typedArray.getDrawable( in onCreateViewHolder()
83 selectableItemBackground = typedArray.getDrawable( in onCreateViewHolder()
87 final Drawable background = typedArray.getDrawable( in onCreateViewHolder()
/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java136 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
201 final int opacity = getDrawable().getOpacity(); in getOpacity()
225 final int childWidth = getDrawable().getIntrinsicWidth(); in getIntrinsicWidth()
234 final int childHeight = getDrawable().getIntrinsicHeight(); in getIntrinsicHeight()
243 getDrawable().getOutline(outline); in getOutline()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DImageCardView.java179 if (mImageView.getDrawable() == null) { in buildImageCardView()
257 Drawable background = cardAttrs.getDrawable(R.styleable.lbImageCardView_infoAreaBackground); in buildImageCardView()
265 if (mBadgeImage != null && mBadgeImage.getDrawable() == null) { in buildImageCardView()
359 return mImageView.getDrawable(); in getMainImage()
455 return mBadgeImage.getDrawable(); in getBadgeImage()

12345678910>>...17