/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AdaptiveIconDrawable.java | 364 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw() local 365 if (dr != null) { in draw() 366 dr.draw(mCanvas); in draw() 517 Drawable dr = a.getDrawableForDensity(R.styleable.AdaptiveIconDrawableLayer_drawable, in updateLayerFromTypedArray() local 519 if (dr != null) { in updateLayerFromTypedArray() 529 layer.mDrawable = dr; in updateLayerFromTypedArray() 611 final Drawable dr = array[i].mDrawable; in setHotspot() local 612 if (dr != null) { in setHotspot() 613 dr.setHotspot(x, y); in setHotspot() 622 final Drawable dr = array[i].mDrawable; in setHotspotBounds() local [all …]
|
D | LayerDrawable.java | 387 final Drawable dr = a.getDrawable(R.styleable.LayerDrawableItem_drawable); in updateLayerFromTypedArray() local 388 if (dr != null) { in updateLayerFromTypedArray() 398 layer.mDrawable = dr; in updateLayerFromTypedArray() 468 ChildDrawable addLayer(Drawable dr, int[] themeAttrs, int id, in addLayer() argument 470 final ChildDrawable childDrawable = createLayer(dr); in addLayer() 481 mLayerState.mChildrenChangingConfigurations |= dr.getChangingConfigurations(); in addLayer() 482 dr.setCallback(this); in addLayer() 487 private ChildDrawable createLayer(Drawable dr) { in createLayer() argument 489 layer.mDrawable = dr; in createLayer() 500 public int addLayer(Drawable dr) { in addLayer() argument [all …]
|
D | DrawableWrapper.java | 66 public DrawableWrapper(@Nullable Drawable dr) { in DrawableWrapper() argument 68 setDrawable(dr); in DrawableWrapper() 78 final Drawable dr = mState.mDrawableState.newDrawable(res); in updateLocalState() local 79 setDrawable(dr); in updateLocalState() 98 public void setDrawable(@Nullable Drawable dr) { in setDrawable() argument 103 mDrawable = dr; in setDrawable() 105 if (dr != null) { in setDrawable() 106 dr.setCallback(this); in setDrawable() 109 dr.setVisible(isVisible(), true); in setDrawable() 110 dr.setState(getState()); in setDrawable() [all …]
|
D | ClipDrawable.java | 160 final Drawable dr = getDrawable(); in getOpacity() local 161 final int opacity = dr.getOpacity(); in getOpacity() 162 if (opacity == PixelFormat.TRANSPARENT || dr.getLevel() == 0) { in getOpacity() 168 return dr.getOpacity(); in getOpacity() 177 final Drawable dr = getDrawable(); in draw() local 178 if (dr.getLevel() == 0) { in draw() 204 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 | 838 public final int addChild(Drawable dr) { in addChild() argument 844 dr.mutate(); in addChild() 845 dr.setVisible(false, true); in addChild() 846 dr.setCallback(mOwner); in addChild() 848 mDrawables[pos] = dr; in addChild() 850 mChildrenChangingConfigurations |= dr.getChangingConfigurations(); in addChild() 1130 final Drawable dr = drawables[i]; in computeConstantSize() local 1131 int s = dr.getIntrinsicWidth(); in computeConstantSize() 1133 s = dr.getIntrinsicHeight(); in computeConstantSize() 1135 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 | 593 public void setErrorDrawable(Drawable dr, TextView tv) { 594 if (mDrawableError != dr && mDrawableError != null) { 597 mDrawableError = dr; 2164 Drawables dr = mDrawables; in setRelativeDrawablesIfNeeded() local 2165 if (dr == null) { in setRelativeDrawablesIfNeeded() 2166 mDrawables = dr = new Drawables(getContext()); in setRelativeDrawablesIfNeeded() 2169 final Rect compoundRect = dr.mCompoundRect; in setRelativeDrawablesIfNeeded() 2177 dr.mDrawableStart = start; in setRelativeDrawablesIfNeeded() 2178 dr.mDrawableSizeStart = compoundRect.width(); in setRelativeDrawablesIfNeeded() 2179 dr.mDrawableHeightStart = compoundRect.height(); in setRelativeDrawablesIfNeeded() [all …]
|
D | ImageView.java | 269 protected boolean verifyDrawable(@NonNull Drawable dr) { 270 return mDrawable == dr || super.verifyDrawable(dr); 280 public void invalidateDrawable(@NonNull Drawable dr) { 281 if (dr == mDrawable) { 282 if (dr != null) { 284 final int w = dr.getIntrinsicWidth(); 285 final int h = dr.getIntrinsicHeight(); 302 super.invalidateDrawable(dr);
|
/frameworks/base/core/java/android/content/res/ |
D | ResourcesImpl.java | 642 Drawable dr; in loadDrawable() local 655 dr = cs.newDrawable(wrapper); in loadDrawable() 657 dr = new ColorDrawable(value.data); in loadDrawable() 659 dr = loadDrawableForCookie(wrapper, value, id, density); in loadDrawable() 664 if (dr instanceof DrawableContainer) { in loadDrawable() 671 final boolean canApplyTheme = dr != null && dr.canApplyTheme(); in loadDrawable() 673 dr = dr.mutate(); in loadDrawable() 674 dr.applyTheme(theme); in loadDrawable() 675 dr.clearMutated(); in loadDrawable() 681 if (dr != null) { in loadDrawable() [all …]
|
/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 | 279 Drawable dr = null; in loadIcon() local 281 dr = pm.getDrawable(resolvePackageName, iconResourceId, null); in loadIcon() 284 if (dr == null && iconResourceId != 0) { in loadIcon() 286 dr = pm.getDrawable(ci.packageName, iconResourceId, ai); in loadIcon() 288 if (dr != null) { in loadIcon() 289 return pm.getUserBadgedIcon(dr, new UserHandle(pm.getUserId())); in loadIcon()
|
D | PackageItemInfo.java | 295 Drawable dr = pm.getDrawable(packageName, banner, getApplicationInfo()); in loadBanner() local 296 if (dr != null) { in loadBanner() 297 return dr; in loadBanner()
|
/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/com/android/internal/app/ |
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()
|
D | SimpleIconFactory.java | 352 AdaptiveIconDrawable dr = (AdaptiveIconDrawable) mWrapperIcon; in normalizeAndWrapToAdaptiveIcon() local 353 dr.setBounds(0, 0, 1, 1); in normalizeAndWrapToAdaptiveIcon() 356 FixedScaleDrawable fsd = ((FixedScaleDrawable) dr.getForeground()); in normalizeAndWrapToAdaptiveIcon() 359 icon = dr; in normalizeAndWrapToAdaptiveIcon() 362 ((ColorDrawable) dr.getBackground()).setColor(mWrapperBackgroundColor); in normalizeAndWrapToAdaptiveIcon()
|
D | ResolverActivity.java | 623 Drawable dr = null; 625 dr = getIconSubstituteInternal(); 628 if (dr == null) { 631 dr = loadIconFromResource(mPm.getResourcesForApplication(mAi), mAi.icon); 638 if (dr == null) { 639 dr = mAi.loadIcon(mPm); 643 Bitmap icon = sif.createUserBadgedIconBitmap(dr, userHandle); 693 Drawable dr = null; 697 dr = loadIconFromResource( 706 if (dr == null) dr = super.getIconSubstituteInternal(); [all …]
|
/frameworks/base/core/java/android/util/ |
D | LauncherIcons.java | 132 public ShadowDrawable(Bitmap shadow, Drawable dr) { in ShadowDrawable() argument 133 super(dr); in ShadowDrawable() 134 mState = new MyConstantState(shadow, dr.getConstantState()); in ShadowDrawable()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | DppManager.java | 401 mDppRequestInfo.binder.unlinkToDeath(mDppRequestInfo.dr, 0); in cleanupDppResources() 409 public IBinder.DeathRecipient dr; field in DppManager.DppRequestInfo 417 binder).append(", dr=").append(dr) in toString() 599 dppRequestInfo.dr = new IBinder.DeathRecipient() { in linkToDeath() 615 dppRequestInfo.binder.linkToDeath(dppRequestInfo.dr, 0); in linkToDeath() 618 dppRequestInfo.dr = null; in linkToDeath()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 216 IBinder.DeathRecipient dr = new IBinder.DeathRecipient() { in connect() local 232 binder.linkToDeath(dr, 0); in connect() 244 mDeathRecipientsByClientId.put(clientId, dr); in connect() 266 IBinder.DeathRecipient dr = mDeathRecipientsByClientId.get(clientId); in disconnect() local 267 if (dr != null) { in disconnect() 268 binder.unlinkToDeath(dr, 0); in disconnect()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttServiceImpl.java | 466 IBinder.DeathRecipient dr = new IBinder.DeathRecipient() { in startRanging() local 479 binder.linkToDeath(dr, 0); in startRanging() 490 mRttServiceSynchronized.queueRangingRequest(uid, sourceToUse, binder, dr, in startRanging() 617 rri.binder.unlinkToDeath(rri.dr, 0); in cleanUpOnDisable() 652 rri.binder.unlinkToDeath(rri.dr, 0); in cleanUpClientRequests() 700 IBinder.DeathRecipient dr, String callingPackage, RangingRequest request, in queueRangingRequest() argument 707 binder.unlinkToDeath(dr, 0); in queueRangingRequest() 722 newRequest.dr = dr; in queueRangingRequest() 787 topOfQueueRequest.binder.unlinkToDeath(topOfQueueRequest.dr, 0); in executeNextRangingRequestIfPossible() 1234 public IBinder.DeathRecipient dr; field in RttServiceImpl.RttRequestInfo [all …]
|
/frameworks/base/core/jni/ |
D | android_os_HwRemoteBinder.cpp | 398 wp<hardware::IBinder::DeathRecipient> dr; in JHwRemoteBinder_unlinkToDeath() local 399 err = binder->unlinkToDeath(origJDR, NULL, 0, &dr); in JHwRemoteBinder_unlinkToDeath() 400 if (err == NO_ERROR && dr != NULL) { in JHwRemoteBinder_unlinkToDeath() 401 sp<hardware::IBinder::DeathRecipient> sdr = dr.promote(); in JHwRemoteBinder_unlinkToDeath()
|