/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...] |
/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...] |
/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/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);
|
/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...] |
AnimateDrawables.java | 39 private AnimateDrawable mDrawable; 54 mDrawable = new AnimateDrawable(dr, an); 62 mDrawable.draw(canvas);
|
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);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
InfoDropTarget.java | 34 private TransitionDrawable mDrawable; 53 mDrawable = (TransitionDrawable) getCurrentDrawable(); 54 if (null != mDrawable) { 55 mDrawable.setCrossFadeEnabled(true); 103 mDrawable.resetTransition(); 117 mDrawable.startTransition(mTransitionDuration); 125 mDrawable.resetTransition();
|
/external/replicaisland/src/com/replica/replicaisland/ |
FrameRateWatcherComponent.java | 22 private DrawableObject mDrawable; 33 mDrawable = null; 38 if (mRenderComponent != null && mDrawable != null) { 40 mRenderComponent.setDrawable(mDrawable); 49 mDrawable = drawable;
|
RenderComponent.java | 27 private DrawableObject mDrawable; 48 mDrawable = null; 53 if (mDrawable != null) { 70 if (mDrawable.visibleAtPosition(mScreenLocation)) { 71 system.scheduleForDraw(mDrawable, mPositionWorkspace, mPriority, mCameraRelative); 72 } else if (mDrawable.getParentPool() != null) { 76 sSystemRegistry.drawableFactory.release(mDrawable); 77 mDrawable = null; 84 return mDrawable; 88 mDrawable = drawable [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);
|
/packages/apps/Camera/src/com/android/camera/ui/ |
PieItem.java | 37 private Drawable mDrawable; 58 mDrawable = drawable; 96 mDrawable.setAlpha((int) (255 * alpha)); 181 return mDrawable.getIntrinsicWidth(); 185 return mDrawable.getIntrinsicHeight(); 189 mDrawable.setBounds(left, top, right, bottom); 193 mDrawable.draw(canvas); 198 d.setBounds(mDrawable.getBounds()); 199 mDrawable = d;
|
/packages/apps/Gallery2/src/com/android/camera/ui/ |
PieItem.java | 36 private Drawable mDrawable; 53 mDrawable = drawable; 106 mDrawable.setAlpha((int) (255 * alpha)); 148 return mDrawable.getIntrinsicWidth(); 152 return mDrawable.getIntrinsicHeight(); 156 mDrawable.setBounds(left, top, right, bottom); 160 mDrawable.draw(canvas); 165 d.setBounds(mDrawable.getBounds()); 166 mDrawable = d;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
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...] |
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...] |
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 mScaleState.mDrawable.setColorFilter(cf) [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...] |
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...] |
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 mClipState.mDrawable.setColorFilter(cf); 167 return mClipState.mDrawable.getOpacity(); 172 return mClipState.mDrawable.isStateful(); 177 return mClipState.mDrawable.setState(state) [all...] |
TransitionDrawable.java | 195 array[0].mDrawable.draw(canvas); 198 array[1].mDrawable.draw(canvas); 204 d = array[0].mDrawable; 214 d = array[1].mDrawable;
|
/packages/apps/Mms/src/com/android/mms/ui/ |
QuickContactDivot.java | 30 private Drawable mDrawable; 71 mDrawable = r.getDrawable(R.drawable.msg_bubble_right); 77 mDrawable = r.getDrawable(R.drawable.msg_bubble_left); 83 // mDrawable = r.getDrawable(R.drawable.msg_bubble_bottom); 89 // mDrawable = r.getDrawable(R.drawable.msg_bubble_top); 92 mDrawableIntrinsicWidth = mDrawable.getIntrinsicWidth(); 93 mDrawableIntrinsicHeight = mDrawable.getIntrinsicHeight(); 101 mDrawable.draw(c); 142 mDrawable.setBounds( 150 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/com/android/internal/widget/multiwaveview/ |
TargetDrawable.java | 45 private Drawable mDrawable; 89 mDrawable = drawable != null ? drawable.mutate() : null; 97 mDrawable = other.mDrawable != null ? other.mDrawable.mutate() : null; 103 if (mDrawable instanceof StateListDrawable) { 104 StateListDrawable d = (StateListDrawable) mDrawable; 110 if (mDrawable instanceof StateListDrawable) { 111 StateListDrawable d = (StateListDrawable) mDrawable; 124 if (mDrawable instanceof StateListDrawable) [all...] |