Home
last modified time | relevance | path

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

12

/packages/services/Car/libs/car-admin-ui-lib/src/main/java/com/android/car/admin/ui/
DUserAvatarView.java39 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/
DBatteryMeterView.java32 @VisibleForTesting 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/Launcher3/quickstep/src/com/android/quickstep/views/
DIconView.java48 private Drawable mDrawable; field in IconView
75 if (mDrawable != null) { in setDrawable()
76 mDrawable.setCallback(null); in setDrawable()
78 mDrawable = d; in setDrawable()
79 if (mDrawable != null) { in setDrawable()
80 mDrawable.setCallback(this); in setDrawable()
93 if (mDrawable != null) { in setDrawableSize()
102 mDrawable.setBounds(drawableRect); in setDrawableSizeInternal()
108 return mDrawable; in getDrawable()
124 if (mDrawable != null) { in onSizeChanged()
[all …]
DFloatingWidgetBackgroundView.java86 setForeground(mForegroundProperties.mDrawable); in init()
102 setBackground(mBackgroundProperties.mDrawable); in init()
187 private Drawable mDrawable; field in FloatingWidgetBackgroundView.DrawableProperties
195 mDrawable = drawable; in init()
209 if (!(mDrawable instanceof GradientDrawable)) return; in updateDrawable()
210 GradientDrawable d = (GradientDrawable) mDrawable; in updateDrawable()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java119 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/
DBatteryMeterViewTest.java47 private BatteryMeterView.BatteryMeterDrawable mDrawable; field in BatteryMeterViewTest
55 mDrawable = spy(new BatteryMeterView.BatteryMeterDrawable(mContext, 0)); in setUp()
57 mBatteryMeterView.mDrawable = mDrawable; in setUp()
62 when(mDrawable.getCriticalLevel()).thenReturn(BATTERY_CRITICAL_LEVEL); in setUp()
69 assertThat(mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly()
76 verify(mDrawable).setColorFilter(mErrorColorFilter); in testSetBatteryInfo_levelLow_setErrorColor()
83 verify(mDrawable).setColorFilter(mAccentColorFilter); in testSetBatteryInfo_levelNormal_setNormalColor()
91 verify(mDrawable).setColorFilter(mForegroundColorFilter); in testSetBatteryInfo_powerSave_setCorrectly()
/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/Launcher3/src/com/android/launcher3/widget/
DWidgetImageView.java34 private Drawable mDrawable; field in WidgetImageView
50 mDrawable = drawable; in setDrawable()
55 return mDrawable; in getDrawable()
60 if (mDrawable != null) { in onDraw()
62 mDrawable.setBounds(getBitmapBounds()); in onDraw()
63 mDrawable.draw(canvas); in onDraw()
78 final float bitmapWidth = mDrawable.getIntrinsicWidth(); in updateDstRectF()
79 final float bitmapHeight = mDrawable.getIntrinsicHeight(); in updateDstRectF()
/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/Car/Settings/src/com/android/car/settings/common/
DToggleButtonActionItem.java47 private Drawable mDrawable; field in ToggleButtonActionItem
68 toggleButton.setButtonDrawable(mDrawable); in bindViewHolder()
147 return mDrawable; in getDrawable()
154 if (drawable != mDrawable) { in setDrawable()
155 mDrawable = drawable; in setDrawable()
166 if (drawable != mDrawable) { in setDrawable()
167 mDrawable = drawable; in setDrawable()
DTopLevelIcon.java139 Drawable mDrawable; field in TopLevelIcon.AdaptiveConstantState
144 this.mDrawable = drawable; in AdaptiveConstantState()
149 TopLevelIcon icon = new TopLevelIcon(mContext, mDrawable); in newDrawable()
/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/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/Settings/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragment.java262 private ShapeDrawable mDrawable; field in RenameMobileNetworkDialogFragment.Color
267 mDrawable = new ShapeDrawable(new OvalShape()); in Color()
268 mDrawable.setIntrinsicHeight(iconSize); in Color()
269 mDrawable.setIntrinsicWidth(iconSize); in Color()
270 mDrawable.getPaint().setStrokeWidth(strokeWidth); in Color()
271 mDrawable.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); in Color()
272 mDrawable.getPaint().setColor(color); in Color()
285 mDrawable.getPaint().setColor(getDarkColor(mColor)); in getDrawable()
287 return mDrawable; in getDrawable()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCachingIconLoader.kt77 private var mDrawable: NowOrLater<Drawable?>? = null variable in com.android.quicksearchbox.CachingIconLoader.Entry
85 mDrawable = drawable in set()
104 val drawable: NowOrLater<Drawable?>? = mDrawable
105 mDrawable = null
/packages/apps/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java78 protected Drawable mDrawable; field in ButtonDropTarget
127 mDrawable = getContext().getDrawable(resId).mutate(); in setDrawable()
128 mDrawable.setTintList(getTextColors()); in setDrawable()
287 int drawableWidth = mDrawable.getIntrinsicWidth(); in getIconRect()
288 int drawableHeight = mDrawable.getIntrinsicHeight(); in getIconRect()
325 mDrawable.setBounds(x, 0, x + mDrawableSize, mDrawableSize); in centerIcon()
377 setCompoundDrawablesRelative(mIconVisible ? mDrawable : null, null, null, null); in updateIconVisibility()
398 availableWidth -= mDrawable.getIntrinsicWidth() + getCompoundDrawablePadding(); in isTextTruncated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiNetworkDetailsFragmentTest.java101 Drawable mDrawable; field in WifiNetworkDetailsFragmentTest
251 doReturn(mDrawable).when(mContext) in updateInternetSource_networkTypeWifi_setWifiResource()
257 verify(mInternetSource).setIcon(mDrawable); in updateInternetSource_networkTypeWifi_setWifiResource()
262 doReturn(mDrawable).when(mFragment).getMobileDataIcon(SIGNAL_STRENGTH_GREAT); in updateInternetSource_networkTypeMobileData_setMobileDataResource()
267 verify(mInternetSource).setIcon(mDrawable); in updateInternetSource_networkTypeMobileData_setMobileDataResource()
272 doReturn(mDrawable).when(mContext).getDrawable(R.drawable.ic_settings_ethernet); in updateInternetSource_networkTypeEthernet_setEthernetResource()
277 verify(mInternetSource).setIcon(mDrawable); in updateInternetSource_networkTypeEthernet_setEthernetResource()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/statusicon/ui/
DStatusBarSensorInfoController.java59 private TextDrawable mDrawable; field in StatusBarSensorInfoController
109 setIconDrawableToDisplay(mDrawable); in updateStatus()
121 mDrawable = new TextDrawable(mContext, R.layout.sensor_text, sensorString, mDrawableWidth, in updateDrawable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java89 private Drawable mDrawable; field in BluetoothDevicePreferenceTest
107 .thenReturn(new Pair<>(mDrawable, FAKE_DESCRIPTION)); in setUp()
111 .thenReturn(new Pair<>(mDrawable, FAKE_DESCRIPTION)); in setUp()
115 .thenReturn(new Pair<>(mDrawable, FAKE_DESCRIPTION)); in setUp()
119 .thenReturn(new Pair<>(mDrawable, FAKE_DESCRIPTION)); in setUp()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DTransitionScreenWrapper.java121 private int mDrawable; field in TransitionScreenWrapper.Builder
151 this.mDrawable = drawable; in setAnimation()
210 mDrawable, in build()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DModifierKeysPreferenceController.java62 private Drawable mDrawable; field in ModifierKeysPreferenceController
94 mDrawable = featureProvider.getActionKeyIcon(context); in ModifierKeysPreferenceController()
144 if (key.first.equals(KEY_PREFERENCE_META) && mDrawable != null) { in initDefaultKeysName()
145 setActionKeyIcon(layoutPreference, mDrawable); in initDefaultKeysName()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusbar/
DUserNameViewControllerTest.java77 private Drawable mDrawable; field in UserNameViewControllerTest
119 .thenReturn(mDrawable); in addUserNameViewToController_withTextAndImageView_updatesViews()
126 verify(mImageView).setImageDrawable(eq(mDrawable)); in addUserNameViewToController_withTextAndImageView_updatesViews()
144 .thenReturn(mDrawable); in removeUserNameViewToController_textViewAndImageViewAdded_removeViews()
/packages/apps/Settings/src/com/android/settings/nfc/
DDefaultPaymentSettings.java172 private final Drawable mDrawable; field in DefaultPaymentSettings.NfcPaymentCandidateInfo
181 mDrawable = drawable; in NfcPaymentCandidateInfo()
193 return mDrawable; in loadIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageBreakdownControllerTest.java65 @Mock private Drawable mDrawable; field in BatteryUsageBreakdownControllerTest
155 doReturn(mDrawable).when(mBatteryDiffEntry).getAppIcon(); in addAllPreferences_addAllPreferences()
172 assertThat(pref.getIcon()).isEqualTo(mDrawable); in addAllPreferences_addAllPreferences()
183 doReturn(mDrawable).when(mBatteryDiffEntry).getAppIcon(); in addPreferenceToScreen_alreadyInScreen_notAddPreferenceAgain()
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/
DLauncherViewModelTest.java52 private Drawable mDrawable = mock(Drawable.class); field in LauncherViewModelTest
89 mDrawable, true, false, true, mConsumer, mConsumer); in createTestAppMetaData()

12