/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | UriUtils.java | 45 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/ |
D | UriUtils.java | 86 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 …]
|
D | BitmapWorkerTask.java | 123 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()
|
D | DrawableLoader.java | 149 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()
|
D | AccountImageHelper.java | 115 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()
|
D | BitmapWorkerOptions.java | 106 public Builder resource(ShortcutIconResource iconResource) { in resource() argument 107 mPackageName = iconResource.packageName; in resource() 108 mResourceName = iconResource.resourceName; in resource()
|
D | DrawableDownloader.java | 172 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/ |
D | ShortcutInfo.java | 54 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()
|
D | InstallShortcutReceiver.java | 95 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()
|
D | LauncherModel.java | 2434 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/ |
D | ShortcutInfo.java | 83 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()
|
D | InstallShortcutReceiver.java | 428 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/ |
D | SelectFromListWizardFragment.java | 118 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/ |
D | ContactListFilterView.java | 139 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/ |
D | LoaderCursor.java | 174 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()
|
D | PackageUpdatedTask.java | 192 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/ |
D | ActivityPicker.java | 162 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/ |
D | ContactsDatabaseHelper.java | 4513 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()
|
D | ContactsProvider2.java | 3509 String iconResource = getResourceName(resources, "drawable", iconResourceId); in insertStatusUpdate() local 3534 streamItemValues.put(StreamItems.RES_ICON, iconResource); in insertStatusUpdate()
|