/cts/tests/tests/car/src/android/car/cts/ |
D | CarAppFocusManagerTest.java | 94 FocusChangedListerner listener2 = new FocusChangedListerner(); in testRegisterUnregister() local 96 mManager.addFocusListener(listener2, 1); in testRegisterUnregister() 98 mManager.removeFocusListener(listener2); in testRegisterUnregister() 220 FocusChangedListerner listener2 = new FocusChangedListerner(); in testFilter() local 223 manager2.addFocusListener(listener2, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testFilter() 232 assertTrue(listener2.waitForFocusChangedAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testFilter() 236 listener2.reset(); in testFilter() 240 assertTrue(listener2.waitForFocusChangedAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testFilter() 247 FocusChangedListerner listener2 = new FocusChangedListerner(); in testMultipleChangeListenersPerManager() local 250 mManager.addFocusListener(listener2, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); in testMultipleChangeListenersPerManager() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TextKeyListenerTest.java | 121 TextKeyListener listener2 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1() local 126 assertNotNull(listener2); in testGetInstance1() 127 assertSame(listener1, listener2); in testGetInstance1() 134 listener2.release(); in testGetInstance1() 142 TextKeyListener listener2 = TextKeyListener.getInstance(); in testGetInstance2() local 145 assertNotNull(listener2); in testGetInstance2() 146 assertSame(listener1, listener2); in testGetInstance2() 149 listener2.release(); in testGetInstance2()
|
D | DialerKeyListenerTest.java | 76 DialerKeyListener listener2 = DialerKeyListener.getInstance(); in testGetInstance() local 79 assertTrue(listener2 instanceof DialerKeyListener); in testGetInstance() 80 assertSame(listener1, listener2); in testGetInstance()
|
D | DigitsKeyListenerTest.java | 753 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(); in testGetInstance1() local 757 assertNotNull(listener2); in testGetInstance1() 759 assertSame(listener1, listener2); in testGetInstance1() 766 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(true, true); in testGetInstance2() local 769 assertNotNull(listener2); in testGetInstance2() 770 assertSame(listener1, listener2); in testGetInstance2() 794 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(Locale.US, false, false); in testGetInstance4() local 796 assertNotNull(listener2); in testGetInstance4() 797 assertSame(listener1, listener2); in testGetInstance4() 803 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(Locale.US, true, false); in testGetInstance5() local [all …]
|
D | QwertyKeyListenerTest.java | 186 final QwertyKeyListener listener2 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance() local 192 assertNotNull(listener2); in testGetInstance() 193 assertSame(listener1, listener2); in testGetInstance()
|
D | MultiTapKeyListenerTest.java | 243 MultiTapKeyListener listener2 = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInstance() local 248 assertNotNull(listener2); in testGetInstance() 249 assertSame(listener1, listener2); in testGetInstance()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TransitionTest.java | 90 final Transition.TransitionListener listener2 = mock(Transition.TransitionListener.class); in testAddListener() local 95 autoTransition.addListener(listener2); in testAddListener() 100 waitForStart(listener2); in testAddListener() 108 verify(listener2, never()).onTransitionPause(any()); in testAddListener() 109 verify(listener2, never()).onTransitionResume(any()); in testAddListener() 110 verify(listener2, never()).onTransitionCancel(any()); in testAddListener() 111 verify(listener2, never()).onTransitionEnd(any()); in testAddListener() 112 verify(listener2, times(1)).onTransitionStart(any()); in testAddListener() 560 final Transition.TransitionListener listener2 = mock(Transition.TransitionListener.class); in testForceToEndTransitionsDependedEachOther() local 572 transition2.addListener(listener2); in testForceToEndTransitionsDependedEachOther() [all …]
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiTests.java | 740 OnPropertiesChangedListener listener2 = createOnPropertiesChangedListener(receivedUpdates2); in testTwoPropertiesListenersSameNamespace() local 755 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE1, EXECUTOR, listener2); in testTwoPropertiesListenersSameNamespace() 781 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersSameNamespace() 793 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersSameNamespace() 807 OnPropertiesChangedListener listener2 = createOnPropertiesChangedListener(receivedUpdates2); in testTwoPropertiesListenersDifferentNamespace() local 822 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE2, EXECUTOR, listener2); in testTwoPropertiesListenersDifferentNamespace() 866 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersDifferentNamespace() 880 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersDifferentNamespace()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | AnimatorSetTest.java | 493 Animator.AnimatorListener listener2 = mock(AnimatorListenerAdapter.class); in testZeroDurationScale() local 494 a2.addListener(listener2); in testZeroDurationScale() 509 verify(listener2, times(1)).onAnimationEnd(a2, false); in testZeroDurationScale() 529 Animator.AnimatorListener listener2 = mock(AnimatorListenerAdapter.class); in testDurationScale() local 530 a2.addListener(listener2); in testDurationScale() 547 verify(listener2, never()).onAnimationStart(a2, false); in testDurationScale() 557 verify(listener2, within(800)).onAnimationStart(a2, false); in testDurationScale() 564 verify(listener2, times(1)).onAnimationEnd(a2, false); in testDurationScale() 672 AnimatorListenerAdapter listener2 = new AnimatorListenerAdapter(){}; in testClone() local 678 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/media/src/android/media/cts/ |
D | MediaSessionManagerTest.java | 389 Session2TokenListener listener2 = new Session2TokenListener(); in testAddAndRemoveSession2TokensListener() local 390 mSessionManager.addOnSession2TokensChangedListener(listener2, handler); in testAddAndRemoveSession2TokensListener() 395 assertTrue(listener2.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAddAndRemoveSession2TokensListener()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | HoverTest.java | 276 View.OnHoverListener listener2 = installHoverListener(mLayer2); in testOverlappingHoverTargets() local 294 verifyEnterMoveExit(listener2, mLayer2, 4); in testOverlappingHoverTargets()
|
D | ViewTest.java | 2634 MockUnhandledKeyListener listener2 = new MockUnhandledKeyListener(); in testUnhandledKeys() local 2635 listener2.mReturnVal = true; in testUnhandledKeys() 2636 mActivityRule.runOnUiThread(() -> mockView1.addOnUnhandledKeyEventListener(listener2)); in testUnhandledKeys() 2639 assertTrue(listener2.fired()); in testUnhandledKeys() 2641 listener2.reset(); in testUnhandledKeys() 2646 mockView1.removeOnUnhandledKeyEventListener(listener2); in testUnhandledKeys()
|