Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
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/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryMeterView.java35 BatteryMeterDrawable mDrawable; field in BatteryMeterView
58 mDrawable = new BatteryMeterDrawable(context, frameColor); in BatteryMeterView()
59 mDrawable.setShowPercent(false); in BatteryMeterView()
60 mDrawable.setBatteryColorFilter(mAccentColorFilter); in BatteryMeterView()
61 mDrawable.setWarningColorFilter( in BatteryMeterView()
63 setImageDrawable(mDrawable); in BatteryMeterView()
67 mDrawable.setBatteryLevel(level); in setBatteryLevel()
68 if (level < mDrawable.getCriticalLevel()) { in setBatteryLevel()
69 mDrawable.setBatteryColorFilter(mErrorColorFilter); in setBatteryLevel()
71 mDrawable.setBatteryColorFilter(mAccentColorFilter); in setBatteryLevel()
[all …]
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DCircledImageView.java52 private Drawable mDrawable; field in CircledImageView
133 mDrawable = a.getDrawable(R.styleable.CircledImageView_android_src); in CircledImageView()
269 if (mDrawable != null) { in onDraw()
270 mDrawable.setAlpha(Math.round(getAlpha() * 255)); in onDraw()
273 mDrawable.setTint(mImageTint); in onDraw()
275 mDrawable.draw(canvas); in onDraw()
342 if (mDrawable != null) { in onLayout()
344 final int nativeDrawableWidth = mDrawable.getIntrinsicWidth(); in onLayout()
345 final int nativeDrawableHeight = mDrawable.getIntrinsicHeight(); in onLayout()
368 mDrawable.setBounds(drawableLeft, drawableTop, drawableLeft + drawableWidth, in onLayout()
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieItem.java33 private Drawable mDrawable; field in PieItem
53 mDrawable = drawable; in PieItem()
80 mDrawable.setAlpha((int) (255 * alpha)); in setAlpha()
158 return mDrawable.getIntrinsicWidth(); in getIntrinsicWidth()
162 return mDrawable.getIntrinsicHeight(); in getIntrinsicHeight()
166 mDrawable.setBounds(left, top, right, bottom); in setBounds()
170 mDrawable.draw(canvas); in draw()
175 d.setBounds(mDrawable.getBounds()); in setImageResource()
176 mDrawable = d; in setImageResource()
/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/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryMeterViewTest.java57 private BatteryMeterView.BatteryMeterDrawable mDrawable; field in BatteryMeterViewTest
65 mDrawable = spy(new BatteryMeterView.BatteryMeterDrawable(mContext, 0)); in setUp()
67 mBatteryMeterView.mDrawable = mDrawable; in setUp()
71 doReturn(BATTERY_CRITICAL_LEVEL).when(mDrawable).getCriticalLevel(); in setUp()
78 assertThat(mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly()
85 verify(mDrawable).setBatteryColorFilter(mErrorColorFilter); in testSetBatteryInfo_levelLow_setErrorColor()
92 verify(mDrawable).setBatteryColorFilter(mAccentColorFilter); in testSetBatteryInfo_levelNormal_setNormalColor()
DBatteryHeaderPreferenceControllerTest.java153 assertThat(mBatteryMeterView.mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testUpdatePreference_updateBatteryInfo()
154 assertThat(mBatteryMeterView.mDrawable.getCharging()).isEqualTo(false); in testUpdatePreference_updateBatteryInfo()
DPowerUsageSummaryTest.java184 mBatteryMeterView.mDrawable = new BatteryMeterView.BatteryMeterDrawable(mRealContext, 0); in setUp()
/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/Launcher2/src/com/android/launcher2/
DInfoDropTarget.java35 private TransitionDrawable mDrawable; field in InfoDropTarget
54 mDrawable = (TransitionDrawable) getCurrentDrawable(); in onFinishInflate()
55 if (null != mDrawable) { in onFinishInflate()
56 mDrawable.setCrossFadeEnabled(true); in onFinishInflate()
110 mDrawable.resetTransition(); in onDragStart()
124 mDrawable.startTransition(mTransitionDuration); in onDragEnter()
132 mDrawable.resetTransition(); in onDragExit()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DTintedDrawableSpan.java30 private final Drawable mDrawable; field in TintedDrawableSpan
35 mDrawable = context.getDrawable(resourceId); 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/TV/src/com/android/tv/menu/
DMenuAction.java59 private Drawable mDrawable; field in MenuAction
85 mDrawable = null; in MenuAction()
93 mDrawable = drawable; in MenuAction()
116 if (mDrawable == null) { in getDrawable()
117 mDrawable = context.getDrawable(mDrawableResId); in getDrawable()
119 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/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java75 protected Drawable mDrawable; field in ButtonDropTarget
109 mDrawable = getCompoundDrawablesRelative()[0]; in setDrawable()
158 mDrawable.setColorFilter(new ColorMatrixColorFilter(mCurrentFilter)); in animateTextColor()
182 mDrawable.setColorFilter(null); in onDragStart()
260 int drawableWidth = mDrawable.getIntrinsicWidth(); in getIconRect()
261 int drawableHeight = mDrawable.getIntrinsicHeight(); in getIconRect()
323 availableWidth -= (getPaddingLeft() + getPaddingRight() + mDrawable.getIntrinsicWidth() in isTextTruncated()
/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/search/
DCursorToSearchResultConverterTest.java68 private Drawable mDrawable; field in CursorToSearchResultConverterTest
75 mDrawable = context.getDrawable(ICON); in setUp()
147 assertThat(resultDrawable.toString()).isEqualTo(mDrawable.toString()); in testParseCursor_MatchesIcon()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DFolderListFragment.java1679 private AccountAvatarDrawable mDrawable; field in FolderListFragment.MiniDrawerAccountsAdapter.MiniDrawerAccountItem
1688 mDrawable = new AccountAvatarDrawable(getResources(), getBitmapCache(), in setupDrawable()
1690 mDrawable.setDecodeDimensions(mMiniDrawerAvatarDecodeSize, in setupDrawable()
1692 view.setImageDrawable(mDrawable); in setupDrawable()
1697 mDrawable.bind(mAccount.getSenderName(), mAccount.getEmailAddress()); in setAccount()