/packages/apps/Settings/src/com/android/settings/drawable/ |
DrawableWrapper.java | 35 private final Drawable mDrawable; 38 mDrawable = Preconditions.checkNotNull(drawable); 39 mDrawable.setCallback(this); 44 mDrawable.draw(canvas); 50 mDrawable.setBounds(left, top, right, bottom); 55 mDrawable.setChangingConfigurations(configs); 60 return mDrawable.getChangingConfigurations(); 65 mDrawable.setDither(dither); 70 mDrawable.setFilterBitmap(filter); 75 mDrawable.setAlpha(alpha) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
RoundRects.java | 37 private GradientDrawable mDrawable; 47 mDrawable = new GradientDrawable(GradientDrawable.Orientation.TL_BR, 50 mDrawable.setShape(GradientDrawable.RECTANGLE); 51 mDrawable.setGradientRadius((float)(Math.sqrt(2) * 60)); 62 mDrawable.setBounds(mRect); 68 mDrawable.setGradientType(GradientDrawable.LINEAR_GRADIENT); 69 setCornerRadii(mDrawable, r, r, 0, 0); 70 mDrawable.draw(canvas); 75 mDrawable.setGradientType(GradientDrawable.RADIAL_GRADIENT); 76 setCornerRadii(mDrawable, 0, 0, r, r) [all...] |
Pictures.java | 38 private Drawable mDrawable; 60 mDrawable = new PictureDrawable(mPicture); 70 mDrawable.setBounds(0, 200, getWidth(), 300); 71 mDrawable.draw(canvas);
|
ColorFilters.java | 39 private Drawable mDrawable; 64 mDrawable = context.getResources().getDrawable(R.drawable.btn_default_normal); 65 mDrawable.setBounds(0, 0, 150, 48); 66 mDrawable.setDither(true); 74 Drawable prev = mDrawable; 128 Rect r = mDrawable.getBounds(); 132 mDrawable.setColorFilter(filter); 133 mDrawable.draw(canvas);
|
AnimateDrawables.java | 39 private AnimateDrawable mDrawable; 54 mDrawable = new AnimateDrawable(dr, an); 62 mDrawable.draw(canvas);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
DrawableTexture.java | 26 private final Drawable mDrawable; 30 mDrawable = drawable; 35 mDrawable.setBounds(0, 0, mWidth, mHeight); 36 mDrawable.draw(canvas);
|
/sdk/layoutlib_api/src/com/android/ide/common/rendering/api/ |
DrawableParams.java | 27 private final ResourceValue mDrawable; 67 mDrawable = drawable; 72 mDrawable = params.mDrawable; 76 return mDrawable;
|
/packages/apps/Settings/src/com/android/settings/widget/ |
AnimatedImageView.java | 27 private AnimatedRotateDrawable mDrawable; 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.start() [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
SimplePatchActivity.java | 36 private final Drawable mDrawable; 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
FixedSizeDrawable.java | 26 Drawable mDrawable; 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/core/java/android/text/style/ |
DrawableMarginSpan.java | 30 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;
|
ImageSpan.java | 30 private Drawable mDrawable; 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;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
ScaleDrawable.java | 59 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.setColorFilter(cf) [all...] |
ClipDrawable.java | 66 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.setState(state) [all...] |
InsetDrawable.java | 65 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.isStateful() [all...] |
RotateDrawable.java | 76 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.isStateful() [all...] |
AnimatedRotateDrawable.java | 59 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.isStateful() [all...] |
LayerDrawable.java | 84 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.setVisible(visible, restart) [all...] |
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
TargetDrawable.java | 42 private Drawable mDrawable; 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 instanceof StateListDrawable) [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
QuickContactDivot.java | 17 private Drawable mDrawable; 58 mDrawable = r.getDrawable(R.drawable.msg_bubble_right); 64 mDrawable = r.getDrawable(R.drawable.msg_bubble_left); 70 // mDrawable = r.getDrawable(R.drawable.msg_bubble_bottom); 76 // mDrawable = r.getDrawable(R.drawable.msg_bubble_top); 79 mDrawableIntrinsicWidth = mDrawable.getIntrinsicWidth(); 80 mDrawableIntrinsicHeight = mDrawable.getIntrinsicHeight(); 88 mDrawable.draw(c); 129 mDrawable.setBounds( 137 mDrawable.setBounds [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
DrawableHolder.java | 42 private BitmapDrawable mDrawable; 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.getIntrinsicWidth() [all...] |
/frameworks/base/core/java/android/widget/ |
ImageView.java | 75 private Drawable mDrawable = null; 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 != null) [all...] |
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
TransformTestActivity.java | 65 private Drawable mDrawable; 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);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
InfoDropTarget.java | 36 private TransitionDrawable mDrawable; 58 mDrawable = (TransitionDrawable) getCompoundDrawables()[0]; 59 mDrawable.setCrossFadeEnabled(true); 101 mDrawable.resetTransition(); 115 mDrawable.startTransition(mTransitionDuration); 123 mDrawable.resetTransition();
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
CachingIconLoader.java | 102 private NowOrLater<Drawable> mDrawable; 112 mDrawable = drawable; 129 NowOrLater<Drawable> drawable = mDrawable; 130 mDrawable = null;
|