HomeSort by relevance Sort by last modified time
    Searched defs:badge (Results 1 - 19 of 19) sorted by null

  /cts/tests/tests/widget/src/android/widget/cts/
QuickContactBadgeTest.java 76 QuickContactBadge badge = new QuickContactBadge(context); local
77 badge.setPrioritizedMimeType(plainMimeType);
78 badge.assignContactUri(nonExistentContactUri);
79 badge.onClick(badge);
  /packages/apps/Launcher3/src/com/android/launcher3/badge/
BadgeInfo.java 17 package com.android.launcher3.badge;
27 * Contains data to be used in an icon badge.
37 * The keys of the notifications that this badge represents. These keys can later be
97 * Whether newBadge represents the same PackageUserKey as this badge, and icons with
98 * this badge should be invalidated. So, for instance, if a badge has 3 notifications
100 * the badge still says "3" and the contents of those notifications are only retrieved
102 * or if the badge has a notification icon to show.
FolderBadgeInfo.java 17 package com.android.launcher3.badge;
22 * Subclass of BadgeInfo that only contains the badge count, which is
55 // This forces the folder badge to always show up as a dot.
BadgeRenderer.java 17 package com.android.launcher3.badge;
33 * Contains parameters necessary to draw a badge for an icon (e.g. the size of the badge).
40 // The badge sizes are defined as percentages of the app icon size.
46 // Used to expand the width of the badge for each additional digit.
72 * @param color The color (based on the icon) to use for the badge.
75 * @param spaceForOffset How much space is available to offset the badge up and to the right.
84 // We draw the badge relative to its center.
  /frameworks/base/core/java/android/util/
IconDrawableFactory.java 102 int badge = um.getManagedProfileBadge(userId); local
103 if (badge < 0) {
104 badge = 0;
106 int resourceId = CORP_BADGE_COLORS[badge % CORP_BADGE_COLORS.length];
  /frameworks/support/compat/src/main/java/androidx/core/content/pm/
ShortcutInfoCompat.java 80 Drawable badge = null; local
85 badge = pm.getActivityIcon(mActivity);
90 if (badge == null) {
91 badge = mContext.getApplicationInfo().loadIcon(pm);
94 mIcon.addToShortcutIntent(outIntent, badge, mContext);
286 * If the shortcut is associated with an activity, the activity icon is used as the badge,
  /packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
FolderAdaptiveIcon.java 52 private FolderAdaptiveIcon(Drawable bg, Drawable fg, Drawable badge, Path mask) {
54 mBadge = badge;
74 final Bitmap badge = Bitmap.createBitmap( local
82 return icon == null ? null : createDrawableOnUiThread(icon, badge, dragViewSize);
101 // Initialize badge
130 ShiftedBitmapDrawable badge = new ShiftedBitmapDrawable(badgeBitmap, margin, margin); local
134 return new FolderAdaptiveIcon(new ColorDrawable(bg.getBgColor()), foreground, badge, mask);
DragView.java 226 // Badge is applied after icon normalization so the bounds for badge should not
365 * badge. When dragged from workspace or folder, it may contain app AND/OR work profile badge
381 Bitmap badge = li.getShortcutInfoBadge(si, appState.getIconCache()).iconBitmap; local
385 return new InsetDrawable(new FastBitmapDrawable(badge),
  /packages/apps/Settings/src/com/android/settings/notification/
AppNotificationSettings.java 51 private static String KEY_BADGE = "badge";
67 Preference badge = findPreference(KEY_BADGE); local
70 if (badge != null) {
71 screen.addPreference(badge);
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
AccessPointPreference.java 223 // Fetch badge (may be null)
224 // Get the badge using a cache since the PM will ask the UserManager for the list
321 Drawable badge = mPm.getUserBadgeForDensity(new UserHandle(userId), 0 /* dpi */); local
322 mBadges.put(userId, badge);
323 return badge;
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
UserIconDrawable.java 45 * Converts the user avatar icon to a circularly clipped one with an optional badge and frame
51 private Bitmap mBitmap; // baked representation. Required for transparent border around badge
74 * Gets the system default managed-user badge as a drawable. This drawable is tint-able.
79 * @return drawable containing just the badge
155 public UserIconDrawable setBadge(Drawable badge) {
156 mBadge = badge;
173 Drawable badge = null; local
177 badge = getDrawableForDisplayDensity(
180 return setBadge(badge);
194 * Sets global padding of icon/frame. Doesn't effect the badge
    [all...]
  /frameworks/support/compat/src/androidTest/java/androidx/core/graphics/drawable/
IconCompatTest.java 73 // The badge is a full rectangle located at the bottom right corner. Check a single pixel
113 Drawable badge = ContextCompat.getDrawable(context, R.drawable.test_drawable_blue); local
114 IconCompat.createWithBitmap(bitmap).addToShortcutIntent(intent, badge, mContext);
125 // No badge
132 Drawable badge = ContextCompat.getDrawable(context, R.drawable.test_drawable_red); local
134 .addToShortcutIntent(intent, badge, mContext);
  /frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
IconCompat.java 483 public void addToShortcutIntent(@NonNull Intent outIntent, @Nullable Drawable badge,
489 if (badge != null) {
490 // Do not modify the original icon when applying a badge
500 if (badge == null) {
525 if (badge != null) {
526 // Badge the icon
529 badge.setBounds(w / 2, h / 2, w, h);
530 badge.draw(new Canvas(icon));
  /packages/apps/Calendar/src/com/android/calendar/event/
AttendeesView.java 206 final QuickContactBadge badgeView = (QuickContactBadge) view.findViewById(R.id.badge);
208 Drawable badge = null; local
211 badge = mRecycledPhotos.get(item.mAttendee.mEmail);
213 if (badge != null) {
214 item.mBadge = badge;
260 // photo instead of the default badge thus prevent switching between the two while the
  /packages/apps/Launcher3/src/com/android/launcher3/graphics/
LauncherIcons.java 271 * Adds the {@param badge} on top of {@param target} using the badge dimensions.
273 public void badgeWithDrawable(Bitmap target, Drawable badge) {
275 badgeWithDrawable(mCanvas, badge);
280 * Adds the {@param badge} on top of {@param target} using the badge dimensions.
282 private void badgeWithDrawable(Canvas target, Drawable badge) {
284 badge.setBounds(mIconBitmapSize - badgeSize, mIconBitmapSize - badgeSize,
286 badge.draw(target);
385 final ItemInfoWithIcon badge = getShortcutInfoBadge(shortcutInfo, cache) local
    [all...]
  /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
RenderSessionImpl.java 618 QuickContactBadge badge = (QuickContactBadge) view; local
619 badge.setImageToDefault();
    [all...]
  /frameworks/base/core/java/android/app/
ApplicationPackageManager.java 1331 Drawable badge = new LauncherIcons(mContext).getBadgeDrawable( local
1368 Drawable badge = new LayerDrawable(new Drawable[] {badgeColor, badgeForeground }); local
1374 Drawable badge = getManagedProfileIconForDensity(user, local
1399 int badge = getUserManager().getManagedProfileBadge(user.getIdentifier()); local
    [all...]
Notification.java 271 * badge icon in Launchers that support badging.
4298 Drawable badge = getProfileBadgeDrawable(); local
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
ResolverActivity.java 1842 final Drawable badge = info.getBadgeIcon(); local
1914 public ImageView badge; field in class:ResolverActivity.ViewHolder
    [all...]

Completed in 594 milliseconds