Home
last modified time | relevance | path

Searched refs:drawableId (Results 1 – 16 of 16) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCachingIconLoader.java55 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() argument
56 if (DBG) Log.d(TAG, "getIcon(" + drawableId + ")"); in getIcon()
57 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIcon()
63 drawableState = queryCache(drawableId); in getIcon()
66 storeInIconCache(drawableId, newEntry); in getIcon()
76 NowOrLater<Drawable> drawable = mWrapped.getIcon(drawableId); in getIcon()
78 storeInIconCache(drawableId, newEntry); in getIcon() argument
82 public Uri getIconUri(String drawableId) {
83 return mWrapped.getIconUri(drawableId);
86 private synchronized NowOrLater<Drawable.ConstantState> queryCache(String drawableId) {
[all …]
DPackageIconLoader.java92 public NowOrLater<Drawable> getIcon(final String drawableId) { in getIcon() argument
93 if (DBG) Log.d(TAG, "getIcon(" + drawableId + ")"); in getIcon()
94 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIcon()
103 int resourceId = Integer.parseInt(drawableId); in getIcon()
109 Uri uri = Uri.parse(drawableId); in getIcon()
118 Log.w(TAG, "Icon resource not found: " + drawableId); in getIcon()
124 public Uri getIconUri(String drawableId) { in getIconUri() argument
125 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIconUri()
130 int resourceId = Integer.parseInt(drawableId); in getIconUri()
133 return Uri.parse(drawableId); in getIconUri()
DAbstractSource.java68 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() argument
69 return getIconLoader().getIcon(drawableId); in getIcon()
73 public Uri getIconUri(String drawableId) { in getIconUri() argument
74 return getIconLoader().getIconUri(drawableId); in getIconUri()
DIconLoader.java49 NowOrLater<Drawable> getIcon(String drawableId); in getIcon() argument
54 Uri getIconUri(String drawableId); in getIconUri() argument
DSource.java63 NowOrLater<Drawable> getIcon(String drawableId); in getIcon() argument
70 Uri getIconUri(String drawableId); in getIconUri() argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockIconLoader.java40 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() argument
41 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIcon()
49 public Uri getIconUri(String drawableId) { in getIconUri() argument
50 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIconUri()
DMockSource.java84 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() argument
88 public Uri getIconUri(String drawableId) { in getIconUri() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/
DIconUtils.java67 public static Drawable applyTintColor(Context context, int drawableId, int tintColorId) { in applyTintColor() argument
68 final Drawable icon = context.getDrawable(drawableId); in applyTintColor()
78 public static Drawable applyTintAttr(Context context, int drawableId, int tintAttrId) { in applyTintAttr() argument
81 return applyTintColor(context, drawableId, outValue.resourceId); in applyTintAttr()
/packages/apps/Camera2/src/com/android/camera/ui/
DRadioOptions.java66 int drawableId = a.getResourceId(R.styleable.RadioOptions_selected_drawable, 0); in RadioOptions() local
67 if (drawableId > 0) { in RadioOptions()
69 .getDrawable(drawableId); in RadioOptions()
DBottomBar.java105 int drawableId = ar.getResourceId(i, -1); in BottomBar() local
107 context.getResources().getDrawable(drawableId).getConstantState(); in BottomBar()
/packages/apps/Car/libs/car-ui-lib/tests/unit/src/com/android/car/ui/matchers/
DViewMatchers.java24 public static Matcher<View> withDrawable(int drawableId) { in withDrawable() argument
25 return new DrawableMatcher(drawableId); in withDrawable()
DDrawableMatcher.java32 DrawableMatcher(int drawableId) { in DrawableMatcher() argument
33 mDrawableId = drawableId; in DrawableMatcher()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DClockDrawableWrapper.java94 int drawableId = metadata.getInt(ROUND_ICON_METADATA_KEY, 0); in forPackage() local
95 if (drawableId == 0) { in forPackage()
100 drawableId, iconDpi).mutate(); in forPackage()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DTopLevelPickerActivity.java1045 int drawableId = isSelected ? R.drawable.center_blue : R.drawable.center_grey; in setCenterWallpaperPositionButtonSelected() local
1046 ButtonDrawableSetterCompat.setDrawableToButtonStart(button, getDrawable(drawableId)); in setCenterWallpaperPositionButtonSelected()
1051 int drawableId = isSelected ? R.drawable.center_crop_blue : R.drawable.center_crop_grey; in setCenterCropWallpaperPositionButtonSelected() local
1052 ButtonDrawableSetterCompat.setDrawableToButtonStart(button, getDrawable(drawableId)); in setCenterCropWallpaperPositionButtonSelected()
1057 int drawableId = isSelected ? R.drawable.stretch_blue : R.drawable.stretch_grey; in setStretchWallpaperPositionButtonSelected() local
1058 ButtonDrawableSetterCompat.setDrawableToButtonStart(button, getDrawable(drawableId)); in setStretchWallpaperPositionButtonSelected()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPinPadView.java113 public void setEnterKeyIcon(@DrawableRes int drawableId) { in setEnterKeyIcon() argument
114 mEnterKey.setImageResource(drawableId); in setEnterKeyIcon()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java1860 public void setDrawableResource(int drawableId) { in setDrawableResource() argument
1863 final Drawable drawable = ContextCompat.getDrawable(getContext(), drawableId); in setDrawableResource()