Home
last modified time | relevance | path

Searched refs:dr (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/drawable/
DAdaptiveIconDrawable.java366 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw() local
367 if (dr != null) { in draw()
368 dr.draw(mCanvas); in draw()
530 Drawable dr = a.getDrawableForDensity(R.styleable.AdaptiveIconDrawableLayer_drawable, in updateLayerFromTypedArray() local
532 if (dr != null) { in updateLayerFromTypedArray()
542 layer.mDrawable = dr; in updateLayerFromTypedArray()
624 final Drawable dr = array[i].mDrawable; in setHotspot() local
625 if (dr != null) { in setHotspot()
626 dr.setHotspot(x, y); in setHotspot()
635 final Drawable dr = array[i].mDrawable; in setHotspotBounds() local
[all …]
DLayerDrawable.java387 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 …]
DDrawableWrapper.java66 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 …]
DClipDrawable.java162 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()
DAnimationDrawable.java329 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()
DLevelListDrawable.java132 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()
DAnimatedStateListDrawable.java476 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()
DDrawableContainer.java838 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 …]
DStateListDrawable.java182 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/
DAnimationScaleListDrawable.java114 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/
DTextView.java599 public void setErrorDrawable(Drawable dr, TextView tv) {
600 if (mDrawableError != dr && mDrawableError != null) {
603 mDrawableError = dr;
2190 Drawables dr = mDrawables; in setRelativeDrawablesIfNeeded() local
2191 if (dr == null) { in setRelativeDrawablesIfNeeded()
2192 mDrawables = dr = new Drawables(getContext()); in setRelativeDrawablesIfNeeded()
2195 final Rect compoundRect = dr.mCompoundRect; in setRelativeDrawablesIfNeeded()
2203 dr.mDrawableStart = start; in setRelativeDrawablesIfNeeded()
2204 dr.mDrawableSizeStart = compoundRect.width(); in setRelativeDrawablesIfNeeded()
2205 dr.mDrawableHeightStart = compoundRect.height(); in setRelativeDrawablesIfNeeded()
[all …]
DImageView.java271 protected boolean verifyDrawable(@NonNull Drawable dr) {
272 return mDrawable == dr || super.verifyDrawable(dr);
282 public void invalidateDrawable(@NonNull Drawable dr) {
283 if (dr == mDrawable) {
284 if (dr != null) {
286 final int w = dr.getIntrinsicWidth();
287 final int h = dr.getIntrinsicHeight();
304 super.invalidateDrawable(dr);
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java656 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/base/packages/SystemUI/src/com/android/systemui/wm/
DDisplayController.java97 DisplayRecord dr = mDisplays.get(displayId);
98 if (dr == null) {
113 dr.mContext = perDisplayContext.createConfigurationContext(newConfig);
114 dr.mDisplayLayout = new DisplayLayout(dr.mContext, display);
/frameworks/base/core/java/com/android/internal/app/
DResolverListAdapter.java814 Drawable dr = null;
818 dr = loadIconFromResource(
827 if (dr == null) dr = super.getIconSubstituteInternal();
829 return dr;
855 Drawable dr = null;
859 dr = loadIconFromResource(
868 return dr;
912 Drawable dr = null;
914 dr = getIconSubstituteInternal();
917 if (dr == null) {
[all …]
DHeavyWeightSwitcherActivity.java92 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/
DDrawableWrapperTest.java39 MyWrapper(Drawable dr) { in MyWrapper() argument
40 super(dr); in MyWrapper()
/frameworks/base/core/java/android/content/pm/
DResolveInfo.java277 Drawable dr = null; in loadIcon() local
279 dr = pm.getDrawable(resolvePackageName, iconResourceId, null); in loadIcon()
282 if (dr == null && iconResourceId != 0) { in loadIcon()
284 dr = pm.getDrawable(ci.packageName, iconResourceId, ai); in loadIcon()
286 if (dr != null) { in loadIcon()
287 return pm.getUserBadgedIcon(dr, new UserHandle(pm.getUserId())); in loadIcon()
/frameworks/av/services/camera/libcameraservice/hidl/
DCameraHybridInterface.h79 sp<IBinder::DeathRecipient> dr = recipient.promote(); in serviceDied() local
80 if (dr != nullptr) { in serviceDied()
81 dr->binderDied(who); in serviceDied()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java235 AdaptiveIconDrawable dr = (AdaptiveIconDrawable) mWrapperIcon; in normalizeAndWrapToAdaptiveIcon() local
236 dr.setBounds(0, 0, 1, 1); in normalizeAndWrapToAdaptiveIcon()
238 scale = getNormalizer().getScale(icon, outIconBounds, dr.getIconMask(), outShape); in normalizeAndWrapToAdaptiveIcon()
240 FixedScaleDrawable fsd = ((FixedScaleDrawable) dr.getForeground()); in normalizeAndWrapToAdaptiveIcon()
243 icon = dr; in normalizeAndWrapToAdaptiveIcon()
246 ((ColorDrawable) dr.getBackground()).setColor(mWrapperBackgroundColor); in normalizeAndWrapToAdaptiveIcon()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java203 IBinder.DeathRecipient dr = new IBinder.DeathRecipient() { in connect() local
219 binder.linkToDeath(dr, 0); in connect()
231 mDeathRecipientsByClientId.put(clientId, dr); in connect()
253 IBinder.DeathRecipient dr = mDeathRecipientsByClientId.get(clientId); in disconnect() local
254 if (dr != null) { in disconnect()
255 binder.unlinkToDeath(dr, 0); in disconnect()
/frameworks/base/core/java/android/util/
DLauncherIcons.java134 public ShadowDrawable(Bitmap shadow, Drawable dr) { in ShadowDrawable() argument
135 super(dr); in ShadowDrawable()
136 mState = new MyConstantState(shadow, dr.getConstantState()); in ShadowDrawable()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java446 IBinder.DeathRecipient dr = new IBinder.DeathRecipient() { in startRanging() local
459 binder.linkToDeath(dr, 0); in startRanging()
470 mRttServiceSynchronized.queueRangingRequest(uid, sourceToUse, binder, dr, in startRanging()
596 rri.binder.unlinkToDeath(rri.dr, 0); in cleanUpOnDisable()
631 rri.binder.unlinkToDeath(rri.dr, 0); in cleanUpClientRequests()
679 IBinder.DeathRecipient dr, String callingPackage, String callingFeatureId, in queueRangingRequest() argument
687 binder.unlinkToDeath(dr, 0); in queueRangingRequest()
702 newRequest.dr = dr; in queueRangingRequest()
768 topOfQueueRequest.binder.unlinkToDeath(topOfQueueRequest.dr, 0); in executeNextRangingRequestIfPossible()
1195 public IBinder.DeathRecipient dr; field in RttServiceImpl.RttRequestInfo
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaOrganizerController.java78 final DeathRecipient dr = new DeathRecipient(organizer, feature); in registerOrganizer() local
80 organizer.asBinder().linkToDeath(dr, 0); in registerOrganizer()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DDppManager.java412 mDppRequestInfo.binder.unlinkToDeath(mDppRequestInfo.dr, 0); in cleanupDppResources()
420 public IBinder.DeathRecipient dr; field in DppManager.DppRequestInfo
428 binder).append(", dr=").append(dr) in toString()
754 dppRequestInfo.dr = new IBinder.DeathRecipient() { in linkToDeath()
770 dppRequestInfo.binder.linkToDeath(dppRequestInfo.dr, 0); in linkToDeath()
773 dppRequestInfo.dr = null; in linkToDeath()

12