/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/graphics/java/android/graphics/drawable/ |
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() 467 ChildDrawable addLayer(Drawable dr, int[] themeAttrs, int id, in addLayer() argument 469 final ChildDrawable childDrawable = createLayer(dr); in addLayer() 480 mLayerState.mChildrenChangingConfigurations |= dr.getChangingConfigurations(); in addLayer() 481 dr.setCallback(this); in addLayer() 486 private ChildDrawable createLayer(Drawable dr) { in createLayer() argument 488 layer.mDrawable = dr; in createLayer() 499 public int addLayer(Drawable dr) { in addLayer() argument [all …]
|
D | DrawableWrapper.java | 65 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 …]
|
D | ClipDrawable.java | 158 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()
|
D | AnimationDrawable.java | 327 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()
|
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 | 473 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()
|
D | DrawableContainer.java | 815 public final int addChild(Drawable dr) { in addChild() argument 821 dr.mutate(); in addChild() 822 dr.setVisible(false, true); in addChild() 823 dr.setCallback(mOwner); in addChild() 825 mDrawables[pos] = dr; in addChild() 827 mChildrenChangingConfigurations |= dr.getChangingConfigurations(); in addChild() 1099 final Drawable dr = drawables[i]; in computeConstantSize() local 1100 int s = dr.getIntrinsicWidth(); in computeConstantSize() 1102 s = dr.getIntrinsicHeight(); in computeConstantSize() 1104 s = dr.getMinimumWidth(); in computeConstantSize() [all …]
|
D | StateListDrawable.java | 171 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/compat/gingerbread/android/support/v4/graphics/drawable/ |
D | DrawableWrapperGingerbread.java | 60 DrawableWrapperGingerbread(@Nullable Drawable dr) { in DrawableWrapperGingerbread() argument 63 setWrappedDrawable(dr); in DrawableWrapperGingerbread() 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 setVisible(dr.isVisible(), true); in setWrappedDrawable() 322 setState(dr.getState()); in setWrappedDrawable() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 467 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 …]
|
D | ImageView.java | 224 protected boolean verifyDrawable(@NonNull Drawable dr) { 225 return mDrawable == dr || super.verifyDrawable(dr); 235 public void invalidateDrawable(@NonNull Drawable dr) { 236 if (dr == mDrawable) { 237 if (dr != null) { 239 final int w = dr.getIntrinsicWidth(); 240 final int h = dr.getIntrinsicHeight(); 257 super.invalidateDrawable(dr);
|
D | ProgressBar.java | 429 private static boolean needsTileify(Drawable dr) { in needsTileify() argument 430 if (dr instanceof LayerDrawable) { in needsTileify() 431 final LayerDrawable orig = (LayerDrawable) dr; in needsTileify() 441 if (dr instanceof StateListDrawable) { in needsTileify() 442 final StateListDrawable in = (StateListDrawable) dr; in needsTileify() 454 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()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/nan/ |
D | WifiNanServiceImpl.java | 83 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/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatDrawableManager.java | 237 Drawable dr = getCachedDrawable(context, key); in createDrawableIfNeeded() local 238 if (dr != null) { in createDrawableIfNeeded() 240 return dr; in createDrawableIfNeeded() 245 dr = new LayerDrawable(new Drawable[]{ in createDrawableIfNeeded() 251 if (dr != null) { in createDrawableIfNeeded() 252 dr.setChangingConfigurations(tv.changingConfigurations); in createDrawableIfNeeded() 254 addDrawableToCache(context, key, dr); in createDrawableIfNeeded() 257 return dr; in createDrawableIfNeeded() 334 Drawable dr = getCachedDrawable(context, key); in loadDrawableFromDelegates() local 335 if (dr != null) { in loadDrawableFromDelegates() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | ResourcesImpl.java | 565 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/ |
D | ResolveInfo.java | 226 Drawable dr = null; in loadIcon() local 228 dr = pm.getDrawable(resolvePackageName, iconResourceId, null); in loadIcon() 231 if (dr == null && iconResourceId != 0) { in loadIcon() 233 dr = pm.getDrawable(ci.packageName, iconResourceId, ai); in loadIcon() 235 if (dr != null) { in loadIcon() 236 return pm.getUserBadgedIcon(dr, new UserHandle(UserHandle.myUserId())); in loadIcon()
|
D | PackageItemInfo.java | 252 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/ |
D | HeavyWeightSwitcherActivity.java | 97 void setDrawable(int id, Drawable dr) { in setDrawable() argument 98 if (dr != null) { in setDrawable() 99 ((ImageView)findViewById(id)).setImageDrawable(dr); in setDrawable()
|
D | ResolverActivity.java | 525 Drawable dr; in loadIconForResolveInfo() local 528 dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon); in loadIconForResolveInfo() 529 if (dr != null) { in loadIconForResolveInfo() 530 return dr; in loadIconForResolveInfo() 535 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes); in loadIconForResolveInfo() 536 if (dr != null) { in loadIconForResolveInfo() 537 return dr; in loadIconForResolveInfo()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 1038 final Drawable dr = r.getDrawable(resId, null); in getDrawable() local 1039 if (dr != null) { in getDrawable() 1040 putCachedIcon(name, dr); in getDrawable() 1056 + ": " + dr); in getDrawable() 1058 return dr; in getDrawable() 1381 private void putCachedIcon(@NonNull ResourceName name, @NonNull Drawable dr) { in putCachedIcon() argument 1383 sIconCache.put(name, new WeakReference<>(dr.getConstantState())); in putCachedIcon() 1384 if (DEBUG_ICONS) Log.v(TAG, "Added cached drawable state for " + name + ": " + dr); in putCachedIcon() 2277 Drawable dr = loadUnbadgedItemIcon(itemInfo, appInfo); in loadItemIcon() local 2279 return dr; in loadItemIcon() [all …]
|
D | WallpaperManager.java | 433 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in getDrawable() local 434 dr.setDither(false); in getDrawable() 435 return dr; in getDrawable() 664 Drawable dr = new BitmapDrawable(mContext.getResources(), bm); in peekDrawable() local 665 dr.setDither(false); in peekDrawable() 666 return dr; in peekDrawable()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | AidlTest.java | 371 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/ |
D | etc1.cpp | 393 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/ |
D | android_util_Binder.cpp | 1211 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()
|