/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | IconView.java | 32 private Drawable mDrawable; field in IconView 47 if (mDrawable != null) { in setDrawable() 48 mDrawable.setCallback(null); in setDrawable() 50 mDrawable = d; in setDrawable() 51 if (mDrawable != null) { in setDrawable() 52 mDrawable.setCallback(this); in setDrawable() 53 mDrawable.setBounds(0, 0, getWidth(), getHeight()); in setDrawable() 59 return mDrawable; in getDrawable() 65 if (mDrawable != null) { in onSizeChanged() 66 mDrawable.setBounds(0, 0, w, h); in onSizeChanged() [all …]
|
D | FloatingWidgetBackgroundView.java | 74 setForeground(mForegroundProperties.mDrawable); in init() 84 setBackground(mBackgroundProperties.mDrawable); in init() 164 private Drawable mDrawable; field in FloatingWidgetBackgroundView.DrawableProperties 171 mDrawable = drawable; in init() 185 if (!(mDrawable instanceof GradientDrawable)) return; in updateDrawable() 186 GradientDrawable d = (GradientDrawable) mDrawable; in updateDrawable()
|
/packages/services/Car/car-admin-ui-lib/src/main/java/com/android/car/admin/ui/ |
D | UserAvatarView.java | 38 private final UserIconDrawable mDrawable = new UserIconDrawable(); field in UserAvatarView 68 setBackground(mDrawable); in UserAvatarView() 86 mDrawable.invalidateSelf(); in setActivated() 90 mDrawable.setFrameColor(color); in setFrameColor() 94 mDrawable.setFrameWidth(frameWidth); in setFrameWidth() 98 mDrawable.setFramePadding(framePadding); in setFramePadding() 102 mDrawable.setPadding(avatarPadding); in setAvatarPadding() 106 mDrawable.setBadgeRadius(diameter * 0.5f); in setBadgeDiameter() 110 mDrawable.setBadgeMargin(margin); in setBadgeMargin() 114 mDrawable.setIcon(avatar); in setAvatar() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryMeterView.java | 33 BatteryMeterDrawable mDrawable; field in BatteryMeterView 59 mDrawable = new BatteryMeterDrawable(context, frameColor); in BatteryMeterView() 60 mDrawable.setColorFilter(mAccentColorFilter); in BatteryMeterView() 61 setImageDrawable(mDrawable); in BatteryMeterView() 65 mDrawable.setBatteryLevel(level); in setBatteryLevel() 70 mDrawable.setPowerSaveEnabled(powerSave); in setPowerSave() 75 return mDrawable.getPowerSaveEnabled(); in getPowerSave() 79 return mDrawable.getBatteryLevel(); in getBatteryLevel() 83 mDrawable.setCharging(charging); in setCharging() 88 return mDrawable.getCharging(); in getCharging() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | DynamicAdaptiveIconDrawable.java | 119 layer.mDrawable = drawable; in createChildDrawable() 120 layer.mDrawable.setCallback(this); in createChildDrawable() 122 layer.mDrawable.getChangingConfigurations(); in createChildDrawable() 190 return mLayerState.mChildren[FOREGROUND_ID].mDrawable; in getForeground() 201 return mLayerState.mChildren[BACKGROUND_ID].mDrawable; in getBackground() 237 final Drawable d = r.mDrawable; in updateLayerBoundsInternal() 281 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw() 332 final Drawable d = layer.mDrawable; in applyTheme() 378 if (layer.mDrawable == null && (layer.mThemeAttrs == null)) { in inflateLayers() 388 layer.mDrawable = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateLayers() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryMeterViewTest.java | 50 private BatteryMeterView.BatteryMeterDrawable mDrawable; field in BatteryMeterViewTest 58 mDrawable = spy(new BatteryMeterView.BatteryMeterDrawable(mContext, 0)); in setUp() 60 mBatteryMeterView.mDrawable = mDrawable; in setUp() 65 when(mDrawable.getCriticalLevel()).thenReturn(BATTERY_CRITICAL_LEVEL); in setUp() 72 assertThat(mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly() 79 verify(mDrawable).setColorFilter(mErrorColorFilter); in testSetBatteryInfo_levelLow_setErrorColor() 86 verify(mDrawable).setColorFilter(mAccentColorFilter); in testSetBatteryInfo_levelNormal_setNormalColor() 94 verify(mDrawable).setColorFilter(mForegroundColorFilter); in testSetBatteryInfo_powerSave_setCorrectly()
|
D | BatteryChartPreferenceControllerTest.java | 81 @Mock private Drawable mDrawable; field in BatteryChartPreferenceControllerTest 316 doReturn(mDrawable).when(mBatteryDiffEntry).getAppIcon(); in testAddPreferenceToScreen_addPreferenceIntoScreen() 334 assertThat(pref.getIcon()).isEqualTo(mDrawable); in testAddPreferenceToScreen_addPreferenceIntoScreen() 345 doReturn(mDrawable).when(mBatteryDiffEntry).getAppIcon(); in testAddPreferenceToScreen_alreadyInScreen_notAddPreferenceAgain() 512 doReturn(mDrawable).when(mBatteryDiffEntry).getAppIcon(); in testOnExpand_expandedIsTrue_addSystemEntriesToPreferenceGroup()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieItem.java | 36 private Drawable mDrawable; field in PieItem 57 mDrawable = drawable; in PieItem() 95 mDrawable.setAlpha((int) (255 * alpha)); in setAlpha() 180 return mDrawable.getIntrinsicWidth(); in getIntrinsicWidth() 184 return mDrawable.getIntrinsicHeight(); in getIntrinsicHeight() 188 mDrawable.setBounds(left, top, right, bottom); in setBounds() 192 mDrawable.draw(canvas); in draw() 197 d.setBounds(mDrawable.getBounds()); in setImageResource() 198 mDrawable = d; in setImageResource()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetImageView.java | 38 private Drawable mDrawable; field in WidgetImageView 57 mDrawable = drawable; in setDrawable() 62 return mDrawable; in getDrawable() 67 if (mDrawable != null) { in onDraw() 69 mDrawable.setBounds(getBitmapBounds()); in onDraw() 70 mDrawable.draw(canvas); in onDraw() 85 float bitmapWidth = mDrawable.getIntrinsicWidth(); in updateDstRectF() 89 float scaledHeight = mDrawable.getIntrinsicHeight() * scale; in updateDstRectF()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | DrawableTileSource.java | 37 private Drawable mDrawable; field in DrawableTileSource 42 mDrawable = d; in DrawableTileSource() 53 return mDrawable.getIntrinsicWidth(); in getImageWidth() 58 return mDrawable.getIntrinsicHeight(); in getImageHeight() 80 mDrawable.setBounds(new Rect(0, 0, (int) width, (int) height)); in getPreview() 81 mDrawable.draw(c); in getPreview() 97 mDrawable.setBounds(bounds); in getTile() 98 mDrawable.draw(c); in getTile()
|
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | CircledImageView.java | 51 private Drawable mDrawable; field in CircledImageView 132 mDrawable = a.getDrawable(R.styleable.CircledImageView_android_src); in CircledImageView() 268 if (mDrawable != null) { in onDraw() 269 mDrawable.setAlpha(Math.round(getAlpha() * 255)); in onDraw() 272 mDrawable.setTint(mImageTint); in onDraw() 274 mDrawable.draw(canvas); in onDraw() 341 if (mDrawable != null) { in onLayout() 343 final int nativeDrawableWidth = mDrawable.getIntrinsicWidth(); in onLayout() 344 final int nativeDrawableHeight = mDrawable.getIntrinsicHeight(); in onLayout() 367 mDrawable.setBounds(drawableLeft, drawableTop, drawableLeft + drawableWidth, in onLayout() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | ToggleButtonActionItem.java | 41 private Drawable mDrawable; field in ToggleButtonActionItem 68 toggleButton.setButtonDrawable(mDrawable); in bindViewHolder() 117 return mDrawable; in getDrawable() 124 if (drawable != mDrawable) { in setDrawable() 125 mDrawable = drawable; in setDrawable() 136 if (drawable != mDrawable) { in setDrawable() 137 mDrawable = drawable; in setDrawable()
|
D | TopLevelIcon.java | 139 Drawable mDrawable; field in TopLevelIcon.AdaptiveConstantState 144 this.mDrawable = drawable; in AdaptiveConstantState() 149 TopLevelIcon icon = new TopLevelIcon(mContext, mDrawable); in newDrawable()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | TintedDrawableSpan.java | 30 private final Drawable mDrawable; field in TintedDrawableSpan 35 mDrawable = context.getDrawable(resourceId).mutate(); in TintedDrawableSpan() 37 mDrawable.setTint(0); in TintedDrawableSpan() 44 mDrawable.setBounds(0, 0, iconSize, iconSize); in getSize() 54 mDrawable.setTint(mOldTint); in draw() 61 return mDrawable; in getDrawable()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ButtonDropTarget.java | 71 protected Drawable mDrawable; field in ButtonDropTarget 106 mDrawable = getContext().getDrawable(resId).mutate(); in setDrawable() 107 mDrawable.setBounds(0, 0, mDrawableSize, mDrawableSize); in setDrawable() 108 mDrawable.setTintList(getTextColors()); in setDrawable() 109 setCompoundDrawablesRelative(mDrawable, null, null, null); in setDrawable() 260 int drawableWidth = mDrawable.getIntrinsicWidth(); in getIconRect() 261 int drawableHeight = mDrawable.getIntrinsicHeight(); in getIconRect() 305 setCompoundDrawablesRelative(mDrawable, null, null, null); in setTextVisible() 315 availableWidth -= (getPaddingLeft() + getPaddingRight() + mDrawable.getIntrinsicWidth() in isTextTruncated()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | MenuAction.java | 69 private Drawable mDrawable; field in MenuAction 91 mDrawable = null; in MenuAction() 99 mDrawable = drawable; in MenuAction() 121 if (mDrawable == null) { in getDrawable() 122 mDrawable = context.getDrawable(mDrawableResId); in getDrawable() 124 return mDrawable; in getDrawable()
|
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/ |
D | BuglePhotoBitmapLoader.java | 43 private Drawable mDrawable; field in BuglePhotoBitmapLoader 99 mDrawable = drawable; in deliverResult() 112 if (mDrawable != null) { in onStartLoading() 117 result.drawable = mDrawable; in onStartLoading() 184 releaseDrawable(mDrawable); in releaseImageResource() 185 mDrawable = null; in releaseImageResource()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | RenameMobileNetworkDialogFragment.java | 257 private ShapeDrawable mDrawable; field in RenameMobileNetworkDialogFragment.Color 262 mDrawable = new ShapeDrawable(new OvalShape()); in Color() 263 mDrawable.setIntrinsicHeight(iconSize); in Color() 264 mDrawable.setIntrinsicWidth(iconSize); in Color() 265 mDrawable.getPaint().setStrokeWidth(strokeWidth); in Color() 266 mDrawable.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); in Color() 267 mDrawable.getPaint().setColor(color); in Color() 280 mDrawable.getPaint().setColor(getDarkColor(mColor)); in getDrawable() 282 return mDrawable; in getDrawable()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | CachingIconLoader.java | 102 private NowOrLater<Drawable> mDrawable; 112 mDrawable = drawable; 129 NowOrLater<Drawable> drawable = mDrawable; 130 mDrawable = null;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreferenceTest.java | 80 private Drawable mDrawable; field in BluetoothDevicePreferenceTest 96 .thenReturn(new Pair<>(mDrawable, FAKE_DESCRIPTION)); in setUp() 99 .thenReturn(new Pair<>(mDrawable, FAKE_DESCRIPTION)); in setUp() 102 .thenReturn(new Pair<>(mDrawable, FAKE_DESCRIPTION)); in setUp() 105 .thenReturn(new Pair<>(mDrawable, FAKE_DESCRIPTION)); in setUp()
|
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 68 private Drawable mDrawable; field in AvailableMediaBluetoothDeviceUpdaterTest 90 Pair<Drawable, String> pairs = new Pair<>(mDrawable, "fake_device"); in setUp()
|
D | BluetoothDeviceUpdaterTest.java | 84 private Drawable mDrawable; field in BluetoothDeviceUpdaterTest 96 Pair<Drawable, String> pairs = new Pair<>(mDrawable, "fake_device"); in setUp()
|
D | SavedBluetoothDeviceUpdaterTest.java | 75 private Drawable mDrawable; field in SavedBluetoothDeviceUpdaterTest 85 Pair<Drawable, String> pairs = new Pair<>(mDrawable, "fake_device"); in setUp()
|
D | ConnectedBluetoothDeviceUpdaterTest.java | 71 private Drawable mDrawable; field in ConnectedBluetoothDeviceUpdaterTest 84 Pair<Drawable, String> pairs = new Pair<>(mDrawable, "fake_device"); in setUp()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | TransitionScreenWrapper.java | 84 @RawRes int mDrawable; field in TransitionScreenWrapper.Builder 104 mDrawable = drawable; in setAnimation() 144 return new TransitionScreenWrapper(mHeader, mDescription, mDrawable, mSubHeaderTitle, in build()
|