Home
last modified time | relevance | path

Searched refs:drawableId (Results 1 – 19 of 19) 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/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DButtonProvider.java71 private View getButtonForDrawable(@DrawableRes int drawableId, @TaskbarButton int buttonType) { in getButtonForDrawable() argument
73 buttonView.setImageResource(drawableId); in getButtonForDrawable()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/matchers/
DDrawableMatcher.java36 DrawableMatcher(@NonNull Context context, @DrawableRes int drawableId) { in DrawableMatcher() argument
37 this(context.getDrawable(drawableId)); in DrawableMatcher()
DViewMatchers.java38 @NonNull Context context, @DrawableRes int drawableId) { in withDrawable() argument
39 return new DrawableMatcher(context, drawableId); in withDrawable()
/packages/apps/Settings/src/com/android/settings/accessibility/
DItemInfoArrayAdapter.java85 @DrawableRes int drawableId) { in ItemInfo() argument
88 mDrawableId = drawableId; in ItemInfo()
DMagnificationModePreferenceController.java295 @DrawableRes int drawableId, @MagnificationMode int magnificationMode) { in MagnificationModeInfo() argument
296 super(title, summary, drawableId); in MagnificationModeInfo()
/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/WallpaperPicker2/src/com/android/wallpaper/picker/
DTopLevelPickerActivity.java1075 int drawableId = isSelected ? R.drawable.center_blue : R.drawable.center_grey; in setCenterWallpaperPositionButtonSelected() local
1076 ButtonDrawableSetterCompat.setDrawableToButtonStart(button, getDrawable(drawableId)); in setCenterWallpaperPositionButtonSelected()
1081 int drawableId = isSelected ? R.drawable.center_crop_blue : R.drawable.center_crop_grey; in setCenterCropWallpaperPositionButtonSelected() local
1082 ButtonDrawableSetterCompat.setDrawableToButtonStart(button, getDrawable(drawableId)); in setCenterCropWallpaperPositionButtonSelected()
1087 int drawableId = isSelected ? R.drawable.stretch_blue : R.drawable.stretch_grey; in setStretchWallpaperPositionButtonSelected() local
1088 ButtonDrawableSetterCompat.setDrawableToButtonStart(button, getDrawable(drawableId)); in setStretchWallpaperPositionButtonSelected()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DGrantPermissionsViewHandlerImpl.kt258 private fun getDrawableFromId(drawableId: Int): Drawable { in <lambda>()
259 val source = ImageDecoder.createSource(mActivity.resources, drawableId) in <lambda>()
/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()