Home
last modified time | relevance | path

Searched refs:badge (Results 1 – 15 of 15) 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.java99 Drawable badge = null; in getAppBadge() local
103 badge = Utils.getBadgedIcon(mContext, appInfo); in getAppBadge()
105 badge = mPackageManager.getDefaultActivityIcon(); in getAppBadge()
107 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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DFastBitmapDrawable.java273 public void setBadge(Drawable badge) { in setBadge() argument
277 mBadge = badge; in setBadge()
344 public static void setBadgeBounds(Drawable badge, Rect iconBounds) { in setBadgeBounds() argument
346 badge.setBounds(iconBounds.right - size, iconBounds.bottom - size, in setBadgeBounds()
/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.java318 Drawable badge = mPm.getUserBadgeForDensity(new UserHandle(userId), 0 /* dpi */); in getUserBadge() local
319 mBadges.put(userId, badge); in getUserBadge()
320 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/base/core/proto/android/service/
Dnotification.proto258 optional State badge= 13; field
333 optional State badge = 14; field
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java1894 Drawable badge = new LauncherIcons(mContext).getBadgeDrawable( in getUserBadgedIcon() local
1897 return getBadgedDrawable(icon, badge, null, true); in getUserBadgedIcon()
1949 Drawable badge = new LayerDrawable(new Drawable[] {badgeColor, badgeForeground }); in getUserBadgeForDensity() local
1950 return badge; in getUserBadgeForDensity()
1972 final Drawable badge = getDevicePolicyManager().getResources().getDrawableForDensity( in getUserBadgeForDensityNoBackground() local
1978 if (badge != null) { in getUserBadgeForDensityNoBackground()
1979 badge.setTint(getUserBadgeColor(user, true)); in getUserBadgeForDensityNoBackground()
1981 return badge; in getUserBadgeForDensityNoBackground()
DNotification.java5150 Drawable badge = getProfileBadgeDrawable(); in getProfileBadge() local
5151 if (badge == null) { in getProfileBadge()
5158 badge.setBounds(0, 0, size, size); in getProfileBadge()
5159 badge.draw(canvas); in getProfileBadge()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotView.java786 void badgeScreenshot(Drawable badge) { in badgeScreenshot() argument
787 mScreenshotBadge.setImageDrawable(badge); in badgeScreenshot()
788 mScreenshotBadge.setVisibility(badge != null ? View.VISIBLE : View.GONE); in badgeScreenshot()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java691 QuickContactBadge badge = (QuickContactBadge) view; in postInflateProcess() local
692 badge.setImageToDefault(); in postInflateProcess()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java674 assertEquals(policy.getVisualEffectBadge(), proto.badge); in assertProtoMatches()
/frameworks/proto_logging/stats/
Datoms.proto8721 optional State badge = 14; field