/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | InstantAppRegistry.java | 98 private static final String INSTANT_APP_ICON_FILE = "icon.png"; 511 Drawable icon = pkg.applicationInfo.loadIcon(mService.mContext.getPackageManager()); 514 if (icon instanceof BitmapDrawable) { 515 bitmap = ((BitmapDrawable) icon).getBitmap(); 517 bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), 518 icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); 520 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); 521 icon [all...] |
/frameworks/base/core/java/android/app/slice/ |
H A D | Slice.java | 92 * the content should be used in the shortcut representation of the slice (icon, label, action), 469 public Builder addIcon(Icon icon, @Nullable @SliceSubtype String subType, argument 471 Preconditions.checkNotNull(icon); 472 mItems.add(new SliceItem(icon, SliceItem.FORMAT_IMAGE, subType, hints));
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | Utils.java | 140 * Returns a circular icon for a user. 150 Bitmap icon = um.getUserIcon(user.id); 151 if (icon != null) { 152 return new UserIconDrawable(iconSize).setIcon(icon).bake(); 319 * Returns the Wifi icon resource for a given RSSI level. 326 throw new IllegalArgumentException("No Wifi icon found for level: " + level);
|
/frameworks/support/media/src/main/java/android/support/v4/media/ |
H A D | MediaMetadataCompat.java | 189 * An icon or thumbnail that is suitable for display to the user. When 190 * displaying an icon for media described by this metadata this should be 193 * The icon should be relatively small and may be scaled down 201 * An icon or thumbnail that is suitable for display to the user. When 481 Bitmap icon = null; 509 icon = next; 534 bob.setIconBitmap(icon);
|
/frameworks/support/media/src/main/java/androidx/media/ |
H A D | MediaUtils2.java | 166 Bitmap icon = descCompat.getIconBitmap(); 167 if (icon != null) { 168 metadata2Builder.putBitmap(METADATA_KEY_DISPLAY_ICON, icon);
|
/frameworks/base/core/java/android/app/ |
H A D | AlertDialog.java | 406 * Set resId to 0 if you don't want an icon. 407 * @param resId the resourceId of the drawable to use as the icon or 0 408 * if you don't want an icon. 414 public void setIcon(Drawable icon) { argument 415 mAlert.setIcon(icon); 419 * Set an icon as supplied by a theme attribute. e.g. android.R.attr.alertDialogIcon 536 * needs more customization. Using this will replace the title and icon 594 public Builder setIcon(Drawable icon) { argument 595 P.mIcon = icon; 600 * Set an icon a [all...] |
H A D | ActionBar.java | 67 * <p>When using the Holo themes the action bar shows the application icon on 73 * (formerly "Home") takes over the space previously occupied by the application icon. 106 * Standard navigation mode. Consists of either a logo or icon 157 * Use logo instead of icon if available. This flag will cause appropriate 158 * navigation modes to use a wider logo in place of the standard icon. 167 * navigation elements. This includes logo and icon. 219 * Custom navigation views appear between the application icon and 233 * <p>Custom navigation views appear between the application icon and 253 * <p>Custom navigation views appear between the application icon and 269 * Set the icon t 296 setIcon(Drawable icon) argument 1190 setIcon(Drawable icon) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | MenuItem.java | 63 * it also has an icon specified. 203 * Change the icon associated with this item. This icon will not always be 207 * @param icon The new icon (as a Drawable) to be displayed. 210 public MenuItem setIcon(Drawable icon); argument 213 * Change the icon associated with this item. This icon will not always be 217 * This method will set the resource ID of the icon which will be used to 220 * @param iconRes The new icon (a [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebChromeClient.java | 48 * @param icon A Bitmap containing the favicon for the current page. 50 public void onReceivedIcon(WebView view, Bitmap icon) {} argument 53 * Notify the host application of the url for an apple-touch-icon. 55 * @param url The icon url. 56 * @param precomposed {@code true} if the url is for a precomposed touch icon.
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
H A D | HighResThumbnailLoader.java | 231 t.notifyTaskDataLoaded(thumbnail, t.icon);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/ |
H A D | PipControlButtonView.java | 82 mIconImageView = findViewById(R.id.icon);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | AirplaneModeTile.java | 103 state.icon = mIcon;
|
H A D | BatterySaverTile.java | 87 state.icon = bsi;
|
H A D | DataSaverTile.java | 98 state.icon = ResourceIcon.get(state.value ? R.drawable.ic_data_saver
|
H A D | LocationTile.java | 107 state.icon = mIcon;
|
H A D | NightDisplayTile.java | 106 state.icon = ResourceIcon.get(R.drawable.ic_qs_night_display_on);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | OperatorNameView.java | 96 public void setIsAirplaneMode(IconState icon) { argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | StatusBarIconViewTest.java | 103 mStatusBarIcon.icon = Icon.createWithResource("mockPackage", R.drawable.ic_android);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ViewLayersActivity.java | 112 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
|
H A D | ViewLayersActivity5.java | 131 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
|
H A D | ViewPropertyAlphaActivity.java | 90 text.setSpan(new ImageSpan(this, R.drawable.icon), 21, 22,
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | BridgeActionBar.java | 121 /** Setup things like the title, subtitle, icon etc. */ 131 protected abstract void setIcon(String icon); argument
|
/frameworks/support/slices/core/src/main/java/androidx/slice/ |
H A D | Slice.java | 327 public Builder addIcon(IconCompat icon, @Nullable String subType, argument 329 mItems.add(new SliceItem(icon, FORMAT_IMAGE, subType, hints)); 338 public Builder addIcon(IconCompat icon, @Nullable String subType, argument 340 return addIcon(icon, subType, hints.toArray(new String[hints.size()]));
|
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/ |
H A D | RowView.java | 450 IconCompat icon = null; 465 icon = sliceItem.getIcon(); 471 if (icon != null) { 474 iv.setImageDrawable(icon.loadDrawable(getContext()));
|
/frameworks/base/core/java/android/content/pm/ |
H A D | ShortcutInfo.java | 101 /** @hide When this is set, the bitmap icon is waiting to be saved. */ 700 * Look up resource names from the resource IDs for the icon res and the text fields, and fill 725 * Look up resource IDs from the resource names for the icon res and the text fields, and fill 850 public static Icon validateIcon(Icon icon) { argument 851 switch (icon.getType()) { 859 if (icon.hasTint()) { 863 return icon; 868 return new IllegalArgumentException("Unsupported icon type:" 938 * Sets the target activity. A shortcut will be shown along with this activity's icon 969 * Sets an icon o 989 setIcon(Icon icon) argument 2152 ShortcutInfo( @serIdInt int userId, String id, String packageName, ComponentName activity, Icon icon, CharSequence title, int titleResId, String titleResName, CharSequence text, int textResId, String textResName, CharSequence disabledMessage, int disabledMessageResId, String disabledMessageResName, Set<String> categories, Intent[] intentsWithExtras, int rank, PersistableBundle extras, long lastChangedTimestamp, int flags, int iconResId, String iconResName, String bitmapPath, int disabledReason) argument [all...] |