Searched refs:mDrawableContainerState (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableContainerStateTest.java | 32 private DrawableContainerState mDrawableContainerState; field in DrawableContainerStateTest 43 mDrawableContainerState = (DrawableContainerState) mDrawableContainer.getConstantState(); in setUp() 44 assertNotNull(mDrawableContainerState); in setUp() 49 mDrawableContainerState.addChild(null); in testAddChild() 54 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddChild() 59 assertEquals(0, mDrawableContainerState.addChild(dr0)); in testAddChild() 60 assertEquals(1, mDrawableContainerState.getChildCount()); in testAddChild() 61 Drawable[] children = mDrawableContainerState.getChildren(); in testAddChild() 71 assertEquals(1, mDrawableContainerState.addChild(dr1)); in testAddChild() 72 assertEquals(2, mDrawableContainerState.getChildCount()); in testAddChild() [all …]
|
D | DrawableContainerTest.java | 35 private DrawableContainerState mDrawableContainerState; field in DrawableContainerTest 45 mDrawableContainerState = in setUp() 47 assertNotNull(mDrawableContainerState); in setUp() 58 mDrawableContainer.setConstantState(mDrawableContainerState); in testDraw() 80 mDrawableContainer.setConstantState(mDrawableContainerState); in testGetChangingConfigurations() 83 mDrawableContainerState.addChild(dr0); in testGetChangingConfigurations() 86 mDrawableContainerState.addChild(dr1); in testGetChangingConfigurations() 92 assertEquals(0x111 | mDrawableContainerState.getChangingConfigurations(), in testGetChangingConfigurations() 107 mDrawableContainer.setConstantState(mDrawableContainerState); in testGetPadding() 110 mDrawableContainerState.addChild(dr0); in testGetPadding() [all …]
|
D | StateListDrawableTest.java | 45 private DrawableContainerState mDrawableContainerState; field in StateListDrawableTest 51 mDrawableContainerState = (DrawableContainerState) mStateListDrawable.getConstantState(); in setUp() 63 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddState() 68 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddState() 74 assertEquals(1, mDrawableContainerState.getChildCount()); in testAddState() 80 assertEquals(2, mDrawableContainerState.getChildCount()); in testAddState() 87 assertEquals(3, mDrawableContainerState.getChildCount()); in testAddState() 117 assertSame(mStateListDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testOnStateChange() 120 assertSame(mStateListDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testOnStateChange() 123 assertSame(mStateListDrawable.getCurrent(), mDrawableContainerState.getChildren()[1]); in testOnStateChange() [all …]
|
D | LevelListDrawableTest.java | 42 private DrawableContainerState mDrawableContainerState; field in LevelListDrawableTest 48 mDrawableContainerState = (DrawableContainerState) mLevelListDrawable.getConstantState(); in setUp() 60 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddLevel() 65 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddLevel() 71 assertEquals(1, mDrawableContainerState.getChildCount()); in testAddLevel() 76 assertEquals(2, mDrawableContainerState.getChildCount()); in testAddLevel() 97 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[2]); in testOnLevelChange() 100 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[2]); in testOnLevelChange() 103 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testOnLevelChange() 118 assertEquals(2, mDrawableContainerState.getChildCount()); in testInflate() [all …]
|