/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | IconView.java | 40 private Drawable mDrawable; field in IconView 57 if (mDrawable != null) { in setDrawable() 58 mDrawable.setCallback(null); in setDrawable() 60 mDrawable = d; in setDrawable() 61 if (mDrawable != null) { in setDrawable() 62 mDrawable.setCallback(this); in setDrawable() 63 mDrawable.setBounds(0, 0, getWidth(), getHeight()); in setDrawable() 69 return mDrawable; in getDrawable() 75 if (mDrawable != null) { in onSizeChanged() 76 mDrawable.setBounds(0, 0, w, h); in onSizeChanged() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | DynamicAdaptiveIconDrawable.java | 122 layer.mDrawable = drawable; in createChildDrawable() 123 layer.mDrawable.setCallback(this); in createChildDrawable() 125 layer.mDrawable.getChangingConfigurations(); in createChildDrawable() 193 return mLayerState.mChildren[FOREGROUND_ID].mDrawable; in getForeground() 204 return mLayerState.mChildren[BACKGROUND_ID].mDrawable; in getBackground() 240 final Drawable d = r.mDrawable; in updateLayerBoundsInternal() 284 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw() 335 final Drawable d = layer.mDrawable; in applyTheme() 381 if (layer.mDrawable == null && (layer.mThemeAttrs == null)) { in inflateLayers() 391 layer.mDrawable = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateLayers() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryMeterView.java | 35 BatteryMeterDrawable mDrawable; field in BatteryMeterView 63 mDrawable = new BatteryMeterDrawable(context, frameColor); in BatteryMeterView() 64 mDrawable.setColorFilter(mAccentColorFilter); in BatteryMeterView() 65 setImageDrawable(mDrawable); in BatteryMeterView() 69 mDrawable.setBatteryLevel(level); in setBatteryLevel() 74 mDrawable.setPowerSaveEnabled(powerSave); in setPowerSave() 79 return mDrawable.getPowerSaveEnabled(); in getPowerSave() 83 return mDrawable.getBatteryLevel(); in getBatteryLevel() 87 mDrawable.setCharging(charging); in setCharging() 92 return mDrawable.getCharging(); in getCharging() [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/ |
D | CircleBitmapDrawable.java | 42 private RoundedBitmapDrawable mDrawable; field in CircleBitmapDrawable 58 mDrawable = RoundedBitmapDrawableFactory.create(mResources, processed); in onBoundsChange() 59 mDrawable.setBounds(bounds); in onBoundsChange() 60 mDrawable.setAntiAlias(true); in onBoundsChange() 61 mDrawable.setCornerRadius(Math.min(width, height) / 2f); in onBoundsChange() 63 mDrawable.setAlpha(mAlpha); in onBoundsChange() 66 mDrawable.setColorFilter(mCf); in onBoundsChange() 73 if (mDrawable != null) { in draw() 74 mDrawable.draw(canvas); in draw() 80 return mDrawable != null ? mDrawable.getOpacity() : PixelFormat.TRANSLUCENT; in getOpacity() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryMeterView.java | 36 BatteryMeterDrawable mDrawable; field in BatteryMeterView 61 mDrawable = new BatteryMeterDrawable(context, frameColor); in BatteryMeterView() 62 mDrawable.setColorFilter(mAccentColorFilter); in BatteryMeterView() 63 setImageDrawable(mDrawable); in BatteryMeterView() 68 mDrawable.setBatteryLevel(level); in setBatteryLevel() 69 if (level < mDrawable.getCriticalLevel()) { in setBatteryLevel() 70 mDrawable.setColorFilter(mErrorColorFilter); in setBatteryLevel() 72 mDrawable.setColorFilter(mAccentColorFilter); in setBatteryLevel() 77 mDrawable.setPowerSaveEnabled(powerSave); in setPowerSave() 86 return mDrawable.getLevel(); in getBatteryLevel() [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 | BatteryHeaderPreferenceControllerTest.java | 162 assertThat(mBatteryMeterView.mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in updatePreference_updateBatteryInfo() 163 assertThat(mBatteryMeterView.mDrawable.getCharging()).isEqualTo(false); in updatePreference_updateBatteryInfo()
|
D | PowerUsageSummaryTest.java | 156 mBatteryMeterView.mDrawable = new BatteryMeterView.BatteryMeterDrawable(mRealContext, 0); in setUp()
|
/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/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/apps/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/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 | 98 protected Drawable mDrawable; field in ButtonDropTarget 139 mDrawable = getCompoundDrawablesRelative()[0]; in setDrawable() 142 mDrawable = getCompoundDrawablesRelative()[1]; in setDrawable() 220 mDrawable.setColorFilter(new ColorMatrixColorFilter(mCurrentFilter)); in animateTextColor() 245 mDrawable.setColorFilter(null); in onDragStart() 329 int drawableWidth = mDrawable.getIntrinsicWidth(); in getIconRect() 330 int drawableHeight = mDrawable.getIntrinsicHeight(); in getIconRect() 379 setCompoundDrawablesRelativeWithIntrinsicBounds(mDrawable, null, null, null); in setTextVisible() 381 setCompoundDrawablesRelativeWithIntrinsicBounds(null, mDrawable, null, null); in setTextVisible() 392 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/Settings/src/com/android/settings/network/telephony/ |
D | RenameMobileNetworkDialogFragment.java | 230 private ShapeDrawable mDrawable; field in RenameMobileNetworkDialogFragment.Color 235 mDrawable = new ShapeDrawable(new OvalShape()); in Color() 236 mDrawable.setIntrinsicHeight(iconSize); in Color() 237 mDrawable.setIntrinsicWidth(iconSize); in Color() 238 mDrawable.getPaint().setStrokeWidth(strokeWidth); in Color() 239 mDrawable.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); in Color() 240 mDrawable.getPaint().setColor(color); in Color() 252 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/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/media/ |
D | MediaOutputGroupSliceTest.java | 97 private Drawable mDrawable; field in MediaOutputGroupSliceTest 112 mDrawable = mContext.getDrawable(R.drawable.ic_check_box_blue_24dp); in setUp() 116 when(mDevice1.getIcon()).thenReturn(mDrawable); in setUp() 122 when(mDevice2.getIcon()).thenReturn(mDrawable); in setUp()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/privacy/ |
D | PrivacyExtraPreferenceControllerTest.java | 61 private Drawable mDrawable; field in PrivacyExtraPreferenceControllerTest 79 pref.setIcon(mDrawable); in onLoadPreferences_noPreferencesHaveIcons()
|