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

12

/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/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/base/core/java/android/text/style/
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;
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
/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/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/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/base/core/java/com/android/internal/widget/
H A DAccountViewAdapter.java79 private Drawable mDrawable; field in class:AccountViewAdapter.AccountElements
109 mDrawable = drawable;
124 return mDrawable;
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/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/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/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/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBatteryTile.java166 private final BatteryMeterDrawable mDrawable = new BatteryMeterDrawable(mHost.getContext(), field in class:BatteryTile.BatteryDetail
206 mDrawable.onBatteryLevelChanged(100, false, false);
207 mDrawable.onPowerSaveChanged(true);
208 mDrawable.disableShowPercent();
209 ((ImageView) mCurrentView.findViewById(android.R.id.icon)).setImageDrawable(mDrawable);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyboardShortcuts.java631 if (shortcutRepresentation.mDrawable != null) {
638 shortcutRepresentation.mDrawable.setBounds(0, 0, canvas.getWidth(),
640 shortcutRepresentation.mDrawable.draw(canvas);
750 public Drawable mDrawable; field in class:KeyboardShortcuts.StringDrawableContainer
754 mDrawable = drawable;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DErrorFragment.java43 private Drawable mDrawable; field in class:ErrorFragment
98 mDrawable = drawable;
106 return mDrawable;
213 mImageView.setImageDrawable(mDrawable);
214 mImageView.setVisibility(mDrawable == null ? View.GONE : View.VISIBLE);
H A DErrorSupportFragment.java45 private Drawable mDrawable; field in class:ErrorSupportFragment
100 mDrawable = drawable;
108 return mDrawable;
215 mImageView.setImageDrawable(mDrawable);
216 mImageView.setVisibility(mDrawable == null ? View.GONE : View.VISIBLE);
H A DBackgroundManager.java210 private Drawable mDrawable; field in class:BackgroundManager.DrawableWrapper
214 mDrawable = drawable;
219 mDrawable = drawable;
227 return mDrawable;
237 mDrawable.setAlpha(mAlpha);
248 mDrawable.setColorFilter(mColorFilter);
252 ((ColorDrawable) mDrawable).setColor(color);
511 private Drawable mDrawable; field in class:BackgroundManager.BackgroundContinuityService
524 mDrawable = null;
544 return mDrawable;
1150 Drawable mDrawable; field in class:BackgroundManager.ChangeBackgroundRunnable
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DTileAdapter.java469 private final ColorDrawable mDrawable; field in class:TileAdapter.TileItemDecoration
474 mDrawable = new ColorDrawable(ta.getColor(0, 0));
498 mDrawable.setBounds(0, top, width, bottom);
499 mDrawable.draw(c);
/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/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/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...]
/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...]

Completed in 535 milliseconds

12