/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/core/java/android/widget/ |
D | TextView.java | 658 public void setErrorDrawable(Drawable dr, TextView tv) { 659 if (mDrawableError != dr && mDrawableError != null) { 662 mDrawableError = dr; 2301 Drawables dr = mDrawables; in setRelativeDrawablesIfNeeded() local 2302 if (dr == null) { in setRelativeDrawablesIfNeeded() 2303 mDrawables = dr = new Drawables(getContext()); in setRelativeDrawablesIfNeeded() 2306 final Rect compoundRect = dr.mCompoundRect; in setRelativeDrawablesIfNeeded() 2314 dr.mDrawableStart = start; in setRelativeDrawablesIfNeeded() 2315 dr.mDrawableSizeStart = compoundRect.width(); in setRelativeDrawablesIfNeeded() 2316 dr.mDrawableHeightStart = compoundRect.height(); in setRelativeDrawablesIfNeeded() [all …]
|
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/base/core/java/android/content/res/ |
D | ResourcesImpl.java | 666 Drawable dr; in loadDrawable() local 669 dr = cs.newDrawable(wrapper); in loadDrawable() 671 dr = new ColorDrawable(value.data); in loadDrawable() 673 dr = loadDrawableForCookie(wrapper, value, id, density); in loadDrawable() 678 if (dr instanceof DrawableContainer) { in loadDrawable() 685 final boolean canApplyTheme = dr != null && dr.canApplyTheme(); in loadDrawable() 687 dr = dr.mutate(); in loadDrawable() 688 dr.applyTheme(theme); in loadDrawable() 689 dr.clearMutated(); in loadDrawable() 695 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 | BaseIconFactory.java | 319 AdaptiveIconDrawable dr = (AdaptiveIconDrawable) mWrapperIcon; in normalizeAndWrapToAdaptiveIcon() local 320 dr.setBounds(0, 0, 1, 1); in normalizeAndWrapToAdaptiveIcon() 322 scale = getNormalizer().getScale(icon, outIconBounds, dr.getIconMask(), outShape); in normalizeAndWrapToAdaptiveIcon() 324 FixedScaleDrawable fsd = ((FixedScaleDrawable) dr.getForeground()); in normalizeAndWrapToAdaptiveIcon() 327 icon = dr; in normalizeAndWrapToAdaptiveIcon() 329 ((ColorDrawable) dr.getBackground()).setColor(mWrapperBackgroundColor); in normalizeAndWrapToAdaptiveIcon()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverListAdapter.java | 1016 Drawable dr = null; 1020 dr = loadIconFromResource( 1029 if (dr == null) dr = super.getIconSubstituteInternal(); 1031 return dr; 1063 Drawable dr = null; 1067 dr = loadIconFromResource( 1076 return dr; 1126 Drawable dr = null; 1128 dr = getIconSubstituteInternal(); 1131 if (dr == null) { [all …]
|
D | HeavyWeightSwitcherActivity.java | 92 void setDrawable(int id, Drawable dr) { in setDrawable() argument 93 if (dr != null) { in setDrawable() 94 ((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/base/core/java/android/content/pm/ |
D | ResolveInfo.java | 290 Drawable dr = null; in loadIcon() local 292 dr = pm.getDrawable(resolvePackageName, iconResourceId, null); in loadIcon() 295 if (dr == null && iconResourceId != 0) { in loadIcon() 297 dr = pm.getDrawable(ci.packageName, iconResourceId, ai); in loadIcon() 299 if (dr != null) { in loadIcon() 300 return pm.getUserBadgedIcon(dr, new UserHandle(pm.getUserId())); in loadIcon()
|
/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/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/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubbleBadgeIconFactory.java | 66 CircularRingDrawable(Drawable dr) { in CircularRingDrawable() argument 68 mDr = dr; in CircularRingDrawable()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayRotation.java | 2094 Record(DisplayRotation dr, int fromRotation, int toRotation) { 2097 mUserRotation = dr.mUserRotation; 2098 mUserRotationMode = dr.mUserRotationMode; 2099 final OrientationListener listener = dr.mOrientationListener; 2101 ? -2 /* disabled */ : dr.mLastSensorRotation; 2102 final DisplayContent dc = dr.mDisplayContent; 2119 if (dr.mFoldController != null) { 2120 mHalfFoldSavedRotation = dr.mFoldController.mHalfFoldSavedRotation; 2121 mInHalfFoldTransition = dr.mFoldController.mInHalfFoldTransition; 2122 mDeviceState = dr.mFoldController.mDeviceState; [all …]
|
/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()
|
/frameworks/native/libs/renderengine/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()
|