Searched defs:mDrawable (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DSimplePatchActivity.java36 private final Drawable mDrawable; field in class:SimplePatchActivity.PatchView
41 mDrawable = context.getResources().getDrawable(R.drawable.expander_ic_minimized);
49 mDrawable.setBounds(3, 0, 33, 64);
50 mDrawable.draw(canvas);
51 mDrawable.setBounds(63, 0, 94, 64);
52 mDrawable.draw(canvas);
/frameworks/base/core/java/android/text/style/
H A DImageSpan.java30 private Drawable mDrawable; field in class:ImageSpan
63 mDrawable = context != null
66 int width = mDrawable.getIntrinsicWidth();
67 int height = mDrawable.getIntrinsicHeight();
68 mDrawable.setBounds(0, 0, width > 0 ? width : 0, height > 0 ? height : 0);
81 mDrawable = d;
94 mDrawable = d;
131 if (mDrawable != null) {
132 drawable = mDrawable;
H A DDrawableMarginSpan.java30 mDrawable = b;
34 mDrawable = b;
39 return mDrawable.getIntrinsicWidth() + mPad;
50 int dw = mDrawable.getIntrinsicWidth();
51 int dh = mDrawable.getIntrinsicHeight();
54 mDrawable.setBounds(ix, itop, ix+dw, itop+dh);
55 mDrawable.draw(c);
62 int ht = mDrawable.getIntrinsicHeight();
74 private Drawable mDrawable; field in class:DrawableMarginSpan
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DFixedSizeDrawable.java26 Drawable mDrawable; field in class:FixedSizeDrawable
33 mDrawable = that;
44 mDrawable.setBounds(mLeft, mTop, mRight, mBottom);
48 mDrawable.setBounds(mLeft, mTop, mRight, mBottom);
52 mDrawable.draw(canvas);
56 return mDrawable.getOpacity();
60 mDrawable.setAlpha(alpha);
64 mDrawable.setColorFilter(cf);
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A DTransformTestActivity.java65 private Drawable mDrawable; field in class:TransformTestActivity.TransformView
95 float sizeX = mDrawable.getIntrinsicWidth()/2;
96 float sizeY = mDrawable.getIntrinsicHeight()/2;
135 mDrawable = d;
137 float sizeX = mDrawable.getIntrinsicWidth()/2;
138 float sizeY = mDrawable.getIntrinsicHeight()/2;
165 float sizeX = mDrawable.getIntrinsicWidth()/2;
166 float sizeY = mDrawable.getIntrinsicHeight()/2;
185 mDrawable.draw(canvas);
/frameworks/base/core/java/com/android/internal/widget/
H A DDrawableHolder.java42 private BitmapDrawable mDrawable; field in class:DrawableHolder
52 mDrawable = drawable;
55 mDrawable.getPaint().setAntiAlias(true); // Force AA
56 mDrawable.setBounds(0, 0, mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight());
135 mDrawable.setAlpha((int) Math.round(mAlpha * 255f));
136 mDrawable.draw(canvas);
199 return mDrawable;
203 return mDrawable
[all...]
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DTargetDrawable.java42 private Drawable mDrawable; field in class:TargetDrawable
80 mDrawable = drawable != null ? drawable.mutate() : null;
86 if (mDrawable instanceof StateListDrawable) {
87 StateListDrawable d = (StateListDrawable) mDrawable;
93 if (mDrawable instanceof StateListDrawable) {
94 StateListDrawable d = (StateListDrawable) mDrawable;
107 if (mDrawable instanceof StateListDrawable) {
108 StateListDrawable d = (StateListDrawable) mDrawable;
126 return mDrawable != null;
135 if (mDrawable instanceo
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java66 mClipState.mDrawable = drawable;
105 mClipState.mDrawable = dr;
141 | mClipState.mDrawable.getChangingConfigurations();
147 return mClipState.mDrawable.getPadding(padding);
152 mClipState.mDrawable.setVisible(visible, restart);
158 mClipState.mDrawable.setAlpha(alpha);
163 mClipState.mDrawable.setColorFilter(cf);
168 return mClipState.mDrawable.getOpacity();
173 return mClipState.mDrawable.isStateful();
178 return mClipState.mDrawable
246 Drawable mDrawable; field in class:ClipDrawable.ClipState
[all...]
H A DInsetDrawable.java65 mInsetState.mDrawable = drawable;
120 mInsetState.mDrawable = dr;
158 mInsetState.mDrawable.draw(canvas);
165 | mInsetState.mDrawable.getChangingConfigurations();
170 boolean pad = mInsetState.mDrawable.getPadding(padding);
187 mInsetState.mDrawable.setVisible(visible, restart);
193 mInsetState.mDrawable.setAlpha(alpha);
198 mInsetState.mDrawable.setColorFilter(cf);
203 return mInsetState.mDrawable.getOpacity();
208 return mInsetState.mDrawable
260 Drawable mDrawable; field in class:InsetDrawable.InsetState
[all...]
H A DRotateDrawable.java76 Rect bounds = mState.mDrawable.getBounds();
88 st.mDrawable.draw(canvas);
97 return mState.mDrawable;
104 | mState.mDrawable.getChangingConfigurations();
108 mState.mDrawable.setAlpha(alpha);
112 mState.mDrawable.setColorFilter(cf);
116 return mState.mDrawable.getOpacity();
142 return mState.mDrawable.getPadding(padding);
147 mState.mDrawable.setVisible(visible, restart);
153 return mState.mDrawable
294 Drawable mDrawable; field in class:RotateDrawable.RotateState
[all...]
H A DScaleDrawable.java59 mScaleState.mDrawable = drawable;
73 return mScaleState.mDrawable;
118 mScaleState.mDrawable = dr;
152 if (mScaleState.mDrawable.getLevel() != 0)
153 mScaleState.mDrawable.draw(canvas);
160 | mScaleState.mDrawable.getChangingConfigurations();
166 return mScaleState.mDrawable.getPadding(padding);
171 mScaleState.mDrawable.setVisible(visible, restart);
177 mScaleState.mDrawable.setAlpha(alpha);
182 mScaleState.mDrawable
262 Drawable mDrawable; field in class:ScaleDrawable.ScaleState
[all...]
H A DAnimatedRotateDrawable.java59 final Drawable drawable = state.mDrawable;
73 final Drawable drawable = st.mDrawable;
123 mState.mDrawable.setVisible(visible, restart);
140 return mState.mDrawable;
147 | mState.mDrawable.getChangingConfigurations();
152 mState.mDrawable.setAlpha(alpha);
157 mState.mDrawable.setColorFilter(cf);
162 return mState.mDrawable.getOpacity();
188 return mState.mDrawable.getPadding(padding);
193 return mState.mDrawable
299 Drawable mDrawable; field in class:AnimatedRotateDrawable.AnimatedRotateState
[all...]
H A DLayerDrawable.java84 r[i].mDrawable = layers[i];
202 childDrawable.mDrawable = layer;
223 return layers[i].mDrawable;
256 return mLayerState.mChildren[index].mDrawable;
283 if (layers[i].mDrawable != null) {
285 Rect bounds = layers[i].mDrawable.getBounds();
288 layers[i].mDrawable.setCallback(null);
293 layers[i].mDrawable = drawable;
345 array[i].mDrawable.draw(canvas);
383 array[i].mDrawable
589 public Drawable mDrawable; field in class:LayerDrawable.ChildDrawable
[all...]
/frameworks/base/core/java/android/widget/
H A DImageView.java75 private Drawable mDrawable = null; field in class:ImageView
170 return mDrawable == dr || super.verifyDrawable(dr);
176 if (mDrawable != null) mDrawable.jumpToCurrentState();
181 if (dr == mDrawable) {
200 return (dr == mDrawable) ?
293 return mDrawable;
352 if (mDrawable != drawable) {
383 if (mDrawable != null) {
404 if (mDrawable !
[all...]
H A DTextView.java10404 protected Drawable mDrawable; field in class:TextView.HandleView
10443 final int handleHeight = mDrawable.getIntrinsicHeight();
10451 mDrawable = isRtlCharAtOffset ? mDrawableRtl : mDrawableLtr;
10452 mHotspotX = getHotspotX(mDrawable, isRtlCharAtOffset);
10500 setMeasuredDimension(mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight());
10637 mDrawable.setBounds(0, 0, mRight - mLeft, mBottom - mTop);
10638 mDrawable.draw(c);
/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java2507 HorizontalLineDrawable mDrawable; field in class:EditStyledText.EditStyledTextSpans.HorizontalLineSpan
2511 mDrawable = new HorizontalLineDrawable(color, width, spannable);
2516 return mDrawable;
2520 mDrawable.renewBounds(width);
2524 return mDrawable.getPaint().getColor();
2603 private Drawable mDrawable; field in class:EditStyledText.EditStyledTextSpans.RescalableImageSpan
2624 if (mDrawable != null) {
2625 return mDrawable;
2650 mDrawable = new BitmapDrawable(mContext.getResources(), bitmap);
2651 mDrawable
[all...]

Completed in 216 milliseconds