/packages/apps/Dialer/java/com/android/dialer/glidephotomanager/ |
GlidePhotoManager.java | 26 * Load {@code photoInfo} into the {@code badge}. The loading is performed in the background and a 27 * placeholder will be used appropriately. {@code badge} must be already attached to an 32 void loadQuickContactBadge(QuickContactBadge badge, PhotoInfo photoInfo);
|
/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/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);
|
/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];
|
/packages/apps/Launcher3/src/com/android/launcher3/badge/ |
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.
|
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.
|
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.
|
/external/kmod/ |
README.md | 4 [![Coverity Scan Status](https://scan.coverity.com/projects/2096/badge.svg)](https://scan.coverity.com/projects/2096)
|
/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/Dialer/java/com/android/dialer/glidephotomanager/impl/ |
GlidePhotoManagerImpl.java | 50 public void loadQuickContactBadge(QuickContactBadge badge, PhotoInfo photoInfo) { 52 badge.assignContactUri(parseUri(photoInfo.lookupUri())); 53 badge.setOverlay(null); 54 GlideRequest<Drawable> request = buildRequest(GlideApp.with(badge), photoInfo); 55 request.into(badge);
|
/packages/apps/Dialer/java/com/android/dialer/contactphoto/ |
ContactPhotoManager.java | 232 QuickContactBadge badge, 238 badge.assignContactUri(contactUri); 239 badge.setOverlay(null); 241 badge.setContentDescription( 242 badge.getContext().getString(R.string.description_quick_contact_for, displayName)); 249 loadDirectoryPhoto(badge, photoUri, false /* darkTheme */, true /* isCircular */, request); 251 loadThumbnail(badge, photoId, false /* darkTheme */, true /* isCircular */, request);
|
/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...] |
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
WidgetImageView.java | 60 public void setBitmap(Bitmap bitmap, Drawable badge) { 62 mBadge = badge; 76 // Only draw the badge if a preview was drawn.
|
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/ |
NumbersAdapter.java | 98 private void loadContactPhoto(ContactInfo info, String displayName, QuickContactBadge badge) { 107 badge.assignContactUri(info.lookupUri); 108 badge.setContentDescription( 111 badge, info.photoUri, false /* darkTheme */, true /* isCircular */, request);
|
/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...] |
/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
|
/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));
|
/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;
|
/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);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
QuickContactsDemo.java | 92 cache.photoView = (QuickContactBadge) view.findViewById(R.id.badge);
|
/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/base/core/tests/coretests/src/android/net/ |
ScoredNetworkTest.java | 256 private ScoredNetwork buildScoredNetworkWithGivenBadgeForTestRssi(int badge) { 258 new RssiCurve(RSSI_START, 10, new byte[] {0, 0, 0, 0, 0, 0, (byte) badge});
|
/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...] |
/compatibility/cdd/3_software/ |
3_9_device-administration.md | 98 * [C-1-3] MUST use an icon badge (similar to the AOSP upstream work badge) to 102 badge) to indicate when user is within a managed profile application. 146 same badge used to indicate managed profile applications.
|
/external/nanohttpd/ |
README.md | 8 * Coverage Status: [![Coverage Status](https://coveralls.io/repos/NanoHttpd/nanohttpd/badge.svg)](https://coveralls.io/r/NanoHttpd/nanohttpd) 9 * Current central released version: [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.nanohttpd/nanohttpd/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.nanohttpd/nanohttpd)
|