Home
last modified time | relevance | path

Searched refs:oldDrawable (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java389 Drawable oldDrawable = getResources().getDrawable(mImageIds[oldState]).mutate(); in combine() local
390 oldDrawable.setState(enabledState); in combine()
400oldDrawable.setBounds(0, oldBitmapOffset, oldDrawable.getIntrinsicWidth(), oldDrawable.getIntrinsi… in combine()
402 oldDrawable.draw(canvas); in combine()
409oldDrawable.setBounds(oldBitmapOffset, 0, oldDrawable.getIntrinsicWidth()+oldBitmapOffset, oldDraw… in combine()
411 oldDrawable.draw(canvas); in combine()
/packages/apps/Messaging/src/com/android/messaging/util/
DSwitchCompatUtils.java53 private static Drawable getColorTintedDrawable(Drawable oldDrawable, in getColorTintedDrawable() argument
55 final int[] thumbState = oldDrawable.isStateful() ? oldDrawable.getState() : null; in getColorTintedDrawable()
56 if (oldDrawable instanceof DrawableWrapper) { in getColorTintedDrawable()
57 oldDrawable = ((DrawableWrapper) oldDrawable).getWrappedDrawable(); in getColorTintedDrawable()
59 final Drawable newDrawable = new TintDrawableWrapper(oldDrawable, colorStateList, mode); in getColorTintedDrawable()