/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableWrapper.java | 53 private Drawable mDrawable; field in DrawableWrapper 89 if (mDrawable != null) { in setXfermode() 90 mDrawable.setXfermode(mode); in setXfermode() 100 if (mDrawable != null) { in setDrawable() 101 mDrawable.setCallback(null); in setDrawable() 104 mDrawable = dr; in setDrawable() 129 return mDrawable; in getDrawable() 164 if (mDrawable != null && mDrawable.canApplyTheme()) { in applyTheme() 165 mDrawable.applyTheme(t); in applyTheme() 240 if (mDrawable != null) { in draw() [all …]
|
D | AdaptiveIconDrawable.java | 177 layer.mDrawable = drawable; in createChildDrawable() 178 layer.mDrawable.setCallback(this); in createChildDrawable() 180 layer.mDrawable.getChangingConfigurations(); in createChildDrawable() 294 return mLayerState.mChildren[FOREGROUND_ID].mDrawable; in getForeground() 305 return mLayerState.mChildren[BACKGROUND_ID].mDrawable; in getBackground() 317 return mLayerState.mChildren[MONOCHROME_ID].mDrawable; in getMonochrome() 350 final Drawable d = r.mDrawable; in updateLayerBoundsInternal() 390 if (mLayerState.mChildren[BACKGROUND_ID].mDrawable != null) { in draw() 391 mLayerState.mChildren[BACKGROUND_ID].mDrawable.draw(mCanvas); in draw() 393 if (mLayerState.mChildren[FOREGROUND_ID].mDrawable != null) { in draw() [all …]
|
D | LayerDrawable.java | 144 r[i].mDrawable = child; in LayerDrawable() 234 final Drawable d = layer.mDrawable; in applyTheme() 274 if (layer.mDrawable == null && (layer.mThemeAttrs == null || in inflateLayers() 285 layer.mDrawable = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateLayers() 286 layer.mDrawable.setCallback(this); in inflateLayers() 288 layer.mDrawable.getChangingConfigurations(); in inflateLayers() 390 if (layer.mDrawable != null) { in updateLayerFromTypedArray() 395 layer.mDrawable.setCallback(null); in updateLayerFromTypedArray() 399 layer.mDrawable = dr; in updateLayerFromTypedArray() 400 layer.mDrawable.setCallback(this); in updateLayerFromTypedArray() [all …]
|
/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() 80 mDrawable.invalidateSelf(); in setActivated() 92 mDrawable.setFrameColor(color); in setFrameColor() 96 mDrawable.setFrameWidth(frameWidth); in setFrameWidth() 100 mDrawable.setFramePadding(framePadding); in setFramePadding() 104 mDrawable.setPadding(avatarPadding); in setAvatarPadding() 108 mDrawable.setBadgeRadius(diameter * 0.5f); in setBadgeDiameter() 112 mDrawable.setBadgeMargin(margin); in setBadgeMargin() 116 mDrawable.setIcon(avatar); 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/SystemUI/src/com/android/systemui/scrim/ |
D | ScrimView.java | 58 private Drawable mDrawable; field in ScrimView 84 mDrawable = new ScrimDrawable(); in ScrimView() 85 mDrawable.setCallback(this); in ScrimView() 104 if (mDrawable.getAlpha() > 0) { in onDraw() 105 mDrawable.draw(canvas); in onDraw() 112 mDrawable = drawable; in setDrawable() 113 mDrawable.setCallback(this); in setDrawable() 114 mDrawable.setBounds(getLeft(), getTop(), getRight(), getBottom()); in setDrawable() 115 mDrawable.setAlpha((int) (255 * mViewAlpha)); in setDrawable() 123 if (drawable == mDrawable) { in invalidateDrawable() [all …]
|
/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/core/java/android/widget/ |
D | ImageView.java | 129 private Drawable mDrawable = null; field in ImageView 277 return mDrawable == dr || super.verifyDrawable(dr); 283 if (mDrawable != null) mDrawable.jumpToCurrentState(); 288 if (dr == mDrawable) { 457 if (mDrawable == mRecycleableBitmapDrawable) { 461 return mDrawable; 592 if (mDrawable != drawable) { 734 if (mDrawable != null && (mHasDrawableTint || mHasDrawableBlendMode)) { 735 mDrawable = mDrawable.mutate(); 738 mDrawable.setTintList(mDrawableTintList); [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | BlurAggregatorTest.java | 49 private BackgroundBlurDrawable mDrawable; field in BlurAggregatorTest 60 mDrawable = createTestBackgroundBlurDrawable(); in setUp() 74 mDrawable.setBlurRadius(TEST_BLUR_RADIUS); in testBlurRadiusUpdatePropagatesToRenderThreadIfNeeded() 77 mDrawable.setBlurRadius(0); in testBlurRadiusUpdatePropagatesToRenderThreadIfNeeded() 83 mDrawable.setBlurRadius(TEST_BLUR_RADIUS); in testBlurRadiusUpdatePropagatesToRenderThreadIfNeeded() 94 mDrawable.setAlpha(20); in testAlphaUpdatePropagatesToRenderThreadIfNeeded() 101 mDrawable.setAlpha(20); in testAlphaUpdatePropagatesToRenderThreadIfNeeded() 104 mDrawable.setAlpha(0); in testAlphaUpdatePropagatesToRenderThreadIfNeeded() 113 mDrawable.setCornerRadius(1f, 2f, 3f, 4f); in testCornerRadiusUpdatePropagatesToRenderThreadIfNeeded() 126 mDrawable.setVisible(false, /* restart= */false); in testVisibleUpdatePropagatesToRenderThreadIfNeeded() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | SlashDrawable.java | 59 private Drawable mDrawable; field in SlashDrawable 70 mDrawable = d; in SlashDrawable() 75 return mDrawable != null ? mDrawable.getIntrinsicHeight(): 0; in getIntrinsicHeight() 80 return mDrawable != null ? mDrawable.getIntrinsicWidth(): 0; in getIntrinsicWidth() 86 mDrawable.setBounds(bounds); in onBoundsChange() 90 mDrawable = d; in setDrawable() 91 mDrawable.setCallback(getCallback()); in setDrawable() 92 mDrawable.setBounds(getBounds()); in setDrawable() 93 if (mTintMode != null) mDrawable.setTintMode(mTintMode); in setDrawable() 94 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/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/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 | 55 private Drawable mDrawable; field in MessagingImageMessage 115 mDrawable = drawable; in setMessage() 116 mAspectRatio = ((float) mDrawable.getIntrinsicWidth()) / intrinsicHeight; in setMessage() 160 mDrawable.setBounds(left, top, left + width, top + height); in onDraw() 161 mDrawable.draw(canvas); in onDraw() 191 mDrawable = null; in recycle() 209 && measuredHeight != mDrawable.getIntrinsicHeight(); in getMeasuredType() 213 if (!mIsIsolated && measuredHeight != mDrawable.getIntrinsicHeight()) { in getMeasuredType() 230 if (mDrawable == null) { 244 mDrawable.getIntrinsicWidth());
|
/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/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/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/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/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardIndicationTest.java | 77 .setIcon(mDrawable) in testCreateIndicationWithIcon() 80 assertEquals(mDrawable, indication.getIcon()); in testCreateIndicationWithIcon() 88 .setIcon(mDrawable) in testCreateIndicationWithMessageAndIcon() 92 assertEquals(mDrawable, indication.getIcon()); in testCreateIndicationWithMessageAndIcon() 95 final Drawable mDrawable = new Drawable() { field in KeyguardIndicationTest
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | CenteredImageSpan.java | 28 private Drawable mDrawable; field in CenteredImageSpan 71 if (mDrawable == null) { in getCachedDrawable() 72 mDrawable = getDrawable(); in getCachedDrawable() 74 return mDrawable; in getCachedDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/ |
D | BatteryMeterView.java | 70 private final AccessorizedBatteryDrawable mDrawable; field in BatteryMeterView 111 mDrawable = new AccessorizedBatteryDrawable(context, frameColor); in BatteryMeterView() 120 mBatteryIconView.setImageDrawable(mDrawable); in BatteryMeterView() 182 mDrawable.notifyDensityChanged(); in onConfigurationChanged() 205 mDrawable.setCharging(pluggedIn); in onBatteryLevelChanged() 206 mDrawable.setBatteryLevel(level); in onBatteryLevelChanged() 213 mDrawable.setPowerSaveEnabled(isPowerSave); in onPowerSaveChanged() 381 mBatteryIconView.setImageDrawable(mDrawable); in onBatteryUnknownStateChanged() 431 mDrawable.setDisplayShield(displayShield); in scaleBatteryMeterViews() 433 mBatteryIconView.invalidateDrawable(mDrawable); in scaleBatteryMeterViews() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | MagnifierView.java | 46 private Drawable mDrawable; field in MagnifierView 105 mDrawable = drawable; in setDrawable() 106 mDrawable.setBounds(0, 0, width, height); in setDrawable() 133 if (mDrawable != null) { in onDraw() 137 canvas.translate(-mDrawable.getBounds().width() * mLastCenter + getWidth() / 2, in onDraw() 138 -mDrawable.getBounds().height() * mLastCropPosition + getHeight() / 2); in onDraw() 139 mDrawable.draw(canvas); in onDraw()
|
/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()
|