Home
last modified time | relevance | path

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

12

/frameworks/base/graphics/java/android/graphics/drawable/
DLayerDrawable.java388 final Drawable dr = a.getDrawable(R.styleable.LayerDrawableItem_drawable); in updateLayerFromTypedArray() local
389 if (dr != null) { in updateLayerFromTypedArray()
390 layer.mDrawable = dr; in updateLayerFromTypedArray()
455 ChildDrawable addLayer(Drawable dr, int[] themeAttrs, int id, in addLayer() argument
457 final ChildDrawable childDrawable = createLayer(dr); in addLayer()
468 mLayerState.mChildrenChangingConfigurations |= dr.getChangingConfigurations(); in addLayer()
469 dr.setCallback(this); in addLayer()
474 private ChildDrawable createLayer(Drawable dr) { in createLayer() argument
476 layer.mDrawable = dr; in createLayer()
487 public int addLayer(Drawable dr) { in addLayer() argument
[all …]
DDrawableWrapper.java65 public DrawableWrapper(@Nullable Drawable dr) { in DrawableWrapper() argument
67 mDrawable = dr; in DrawableWrapper()
77 final Drawable dr = mState.mDrawableState.newDrawable(res); in updateLocalState() local
78 setDrawable(dr); in updateLocalState()
87 public void setDrawable(@Nullable Drawable dr) { in setDrawable() argument
92 mDrawable = dr; in setDrawable()
94 if (dr != null) { in setDrawable()
95 dr.setCallback(this); in setDrawable()
98 dr.setVisible(isVisible(), true); in setDrawable()
99 dr.setState(getState()); in setDrawable()
[all …]
DClipDrawable.java158 final Drawable dr = getDrawable(); in getOpacity() local
159 final int opacity = dr.getOpacity(); in getOpacity()
160 if (opacity == PixelFormat.TRANSPARENT || dr.getLevel() == 0) { in getOpacity()
166 return dr.getOpacity(); in getOpacity()
175 final Drawable dr = getDrawable(); in draw() local
176 if (dr.getLevel() == 0) { in draw()
202 dr.draw(canvas); in draw()
DAnimationDrawable.java327 Drawable dr = a.getDrawable(R.styleable.AnimationDrawableItem_drawable); in inflateChildElements() local
331 if (dr == null) { in inflateChildElements()
340 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateChildElements()
343 mAnimationState.addFrame(dr, duration); in inflateChildElements()
344 if (dr != null) { in inflateChildElements()
345 dr.setCallback(this); in inflateChildElements()
411 public void addFrame(Drawable dr, int dur) { in addFrame() argument
414 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.java473 Drawable dr = a.getDrawable( in parseTransition() local
480 if (dr == null) { in parseTransition()
490 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in parseTransition()
493 return mState.addTransition(fromId, toId, dr, reversible); in parseTransition()
504 Drawable dr = a.getDrawable(R.styleable.AnimatedStateListDrawableItem_drawable); in parseItem() local
512 if (dr == null) { in parseItem()
522 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in parseItem()
525 return mState.addStateSet(states, dr, keyframeId); in parseItem()
DDrawableContainer.java811 public final int addChild(Drawable dr) { in addChild() argument
817 dr.mutate(); in addChild()
818 dr.setVisible(false, true); in addChild()
819 dr.setCallback(mOwner); in addChild()
821 mDrawables[pos] = dr; in addChild()
823 mChildrenChangingConfigurations |= dr.getChangingConfigurations(); in addChild()
1095 final Drawable dr = drawables[i]; in computeConstantSize() local
1096 int s = dr.getIntrinsicWidth(); in computeConstantSize()
1098 s = dr.getIntrinsicHeight(); in computeConstantSize()
1100 s = dr.getMinimumWidth(); in computeConstantSize()
[all …]
DStateListDrawable.java171 Drawable dr = a.getDrawable(R.styleable.StateListDrawableItem_drawable); in inflateChildElements() local
179 if (dr == null) { in inflateChildElements()
188 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateChildElements()
191 state.addStateSet(states, dr); in inflateChildElements()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DDrawableWrapperDonut.java60 DrawableWrapperDonut(@Nullable Drawable dr) { in DrawableWrapperDonut() argument
63 setWrappedDrawable(dr); in DrawableWrapperDonut()
73 final Drawable dr = newDrawableFromState(mState.mDrawableState, res); in updateLocalState() local
74 setWrappedDrawable(dr); in updateLocalState()
311 public final void setWrappedDrawable(Drawable dr) { in setWrappedDrawable() argument
316 mDrawable = dr; in setWrappedDrawable()
318 if (dr != null) { in setWrappedDrawable()
319 dr.setCallback(this); in setWrappedDrawable()
321 dr.setVisible(isVisible(), true); in setWrappedDrawable()
322 dr.setState(getState()); in setWrappedDrawable()
[all …]
/frameworks/base/core/java/android/widget/
DTextView.java467 public void setErrorDrawable(Drawable dr, TextView tv) { in setErrorDrawable() argument
468 if (mDrawableError != dr && mDrawableError != null) { in setErrorDrawable()
471 mDrawableError = dr; in setErrorDrawable()
1557 Drawables dr = mDrawables; in setRelativeDrawablesIfNeeded() local
1558 if (dr == null) { in setRelativeDrawablesIfNeeded()
1559 mDrawables = dr = new Drawables(getContext()); in setRelativeDrawablesIfNeeded()
1562 final Rect compoundRect = dr.mCompoundRect; in setRelativeDrawablesIfNeeded()
1570 dr.mDrawableStart = start; in setRelativeDrawablesIfNeeded()
1571 dr.mDrawableSizeStart = compoundRect.width(); in setRelativeDrawablesIfNeeded()
1572 dr.mDrawableHeightStart = compoundRect.height(); in setRelativeDrawablesIfNeeded()
[all …]
DImageView.java215 protected boolean verifyDrawable(@NonNull Drawable dr) { in verifyDrawable() argument
216 return mDrawable == dr || super.verifyDrawable(dr); in verifyDrawable()
226 public void invalidateDrawable(@NonNull Drawable dr) { in invalidateDrawable() argument
227 if (dr == mDrawable) { in invalidateDrawable()
228 if (dr != null) { in invalidateDrawable()
230 final int w = dr.getIntrinsicWidth(); in invalidateDrawable()
231 final int h = dr.getIntrinsicHeight(); in invalidateDrawable()
248 super.invalidateDrawable(dr); in invalidateDrawable()
DProgressBar.java428 private static boolean needsTileify(Drawable dr) { in needsTileify() argument
429 if (dr instanceof LayerDrawable) { in needsTileify()
430 final LayerDrawable orig = (LayerDrawable) dr; in needsTileify()
440 if (dr instanceof StateListDrawable) { in needsTileify()
441 final StateListDrawable in = (StateListDrawable) dr; in needsTileify()
453 if (dr instanceof BitmapDrawable) { in needsTileify()
1682 public void invalidateDrawable(@NonNull Drawable dr) { in invalidateDrawable() argument
1684 if (verifyDrawable(dr)) { in invalidateDrawable()
1685 final Rect dirty = dr.getBounds(); in invalidateDrawable()
1692 super.invalidateDrawable(dr); in invalidateDrawable()
DEditor.java495 Drawables dr = mTextView.mDrawables; in setErrorIcon() local
496 if (dr == null) { in setErrorIcon()
497 mTextView.mDrawables = dr = new Drawables(mTextView.getContext()); in setErrorIcon()
499 dr.setErrorDrawable(icon, mTextView); in setErrorIcon()
527 final Drawables dr = mTextView.mDrawables; in getErrorX() local
535 offset = - (dr != null ? dr.mDrawableSizeRight : 0) / 2 + (int) (25 * scale + 0.5f); in getErrorX()
540 offset = (dr != null ? dr.mDrawableSizeLeft : 0) / 2 - (int) (25 * scale + 0.5f); in getErrorX()
560 final Drawables dr = mTextView.mDrawables; in getErrorY() local
567 height = (dr != null ? dr.mDrawableHeightRight : 0); in getErrorY()
570 height = (dr != null ? dr.mDrawableHeightLeft : 0); in getErrorY()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatDrawableManager.java220 Drawable dr = getCachedDrawable(context, key); in createDrawableIfNeeded() local
221 if (dr != null) { in createDrawableIfNeeded()
223 return dr; in createDrawableIfNeeded()
228 dr = new LayerDrawable(new Drawable[]{ in createDrawableIfNeeded()
234 if (dr != null) { in createDrawableIfNeeded()
235 dr.setChangingConfigurations(tv.changingConfigurations); in createDrawableIfNeeded()
237 addDrawableToCache(context, key, dr); in createDrawableIfNeeded()
240 return dr; in createDrawableIfNeeded()
317 Drawable dr = getCachedDrawable(context, key); in loadDrawableFromDelegates() local
318 if (dr != null) { in loadDrawableFromDelegates()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/nan/
DWifiNanServiceImpl.java83 IBinder.DeathRecipient dr = new IBinder.DeathRecipient() { in connect() local
97 mDeathRecipientsByUid.put(uid, dr); in connect()
100 binder.linkToDeath(dr, 0); in connect()
118 IBinder.DeathRecipient dr = mDeathRecipientsByUid.get(uid); in disconnect() local
119 if (dr != null) { in disconnect()
120 binder.unlinkToDeath(dr, 0); in disconnect()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java565 Drawable dr; in loadDrawable() local
567 dr = cs.newDrawable(wrapper); in loadDrawable()
569 dr = new ColorDrawable(value.data); in loadDrawable()
571 dr = loadDrawableForCookie(wrapper, value, id, null); in loadDrawable()
577 final boolean canApplyTheme = dr != null && dr.canApplyTheme(); in loadDrawable()
579 dr = dr.mutate(); in loadDrawable()
580 dr.applyTheme(theme); in loadDrawable()
581 dr.clearMutated(); in loadDrawable()
587 if (dr != null && useCache) { in loadDrawable()
588 dr.setChangingConfigurations(value.changingConfigurations); in loadDrawable()
[all …]
/frameworks/base/core/java/android/content/pm/
DResolveInfo.java232 Drawable dr = null; in loadIcon() local
234 dr = pm.getDrawable(resolvePackageName, iconResourceId, null); in loadIcon()
237 if (dr == null && iconResourceId != 0) { in loadIcon()
239 dr = pm.getDrawable(ci.packageName, iconResourceId, ai); in loadIcon()
241 if (dr != null) { in loadIcon()
242 return pm.getUserBadgedIcon(dr, new UserHandle(UserHandle.myUserId())); in loadIcon()
DPackageItemInfo.java252 Drawable dr = pm.getDrawable(packageName, banner, getApplicationInfo()); in loadBanner() local
253 if (dr != null) { in loadBanner()
254 return dr; in loadBanner()
/frameworks/base/core/java/com/android/internal/app/
DHeavyWeightSwitcherActivity.java97 void setDrawable(int id, Drawable dr) { in setDrawable() argument
98 if (dr != null) { in setDrawable()
99 ((ImageView)findViewById(id)).setImageDrawable(dr); in setDrawable()
DResolverActivity.java508 Drawable dr; in loadIconForResolveInfo() local
511 dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon); in loadIconForResolveInfo()
512 if (dr != null) { in loadIconForResolveInfo()
513 return dr; in loadIconForResolveInfo()
518 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes); in loadIconForResolveInfo()
519 if (dr != null) { in loadIconForResolveInfo()
520 return dr; in loadIconForResolveInfo()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java1032 final Drawable dr = r.getDrawable(resId, null); in getDrawable() local
1033 if (dr != null) { in getDrawable()
1034 putCachedIcon(name, dr); in getDrawable()
1050 + ": " + dr); in getDrawable()
1052 return dr; in getDrawable()
1377 private void putCachedIcon(@NonNull ResourceName name, @NonNull Drawable dr) { in putCachedIcon() argument
1379 sIconCache.put(name, new WeakReference<>(dr.getConstantState())); in putCachedIcon()
1380 if (DEBUG_ICONS) Log.v(TAG, "Added cached drawable state for " + name + ": " + dr); in putCachedIcon()
2273 Drawable dr = loadUnbadgedItemIcon(itemInfo, appInfo); in loadItemIcon() local
2275 return dr; in loadItemIcon()
[all …]
DWallpaperManager.java421 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable() local
422 dr.setDither(false); in getDrawable()
423 return dr; in getDrawable()
652 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable() local
653 dr.setDither(false); in peekDrawable()
654 return dr; in peekDrawable()
/frameworks/base/core/tests/coretests/src/android/os/
DAidlTest.java371 double[] dr = mRemote.doubleArray(d0, d1, d2); in testArrays() local
373 assertEquals(1, dr.length); in testArrays()
374 assertEquals(100.1, dr[0]); in testArrays()
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp393 int dr = r52 - r51; in etc_encodeBaseColors() local
397 differential = inRange4bitSigned(dr) && inRange4bitSigned(dg) in etc_encodeBaseColors()
400 r2 = convert5To8(r51 + dr); in etc_encodeBaseColors()
403 pCompressed->high |= (r51 << 27) | ((7 & dr) << 24) | (g51 << 19) in etc_encodeBaseColors()
/frameworks/base/core/jni/
Dandroid_util_Binder.cpp1211 wp<IBinder::DeathRecipient> dr; in android_os_BinderProxy_unlinkToDeath() local
1212 err = target->unlinkToDeath(origJDR, NULL, flags, &dr); in android_os_BinderProxy_unlinkToDeath()
1213 if (err == NO_ERROR && dr != NULL) { in android_os_BinderProxy_unlinkToDeath()
1214 sp<IBinder::DeathRecipient> sdr = dr.promote(); in android_os_BinderProxy_unlinkToDeath()

12