Searched refs:mDrawable (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
H A DDrawableWrapper.java43 private Drawable mDrawable; field in class:DrawableWrapper
51 mDrawable.draw(canvas);
56 mDrawable.setBounds(bounds);
61 mDrawable.setChangingConfigurations(configs);
66 return mDrawable.getChangingConfigurations();
71 mDrawable.setDither(dither);
76 mDrawable.setFilterBitmap(filter);
81 mDrawable.setAlpha(alpha);
86 mDrawable.setColorFilter(cf);
91 return mDrawable
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/
H A DAnimatedImageView.java27 private AnimatedRotateDrawable mDrawable; field in class:AnimatedImageView
39 if (isShown() && mDrawable != null) {
40 mDrawable.stop();
44 mDrawable = (AnimatedRotateDrawable) drawable;
46 mDrawable.setFramesCount(56);
47 mDrawable.setFramesDuration(32);
49 mDrawable.start();
52 mDrawable = null;
57 if (mDrawable != null) {
59 mDrawable
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/view/
H A DBitmapDrawableImageView.java45 private BasicBitmapDrawable mDrawable; field in class:BitmapDrawableImageView
77 return (E) mDrawable;
89 if (drawable != mDrawable) {
92 mDrawable = drawable;
100 if (mDrawable != null) {
101 mDrawable.unbind(temporary);
109 mDrawable = null;
116 mDrawable = null;
123 mDrawable = null;
130 mDrawable
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAppIconDragShadowBuilder.java29 final Drawable mDrawable; field in class:AppIconDragShadowBuilder
33 mDrawable = icon.getDrawable();
52 Rect oldBounds = mDrawable.copyBounds();
53 mDrawable.setBounds(0, 0, mIconSize, mIconSize);
54 mDrawable.draw(canvas);
55 mDrawable.setBounds(oldBounds);
H A DUserAvatarView.java36 private final UserIconDrawable mDrawable = new UserIconDrawable(); field in class:UserAvatarView
70 setBackground(mDrawable);
94 mDrawable.setFrameColor(color);
98 mDrawable.setFrameWidth(frameWidth);
102 mDrawable.setFramePadding(framePadding);
106 mDrawable.setPadding(avatarPadding);
110 mDrawable.setBadgeRadius(diameter * 0.5f);
114 mDrawable.setBadgeMargin(margin);
118 mDrawable.setIcon(avatar);
119 mDrawable
[all...]
/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/graphics/java/android/graphics/drawable/
H A DDrawableWrapper.java51 private Drawable mDrawable; field in class:DrawableWrapper
67 mDrawable = dr;
88 if (mDrawable != null) {
89 mDrawable.setCallback(null);
92 mDrawable = dr;
117 return mDrawable;
151 if (mDrawable != null && mDrawable.canApplyTheme()) {
152 mDrawable.applyTheme(t);
227 if (mDrawable !
[all...]
H A DLayerDrawable.java138 r[i].mDrawable = layers[i];
234 final Drawable d = layer.mDrawable;
274 if (layer.mDrawable == null && (layer.mThemeAttrs == null ||
285 layer.mDrawable = Drawable.createFromXmlInner(r, parser, attrs, theme);
286 layer.mDrawable.setCallback(this);
288 layer.mDrawable.getChangingConfigurations();
390 if (layer.mDrawable != null) {
395 layer.mDrawable.setCallback(null);
399 layer.mDrawable = dr;
400 layer.mDrawable
1818 public Drawable mDrawable; field in class:LayerDrawable.ChildDrawable
[all...]
H A DTransitionDrawable.java196 array[0].mDrawable.draw(canvas);
199 array[1].mDrawable.draw(canvas);
205 d = array[0].mDrawable;
215 d = array[1].mDrawable;
/frameworks/support/compat/gingerbread/android/support/v4/graphics/drawable/
H A DDrawableWrapperGingerbread.java48 Drawable mDrawable; field in class:DrawableWrapperGingerbread
88 mDrawable.draw(canvas);
93 if (mDrawable != null) {
94 mDrawable.setBounds(bounds);
100 mDrawable.setChangingConfigurations(configs);
107 | mDrawable.getChangingConfigurations();
112 mDrawable.setDither(dither);
117 mDrawable.setFilterBitmap(filter);
122 mDrawable.setAlpha(alpha);
127 mDrawable
[all...]
/frameworks/base/core/java/android/text/style/
H A DDrawableMarginSpan.java29 mDrawable = b;
33 mDrawable = b;
38 return mDrawable.getIntrinsicWidth() + mPad;
49 int dw = mDrawable.getIntrinsicWidth();
50 int dh = mDrawable.getIntrinsicHeight();
53 mDrawable.setBounds(ix, itop, ix+dw, itop+dh);
54 mDrawable.draw(c);
61 int ht = mDrawable.getIntrinsicHeight();
73 private Drawable mDrawable; field in class:DrawableMarginSpan
H A DImageSpan.java31 private Drawable mDrawable; field in class:ImageSpan
64 mDrawable = context != null
67 int width = mDrawable.getIntrinsicWidth();
68 int height = mDrawable.getIntrinsicHeight();
69 mDrawable.setBounds(0, 0, width > 0 ? width : 0, height > 0 ? height : 0);
82 mDrawable = d;
95 mDrawable = d;
132 if (mDrawable != null) {
133 drawable = mDrawable;
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/graphics/
H A DDrawableCompatActivity.java38 private Drawable mDrawable; field in class:DrawableCompatActivity
48 mDrawable = DrawableCompat.wrap(d.mutate());
50 mImageView.setImageDrawable(mDrawable);
72 DrawableCompat.setTintList(mDrawable, null);
76 DrawableCompat.setTint(mDrawable, Color.MAGENTA);
80 DrawableCompat.setTintList(mDrawable,
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/graphics/
H A DDrawableCompatActivity.java38 private Drawable mDrawable; field in class:DrawableCompatActivity
48 mDrawable = DrawableCompat.wrap(d.mutate());
50 mImageView.setImageDrawable(mDrawable);
72 DrawableCompat.setTintList(mDrawable, null);
76 DrawableCompat.setTint(mDrawable, Color.MAGENTA);
80 DrawableCompat.setTintList(mDrawable,
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
H A DFrameSequenceTest.java31 FrameSequenceDrawable mDrawable; field in class:FrameSequenceTest
69 mDrawable.start();
75 mDrawable.stop();
81 mDrawable.setVisible(true, true);
87 mDrawable.setVisible(false, true);
100 mDrawable = new FrameSequenceDrawable(fs, mProvider);
101 mDrawable.setOnFinishedListener(new FrameSequenceDrawable.OnFinishedListener() {
108 imageView.setImageDrawable(mDrawable);
116 mDrawable.destroy();
119 mDrawable
[all...]
/frameworks/support/compat/api21/android/support/v4/graphics/drawable/
H A DDrawableWrapperLollipop.java44 mDrawable.setHotspot(x, y);
49 mDrawable.setHotspotBounds(left, top, right, bottom);
54 mDrawable.getOutline(outline);
59 return mDrawable.getDirtyBounds();
67 mDrawable.setTintList(tint);
76 mDrawable.setTint(tintColor);
85 mDrawable.setTintMode(tintMode);
103 final Drawable drawable = mDrawable;
/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...]
H A DAccountViewAdapter.java79 private Drawable mDrawable; field in class:AccountViewAdapter.AccountElements
109 mDrawable = drawable;
124 return mDrawable;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java33 private final BatteryMeterDrawable mDrawable; field in class:BatteryMeterView
52 mDrawable = new BatteryMeterDrawable(context, new Handler(), frameColor);
57 setImageDrawable(mDrawable);
77 mDrawable.startListening();
85 mDrawable.stopListening();
103 mDrawable.setBatteryController(mBatteryController);
107 mDrawable.setDarkIntensity(f);
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A DReplacementDrawableSpan.java16 protected Drawable mDrawable; field in class:ReplacementDrawableSpan
21 mDrawable = drawable;
54 int transY = (bottom - mDrawable.getBounds().bottom + top) / 2;
56 mDrawable.draw(canvas);
61 return mDrawable.getBounds();
/frameworks/base/core/java/android/widget/
H A DImageView.java94 private Drawable mDrawable = null; field in class:ImageView
225 return mDrawable == dr || super.verifyDrawable(dr);
231 if (mDrawable != null) mDrawable.jumpToCurrentState();
236 if (dr == mDrawable) {
397 if (mDrawable == mRecycleableBitmapDrawable) {
401 return mDrawable;
519 if (mDrawable != drawable) {
625 if (mDrawable != null && (mHasDrawableTint || mHasDrawableTintMode)) {
626 mDrawable
[all...]
/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/support/compat/kitkat/android/support/v4/graphics/drawable/
H A DDrawableWrapperKitKat.java36 mDrawable.setAutoMirrored(mirrored);
41 return mDrawable.isAutoMirrored();
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java101 private Drawable mDrawable; field in class:PhotoView
475 mDrawable = null;
491 if (drawable != null && drawable != mDrawable) {
493 if (mDrawable != null) {
494 mDrawable.setCallback(null);
497 mDrawable = drawable;
503 mDrawable.setCallback(this);
518 boolean currentDrawableIsBitmapDrawable = mDrawable instanceof BitmapDrawable;
520 if (mDrawable != null && currentDrawableIsBitmapDrawable) {
521 final Bitmap drawableBitmap = ((BitmapDrawable) mDrawable)
[all...]
/frameworks/support/compat/honeycomb/android/support/v4/graphics/drawable/
H A DDrawableWrapperHoneycomb.java36 mDrawable.jumpToCurrentState();

Completed in 599 milliseconds

12