Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DUriUtils.java45 public static Uri getShortcutIconResourceUri(ShortcutIconResource iconResource) { in getShortcutIconResourceUri() argument
46 return Uri.parse(SCHEME_SHORTCUT_ICON_RESOURCE + SCHEME_DELIMITER + iconResource.packageName in getShortcutIconResourceUri()
48 + iconResource.resourceName.replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER)); in getShortcutIconResourceUri()
107 ShortcutIconResource iconResource = new ShortcutIconResource(); in getIconResource() local
108 iconResource.packageName = uri.getAuthority(); in getIconResource()
110 iconResource.resourceName = uri.toString().substring( in getIconResource()
113 return iconResource; in getIconResource()
115 ShortcutIconResource iconResource = new ShortcutIconResource(); in getIconResource() local
116 iconResource.packageName = uri.getAuthority(); in getIconResource()
117 iconResource.resourceName = uri.toString().substring( in getIconResource()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUriUtils.java86 public static Uri getShortcutIconResourceUri(ShortcutIconResource iconResource) { in getShortcutIconResourceUri() argument
87 return Uri.parse(SCHEME_SHORTCUT_ICON_RESOURCE + SCHEME_DELIMITER + iconResource.packageName in getShortcutIconResourceUri()
89 + iconResource.resourceName.replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER)); in getShortcutIconResourceUri()
190 ShortcutIconResource iconResource = new ShortcutIconResource(); in getIconResource() local
191 iconResource.packageName = uri.getAuthority(); in getIconResource()
193 iconResource.resourceName = uri.toString().substring( in getIconResource()
196 return iconResource; in getIconResource()
198 ShortcutIconResource iconResource = new ShortcutIconResource(); in getIconResource() local
199 iconResource.packageName = uri.getAuthority(); in getIconResource()
200 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/Launcher2/src/com/android/launcher2/
DShortcutInfo.java54 Intent.ShortcutIconResource iconResource; field in ShortcutInfo
69 if (info.iconResource != null) { in ShortcutInfo()
70 iconResource = new Intent.ShortcutIconResource(); in ShortcutInfo()
71 iconResource.packageName = info.iconResource.packageName; in ShortcutInfo()
72 iconResource.resourceName = info.iconResource.resourceName; in ShortcutInfo()
141 if (iconResource != null) { in onAddToDatabase()
143 iconResource.packageName); in onAddToDatabase()
145 iconResource.resourceName); in onAddToDatabase()
DInstallShortcutReceiver.java95 if (info.iconResource != null) { in addToInstallQueue()
96 json = json.key(ICON_RESOURCE_NAME_KEY).value(info.iconResource.resourceName); in addToInstallQueue()
98 .value(info.iconResource.packageName); in addToInstallQueue()
134 Intent.ShortcutIconResource iconResource = in getAndClearInstallQueue() local
136 iconResource.resourceName = iconResourceName; in getAndClearInstallQueue()
137 iconResource.packageName = iconResourcePackageName; in getAndClearInstallQueue()
138 data.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource); in getAndClearInstallQueue()
164 Intent.ShortcutIconResource iconResource; field in InstallShortcutReceiver.PendingInstallShortcutInfo
196 Intent.ShortcutIconResource iconResource = in onReceive() local
205 info.iconResource = iconResource; in onReceive()
DLauncherModel.java2434 ShortcutIconResource iconResource = null; in infoFromShortcutIntent() local
2443 iconResource = (ShortcutIconResource) extra; in infoFromShortcutIntent()
2446 iconResource.packageName); in infoFromShortcutIntent()
2447 final int id = resources.getIdentifier(iconResource.resourceName, null, null); in infoFromShortcutIntent()
2473 info.iconResource = iconResource; in infoFromShortcutIntent()
/packages/apps/Launcher3/src/com/android/launcher3/
DShortcutInfo.java83 public Intent.ShortcutIconResource iconResource; field in ShortcutInfo
142 iconResource = info.iconResource; in ShortcutInfo()
176 if (iconResource != null) { in onAddToDatabase()
177 writer.put(LauncherSettings.BaseLauncherColumns.ICON_PACKAGE, iconResource.packageName) in onAddToDatabase()
179 iconResource.resourceName); in onAddToDatabase()
DInstallShortcutReceiver.java428 Intent.ShortcutIconResource iconResource = in encodeToString() local
442 if (iconResource != null) { in encodeToString()
443 json = json.key(ICON_RESOURCE_NAME_KEY).value(iconResource.resourceName); in encodeToString()
445 .value(iconResource.packageName); in encodeToString()
550 Intent.ShortcutIconResource iconResource = in decode() local
552 iconResource.resourceName = iconResourceName; in decode()
553 iconResource.packageName = iconResourcePackageName; in decode()
554 data.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource); in decode()
662 info.iconResource = (Intent.ShortcutIconResource) extra; in createShortcutInfo()
663 … info.iconBitmap = LauncherIcons.createIconBitmap(info.iconResource, app.getContext()); in createShortcutInfo()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java118 public ListItem(String name, int iconResource) { in ListItem() argument
120 mIconResource = iconResource; in ListItem()
227 String name, int iconResource, int pinnedPosition, int pinnedPriority) { in PinnedListItem() argument
228 super(name, iconResource); in PinnedListItem()
272 int iconResource = item.getIconResource(); in init() local
275 if (iconResource == 0) { in init()
280 icon.setImageResource(iconResource); in init()
/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/apps/Launcher3/src/com/android/launcher3/model/
DLoaderCursor.java174 info.iconResource = new ShortcutIconResource(); in loadIcon()
175 info.iconResource.packageName = packageName; in loadIcon()
176 info.iconResource.resourceName = resourceName; in loadIcon()
177 icon = LauncherIcons.createIconBitmap(info.iconResource, mContext); in loadIcon()
DPackageUpdatedTask.java192 if ((si.iconResource != null) in execute()
193 && packageSet.contains(si.iconResource.packageName)) { in execute()
194 Bitmap icon = LauncherIcons.createIconBitmap(si.iconResource, context); in execute()
/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/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java4513 Integer iconResource, Integer labelResource) { in replaceStatusUpdate() argument
4527 bindLong(statusUpdateReplace, 5, iconResource); in replaceStatusUpdate()
4533 Integer iconResource, Integer labelResource) { in insertStatusUpdate() argument
4546 bindLong(statusUpdateInsert, 4, iconResource); in insertStatusUpdate()
4573 bindLong(statusAttributionUpdate, 2, iconResource); in insertStatusUpdate()
DContactsProvider2.java3509 String iconResource = getResourceName(resources, "drawable", iconResourceId); in insertStatusUpdate() local
3534 streamItemValues.put(StreamItems.RES_ICON, iconResource); in insertStatusUpdate()