HomeSort by relevance Sort by last modified time
    Searched refs:getConstantState (Results 1 - 25 of 38) sorted by null

1 2

  /frameworks/base/core/tests/coretests/src/android/view/
MutateDrawableTest.java 49 assertNotSame(mFirstButton.getBackground().getConstantState(),
50 mSecondButton.getBackground().getConstantState());
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
LevelListDrawableTest.java 53 mDrawableContainerState = (DrawableContainerState) mLevelListDrawable.getConstantState();
65 assertNotNull(new LevelListDrawable().getConstantState());
217 assertEquals(3, ((DrawableContainerState) d1.getConstantState()).getChildCount());
218 assertEquals(2, ((DrawableContainerState) d2.getConstantState()).getChildCount());
219 assertEquals(2, ((DrawableContainerState) d3.getConstantState()).getChildCount());
ColorDrawableTest.java 127 notes = "Test getConstantState()",
128 method = "getConstantState",
133 assertNotNull(colorDrawable.getConstantState());
135 colorDrawable.getConstantState().getChangingConfigurations());
StateListDrawableTest.java 56 mDrawableContainerState = (DrawableContainerState) mStateListDrawable.getConstantState();
68 assertNotNull(new StateListDrawable().getConstantState());
221 mDrawableContainerState = (DrawableContainerState) mStateListDrawable.getConstantState();
NinePatchDrawableTest.java 186 ConstantState constantState = mNinePatchDrawable.getConstantState();
198 constantState = mNinePatchDrawable.getConstantState();
397 method = "getConstantState",
401 assertNotNull(mNinePatchDrawable.getConstantState());
403 ConstantState constantState = mNinePatchDrawable.getConstantState();
407 // the state's configuration refreshed when getConstantState is called.
408 constantState = mNinePatchDrawable.getConstantState();
ClipDrawableTest.java 114 notes = "Test getConstantState()",
115 method = "getConstantState",
122 assertNull(clipDrawable.getConstantState());
127 assertNotNull(clipDrawable.getConstantState());
128 assertEquals(1, clipDrawable.getConstantState().getChangingConfigurations());
507 public ConstantState getConstantState() {
AnimationDrawableTest.java 89 assertNotNull(mAnimationDrawable.getConstantState());
374 (DrawableContainerState) mAnimationDrawable.getConstantState();
GradientDrawableTest.java 79 ConstantState constantState = gradientDrawable.getConstantState();
449 method = "getConstantState",
456 assertNotNull(gradientDrawable.getConstantState());
ShapeDrawableTest.java 106 shapeDrawable.getConstantState();
113 method = "getConstantState",
120 ConstantState constantState = shapeDrawable.getConstantState();
DrawableContainerTest.java 52 (DrawableContainerState) new LevelListDrawable().getConstantState();
833 method = "getConstantState",
838 + "DrawableContainer#getConstantState() when the constant state is not set.")
841 mDrawableContainer.getConstantState();
847 assertSame(mDrawableContainerState, mDrawableContainer.getConstantState());
    [all...]
BitmapDrawableTest.java 372 method = "getConstantState",
378 ConstantState constantState = bitmapDrawable.getConstantState();
383 constantState = bitmapDrawable.getConstantState();
  /frameworks/base/graphics/java/android/graphics/drawable/
ClipDrawable.java 225 public ConstantState getConstantState() {
247 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
249 mDrawable = orig.mDrawable.getConstantState().newDrawable();
275 mCanConstantState = mDrawable.getConstantState() != null;
InsetDrawable.java 237 public ConstantState getConstantState() {
269 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
271 mDrawable = orig.mDrawable.getConstantState().newDrawable();
299 mCanConstantState = mDrawable.getConstantState() != null;
ScaleDrawable.java 236 public ConstantState getConstantState() {
266 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
268 mDrawable = orig.mDrawable.getConstantState().newDrawable();
295 mCanConstantState = mDrawable.getConstantState() != null;
AnimatedRotateDrawable.java 205 public ConstantState getConstantState() {
303 mDrawable = source.mDrawable.getConstantState().newDrawable(res);
305 mDrawable = source.mDrawable.getConstantState().newDrawable();
335 mCanConstantState = mDrawable.getConstantState() != null;
RotateDrawable.java 188 public ConstantState getConstantState() {
311 mDrawable = source.mDrawable.getConstantState().newDrawable(res);
313 mDrawable = source.mDrawable.getConstantState().newDrawable();
343 mCanConstantState = mDrawable.getConstantState() != null;
ColorDrawable.java 126 public ConstantState getConstantState() {
DrawableContainer.java 237 public ConstantState getConstantState() {
306 mDrawables[i] = origDr[i].getConstantState().newDrawable(res);
308 mDrawables[i] = origDr[i].getConstantState().newDrawable();
512 if (mDrawables[i].getConstantState() == null) {
LayerDrawable.java 523 public ConstantState getConstantState() {
581 r.mDrawable = or.mDrawable.getConstantState().newDrawable(res);
583 r.mDrawable = or.mDrawable.getConstantState().newDrawable();
658 if (mChildren[i].mDrawable.getConstantState() == null) {
Drawable.java     [all...]
NinePatchDrawable.java 327 public ConstantState getConstantState() {
ShapeDrawable.java 346 public ConstantState getConstantState() {
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
CachingIconLoader.java 78 mIconCache.put(resourceUri, drawable.getConstantState());
  /frameworks/base/core/java/android/app/
SuggestionsAdapter.java 367 mBackgroundsCache.put(backgroundColor, newBg.getConstantState());
592 mOutsideDrawablesCache.put(resourceUri, drawable.getConstantState());
647 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
  /packages/apps/Phone/src/com/android/phone/
InCallMenuView.java 198 itemView.setBackgroundDrawable(mItemBackground.getConstantState().newDrawable());

Completed in 1868 milliseconds

1 2