Home
last modified time | relevance | path

Searched refs:getConstantState (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/policy/
DBackdropFrameRenderer.java110 && resizingBackgroundDrawable.getConstantState() != null in onResourcesLoaded()
111 ? resizingBackgroundDrawable.getConstantState().newDrawable() in onResourcesLoaded()
114 && captionBackgroundDrawableDrawable.getConstantState() != null in onResourcesLoaded()
115 ? captionBackgroundDrawableDrawable.getConstantState().newDrawable() in onResourcesLoaded()
118 && userCaptionBackgroundDrawable.getConstantState() != null in onResourcesLoaded()
119 ? userCaptionBackgroundDrawable.getConstantState().newDrawable() in onResourcesLoaded()
/frameworks/base/core/tests/coretests/src/android/view/
DMutateDrawableTest.java48 assertNotSame(mFirstButton.getBackground().getConstantState(), in testDrawableCanMutate()
49 mSecondButton.getBackground().getConstantState()); in testDrawableCanMutate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DRoundedCornerProgressDrawable.kt63 override fun getConstantState(): ConstantState { in getConstantState() method
65 return RoundedCornerState(super.getConstantState()!!) in getConstantState()
DBrightnessProgressDrawable.kt75 override fun getConstantState(): ConstantState { in getConstantState() method
77 return RoundedCornerState(super.getConstantState()!!) in getConstantState()
DAlphaTintDrawableWrapper.java126 public ConstantState getConstantState() { in getConstantState() method in AlphaTintDrawableWrapper
127 return new AlphaTintState(super.getConstantState(), mThemeAttrs, getAlpha(), mTint); in getConstantState()
/frameworks/base/core/java/android/util/
DLauncherIcons.java118 .getConstantState().newDrawable().mutate(); in getBadgedDrawable()
137 mState = new MyConstantState(shadow, dr.getConstantState()); in ShadowDrawable()
146 public ConstantState getConstantState() { in getConstantState() method in LauncherIcons.ShadowDrawable
/frameworks/base/core/java/android/content/res/
DComplexColor.java47 public abstract ConstantState<ComplexColor> getConstantState(); in getConstantState() method in ComplexColor
DResourcesImpl.java700 Drawable.ConstantState state = dr.getConstantState(); in loadDrawable()
730 final Drawable.ConstantState cs = dr.getConstantState(); in cacheDrawable()
994 sPreloadedComplexColors.put(key, complexColor.getConstantState()); in loadComplexColorFromName()
997 cache.put(key, theme, complexColor.getConstantState()); in loadComplexColorFromName()
1088 sPreloadedComplexColors.put(key, csl.getConstantState()); in getColorStateListFromInt()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedVectorDrawable.java373 public ConstantState getConstantState() { in getConstantState() method in AnimatedVectorDrawable
723 final ConstantState cs = copy.mVectorDrawable.getConstantState(); in AnimatedVectorDrawableState()
914 getConstantState()).mVectorDrawable.getConstantState()).mRootName in reset()
926 getConstantState()).mVectorDrawable.getConstantState()).mRootName in start()
949 getConstantState()).mVectorDrawable.getConstantState()) in stop()
1680 mDrawable.getConstantState()).mVectorDrawable.getConstantState()) in startAnimation()
1699 mDrawable.getConstantState()).mVectorDrawable.getConstantState()) in endAnimation()
DDrawableWrapper.java117 mState.mDrawableState = dr.getConstantState(); in setDrawable()
406 public ConstantState getConstantState() { in getConstantState() method in DrawableWrapper
423 mState.mDrawableState = mDrawable != null ? mDrawable.getConstantState() : null; in mutate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DExpandableIndicator.java46 .getDrawable(res).getConstantState().newDrawable(); in setExpanded()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/
DUserIconDrawableTest.java48 assertThat(mDrawable.getConstantState()).isNotNull(); in getConstantState_shouldNotBeNull()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DFastBitmapDrawable.java301 public final ConstantState getConstantState() { in getConstantState() method in FastBitmapDrawable
305 cs.mBadgeConstantState = mBadge.getConstantState(); in getConstantState()
DClockDrawableWrapper.java180 info.baseDrawableState = drawable.getConstantState(); in forExtras()
216 getBackground().getConstantState().newDrawable(), null); in getExtendedInfo()
256 result.baseDrawableState = icon.getConstantState(); in copyForIcon()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveIcon.java104 public ConstantState getConstantState() { in getConstantState() method in AdaptiveIcon
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityTargetAdapterTest.java72 when(mIcon.getConstantState()).thenReturn(mConstantState); in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawableTest.java90 (BluetoothDeviceLayerDrawable) drawable.getConstantState().newDrawable(); in testConstantState_returnTwinBluetoothLayerDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java126 if (d.getConstantState() != null) { in updateIcon()
127 d = d.getConstantState().newDrawable(); in updateIcon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawable.java95 public ConstantState getConstantState() { in getConstantState() method in BluetoothDeviceLayerDrawable
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DExtendedBitmapDrawable.java102 ConstantState constantState = mOpts.placeholder.getConstantState(); in onOptsChanged()
130 … mProgress = new Progress(mOpts.progressBar.getConstantState().newDrawable(mResources), mResources, in onOptsChanged()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveIconTest.java135 (AdaptiveIcon.AdaptiveConstantState) icon.getConstantState(); in getConstantState_returnCorrectState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonDrawable.java111 mState.mChildState = d.getConstantState(); in KeyButtonDrawable()
230 public ConstantState getConstantState() { in getConstantState() method in KeyButtonDrawable
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java364 public ConstantState getConstantState() { in getConstantState() method in UserIconDrawable
365 return new BitmapDrawable(mBitmap).getConstantState(); in getConstantState()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonDrawable.java115 mState.mChildState = d.getConstantState(); in KeyButtonDrawable()
234 public ConstantState getConstantState() { in getConstantState() method in KeyButtonDrawable
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java90 when(originalDrawable.getConstantState()).thenReturn(fakeConstantState(otherDrawable)); in testMutateIconDrawable()

123