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

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawable/
H A DUserIconDrawableTest.java37 private UserIconDrawable mDrawable; field in class:UserIconDrawableTest
44 mDrawable = new UserIconDrawable(100 /* size */).setIcon(b).bake();
46 assertThat(mDrawable.getConstantState()).isNotNull();
/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.java30 FrameSequenceDrawable mDrawable; field in class:FrameSequenceTest
68 mDrawable.start();
74 mDrawable.stop();
80 mDrawable.setVisible(true, true);
86 mDrawable.setVisible(false, true);
92 mDrawable.setCircleMaskEnabled(!mDrawable.getCircleMaskEnabled());
105 mDrawable = new FrameSequenceDrawable(fs, mProvider);
106 mDrawable.setOnFinishedListener(new FrameSequenceDrawable.OnFinishedListener() {
113 drawableView.setBackgroundDrawable(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/core/java/com/android/internal/app/
H A DAccessibilityButtonChooserActivity.java152 public Drawable mDrawable; field in class:AccessibilityButtonChooserActivity.AccessibilityButtonTarget
158 this.mDrawable = serviceInfo.getResolveInfo().loadIcon(context.getPackageManager());
165 this.mDrawable = context.getDrawable(iconRes);
177 return mDrawable;
/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/
H A DBatteryMeterView.java58 private final BatteryMeterDrawableBase mDrawable; field in class:BatteryMeterView
93 mDrawable = new BatteryMeterDrawableBase(context, frameColor);
101 mBatteryIconView.setImageDrawable(mDrawable);
165 mDrawable.setBatteryLevel(level);
166 mDrawable.setCharging(pluggedIn);
176 mDrawable.setPowerSave(isPowerSave);
247 mDrawable.setColors(foreground, background);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBatterySaverTile.java141 private final BatteryMeterDrawableBase mDrawable field in class:BatterySaverTile.BatteryDetail
183 mDrawable.setBatteryLevel(100);
184 mDrawable.setCharging(false);
185 mDrawable.setPowerSave(true);
186 mDrawable.setShowPercent(false);
187 ((ImageView) mCurrentView.findViewById(android.R.id.icon)).setImageDrawable(mDrawable);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyboardShortcuts.java650 if (shortcutRepresentation.mDrawable != null) {
657 shortcutRepresentation.mDrawable.setBounds(0, 0, canvas.getWidth(),
659 shortcutRepresentation.mDrawable.draw(canvas);
774 public Drawable mDrawable; field in class:KeyboardShortcuts.StringDrawableContainer
778 mDrawable = drawable;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DErrorFragment.java39 private Drawable mDrawable; field in class:ErrorFragment
94 mDrawable = drawable;
102 return mDrawable;
209 mImageView.setImageDrawable(mDrawable);
210 mImageView.setVisibility(mDrawable == null ? View.GONE : View.VISIBLE);
H A DErrorSupportFragment.java42 private Drawable mDrawable; field in class:ErrorSupportFragment
97 mDrawable = drawable;
105 return mDrawable;
212 mImageView.setImageDrawable(mDrawable);
213 mImageView.setVisibility(mDrawable == null ? View.GONE : View.VISIBLE);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
H A DCompositeDrawable.java88 final Drawable dr = children.get(i).mDrawable;
116 return mState.mChildren.get(index).mDrawable;
139 if (drawable == children.get(i).mDrawable) {
140 children.get(i).mDrawable.setCallback(null);
158 children.get(i).mDrawable.draw(canvas);
172 children.get(i).mDrawable.setColorFilter(colorFilter);
185 children.get(i).mDrawable.setAlpha(alpha);
205 final Drawable dr = children.get(i).mDrawable;
245 private final Drawable mDrawable; field in class:CompositeDrawable.ChildDrawable
250 this.mDrawable
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DTileAdapter.java476 private final ColorDrawable mDrawable; field in class:TileAdapter.TileItemDecoration
481 mDrawable = new ColorDrawable(ta.getColor(0, 0));
505 mDrawable.setBounds(0, top, width, bottom);
506 mDrawable.draw(c);
/frameworks/support/compat/ics/android/support/v4/graphics/drawable/
H A DDrawableWrapperApi14.java51 Drawable mDrawable; field in class:DrawableWrapperApi14
91 mDrawable.jumpToCurrentState();
96 mDrawable.draw(canvas);
101 if (mDrawable != null) {
102 mDrawable.setBounds(bounds);
108 mDrawable.setChangingConfigurations(configs);
115 | mDrawable.getChangingConfigurations();
120 mDrawable.setDither(dither);
125 mDrawable.setFilterBitmap(filter);
130 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...]

Completed in 433 milliseconds

12