Home
last modified time | relevance | path

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

12

/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DDrawableWrapper.java38 private Drawable mDrawable; field in DrawableWrapper
46 mDrawable.draw(canvas); in draw()
52 mDrawable.setBounds(left, top, right, bottom); in setBounds()
57 mDrawable.setChangingConfigurations(configs); in setChangingConfigurations()
62 return mDrawable.getChangingConfigurations(); in getChangingConfigurations()
67 mDrawable.setDither(dither); in setDither()
72 mDrawable.setFilterBitmap(filter); in setFilterBitmap()
77 mDrawable.setAlpha(alpha); in setAlpha()
82 mDrawable.setColorFilter(cf); in setColorFilter()
87 return mDrawable.isStateful(); in isStateful()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DClipDrawable.java72 mState.mDrawable = drawable; in ClipDrawable()
90 mState.mDrawable = null; in inflate()
112 mState.mDrawable = dr; in inflateChildElements()
119 if (mState.mDrawable == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
141 state.mDrawable = dr; in updateStateFromTypedArray()
165 if (state.mDrawable != null && state.mDrawable.canApplyTheme()) { in applyTheme()
166 state.mDrawable.applyTheme(t); in applyTheme()
207 | mState.mDrawable.getChangingConfigurations(); in getChangingConfigurations()
213 return mState.mDrawable.getPadding(padding); in getPadding()
218 mState.mDrawable.setVisible(visible, restart); in setVisible()
[all …]
DScaleDrawable.java64 mState.mDrawable = drawable; in ScaleDrawable()
78 return mState.mDrawable; in getDrawable()
101 mState.mDrawable = null; in inflate()
130 if (state.mDrawable != null && state.mDrawable.canApplyTheme()) { in applyTheme()
131 state.mDrawable.applyTheme(t); in applyTheme()
149 mState.mDrawable = dr; in inflateChildElements()
156 if (mState.mDrawable == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
183 state.mDrawable = dr; in updateStateFromTypedArray()
217 if (mState.mDrawable.getLevel() != 0) in draw()
218 mState.mDrawable.draw(canvas); in draw()
[all …]
DInsetDrawable.java79 mState.mDrawable = drawable; in InsetDrawable()
98 mState.mDrawable = null; in inflate()
109 if (mState.mDrawable == null) { in inflateChildElements()
120 mState.mDrawable = dr; in inflateChildElements()
127 if (mState.mDrawable == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
151 state.mDrawable = dr; in updateStateFromTypedArray()
201 if (state.mDrawable != null && state.mDrawable.canApplyTheme()) { in applyTheme()
202 state.mDrawable.applyTheme(t); in applyTheme()
237 mState.mDrawable.draw(canvas); in draw()
244 | mState.mDrawable.getChangingConfigurations(); in getChangingConfigurations()
[all …]
DAnimatedRotateDrawable.java66 final Drawable drawable = state.mDrawable; in init()
80 final Drawable drawable = st.mDrawable; in draw()
134 mState.mDrawable.setVisible(visible, restart); in setVisible()
151 return mState.mDrawable; in getDrawable()
158 | mState.mDrawable.getChangingConfigurations(); in getChangingConfigurations()
163 mState.mDrawable.setAlpha(alpha); in setAlpha()
168 return mState.mDrawable.getAlpha(); in getAlpha()
173 mState.mDrawable.setColorFilter(cf); in setColorFilter()
178 mState.mDrawable.setTintList(tint); in setTintList()
183 mState.mDrawable.setTintMode(tintMode); in setTintMode()
[all …]
DRotateDrawable.java82 final Drawable d = st.mDrawable; in draw()
101 final Drawable oldDrawable = mState.mDrawable; in setDrawable()
106 mState.mDrawable = drawable; in setDrawable()
117 return mState.mDrawable; in getDrawable()
124 | mState.mDrawable.getChangingConfigurations(); in getChangingConfigurations()
129 mState.mDrawable.setAlpha(alpha); in setAlpha()
134 return mState.mDrawable.getAlpha(); in getAlpha()
139 mState.mDrawable.setColorFilter(cf); in setColorFilter()
144 mState.mDrawable.setTintList(tint); in setTintList()
149 mState.mDrawable.setTintMode(tintMode); in setTintMode()
[all …]
DLayerDrawable.java111 r[i].mDrawable = layers[i]; in LayerDrawable()
196 if (layer.mDrawable == null) { in inflateLayers()
204 layer.mDrawable = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateLayers()
207 if (layer.mDrawable != null) { in inflateLayers()
209 layer.mDrawable.getChangingConfigurations(); in inflateLayers()
210 layer.mDrawable.setCallback(this); in inflateLayers()
238 layer.mDrawable = dr; in updateLayerFromTypedArray()
268 final Drawable d = layer.mDrawable; in applyTheme()
295 if (layers[i].mDrawable.isProjected()) { in isProjected()
337 childDrawable.mDrawable = layer; in addLayer()
[all …]
DTransitionDrawable.java195 array[0].mDrawable.draw(canvas); in draw()
198 array[1].mDrawable.draw(canvas); in draw()
204 d = array[0].mDrawable; in draw()
214 d = array[1].mDrawable; in draw()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DTargetDrawable.java44 private Drawable mDrawable; field in TargetDrawable
58 mDrawable = drawable != null ? drawable.mutate() : null; in setDrawable()
66 mDrawable = other.mDrawable != null ? other.mDrawable.mutate() : null; in TargetDrawable()
72 if (mDrawable instanceof StateListDrawable) { in setState()
73 StateListDrawable d = (StateListDrawable) mDrawable; in setState()
79 if (mDrawable instanceof StateListDrawable) { in hasState()
80 StateListDrawable d = (StateListDrawable) mDrawable; in hasState()
93 if (mDrawable instanceof StateListDrawable) { in isActive()
94 StateListDrawable d = (StateListDrawable) mDrawable; in isActive()
112 return mDrawable != null && mEnabled; in isEnabled()
[all …]
DPointCloud.java34 private Drawable mDrawable; field in PointCloud
125 mDrawable = drawable; in PointCloud()
126 if (mDrawable != null) { in PointCloud()
216 if (mDrawable != null) { in draw()
218 final float cx = mDrawable.getIntrinsicWidth() * 0.5f; in draw()
219 final float cy = mDrawable.getIntrinsicHeight() * 0.5f; in draw()
223 mDrawable.setAlpha(alpha); in draw()
224 mDrawable.draw(canvas); in draw()
/frameworks/opt/bitmap/src/com/android/bitmap/view/
DBitmapDrawableImageView.java40 private BasicBitmapDrawable mDrawable; field in BitmapDrawableImageView
63 return (E) mDrawable; in getTypedDrawable()
76 mDrawable = drawable; in setTypedDrawable()
84 if (mDrawable != null) { in unbindDrawable()
85 mDrawable.unbind(temporary); in unbindDrawable()
93 mDrawable = null; in setImageResource()
100 mDrawable = null; in setImageURI()
107 mDrawable = null; in setImageDrawable()
114 mDrawable = null; in setImageBitmap()
121 if (mDrawable != null && mDrawable.getKey() == null in onAttachedToWindow()
[all …]
/frameworks/base/core/java/android/widget/
DImageView.java89 private Drawable mDrawable = null; field in ImageView
212 return mDrawable == dr || super.verifyDrawable(dr); in verifyDrawable()
218 if (mDrawable != null) mDrawable.jumpToCurrentState(); in jumpDrawablesToCurrentState()
223 if (dr == mDrawable) { in invalidateDrawable()
371 return mDrawable; in getDrawable()
444 if (mDrawable != drawable) { in setImageDrawable()
520 if (mDrawable != null && (mHasDrawableTint || mHasDrawableTintMode)) { in applyImageTint()
521 mDrawable = mDrawable.mutate(); in applyImageTint()
524 mDrawable.setTintList(mDrawableTintList); in applyImageTint()
528 mDrawable.setTintMode(mDrawableTintMode); in applyImageTint()
[all …]
/frameworks/base/core/java/android/text/style/
DDrawableMarginSpan.java29 mDrawable = b; in DrawableMarginSpan()
33 mDrawable = b; in DrawableMarginSpan()
38 return mDrawable.getIntrinsicWidth() + mPad; in getLeadingMargin()
49 int dw = mDrawable.getIntrinsicWidth(); in drawLeadingMargin()
50 int dh = mDrawable.getIntrinsicHeight(); in drawLeadingMargin()
53 mDrawable.setBounds(ix, itop, ix+dw, itop+dh); in drawLeadingMargin()
54 mDrawable.draw(c); in drawLeadingMargin()
61 int ht = mDrawable.getIntrinsicHeight(); in chooseHeight()
73 private Drawable mDrawable; field in DrawableMarginSpan
DImageSpan.java30 private Drawable mDrawable; field in ImageSpan
63 mDrawable = context != null in ImageSpan()
66 int width = mDrawable.getIntrinsicWidth(); in ImageSpan()
67 int height = mDrawable.getIntrinsicHeight(); in ImageSpan()
68 mDrawable.setBounds(0, 0, width > 0 ? width : 0, height > 0 ? height : 0); in ImageSpan()
81 mDrawable = d; in ImageSpan()
94 mDrawable = d; in ImageSpan()
131 if (mDrawable != null) { in getDrawable()
132 drawable = mDrawable; in getDrawable()
/frameworks/ex/framesequence/samples/RastermillSamples/src/com/android/rastermill/samples/
DAnimatedGifTest.java31 FrameSequenceDrawable mDrawable; field in AnimatedGifTest
66 mDrawable.start(); in onCreate()
72 mDrawable.stop(); in onCreate()
78 mDrawable.setVisible(true, true); in onCreate()
84 mDrawable.setVisible(false, true); in onCreate()
97 mDrawable = new FrameSequenceDrawable(fs, mProvider); in onResume()
98 mDrawable.setOnFinishedListener(new FrameSequenceDrawable.OnFinishedListener() { in onResume()
105 imageView.setImageDrawable(mDrawable); in onResume()
113 mDrawable.destroy(); in onPause()
116 mDrawable = null; in onPause()
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java42 private BitmapDrawable mDrawable; field in DrawableHolder
52 mDrawable = drawable; in DrawableHolder()
55 mDrawable.getPaint().setAntiAlias(true); // Force AA in DrawableHolder()
56 mDrawable.setBounds(0, 0, mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight()); in DrawableHolder()
135 mDrawable.setAlpha((int) Math.round(mAlpha * 255f)); in draw()
136 mDrawable.draw(canvas); in draw()
199 return mDrawable; in getDrawable()
203 return mDrawable.getIntrinsicWidth(); in getWidth()
207 return mDrawable.getIntrinsicHeight(); in getHeight()
DAccountViewAdapter.java79 private Drawable mDrawable; field in AccountViewAdapter.AccountElements
109 mDrawable = drawable; in AccountElements()
124 return mDrawable; in getDrawable()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DSimplePatchActivity.java36 private final Drawable mDrawable; field in SimplePatchActivity.PatchView
41 mDrawable = context.getResources().getDrawable(R.drawable.expander_ic_minimized); in PatchView()
49 mDrawable.setBounds(3, 0, 33, 64); in onDraw()
50 mDrawable.draw(canvas); in onDraw()
51 mDrawable.setBounds(63, 0, 94, 64); in onDraw()
52 mDrawable.draw(canvas); in onDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUserAvatarView.java43 private Drawable mDrawable; field in UserAvatarView
142 } else if (mDrawable != null) { in configureBounds()
147 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
183 } else if (mDrawable != null && mScale > 0) { in onDraw()
189 mDrawable.draw(canvas); in onDraw()
201 if (mDrawable != null) { in setDrawable()
202 mDrawable.setCallback(null); in setDrawable()
203 unscheduleDrawable(mDrawable); in setDrawable()
205 mDrawable = d; in setDrawable()
223 if (dr == mDrawable) { in invalidateDrawable()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java99 private Drawable mDrawable; field in PhotoView
504 mDrawable = null; in clear()
520 if (drawable != null && drawable != mDrawable) { in bindDrawable()
522 if (mDrawable != null) { in bindDrawable()
523 mDrawable.setCallback(null); in bindDrawable()
526 mDrawable = drawable; in bindDrawable()
532 mDrawable.setCallback(this); in bindDrawable()
547 boolean currentDrawableIsBitmapDrawable = mDrawable instanceof BitmapDrawable; in bindPhoto()
549 if (mDrawable != null && currentDrawableIsBitmapDrawable) { in bindPhoto()
550 final Bitmap drawableBitmap = ((BitmapDrawable) mDrawable).getBitmap(); in bindPhoto()
[all …]
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java65 private Drawable mDrawable; field in TransformTestActivity.TransformView
95 float sizeX = mDrawable.getIntrinsicWidth()/2; in onScale()
96 float sizeY = mDrawable.getIntrinsicHeight()/2; in onScale()
135 mDrawable = d; in setDrawable()
137 float sizeX = mDrawable.getIntrinsicWidth()/2; in setDrawable()
138 float sizeY = mDrawable.getIntrinsicHeight()/2; in setDrawable()
165 float sizeX = mDrawable.getIntrinsicWidth()/2; in onTouchEvent()
166 float sizeY = mDrawable.getIntrinsicHeight()/2; in onTouchEvent()
185 mDrawable.draw(canvas); in onDraw()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java14 protected Drawable mDrawable; field in ReplacementDrawableSpan
20 mDrawable = drawable; in ReplacementDrawableSpan()
53 int transY = (bottom - mDrawable.getBounds().bottom + top) / 2; in draw()
55 mDrawable.draw(canvas); in draw()
60 return mDrawable.getBounds(); in getBounds()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBackgroundManager.java181 protected Drawable mDrawable; field in BackgroundManager.DrawableWrapper
195 mDrawable = drawable; in DrawableWrapper()
200 return mDrawable; in getDrawable()
204 mDrawable.setAlpha(alpha); in setAlpha()
210 ((ColorDrawable) mDrawable).setColor(color); in setColor()
267 private Drawable mDrawable; field in BackgroundManager.BackgroundContinuityService
280 mDrawable = null; in reset()
300 return mDrawable; in getDrawable()
306 mDrawable = drawable; in setDrawable()
631 if (sameDrawable(drawable, mChangeRunnable.mDrawable)) { in setDrawableInternal()
[all …]
DErrorSupportFragment.java48 private Drawable mDrawable; field in ErrorSupportFragment
137 mDrawable = drawable; in setImageDrawable()
145 return mDrawable; in getImageDrawable()
260 mImageView.setImageDrawable(mDrawable); in updateImageDrawable()
261 mImageView.setVisibility(mDrawable == null ? View.GONE : View.VISIBLE); in updateImageDrawable()
DErrorFragment.java46 private Drawable mDrawable; field in ErrorFragment
135 mDrawable = drawable; in setImageDrawable()
143 return mDrawable; in getImageDrawable()
258 mImageView.setImageDrawable(mDrawable); in updateImageDrawable()
259 mImageView.setVisibility(mDrawable == null ? View.GONE : View.VISIBLE); in updateImageDrawable()

12