Home
last modified time | relevance | path

Searched refs:iconResource (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUriUtils.java91 public static Uri getShortcutIconResourceUri(ShortcutIconResource iconResource) { in getShortcutIconResourceUri() argument
92 return Uri.parse(SCHEME_SHORTCUT_ICON_RESOURCE + SCHEME_DELIMITER + iconResource.packageName in getShortcutIconResourceUri()
94 + iconResource.resourceName.replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER)); in getShortcutIconResourceUri()
195 ShortcutIconResource iconResource = new ShortcutIconResource(); in getIconResource() local
196 iconResource.packageName = uri.getAuthority(); in getIconResource()
198 iconResource.resourceName = uri.toString().substring( in getIconResource()
201 return iconResource; in getIconResource()
203 ShortcutIconResource iconResource = new ShortcutIconResource(); in getIconResource() local
204 iconResource.packageName = uri.getAuthority(); in getIconResource()
205 iconResource.resourceName = uri.toString().substring( in getIconResource()
[all …]
DBitmapWorkerTask.java123 private Bitmap getBitmapFromResource(Context context, ShortcutIconResource iconResource, in getBitmapFromResource() argument
126 Log.d(TAG, "Loading " + iconResource.toString()); in getBitmapFromResource()
129 Object drawable = loadDrawable(context, iconResource); in getBitmapFromResource()
140 Log.w(TAG, "Could not load package: " + iconResource.packageName + "! NameNotFound"); in getBitmapFromResource()
143 Log.w(TAG, "Could not load resource: " + iconResource.resourceName + "! NotFound"); in getBitmapFromResource()
300 public static Drawable getDrawable(Context context, ShortcutIconResource iconResource) in getDrawable() argument
303 context.getPackageManager().getResourcesForApplication(iconResource.packageName); in getDrawable()
309 int id = resources.getIdentifier(iconResource.resourceName, null, null); in getDrawable()
DDrawableLoader.java149 private Drawable getBitmapFromResource(ShortcutIconResource iconResource, in getBitmapFromResource() argument
152 Log.d(TAG, "Loading " + iconResource.toString()); in getBitmapFromResource()
155 Object drawable = loadDrawable(outputOptions.getContext(), iconResource); in getBitmapFromResource()
169 Log.w(TAG, "Could not load package: " + iconResource.packageName + "! NameNotFound"); in getBitmapFromResource()
172 Log.w(TAG, "Could not load resource: " + iconResource.resourceName + "! NotFound"); in getBitmapFromResource()
342 public static Drawable getDrawable(Context context, ShortcutIconResource iconResource) in getDrawable() argument
345 context.getPackageManager().getResourcesForApplication(iconResource.packageName); in getDrawable()
348 int id = resources.getIdentifier(iconResource.resourceName, null, null); in getDrawable()
DAccountImageHelper.java115 ShortcutIconResource iconResource = new ShortcutIconResource(); in getDefaultPictureUri() local
116 iconResource.packageName = context.getPackageName(); in getDefaultPictureUri()
117 iconResource.resourceName = context.getResources().getResourceName( in getDefaultPictureUri()
119 return UriUtils.getShortcutIconResourceUri(iconResource).toString(); in getDefaultPictureUri()
DBitmapWorkerOptions.java106 public Builder resource(ShortcutIconResource iconResource) { in resource() argument
107 mPackageName = iconResource.packageName; in resource()
108 mResourceName = iconResource.resourceName; in resource()
DDrawableDownloader.java172 public static Drawable getDrawable(Context context, ShortcutIconResource iconResource) in getDrawable() argument
174 return DrawableLoader.getDrawable(context, iconResource); in getDrawable()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspaceItemInfo.java75 public Intent.ShortcutIconResource iconResource; field in WorkspaceItemInfo
98 iconResource = info.iconResource; in WorkspaceItemInfo()
129 if (iconResource != null) { in onAddToDatabase()
130 writer.put(Favorites.ICON_PACKAGE, iconResource.packageName) in onAddToDatabase()
131 .put(Favorites.ICON_RESOURCE, iconResource.resourceName); in onAddToDatabase()
DInstallShortcutReceiver.java453 Intent.ShortcutIconResource iconResource = in encodeToString() local
467 if (iconResource != null) { in encodeToString()
468 json = json.key(ICON_RESOURCE_NAME_KEY).value(iconResource.resourceName); in encodeToString()
470 .value(iconResource.packageName); in encodeToString()
574 Intent.ShortcutIconResource iconResource = in decode() local
576 iconResource.resourceName = iconResourceName; in decode()
577 iconResource.packageName = iconResourcePackageName; in decode()
578 data.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource); in decode()
652 info.iconResource = (Intent.ShortcutIconResource) extra; in createWorkspaceItemInfo()
653 iconInfo = li.createIconBitmap(info.iconResource); in createWorkspaceItemInfo()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java120 public ListItem(String name, int iconResource) { in ListItem() argument
122 mIconResource = iconResource; in ListItem()
230 String name, int iconResource, int pinnedPosition, int pinnedPriority) { in PinnedListItem() argument
231 super(name, iconResource); in PinnedListItem()
278 int iconResource = item.getIconResource(); in init() local
281 if (iconResource == 0) { in init()
286 icon.setImageResource(iconResource); in init()
DSelectWifiState.java179 int iconResource = AccessPoint.SECURITY_NONE == WifiSecurityUtil.getSecurity(result) in getNetworks() local
184 .icon(iconResource) in getNetworks()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilterView.java139 private void bindView(int iconResource, int textResource) { in bindView() argument
140 if (iconResource != 0) { in bindView()
142 mIcon.setImageResource(iconResource); in bindView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceDataConverter.java272 int iconResource = resolveInfo.getIconResource(); in getAccessibilitySliceData() local
273 if (iconResource == 0) { in getAccessibilitySliceData()
274 iconResource = R.drawable.ic_accessibility_generic; in getAccessibilitySliceData()
279 .setIcon(iconResource) in getAccessibilitySliceData()
DSliceBuilderUtils.java449 int iconResource = data.getIconResource(); in getSafeIcon() local
451 if (iconResource == 0) { in getSafeIcon()
452 iconResource = R.drawable.ic_settings_accent; in getSafeIcon()
455 return IconCompat.createWithResource(context, iconResource); in getSafeIcon()
DSliceData.java205 public Builder setIcon(int iconResource) { in setIcon() argument
206 mIconResource = iconResource; in setIcon()
DSlicesDatabaseAccessor.java161 final int iconResource = cursor.getInt(cursor.getColumnIndex(IndexColumns.ICON_RESOURCE)); in buildSliceData() local
183 .setIcon(iconResource) in buildSliceData()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceDataConverter.java290 int iconResource = resolveInfo.getIconResource(); in getAccessibilitySliceData() local
291 if (iconResource == 0) { in getAccessibilitySliceData()
292 iconResource = R.drawable.ic_accessibility_generic; in getAccessibilitySliceData()
297 .setIcon(iconResource) in getAccessibilitySliceData()
DSliceBuilderUtils.java443 int iconResource = data.getIconResource(); in getSafeIcon() local
445 if (iconResource == 0) { in getSafeIcon()
446 iconResource = R.drawable.ic_settings_accent; in getSafeIcon()
449 return IconCompat.createWithResource(context, iconResource); in getSafeIcon()
DSliceData.java205 public Builder setIcon(int iconResource) { in setIcon() argument
206 mIconResource = iconResource; in setIcon()
DSlicesDatabaseAccessor.java161 final int iconResource = cursor.getInt(cursor.getColumnIndex(IndexColumns.ICON_RESOURCE)); in buildSliceData() local
183 .setIcon(iconResource) in buildSliceData()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderCursor.java181 info.iconResource = new ShortcutIconResource(); in loadIcon()
182 info.iconResource.packageName = packageName; in loadIcon()
183 info.iconResource.resourceName = resourceName; in loadIcon()
184 BitmapInfo iconInfo = li.createIconBitmap(info.iconResource); in loadIcon()
DPackageUpdatedTask.java191 if ((si.iconResource != null) in execute()
192 && packageSet.contains(si.iconResource.packageName)) { in execute()
194 BitmapInfo iconInfo = li.createIconBitmap(si.iconResource); in execute()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DCheckableLabeledButton.java49 @DrawableRes private int iconResource = 0; field in CheckableLabeledButton
149 if (iconResource != drawableRes) { in setIconDrawable()
151 iconResource = drawableRes; in setIconDrawable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DActivityPicker.java162 ShortcutIconResource iconResource = icons.get(i); in getItems() local
164 iconResource.packageName); in getItems()
166 iconResource.resourceName, null, null), null); in getItems()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java162 ShortcutIconResource iconResource = icons.get(i); in getItems() local
164 iconResource.packageName); in getItems()
166 iconResource.resourceName, null, null), null); in getItems()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java499 int iconResource = hasHeart ? R.drawable.ic_star_filled : R.drawable.ic_star_empty; in getRatingAction() local
502 return new RawCustomPlaybackAction(iconResource, null, ACTION_SET_RATING, extras); in getRatingAction()

12