/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/unified/ |
D | BatteryAttributionDrawable.kt | 39 class BatteryAttributionDrawable(dr: Drawable?) : DrawableWrapper(dr) { 49 val dr = drawable ?: return in updateBoundsInner() constant 51 val hScale = bounds.width().toFloat() / dr.intrinsicWidth.toFloat() in updateBoundsInner() 52 val vScale = bounds.height().toFloat() / dr.intrinsicHeight.toFloat() in updateBoundsInner() 55 val dw = scale * dr.intrinsicWidth in updateBoundsInner() 56 val dh = scale * dr.intrinsicHeight in updateBoundsInner() 61 dr.setBounds( in updateBoundsInner() 68 dr.setBounds( in updateBoundsInner() 77 override fun setDrawable(dr: Drawable?) { in setDrawable() 78 super.setDrawable(dr) in setDrawable()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AdaptiveIconDrawable.java | 561 Drawable dr = a.getDrawableForDensity(R.styleable.AdaptiveIconDrawableLayer_drawable, in updateLayerFromTypedArray() local 563 if (dr != null) { in updateLayerFromTypedArray() 573 layer.mDrawable = dr; in updateLayerFromTypedArray() 655 final Drawable dr = array[i].mDrawable; in setHotspot() local 656 if (dr != null) { in setHotspot() 657 dr.setHotspot(x, y); in setHotspot() 666 final Drawable dr = array[i].mDrawable; in setHotspotBounds() local 667 if (dr != null) { in setHotspotBounds() 668 dr.setHotspotBounds(left, top, right, bottom); in setHotspotBounds() 694 final Drawable dr = array[i].mDrawable; in setVisible() local [all …]
|
D | LayerDrawable.java | 388 final Drawable dr = a.getDrawable(R.styleable.LayerDrawableItem_drawable); in updateLayerFromTypedArray() local 389 if (dr != null) { in updateLayerFromTypedArray() 399 layer.mDrawable = dr; in updateLayerFromTypedArray() 469 ChildDrawable addLayer(Drawable dr, int[] themeAttrs, int id, in addLayer() argument 471 final ChildDrawable childDrawable = createLayer(dr); in addLayer() 482 mLayerState.mChildrenChangingConfigurations |= dr.getChangingConfigurations(); in addLayer() 483 dr.setCallback(this); in addLayer() 488 private ChildDrawable createLayer(Drawable dr) { in createLayer() argument 490 layer.mDrawable = dr; in createLayer() 501 public int addLayer(Drawable dr) { in addLayer() argument [all …]
|
D | DrawableWrapper.java | 67 public DrawableWrapper(@Nullable Drawable dr) { in DrawableWrapper() argument 69 setDrawable(dr); in DrawableWrapper() 79 final Drawable dr = mState.mDrawableState.newDrawable(res); in updateLocalState() local 80 setDrawable(dr); in updateLocalState() 99 public void setDrawable(@Nullable Drawable dr) { in setDrawable() argument 104 mDrawable = dr; in setDrawable() 106 if (dr != null) { in setDrawable() 107 dr.setCallback(this); in setDrawable() 110 dr.setVisible(isVisible(), true); in setDrawable() 111 dr.setState(getState()); in setDrawable() [all …]
|
D | ClipDrawable.java | 162 final Drawable dr = getDrawable(); in getOpacity() local 163 final int opacity = dr.getOpacity(); in getOpacity() 164 if (opacity == PixelFormat.TRANSPARENT || dr.getLevel() == 0) { in getOpacity() 170 return dr.getOpacity(); in getOpacity() 179 final Drawable dr = getDrawable(); in draw() local 180 if (dr.getLevel() == 0) { in draw() 206 dr.draw(canvas); in draw()
|
D | AnimationDrawable.java | 329 Drawable dr = a.getDrawable(R.styleable.AnimationDrawableItem_drawable); in inflateChildElements() local 333 if (dr == null) { in inflateChildElements() 342 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateChildElements() 345 mAnimationState.addFrame(dr, duration); in inflateChildElements() 346 if (dr != null) { in inflateChildElements() 347 dr.setCallback(this); in inflateChildElements() 413 public void addFrame(Drawable dr, int dur) { in addFrame() argument 416 int pos = super.addChild(dr); in addFrame()
|
D | LevelListDrawable.java | 132 Drawable dr; in inflateChildElements() local 134 dr = r.getDrawable(drawableRes, theme); in inflateChildElements() 144 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateChildElements() 147 mLevelListState.addLevel(low, high, dr); in inflateChildElements()
|
D | AnimatedStateListDrawable.java | 476 Drawable dr = a.getDrawable( in parseTransition() local 483 if (dr == null) { in parseTransition() 493 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in parseTransition() 496 return mState.addTransition(fromId, toId, dr, reversible); in parseTransition() 507 Drawable dr = a.getDrawable(R.styleable.AnimatedStateListDrawableItem_drawable); in parseItem() local 515 if (dr == null) { in parseItem() 525 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in parseItem() 528 return mState.addStateSet(states, dr, keyframeId); in parseItem()
|
D | DrawableContainer.java | 837 public final int addChild(Drawable dr) { in addChild() argument 843 dr.mutate(); in addChild() 844 dr.setVisible(false, true); in addChild() 845 dr.setCallback(mOwner); in addChild() 847 mDrawables[pos] = dr; in addChild() 849 mChildrenChangingConfigurations |= dr.getChangingConfigurations(); in addChild() 1129 final Drawable dr = drawables[i]; in computeConstantSize() local 1130 int s = dr.getIntrinsicWidth(); in computeConstantSize() 1132 s = dr.getIntrinsicHeight(); in computeConstantSize() 1134 s = dr.getMinimumWidth(); in computeConstantSize() [all …]
|
D | StateListDrawable.java | 182 Drawable dr = a.getDrawable(R.styleable.StateListDrawableItem_drawable); in inflateChildElements() local 190 if (dr == null) { in inflateChildElements() 199 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateChildElements() 202 state.addStateSet(states, dr); in inflateChildElements()
|
/frameworks/base/core/java/com/android/internal/graphics/drawable/ |
D | AnimationScaleListDrawable.java | 114 Drawable dr = a.getDrawable(R.styleable.AnimationScaleListDrawableItem_drawable); in inflateChildElements() local 118 if (dr == null) { in inflateChildElements() 127 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateChildElements() 130 state.addDrawable(dr); in inflateChildElements() 151 Drawable dr = getCurrent(); in start() local 152 if (dr != null && dr instanceof Animatable) { in start() 153 ((Animatable) dr).start(); in start() 159 Drawable dr = getCurrent(); in stop() local 160 if (dr != null && dr instanceof Animatable) { in stop() 161 ((Animatable) dr).stop(); in stop() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayController.java | 199 final DisplayRecord dr = mDisplays.get(displayId); in onDisplayRotateRequested() local 200 if (dr == null) { in onDisplayRotateRequested() 205 if (dr.mDisplayLayout != null) { in onDisplayRotateRequested() 206 dr.mDisplayLayout.rotateTo(dr.mContext.getResources(), toRotation); in onDisplayRotateRequested() 216 final DisplayRecord dr = mDisplays.get(displayId); in onDisplayConfigurationChanged() local 217 if (dr == null) { in onDisplayConfigurationChanged() 232 dr.setDisplayLayout(context, new DisplayLayout(context, display)); in onDisplayConfigurationChanged()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LaunchParamsModifierTestsBase.java | 75 final int dr = displayFrame.right; in configInsetsState() local 91 .setFrame(dl, dt, dr, st); in configInsetsState() 93 if (sr < dr) { in configInsetsState() 95 .setFrame(sr, dt, dr, db); in configInsetsState() 99 .setFrame(dl, sb, dr, db); in configInsetsState()
|
/frameworks/base/core/java/android/content/res/ |
D | ResourcesImpl.java | 759 Drawable dr; in loadDrawable() local 762 dr = cs.newDrawable(wrapper); in loadDrawable() 764 dr = new ColorDrawable(value.data); in loadDrawable() 766 dr = loadDrawableForCookie(wrapper, value, id, density); in loadDrawable() 771 if (dr instanceof DrawableContainer) { in loadDrawable() 778 final boolean canApplyTheme = dr != null && dr.canApplyTheme(); in loadDrawable() 780 dr = dr.mutate(); in loadDrawable() 781 dr.applyTheme(theme); in loadDrawable() 782 dr.clearMutated(); in loadDrawable() 788 if (dr != null) { in loadDrawable() [all …]
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | RoundDrawableWrapper.java | 35 public RoundDrawableWrapper(Drawable dr, float radius) { in RoundDrawableWrapper() argument 36 super(dr); in RoundDrawableWrapper()
|
D | BubbleIconFactory.java | 109 CircularRingDrawable(Drawable dr) { in CircularRingDrawable() argument 111 mDr = dr; in CircularRingDrawable()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverListAdapter.java | 1026 Drawable dr = null; 1030 dr = loadIconFromResource( 1039 if (dr == null) dr = super.getIconSubstituteInternal(); 1041 return dr; 1073 Drawable dr = null; 1077 dr = loadIconFromResource( 1086 return dr; 1136 Drawable dr = null; 1138 dr = getIconSubstituteInternal(); 1141 if (dr == null) { [all …]
|
D | HeavyWeightSwitcherActivity.java | 93 void setDrawable(int id, Drawable dr) { in setDrawable() argument 94 if (dr != null) { in setDrawable() 95 ((ImageView)findViewById(id)).setImageDrawable(dr); in setDrawable()
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | DrawableWrapperTest.java | 39 MyWrapper(Drawable dr) { in MyWrapper() argument 40 super(dr); in MyWrapper()
|
/frameworks/av/services/camera/libcameraservice/hidl/ |
D | CameraHybridInterface.h | 79 sp<IBinder::DeathRecipient> dr = recipient.promote(); in serviceDied() local 80 if (dr != nullptr) { in serviceDied() 81 dr->binderDied(who); in serviceDied()
|
/frameworks/base/core/java/android/content/pm/ |
D | ResolveInfo.java | 311 Drawable dr = null; in loadIcon() local 313 dr = pm.getDrawable(resolvePackageName, iconResourceId, null); in loadIcon() 316 if (dr == null && iconResourceId != 0) { in loadIcon() 318 dr = pm.getDrawable(ci.packageName, iconResourceId, ai); in loadIcon() 320 if (dr != null) { in loadIcon() 321 return pm.getUserBadgedIcon(dr, new UserHandle(pm.getUserId())); in loadIcon()
|
/frameworks/base/core/java/android/util/ |
D | LauncherIcons.java | 135 public ShadowDrawable(Bitmap shadow, Drawable dr) { in ShadowDrawable() argument 136 super(dr); in ShadowDrawable() 137 mState = new MyConstantState(shadow, dr.getConstantState()); in ShadowDrawable()
|
/frameworks/base/tests/BinderLeakTest/java/com/android/test/binder/ |
D | BinderTest.java | 123 public void registerDeathRecorder(DeathRecorder dr) { in registerDeathRecorder() argument 124 mDeathRecorder = dr; in registerDeathRecorder()
|
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 276 protected boolean verifyDrawable(@NonNull Drawable dr) { 277 return mDrawable == dr || super.verifyDrawable(dr); 287 public void invalidateDrawable(@NonNull Drawable dr) { 288 if (dr == mDrawable) { 289 if (dr != null) { 291 final int w = dr.getIntrinsicWidth(); 292 final int h = dr.getIntrinsicHeight(); 309 super.invalidateDrawable(dr);
|
/frameworks/av/media/libstagefright/renderfright/gl/ |
D | GLSkiaShadowPort.cpp | 624 float dr = spotShadowRadius - casterCornerRadius; in getSpotShadowGeometry() local 625 vec2 upperLeftOffset = vec2(spotShadowRect.left - casterRect.left + dr, in getSpotShadowGeometry() 626 spotShadowRect.top - casterRect.top + dr); in getSpotShadowGeometry() 627 vec2 lowerRightOffset = vec2(spotShadowRect.right - casterRect.right - dr, in getSpotShadowGeometry() 628 spotShadowRect.bottom - casterRect.bottom - dr); in getSpotShadowGeometry() 631 dr; in getSpotShadowGeometry()
|