/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | SimplePatchActivity.java | 36 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 D | 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; field in class:DrawableMarginSpan
|
H A D | ImageSpan.java | 30 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;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 65 mClipState.mDrawable = drawable; 104 mClipState.mDrawable = dr; 140 | mClipState.mDrawable.getChangingConfigurations(); 146 return mClipState.mDrawable.getPadding(padding); 151 mClipState.mDrawable.setVisible(visible, restart); 157 mClipState.mDrawable.setAlpha(alpha); 162 return mClipState.mDrawable.getAlpha(); 167 mClipState.mDrawable.setColorFilter(cf); 172 return mClipState.mDrawable.getOpacity(); 177 return mClipState.mDrawable 255 Drawable mDrawable; field in class:ClipDrawable.ClipState [all...] |
H A D | 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 return mInsetState.mDrawable.getAlpha(); 203 mInsetState.mDrawable.setColorFilter(cf); 209 mInsetState.mDrawable 278 Drawable mDrawable; field in class:InsetDrawable.InsetState [all...] |
H A D | ScaleDrawable.java | 58 mScaleState.mDrawable = drawable; 72 return mScaleState.mDrawable; 117 mScaleState.mDrawable = dr; 151 if (mScaleState.mDrawable.getLevel() != 0) 152 mScaleState.mDrawable.draw(canvas); 159 | mScaleState.mDrawable.getChangingConfigurations(); 165 return mScaleState.mDrawable.getPadding(padding); 170 mScaleState.mDrawable.setVisible(visible, restart); 176 mScaleState.mDrawable.setAlpha(alpha); 181 return mScaleState.mDrawable 266 Drawable mDrawable; field in class:ScaleDrawable.ScaleState [all...] |
H A D | 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); 113 return mState.mDrawable.getAlpha(); 117 mState.mDrawable.setColorFilter(cf); 121 return mState.mDrawable.getOpacity(); 147 return mState.mDrawable.getPadding(padding); 152 mState.mDrawable 299 Drawable mDrawable; field in class:RotateDrawable.RotateState [all...] |
H A D | 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 return mState.mDrawable.getAlpha(); 162 mState.mDrawable.setColorFilter(cf); 167 return mState.mDrawable.getOpacity(); 193 return mState.mDrawable 304 Drawable mDrawable; field in class:AnimatedRotateDrawable.AnimatedRotateState [all...] |
H A D | LayerDrawable.java | 84 r[i].mDrawable = layers[i]; 205 childDrawable.mDrawable = layer; 206 childDrawable.mDrawable.setAutoMirrored(isAutoMirrored()); 227 return layers[i].mDrawable; 260 return mLayerState.mChildren[index].mDrawable; 287 if (layers[i].mDrawable != null) { 289 Rect bounds = layers[i].mDrawable.getBounds(); 292 layers[i].mDrawable.setCallback(null); 297 layers[i].mDrawable = drawable; 349 array[i].mDrawable 631 public Drawable mDrawable; field in class:LayerDrawable.ChildDrawable [all...] |
H A D | TransitionDrawable.java | 195 array[0].mDrawable.draw(canvas); 198 array[1].mDrawable.draw(canvas); 204 d = array[0].mDrawable; 214 d = array[1].mDrawable;
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
H A D | TargetDrawable.java | 45 private Drawable mDrawable; field in class:TargetDrawable 59 mDrawable = drawable != null ? drawable.mutate() : null; 67 mDrawable = other.mDrawable != null ? other.mDrawable.mutate() : null; 73 if (mDrawable instanceof StateListDrawable) { 74 StateListDrawable d = (StateListDrawable) mDrawable; 80 if (mDrawable instanceof StateListDrawable) { 81 StateListDrawable d = (StateListDrawable) mDrawable; 94 if (mDrawable instanceo [all...] |
H A D | PointCloud.java | 34 private Drawable mDrawable; field in class:PointCloud 125 mDrawable = drawable; 126 if (mDrawable != null) { 216 if (mDrawable != null) { 218 final float cx = mDrawable.getIntrinsicWidth() * 0.5f; 219 final float cy = mDrawable.getIntrinsicHeight() * 0.5f; 223 mDrawable.setAlpha(alpha); 224 mDrawable.draw(canvas);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | DrawableHolder.java | 42 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 D | TransformTestActivity.java | 65 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/android/widget/ |
H A D | ImageView.java | 82 private Drawable mDrawable = null; field in class:ImageView 182 return mDrawable == dr || super.verifyDrawable(dr); 188 if (mDrawable != null) mDrawable.jumpToCurrentState(); 193 if (dr == mDrawable) { 341 return mDrawable; 414 if (mDrawable != drawable) { 445 if (mDrawable != null) { 466 if (mDrawable != null) { 467 mDrawable [all...] |
H A D | Editor.java | 2984 protected Drawable mDrawable; field in class:Editor.HandleView 3023 final int handleHeight = mDrawable.getIntrinsicHeight(); 3031 mDrawable = isRtlCharAtOffset ? mDrawableRtl : mDrawableLtr; 3032 mHotspotX = getHotspotX(mDrawable, isRtlCharAtOffset); 3080 setMeasuredDimension(mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight()); 3221 mDrawable.setBounds(0, 0, mRight - mLeft, mBottom - mTop); 3222 mDrawable.draw(c);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 90 private BitmapDrawable mDrawable; field in class:PhotoView 435 mDrawable = null; 456 if (mDrawable != null) { 457 final Bitmap drawableBitmap = mDrawable.getBitmap(); 464 (mDrawable.getIntrinsicWidth() != photoBitmap.getWidth() || 465 mDrawable.getIntrinsicHeight() != photoBitmap.getHeight()); 469 mDrawable = null; 472 if (mDrawable == null && photoBitmap != null) { 473 mDrawable = new BitmapDrawable(getResources(), photoBitmap); 484 if (mDrawable ! [all...] |
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
H A D | EditStyledText.java | 2507 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...] |