Searched refs:iconDrawable (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleView.java | 237 Drawable iconDrawable = ic.loadDrawable(mContext); in updateViews() local 239 iconDrawable = buildIconWithTint(iconDrawable, n.color); in updateViews() 241 Bitmap bubbleIcon = mBubbleIconFactory.createBadgedIconBitmap(iconDrawable, in updateViews() 258 int badgeColor = determineDominateColor(iconDrawable, n.color); in updateViews() 266 float scale = mBubbleIconFactory.getNormalizer().getScale(iconDrawable, in updateViews() 285 private AdaptiveIconDrawable buildIconWithTint(Drawable iconDrawable, int backgroundColor) { in buildIconWithTint() argument 286 iconDrawable = checkTint(iconDrawable, backgroundColor); in buildIconWithTint() 287 InsetDrawable foreground = new InsetDrawable(iconDrawable, mIconInset); in buildIconWithTint() 292 private Drawable checkTint(Drawable iconDrawable, int backgroundColor) { in checkTint() argument 298 iconDrawable.setTint(Color.WHITE); in checkTint() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSliceView.java | 266 Drawable iconDrawable = null; in showSlice() local 271 iconDrawable = icon.getIcon().loadDrawable(mContext); in showSlice() 272 if (iconDrawable != null) { in showSlice() 273 final int width = (int) (iconDrawable.getIntrinsicWidth() in showSlice() 274 / (float) iconDrawable.getIntrinsicHeight() * iconSize); in showSlice() 275 iconDrawable.setBounds(0, 0, Math.max(width, 1), iconSize); in showSlice() 278 button.setCompoundDrawables(iconDrawable, null, null, null); in showSlice()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | AppCompatActionBar.java | 161 Drawable iconDrawable = getDrawable(icon); in setIcon() local 162 if (iconDrawable != null) { in setIcon() 164 invoke(setIcon, mWindowDecorActionBar, iconDrawable); in setIcon()
|
D | FrameworkActionBarWrapper.java | 284 Drawable iconDrawable = getDrawable(icon); in setIcon() local 285 if (iconDrawable != null) { in setIcon() 286 mActionBar.setIcon(iconDrawable); in setIcon()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | AppOpsInfoTest.java | 104 final Drawable iconDrawable = mock(Drawable.class); in testBindNotification_SetsPackageIcon() local 106 .thenReturn(iconDrawable); in testBindNotification_SetsPackageIcon() 109 assertEquals(iconDrawable, iconView.getDrawable()); in testBindNotification_SetsPackageIcon()
|
D | NotificationInfoTest.java | 221 final Drawable iconDrawable = mock(Drawable.class); in testBindNotification_SetsPackageIcon() local 223 .thenReturn(iconDrawable); in testBindNotification_SetsPackageIcon() 240 assertEquals(iconDrawable, iconView.getDrawable()); in testBindNotification_SetsPackageIcon()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyView.java | 343 Drawable iconDrawable = action.getIcon().loadDrawable(packageContext); in inflateActionButton() local 347 iconDrawable.setBounds(0, 0, newIconSize, newIconSize); in inflateActionButton() 348 button.setCompoundDrawables(iconDrawable, null, null, null); in inflateActionButton()
|