/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | GuidedStepSupportHalfScreenActivity.java | 60 Drawable icon = ResourcesCompat.getDrawable(context.getResources(), 62 return new Guidance(title, description, breadcrumb, icon); 117 Drawable icon = ResourcesCompat.getDrawable(context.getResources(), 119 return new Guidance(title, description, breadcrumb, icon);
|
/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/impl/ |
H A D | ListBuilderBasicImpl.java | 216 public void setTitleItem(IconCompat icon, int imageMode) { argument 223 public void setTitleItem(IconCompat icon, int imageMode, boolean isLoading) { argument 283 public void addEndItem(IconCompat icon, int imageMode) { argument 290 public void addEndItem(IconCompat icon, int imageMode, boolean isLoading) { argument
|
/frameworks/base/core/java/android/service/chooser/ |
H A D | ChooserTarget.java | 41 * with a circular icon.</p> 53 * The icon that will be shown to the user to represent this target. 54 * The system may resize this icon as appropriate. 78 * <p>A target is composed of a title and an icon for presentation to the user. 80 * in the available space, as well as crop, resize or overlay the supplied icon.</p> 98 * @param icon icon to represent this target 103 public ChooserTarget(CharSequence title, Icon icon, float score, argument 106 mIcon = icon; 139 * Returns the icon representin [all...] |
/frameworks/base/core/java/android/view/ |
H A D | KeyboardShortcutInfo.java | 39 * @param icon An icon that identifies the action performed by this shortcut. 51 @Nullable CharSequence label, @Nullable Icon icon, int keycode, int modifiers) { 53 mIcon = icon; 109 * Returns the icon to be used to describe this shortcut. 50 KeyboardShortcutInfo( @ullable CharSequence label, @Nullable Icon icon, int keycode, int modifiers) argument
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
H A D | BackgroundTaskLoader.java | 137 final Drawable icon = mIconLoader.getIcon(t); 146 () -> t.notifyTaskDataLoaded(thumbnailData, icon));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | BrightnessDialog.java | 57 final ImageView icon = findViewById(R.id.brightness_icon); 59 mBrightnessController = new BrightnessController(this, icon, slider);
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
H A D | ScaleDrawableTests.java | 39 protected int icon = R.drawable.bitmap_drawable01; field in class:ScaleDrawableTests 66 png_view.setImageResource(icon);
|
/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/presenter/ |
H A D | HeaderItemPresenter.java | 58 Drawable icon = ResourcesCompat.getDrawable( 60 iconView.setImageDrawable(icon);
|
/frameworks/support/preference/src/main/java/androidx/preference/ |
H A D | PreferenceViewHolder.java | 42 mCachedViews.put(android.R.id.icon, itemView.findViewById(android.R.id.icon));
|
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/presenter/ |
H A D | HeaderItemPresenter.java | 58 Drawable icon = ResourcesCompat.getDrawable( 60 iconView.setImageDrawable(icon);
|
/frameworks/base/core/java/android/accounts/ |
H A D | ChooseAccountActivity.java | 126 Drawable icon = null; 131 icon = authContext.getDrawable(desc.iconId); 135 Log.w(TAG, "No icon name for account type " + accountType); 140 Log.w(TAG, "No icon resource for account type " + accountType); 144 return icon; 187 ImageView icon; field in class:ChooseAccountActivity.ViewHolder 210 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); 217 holder.icon.setImageDrawable(mInfos[position].drawable);
|
H A D | ChooseAccountTypeActivity.java | 129 Drawable icon = null; 132 icon = authContext.getDrawable(desc.iconId); 141 Log.w(TAG, "No icon name for account type " + desc.type); 146 Log.w(TAG, "No icon resource for account type " + desc.type); 149 AuthInfo authInfo = new AuthInfo(desc, name, icon); 167 ImageView icon; field in class:ChooseAccountTypeActivity.ViewHolder 191 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); 198 holder.icon.setImageDrawable(mInfos.get(position).drawable);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
H A D | AuthenticatorHelper.java | 90 * Gets an icon associated with a particular account type. If none found, return null. 92 * @return a drawable for the icon or a default icon returned by 96 Drawable icon = null; 107 icon = mContext.getPackageManager().getUserBadgedIcon( 110 mAccTypeIconCache.put(accountType, icon); 116 if (icon == null) { 117 icon = context.getPackageManager().getDefaultActivityIcon(); 119 return icon; 138 Log.w(TAG, "No label icon fo [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
H A D | RecentLocationApps.java | 168 Drawable icon = mDrawableFactory.getBadgedIcon(appInfo, userId); 176 request = new Request(packageName, userHandle, icon, appLabel, highBattery, 187 public final Drawable icon; field in class:RecentLocationApps.Request 193 private Request(String packageName, UserHandle userHandle, Drawable icon, argument 198 this.icon = icon;
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | CarUserSwitchingDialog.java | 87 * Converts the user icon to a circularly clipped one. This is used in the User Picker and 100 public static CircleFramedDrawable getInstance(Bitmap icon, float iconSize) { argument 101 CircleFramedDrawable instance = new CircleFramedDrawable(icon, (int) iconSize); 105 public CircleFramedDrawable(Bitmap icon, int size) { argument 112 final int width = icon.getWidth(); 113 final int height = icon.getHeight(); 132 // mask in the icon where the bitmap is opaque 134 canvas.drawBitmap(icon, cropRect, circleRect, mPaint);
|
/frameworks/support/compat/src/main/java/androidx/core/app/ |
H A D | NotificationCompat.java | 287 * Notification extras key: this is the resource ID of the notification's main small icon, as 290 public static final String EXTRA_SMALL_ICON = "android.icon"; 293 * Notification extras key: this is a bitmap to be used instead of the small icon when showing the 576 * If this notification is being shown as a badge, use the icon provided to 582 * If this notification is being shown as a badge, use the icon provided to 782 * Set the small icon to use in the notification layouts. Different classes of devices 786 * @param icon A resource ID in the application's package of the drawable to use. 788 public Builder setSmallIcon(int icon) { argument 789 mNotification.icon = icon; 803 setSmallIcon(int icon, int level) argument 969 setLargeIcon(Bitmap icon) argument 978 reduceLargeIconSize(Bitmap icon) argument 1347 addAction(int icon, CharSequence title, PendingIntent intent) argument 1382 addInvisibleAction(int icon, CharSequence title, PendingIntent intent) argument 1536 setBadgeIconType(@adgeIconType int icon) argument 3103 public int icon; field in class:NotificationCompat.Action 3114 Action(int icon, CharSequence title, PendingIntent intent) argument 3118 Action(int icon, CharSequence title, PendingIntent intent, Bundle extras, RemoteInput[] remoteInputs, RemoteInput[] dataOnlyRemoteInputs, boolean allowGeneratedReplies, @SemanticAction int semanticAction, boolean showsUserInterface) argument 3221 Builder(int icon, CharSequence title, PendingIntent intent) argument 3236 Builder(int icon, CharSequence title, PendingIntent intent, Bundle extras, RemoteInput[] remoteInputs, boolean allowGeneratedReplies, @SemanticAction int semanticAction, boolean showsUserInterface) argument 4166 setContentIcon(int icon) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarIconController.java | 54 * When an icon is added with TAG_PRIMARY, it will be treated as the primary icon 63 public void setIcon(String slot, StatusBarIcon icon); argument 69 * TAG_PRIMARY to refer to the first icon at a given slot. 134 public void onSetIcon(int viewIndex, StatusBarIcon icon) { argument 135 super.onSetIcon(viewIndex, icon); 174 StatusIconDisplayable icon = (StatusIconDisplayable) child; 175 icon.setStaticDrawableColor(mColor); 176 icon.setDecorColor(mColor); 258 StatusBarIcon icon) { 257 addIcon(int index, String slot, boolean blocked, StatusBarIcon icon) argument 343 onSetIcon(int viewIndex, StatusBarIcon icon) argument [all...] |
/frameworks/support/slices/view/src/main/java/androidx/slice/ |
H A D | SliceXml.java | 164 "Invalid icon package " + pkg, e); 278 IconCompat icon = item.getIcon(); 280 switch (icon.getType()) { 282 serializeResIcon(serializer, icon, context); 285 Uri uri = icon.getUri(); 287 serializeFileIcon(serializer, icon, context); 289 serializeIcon(serializer, icon, context, options); 293 serializeIcon(serializer, icon, context, options); 332 private static void serializeResIcon(XmlSerializer serializer, IconCompat icon, Context context) argument 336 icon 347 serializeFileIcon(XmlSerializer serializer, IconCompat icon, Context context) argument 354 serializeIcon(XmlSerializer serializer, IconCompat icon, Context context, SliceUtils.SerializeOptions options) argument [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/ |
H A D | MenuItemImpl.java | 72 /** The icon's drawable which is only created as needed */ 76 * The icon's resource ID which is used to get the Drawable when it is 114 /** Used for the icon resource ID if this item does not have an icon */ 505 Drawable icon = AppCompatResources.getDrawable(mMenu.getContext(), mIconResId); 507 mIconDrawable = icon; 508 return applyIconTintIfNecessary(icon); 515 public MenuItem setIcon(Drawable icon) { argument 517 mIconDrawable = icon; 569 private Drawable applyIconTintIfNecessary(Drawable icon) { argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | MediaRouteControllerDialog.java | 261 Drawable icon = getIconDrawable(); 262 if (icon != mCurrentIconDrawable) { 263 mCurrentIconDrawable = icon; 264 if (icon instanceof AnimationDrawable) { 265 AnimationDrawable animDrawable = (AnimationDrawable) icon; 272 icon = animDrawable.getFrame(animDrawable.getNumberOfFrames() - 1); 277 setIcon(icon);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSDetailItems.java | 86 mEmptyIcon = mEmpty.findViewById(android.R.id.icon); 107 public void setEmptyState(int icon, int text) { argument 109 mEmptyIcon.setImageResource(icon); 187 final ImageView iv = (ImageView) view.findViewById(android.R.id.icon); 188 if (item.icon != null) { 189 iv.setImageDrawable(item.icon.getDrawable(iv.getContext())); 262 public QSTile.Icon icon; field in class:QSDetailItems.Item
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | StatusBarIconView.java | 286 public boolean set(StatusBarIcon icon) { argument 287 final boolean iconEquals = mIcon != null && equalIcons(mIcon.icon, icon.icon); 289 && mIcon.iconLevel == icon.iconLevel; 291 && mIcon.visible == icon.visible; 293 && mIcon.number == icon.number; 294 mIcon = icon.clone(); 295 setContentDescription(icon.contentDescription); 302 setImageLevel(icon 356 getIcon(StatusBarIcon icon) argument [all...] |
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/ |
H A D | SliceMetadataTest.java | 94 IconCompat icon = IconCompat.createWithBitmap(b); 96 SliceAction action1 = new SliceAction(pi, icon, "action1"); 97 SliceAction action2 = new SliceAction(pi, icon, "action2"); 98 SliceAction action3 = new SliceAction(pi, icon, "action3"); 125 IconCompat icon = IconCompat.createWithBitmap(b); 127 SliceAction primaryAction = new SliceAction(pi, icon, "action"); 148 IconCompat icon = IconCompat.createWithBitmap(b); 150 SliceAction primaryAction = new SliceAction(pi, icon, "action"); 171 IconCompat icon = IconCompat.createWithBitmap(b); 173 SliceAction primaryAction = new SliceAction(pi, icon, "actio [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageItemInfo.java | 46 * a label, icon, and meta-data. This class is not intended 130 * component's icon. From the "icon" attribute or, if not set, 0. 132 public int icon; field in class:PackageItemInfo 143 * displayed by certain UI elements in place of a name or name/icon 156 * If different of UserHandle.USER_NULL, The icon of this item will be the one of that user. 172 icon = orig.icon; 477 * Retrieve the current graphical icon associated with this item. This 478 * will call back on the given PackageManager to load the icon fro [all...] |
/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetProviderInfo.java | 214 * The icon to display for this AppWidget in the AppWidget picker. If not supplied in the 215 * xml, the application icon will be used. 217 * <p>This field corresponds to the <code>android:icon</code> attribute in 220 public int icon; field in class:AppWidgetProviderInfo 232 * If not supplied, the AppWidget's icon will be used. 294 this.icon = in.readInt(); 318 * Loads the icon to display for this AppWidget in the AppWidget picker. If not 319 * supplied in the xml, the application icon will be used. A client can optionally 324 * The loaded icon corresponds to the <code>android:icon</cod [all...] |