/cts/tests/tests/car/src/android/car/cts/ |
D | CarAppFocusManagerTest.java | 80 FocusChangedListerner listener2 = new FocusChangedListerner(); in testRegisterUnregister() local 82 mManager.addFocusListener(listener2, 1); in testRegisterUnregister() 84 mManager.removeFocusListener(listener2); in testRegisterUnregister() 232 FocusChangedListerner listener2 = new FocusChangedListerner(); in testFilter() local 236 manager2.addFocusListener(listener2, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testFilter() 245 assertTrue(listener2.waitForFocusChangedAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testFilter() 249 listener2.reset(); in testFilter() 257 assertFalse(listener2.waitForFocusChangedAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testFilter() 261 listener2.reset(); in testFilter() 265 assertFalse(listener2.waitForFocusChangedAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testFilter() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TextKeyListenerTest.java | 120 TextKeyListener listener2 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1() local 125 assertNotNull(listener2); in testGetInstance1() 126 assertSame(listener1, listener2); in testGetInstance1() 133 listener2.release(); in testGetInstance1() 141 TextKeyListener listener2 = TextKeyListener.getInstance(); in testGetInstance2() local 144 assertNotNull(listener2); in testGetInstance2() 145 assertSame(listener1, listener2); in testGetInstance2() 148 listener2.release(); in testGetInstance2()
|
D | DialerKeyListenerTest.java | 75 DialerKeyListener listener2 = DialerKeyListener.getInstance(); in testGetInstance() local 78 assertTrue(listener2 instanceof DialerKeyListener); in testGetInstance() 79 assertSame(listener1, listener2); in testGetInstance()
|
D | DigitsKeyListenerTest.java | 752 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(); in testGetInstance1() local 756 assertNotNull(listener2); in testGetInstance1() 758 assertSame(listener1, listener2); in testGetInstance1() 765 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(true, true); in testGetInstance2() local 768 assertNotNull(listener2); in testGetInstance2() 769 assertSame(listener1, listener2); in testGetInstance2() 793 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(Locale.US, false, false); in testGetInstance4() local 795 assertNotNull(listener2); in testGetInstance4() 796 assertSame(listener1, listener2); in testGetInstance4() 802 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(Locale.US, true, false); in testGetInstance5() local [all …]
|
D | QwertyKeyListenerTest.java | 185 final QwertyKeyListener listener2 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance() local 191 assertNotNull(listener2); in testGetInstance() 192 assertSame(listener1, listener2); in testGetInstance()
|
D | MultiTapKeyListenerTest.java | 242 MultiTapKeyListener listener2 = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInstance() local 247 assertNotNull(listener2); in testGetInstance() 248 assertSame(listener1, listener2); in testGetInstance()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | AnimatorSetTest.java | 465 Animator.AnimatorListener listener2 = mock(AnimatorListenerAdapter.class); in testZeroDurationScale() local 466 a2.addListener(listener2); in testZeroDurationScale() 481 verify(listener2, times(1)).onAnimationEnd(a2, false); in testZeroDurationScale() 501 Animator.AnimatorListener listener2 = mock(AnimatorListenerAdapter.class); in testDurationScale() local 502 a2.addListener(listener2); in testDurationScale() 519 verify(listener2, never()).onAnimationStart(a2, false); in testDurationScale() 529 verify(listener2, within(800)).onAnimationStart(a2, false); in testDurationScale() 536 verify(listener2, times(1)).onAnimationEnd(a2, false); in testDurationScale() 644 AnimatorListenerAdapter listener2 = new AnimatorListenerAdapter(){}; in testClone() local 650 animator2.addListener(listener2); in testClone() [all …]
|
D | AnimatorTest.java | 194 MyListener listener2 = new MyListener(); in testRemoveAllListenerers() local 196 mAnimator.addListener(listener2); in testRemoveAllListenerers()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TransitionTest.java | 78 final Transition.TransitionListener listener2 = mock(Transition.TransitionListener.class); in testAddListener() local 83 autoTransition.addListener(listener2); in testAddListener() 88 waitForStart(listener2); in testAddListener() 96 verify(listener2, never()).onTransitionPause(any()); in testAddListener() 97 verify(listener2, never()).onTransitionResume(any()); in testAddListener() 98 verify(listener2, never()).onTransitionCancel(any()); in testAddListener() 99 verify(listener2, never()).onTransitionEnd(any()); in testAddListener() 100 verify(listener2, times(1)).onTransitionStart(any()); in testAddListener()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | HoverTest.java | 275 View.OnHoverListener listener2 = installHoverListener(mLayer2); in testOverlappingHoverTargets() local 293 verifyEnterMoveExit(listener2, mLayer2, 4); in testOverlappingHoverTargets()
|
D | ViewTest.java | 2470 MockUnhandledKeyListener listener2 = new MockUnhandledKeyListener(); in testUnhandledKeys() local 2471 listener2.mReturnVal = true; in testUnhandledKeys() 2472 mActivityRule.runOnUiThread(() -> mockView1.addOnUnhandledKeyEventListener(listener2)); in testUnhandledKeys() 2475 assertTrue(listener2.fired()); in testUnhandledKeys() 2477 listener2.reset(); in testUnhandledKeys() 2482 mockView1.removeOnUnhandledKeyEventListener(listener2); in testUnhandledKeys()
|