/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableWrapper.java | 52 private Drawable mDrawable; field in DrawableWrapper 88 if (mDrawable != null) { in setXfermode() 89 mDrawable.setXfermode(mode); in setXfermode() 99 if (mDrawable != null) { in setDrawable() 100 mDrawable.setCallback(null); in setDrawable() 103 mDrawable = dr; in setDrawable() 128 return mDrawable; in getDrawable() 163 if (mDrawable != null && mDrawable.canApplyTheme()) { in applyTheme() 164 mDrawable.applyTheme(t); in applyTheme() 239 if (mDrawable != null) { in draw() [all …]
|
D | AdaptiveIconDrawable.java | 171 layer.mDrawable = drawable; in createChildDrawable() 172 layer.mDrawable.setCallback(this); in createChildDrawable() 174 layer.mDrawable.getChangingConfigurations(); in createChildDrawable() 273 return mLayerState.mChildren[FOREGROUND_ID].mDrawable; in getForeground() 284 return mLayerState.mChildren[BACKGROUND_ID].mDrawable; in getBackground() 320 final Drawable d = r.mDrawable; in updateLayerBoundsInternal() 364 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw() 438 final Drawable d = layer.mDrawable; in applyTheme() 488 if (layer.mDrawable == null && (layer.mThemeAttrs == null)) { in inflateLayers() 498 layer.mDrawable = Drawable.createFromXmlInnerForDensity(r, parser, attrs, in inflateLayers() [all …]
|
D | LayerDrawable.java | 143 r[i].mDrawable = child; in LayerDrawable() 233 final Drawable d = layer.mDrawable; in applyTheme() 273 if (layer.mDrawable == null && (layer.mThemeAttrs == null || in inflateLayers() 284 layer.mDrawable = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateLayers() 285 layer.mDrawable.setCallback(this); in inflateLayers() 287 layer.mDrawable.getChangingConfigurations(); in inflateLayers() 389 if (layer.mDrawable != null) { in updateLayerFromTypedArray() 394 layer.mDrawable.setCallback(null); in updateLayerFromTypedArray() 398 layer.mDrawable = dr; in updateLayerFromTypedArray() 399 layer.mDrawable.setCallback(this); in updateLayerFromTypedArray() [all …]
|
D | TransitionDrawable.java | 212 array[0].mDrawable.draw(canvas); in draw() 215 array[1].mDrawable.draw(canvas); in draw() 221 d = array[0].mDrawable; in draw() 231 d = array[1].mDrawable; in draw()
|
/frameworks/opt/bitmap/src/com/android/bitmap/view/ |
D | BitmapDrawableImageView.java | 45 private BasicBitmapDrawable mDrawable; field in BitmapDrawableImageView 77 return (E) mDrawable; in getTypedDrawable() 89 if (drawable != mDrawable) { in setTypedDrawable() 92 mDrawable = drawable; in setTypedDrawable() 100 if (mDrawable != null) { in unbindDrawable() 101 mDrawable.unbind(temporary); in unbindDrawable() 109 mDrawable = null; in setImageResource() 116 mDrawable = null; in setImageURI() 123 mDrawable = null; in setImageDrawable() 130 mDrawable = null; in setImageBitmap() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | UserAvatarView.java | 35 private final UserIconDrawable mDrawable = new UserIconDrawable(); field in UserAvatarView 62 setBackground(mDrawable); in UserAvatarView() 86 mDrawable.setFrameColor(color); in setFrameColor() 90 mDrawable.setFrameWidth(frameWidth); in setFrameWidth() 94 mDrawable.setFramePadding(framePadding); in setFramePadding() 98 mDrawable.setPadding(avatarPadding); in setAvatarPadding() 102 mDrawable.setBadgeRadius(diameter * 0.5f); in setBadgeDiameter() 106 mDrawable.setBadgeMargin(margin); in setBadgeMargin() 110 mDrawable.setIcon(avatar); in setAvatar() 111 mDrawable.setBadge(null); in setAvatar() [all …]
|
D | AppIconDragShadowBuilder.java | 29 final Drawable mDrawable; field in AppIconDragShadowBuilder 33 mDrawable = icon.getDrawable(); in AppIconDragShadowBuilder() 52 Rect oldBounds = mDrawable.copyBounds(); in onDrawShadow() 53 mDrawable.setBounds(0, 0, mIconSize, mIconSize); in onDrawShadow() 54 mDrawable.draw(canvas); in onDrawShadow() 55 mDrawable.setBounds(oldBounds); in onDrawShadow()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/ |
D | AnimatedImageView.java | 27 private AnimatedRotateDrawable mDrawable; field in AnimatedImageView 39 if (isShown() && mDrawable != null) { in updateDrawable() 40 mDrawable.stop(); in updateDrawable() 44 mDrawable = (AnimatedRotateDrawable) drawable; in updateDrawable() 46 mDrawable.setFramesCount(56); in updateDrawable() 47 mDrawable.setFramesDuration(32); in updateDrawable() 49 mDrawable.start(); in updateDrawable() 52 mDrawable = null; in updateDrawable() 57 if (mDrawable != null) { in updateAnimating() 59 mDrawable.start(); in updateAnimating() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | ScrimView.java | 42 private Drawable mDrawable; field in ScrimView 62 mDrawable = new ScrimDrawable(); in ScrimView() 63 mDrawable.setCallback(this); in ScrimView() 70 if (mDrawable.getAlpha() > 0) { in onDraw() 71 mDrawable.draw(canvas); in onDraw() 76 mDrawable = drawable; in setDrawable() 77 mDrawable.setCallback(this); in setDrawable() 78 mDrawable.setBounds(getLeft(), getTop(), getRight(), getBottom()); in setDrawable() 79 mDrawable.setAlpha((int) (255 * mViewAlpha)); in setDrawable() 86 if (drawable == mDrawable) { in invalidateDrawable() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 127 private Drawable mDrawable = null; field in ImageView 270 return mDrawable == dr || super.verifyDrawable(dr); 276 if (mDrawable != null) mDrawable.jumpToCurrentState(); 281 if (dr == mDrawable) { 450 if (mDrawable == mRecycleableBitmapDrawable) { 454 return mDrawable; 585 if (mDrawable != drawable) { 725 if (mDrawable != null && (mHasDrawableTint || mHasDrawableBlendMode)) { 726 mDrawable = mDrawable.mutate(); 729 mDrawable.setTintList(mDrawableTintList); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | SlashDrawable.java | 59 private Drawable mDrawable; field in SlashDrawable 68 mDrawable = d; in SlashDrawable() 73 return mDrawable != null ? mDrawable.getIntrinsicHeight(): 0; in getIntrinsicHeight() 78 return mDrawable != null ? mDrawable.getIntrinsicWidth(): 0; in getIntrinsicWidth() 84 mDrawable.setBounds(bounds); in onBoundsChange() 88 mDrawable = d; in setDrawable() 89 mDrawable.setCallback(getCallback()); in setDrawable() 90 mDrawable.setBounds(getBounds()); in setDrawable() 91 if (mTintMode != null) mDrawable.setTintMode(mTintMode); in setDrawable() 92 if (mTintList != null) mDrawable.setTintList(mTintList); in setDrawable() [all …]
|
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/ |
D | FrameSequenceTest.java | 30 FrameSequenceDrawable mDrawable; field in FrameSequenceTest 68 mDrawable.start(); in onCreate() 74 mDrawable.stop(); in onCreate() 80 mDrawable.setVisible(true, true); in onCreate() 86 mDrawable.setVisible(false, true); in onCreate() 92 mDrawable.setCircleMaskEnabled(!mDrawable.getCircleMaskEnabled()); in onCreate() 105 mDrawable = new FrameSequenceDrawable(fs, mProvider); in onResume() 106 mDrawable.setOnFinishedListener(new FrameSequenceDrawable.OnFinishedListener() { in onResume() 113 drawableView.setBackgroundDrawable(mDrawable); in onResume() 121 mDrawable.destroy(); in onPause() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DrawableHolder.java | 42 private BitmapDrawable mDrawable; field in DrawableHolder 52 mDrawable = drawable; in DrawableHolder() 55 mDrawable.getPaint().setAntiAlias(true); // Force AA in DrawableHolder() 56 mDrawable.setBounds(0, 0, mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight()); in DrawableHolder() 135 mDrawable.setAlpha((int) Math.round(mAlpha * 255f)); in draw() 136 mDrawable.draw(canvas); in draw() 199 return mDrawable; in getDrawable() 203 return mDrawable.getIntrinsicWidth(); in getWidth() 207 return mDrawable.getIntrinsicHeight(); in getHeight()
|
D | MessagingImageMessage.java | 56 private Drawable mDrawable; field in MessagingImageMessage 116 mDrawable = drawable; in setMessage() 117 mAspectRatio = ((float) mDrawable.getIntrinsicWidth()) / intrinsicHeight; in setMessage() 155 mDrawable.setBounds(left, 0, left + width, height); in onDraw() 156 mDrawable.draw(canvas); in onDraw() 186 mDrawable = null; in recycle() 204 && measuredHeight != mDrawable.getIntrinsicHeight(); in getMeasuredType() 208 if (!mIsIsolated && measuredHeight != mDrawable.getIntrinsicHeight()) { in getMeasuredType()
|
D | AccountViewAdapter.java | 79 private Drawable mDrawable; field in AccountViewAdapter.AccountElements 109 mDrawable = drawable; in AccountElements() 124 return mDrawable; in getDrawable()
|
/frameworks/base/core/java/android/text/style/ |
D | DrawableMarginSpan.java | 51 private final Drawable mDrawable; field in DrawableMarginSpan 71 mDrawable = drawable; in DrawableMarginSpan() 77 return mDrawable.getIntrinsicWidth() + mPad; in getLeadingMargin() 89 int dw = mDrawable.getIntrinsicWidth(); in drawLeadingMargin() 90 int dh = mDrawable.getIntrinsicHeight(); in drawLeadingMargin() 93 mDrawable.setBounds(ix, itop, ix + dw, itop + dh); in drawLeadingMargin() 94 mDrawable.draw(c); in drawLeadingMargin() 102 int ht = mDrawable.getIntrinsicHeight(); in chooseHeight()
|
D | ImageSpan.java | 62 private Drawable mDrawable; field in ImageSpan 113 mDrawable = context != null in ImageSpan() 116 int width = mDrawable.getIntrinsicWidth(); in ImageSpan() 117 int height = mDrawable.getIntrinsicHeight(); in ImageSpan() 118 mDrawable.setBounds(0, 0, width > 0 ? width : 0, height > 0 ? height : 0); in ImageSpan() 140 mDrawable = drawable; in ImageSpan() 164 mDrawable = drawable; in ImageSpan() 230 if (mDrawable != null) { in getDrawable() 231 drawable = mDrawable; in getDrawable()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | SimplePatchActivity.java | 36 private final Drawable mDrawable; field in SimplePatchActivity.PatchView 41 mDrawable = context.getResources().getDrawable(R.drawable.expander_ic_minimized); in PatchView() 49 mDrawable.setBounds(3, 0, 33, 64); in onDraw() 50 mDrawable.draw(canvas); in onDraw() 51 mDrawable.setBounds(63, 0, 94, 64); in onDraw() 52 mDrawable.draw(canvas); in onDraw()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 101 private Drawable mDrawable; field in PhotoView 475 mDrawable = null; in clear() 491 if (drawable != null && drawable != mDrawable) { in bindDrawable() 493 if (mDrawable != null) { in bindDrawable() 494 mDrawable.setCallback(null); in bindDrawable() 497 mDrawable = drawable; in bindDrawable() 503 mDrawable.setCallback(this); in bindDrawable() 518 boolean currentDrawableIsBitmapDrawable = mDrawable instanceof BitmapDrawable; in bindPhoto() 520 if (mDrawable != null && currentDrawableIsBitmapDrawable) { in bindPhoto() 521 final Bitmap drawableBitmap = ((BitmapDrawable) mDrawable).getBitmap(); in bindPhoto() [all …]
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 65 private Drawable mDrawable; field in TransformTestActivity.TransformView 95 float sizeX = mDrawable.getIntrinsicWidth()/2; in onScale() 96 float sizeY = mDrawable.getIntrinsicHeight()/2; in onScale() 135 mDrawable = d; in setDrawable() 137 float sizeX = mDrawable.getIntrinsicWidth()/2; in setDrawable() 138 float sizeY = mDrawable.getIntrinsicHeight()/2; in setDrawable() 165 float sizeX = mDrawable.getIntrinsicWidth()/2; in onTouchEvent() 166 float sizeY = mDrawable.getIntrinsicHeight()/2; in onTouchEvent() 185 mDrawable.draw(canvas); in onDraw()
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | ReplacementDrawableSpan.java | 16 protected Drawable mDrawable; field in ReplacementDrawableSpan 21 mDrawable = drawable; in ReplacementDrawableSpan() 54 int transY = (bottom - mDrawable.getBounds().bottom + top) / 2; in draw() 56 mDrawable.draw(canvas); in draw() 61 return mDrawable.getBounds(); in getBounds()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/ |
D | UserIconDrawableTest.java | 40 private UserIconDrawable mDrawable; field in UserIconDrawableTest 47 mDrawable = new UserIconDrawable(100 /* size */).setIcon(b).bake(); in getConstantState_shouldNotBeNull() 48 assertThat(mDrawable.getConstantState()).isNotNull(); in getConstantState_shouldNotBeNull()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | BatteryMeterView.java | 82 private final ThemedBatteryDrawable mDrawable; field in BatteryMeterView 132 mDrawable = new ThemedBatteryDrawable(context, frameColor); in BatteryMeterView() 148 mBatteryIconView.setImageDrawable(mDrawable); in BatteryMeterView() 320 mDrawable.setCharging(pluggedIn); in onBatteryLevelChanged() 321 mDrawable.setBatteryLevel(level); in onBatteryLevelChanged() 329 mDrawable.setPowerSaveEnabled(isPowerSave); in onPowerSaveChanged() 451 mDrawable.setColors(foregroundColor, backgroundColor, singleToneColor); in updateColors() 459 String powerSave = mDrawable == null ? null : mDrawable.getPowerSaveEnabled() + ""; in dump()
|
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/ |
D | AdaptiveIcon.java | 108 Drawable mDrawable; field in AdaptiveIcon.AdaptiveConstantState 113 this.mDrawable = drawable; in AdaptiveConstantState() 119 icon = new AdaptiveIcon(mContext, mDrawable); in newDrawable()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AccessibilityButtonChooserActivity.java | 177 public Drawable mDrawable; field in AccessibilityButtonChooserActivity.AccessibilityButtonTarget 183 this.mDrawable = serviceInfo.getResolveInfo().loadIcon(context.getPackageManager()); in AccessibilityButtonTarget() 190 this.mDrawable = context.getDrawable(iconRes); in AccessibilityButtonTarget() 202 return mDrawable; in getDrawable()
|