Home
last modified time | relevance | path

Searched refs:badge (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/java/android/util/
DIconDrawableFactory.java83 Drawable badge = mContext.getDrawable( in getBadgedIcon() local
86 badge, in getBadgedIcon()
91 Drawable badge = mDpm.getResources().getDrawable( in getBadgedIcon() local
96 icon = mLauncherIcons.getBadgedDrawable(icon, badge, mUm.getUserBadgeColor(userId)); in getBadgedIcon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DConversationIconFactory.java98 Drawable badge = null; in getAppBadge() local
102 badge = Utils.getBadgedIcon(mContext, appInfo); in getAppBadge()
104 badge = mPackageManager.getDefaultActivityIcon(); in getAppBadge()
106 return badge; in getAppBadge()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java184 public UserIconDrawable setBadge(Drawable badge) { in setBadge() argument
185 mBadge = badge; in setBadge()
202 Drawable badge = null; in setBadgeIfManagedUser() local
210 badge = getManagementBadge(context); in setBadgeIfManagedUser()
213 return setBadge(badge); in setBadgeIfManagedUser()
221 Drawable badge = null; in setBadgeIfManagedDevice() local
224 badge = getManagementBadge(context); in setBadgeIfManagedDevice()
226 return setBadge(badge); in setBadgeIfManagedDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleStoryIconFactory.java73 Drawable badge = null; in getAppBadge() local
77 badge = Utils.getBadgedIcon(mContext, appInfo); in getAppBadge()
79 badge = mPackageManager.getDefaultActivityIcon(); in getAppBadge()
81 return badge; in getAppBadge()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/viewmodel/
DScreenshotViewModel.kt33 val badge: StateFlow<Drawable?> = _badge constant in com.android.systemui.screenshot.ui.viewmodel.ScreenshotViewModel
56 fun setScreenshotBadge(badge: Drawable?) { in setScreenshotBadge()
57 _badge.value = badge in setScreenshotBadge()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBitmapInfo.java160 Drawable badge = getBadgeDrawable(context, (creationFlags & FLAG_THEMED) != 0, in applyFlags() local
162 if (badge != null) { in applyFlags()
163 drawable.setBadge(badge); in applyFlags()
DFastBitmapDrawable.java303 public void setBadge(Drawable badge) { in setBadge() argument
307 mBadge = badge; in setBadge()
385 public static void setBadgeBounds(Drawable badge, Rect iconBounds) { in setBadgeBounds() argument
387 badge.setBounds(iconBounds.right - size, iconBounds.bottom - size, in setBadgeBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/binder/
DScreenshotShelfViewBinder.kt125 viewModel.badge.collect { badge -> in <lambda>() method
126 badgeView.setImageDrawable(badge) in <lambda>()
127 badgeView.visibility = if (badge != null) View.VISIBLE else View.GONE in <lambda>()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DMailAdapter.java100 final Shape badge = new BadgeShape(mImageView.getContext(), String.valueOf(c)); in setContent() local
104 drawable.setShape(badge); in setContent()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPointPreference.java325 Drawable badge = mPm.getUserBadgeForDensity(new UserHandle(userId), 0 /* dpi */); in getUserBadge() local
326 mBadges.put(userId, badge); in getUserBadge()
327 return badge; in getUserBadge()
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java262 private ScoredNetwork buildScoredNetworkWithGivenBadgeForTestRssi(int badge) { in buildScoredNetworkWithGivenBadgeForTestRssi() argument
264 new RssiCurve(RSSI_START, 10, new byte[] {0, 0, 0, 0, 0, 0, (byte) badge}); in buildScoredNetworkWithGivenBadgeForTestRssi()
/frameworks/proto_logging/stats/atoms/dnd/
Ddnd_atoms.proto65 optional android.stats.dnd.State badge = 14; field
/frameworks/base/core/proto/android/service/
Dnotification.proto258 optional State badge= 13; field
354 optional State badge = 14; field
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotView.java773 void badgeScreenshot(@Nullable Drawable badge) { in badgeScreenshot() argument
774 mScreenshotBadge.setImageDrawable(badge); in badgeScreenshot()
775 mScreenshotBadge.setVisibility(badge != null ? View.VISIBLE : View.GONE); in badgeScreenshot()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java1963 Drawable badge = new LauncherIcons(mContext).getBadgeDrawable( in getUserBadgedIcon() local
1966 return getBadgedDrawable(icon, badge, null, true); in getUserBadgedIcon()
2018 Drawable badge = new LayerDrawable(new Drawable[] {badgeColor, badgeForeground }); in getUserBadgeForDensity() local
2019 return badge; in getUserBadgeForDensity()
2041 final Drawable badge = getDevicePolicyManager().getResources().getDrawableForDensity( in getUserBadgeForDensityNoBackground() local
2047 if (badge != null) { in getUserBadgeForDensityNoBackground()
2048 badge.setTint(getUserBadgeColor(user, true)); in getUserBadgeForDensityNoBackground()
2050 return badge; in getUserBadgeForDensityNoBackground()
DNotification.java5711 Drawable badge = getProfileBadgeDrawable(); in getProfileBadge() local
5712 if (badge == null) { in getProfileBadge()
5719 badge.setBounds(0, 0, size, size); in getProfileBadge()
5720 badge.draw(canvas); in getProfileBadge()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java684 QuickContactBadge badge = (QuickContactBadge) view; in postInflateProcess() local
685 badge.setImageToDefault(); in postInflateProcess()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java882 assertEquals(policy.getVisualEffectBadge(), proto.badge); in assertProtoMatches()