Home
last modified time | relevance | path

Searched refs:mDrawable (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DIconView.java40 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/
DDynamicAdaptiveIconDrawable.java122 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/
DBatteryMeterView.java35 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/
DCircleBitmapDrawable.java42 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/
DBatteryMeterView.java36 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/
DBatteryMeterViewTest.java50 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()
DBatteryHeaderPreferenceControllerTest.java162 assertThat(mBatteryMeterView.mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in updatePreference_updateBatteryInfo()
163 assertThat(mBatteryMeterView.mDrawable.getCharging()).isEqualTo(false); in updatePreference_updateBatteryInfo()
DPowerUsageSummaryTest.java156 mBatteryMeterView.mDrawable = new BatteryMeterView.BatteryMeterDrawable(mRealContext, 0); in setUp()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieItem.java36 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/
DDrawableTileSource.java37 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/
DCircledImageView.java51 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/
DTintedDrawableSpan.java30 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/
DButtonDropTarget.java98 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/
DMenuAction.java69 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/
DRenameMobileNetworkDialogFragment.java230 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/
DBuglePhotoBitmapLoader.java43 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/
DCachingIconLoader.java102 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/
DMediaOutputGroupSliceTest.java97 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/
DPrivacyExtraPreferenceControllerTest.java61 private Drawable mDrawable; field in PrivacyExtraPreferenceControllerTest
79 pref.setIcon(mDrawable); in onLoadPreferences_noPreferencesHaveIcons()