/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/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);
|
/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...] |
/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;
|
/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 | 36 private TransitionDrawable mDrawable; 58 mDrawable = (TransitionDrawable) getCompoundDrawables()[0]; 59 mDrawable.setCrossFadeEnabled(true); 101 mDrawable.resetTransition(); 115 mDrawable.startTransition(mTransitionDuration); 123 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);
|
/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 | 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...] |
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...] |
TransitionDrawable.java | 195 array[0].mDrawable.draw(canvas); 198 array[1].mDrawable.draw(canvas); 204 d = array[0].mDrawable; 214 d = array[1].mDrawable;
|
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...] |
/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/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...] |
/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...] |