Home
last modified time | relevance | path

Searched refs:getCurrent (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DLevelListDrawableTest.java113 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[2]); in testOnLevelChange()
116 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[2]); in testOnLevelChange()
119 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testOnLevelChange()
122 assertNull(mLevelListDrawable.getCurrent()); in testOnLevelChange()
125 assertNull(mLevelListDrawable.getCurrent()); in testOnLevelChange()
144 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testInflate()
146 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[1]); in testInflate()
149 assertNull(mLevelListDrawable.getCurrent()); in testInflate()
156 assertSame(mLevelListDrawable.getCurrent(), mDrawableContainerState.getChildren()[2]); in testInflate()
158 assertNull(mLevelListDrawable.getCurrent()); in testInflate()
DStateListDrawableTest.java143 assertSame(mMockDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testOnStateChange()
146 assertSame(mMockDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testOnStateChange()
149 assertSame(mMockDrawable.getCurrent(), mDrawableContainerState.getChildren()[1]); in testOnStateChange()
153 assertSame(mMockDrawable.getCurrent(), mDrawableContainerState.getChildren()[1]); in testOnStateChange()
166 assertSame(mMockDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testOnStateChangeWithWildCardAtFirst()
280 assertSame(mMockDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testInflate()
282 assertSame(mMockDrawable.getCurrent(), mDrawableContainerState.getChildren()[1]); in testInflate()
286 assertNull(mMockDrawable.getCurrent()); in testInflate()
303 assertSame(mMockDrawable.getCurrent(), mDrawableContainerState.getChildren()[0]); in testInflate()
305 assertNull(mMockDrawable.getCurrent()); in testInflate()
[all …]
DColorStateListDrawableTest.java92 assertTrue(mDrawable.getCurrent() instanceof ColorDrawable); in testGetCurrent()
134 final ColorDrawable colorDrawable = (ColorDrawable) mDrawable.getCurrent(); in testColorFilter()
145 final ColorDrawable colorDrawable = (ColorDrawable) cslDrawable.getCurrent(); in testColorStateListAccess()
159 ColorDrawable colorDrawable = (ColorDrawable) mDrawable.getCurrent(); in testSetState()
184 mDrawable.getCurrent().invalidateSelf(); in testInvalidationCallbackProxy()
195 mDrawable.getCurrent().scheduleSelf(runnable, scheduledTime); in testScheduleCallbackProxy()
207 mDrawable.getCurrent().unscheduleSelf(runnable); in testUnscheduleCallbackProxy()
DDrawableContainerTest.java90 assertNull(mDrawableContainer.getCurrent()); in setup()
162 assertSame(dr0, mDrawableContainer.getCurrent()); in testGetChangingConfigurations()
197 assertSame(dr0, mDrawableContainer.getCurrent()); in testGetPadding()
213 assertNull(mDrawableContainer.getCurrent()); in testGetPadding()
268 assertNull(mDrawableContainer.getCurrent()); in testSetHotspotBounds()
287 assertNull(mDrawableContainer.getCurrent()); in testGetHotspotBounds()
483 assertNull(mDrawableContainer.getCurrent()); in testGetIntrinsicWidth()
488 assertSame(dr0, mDrawableContainer.getCurrent()); in testGetIntrinsicWidth()
516 assertNull(mDrawableContainer.getCurrent()); in testGetIntrinsicHeight()
521 assertSame(dr0, mDrawableContainer.getCurrent()); in testGetIntrinsicHeight()
[all …]
DCustomAnimationScaleListDrawableTest.java69 assertTrue(dr.getCurrent() instanceof Animatable); in testNonZeroDurationScale()
79 assertFalse(dr.getCurrent() instanceof Animatable); in testZeroDurationScale()
DAnimationDrawableTest.java114 assertSame(mAnimationDrawable.getFrame(FIRST_FRAME_INDEX), mAnimationDrawable.getCurrent()); in testSetVisible()
139 mAnimationDrawable.getCurrent()); in testStart()
295 assertSame(dr.getFrame(0), dr.getCurrent()); in testInflateCorrect()
362 () -> mAnimationDrawable.getCurrent().equals(expected)); in pollingCheckDrawable()
373 assertSame(mAnimationDrawable.getFrame(index), mAnimationDrawable.getCurrent()); in verifyStoppedAnimation()
DAnimatedStateListDrawableTest.java152 assertSame(unfocused, asld.getCurrent()); in testOnStateChange()
155 assertSame(unfocusedToFocused, asld.getCurrent()); in testOnStateChange()
158 assertSame(unfocusedToFocused, asld.getCurrent()); in testOnStateChange()
DDrawableTest.java521 assertSame(mockDrawable, mockDrawable.getCurrent()); in testGetCurrent()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfo_RangeInfoTest.java56 assertEquals(-50, r.getCurrent(), FLOAT_TOLERANCE); in testObtain()
62 assertEquals(0.0f, r.getCurrent(), FLOAT_TOLERANCE); in testObtain()
68 assertEquals(50.0f, r.getCurrent(), FLOAT_TOLERANCE); in testObtain()
DAccessibilityNodeInfoTest.java505 assertEquals("RangeInfo#getCurrent has incorrect value", expectedRange.getCurrent(), in assertEqualsAccessibilityNodeInfo()
506 receivedRange.getCurrent(), 0.0); in assertEqualsAccessibilityNodeInfo()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DFutureConnection.java46 public T getCurrent() { in getCurrent() method in FutureConnection
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowUntrustedTouchTest.java1036 connection.getCurrent().removeOverlays(); in removeOverlays()