/cts/tests/tests/car/src/android/car/cts/ |
D | CarAppFocusManagerTest.java | 123 FocusChangedListener listener2 = new FocusChangedListener(); in testRegisterUnregister() local 126 mManager.addFocusListener(listener2, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregister() 135 assertThat(listener2.waitForFocusChangedAndAssert( in testRegisterUnregister() 138 mManager.removeFocusListener(listener2); in testRegisterUnregister() 147 assertThat(listener2.waitForFocusChangedAndAssert( in testRegisterUnregister() 152 mManager.removeFocusListener(listener2); in testRegisterUnregister() 158 FocusChangedListener listener2 = new FocusChangedListener(); in testRegisterUnregisterSpecificApp() local 161 mManager.addFocusListener(listener2, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp() 170 assertThat(listener2.waitForFocusChangedAndAssert( in testRegisterUnregisterSpecificApp() 173 mManager.removeFocusListener(listener2, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp() [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/os/src/android/os/cts/ |
D | VibratorTest.java | 330 OnVibratorStateChangedListener listener2 = mock(OnVibratorStateChangedListener.class); in testVibratorStateCallback() local 334 mVibrator.addVibratorStateListener(listener2); in testVibratorStateCallback() 336 verify(listener2, timeout(CALLBACK_TIMEOUT_MILLIS).times(1)).onVibratorStateChanged(false); in testVibratorStateCallback() 341 verify(listener2, timeout(CALLBACK_TIMEOUT_MILLIS).times(1)).onVibratorStateChanged(true); in testVibratorStateCallback() 348 mVibrator.removeVibratorStateListener(listener2); in testVibratorStateCallback() 350 reset(listener2); in testVibratorStateCallback() 357 verify(listener2, timeout(CALLBACK_TIMEOUT_MILLIS).times(0)) in testVibratorStateCallback()
|
D | ParcelFileDescriptorTest.java | 348 final FutureCloseListener listener2 = new FutureCloseListener(); in testFileWrapped() local 352 final ParcelFileDescriptor file2 = ParcelFileDescriptor.wrap(file1, handler2, listener2); in testFileWrapped() 358 assertEquals(null, listener2.get()); in testFileWrapped()
|
/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/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 | 195 MyListener listener2 = new MyListener(); in testRemoveAllListenerers() local 197 mAnimator.addListener(listener2); in testRemoveAllListenerers()
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiTests.java | 849 OnPropertiesChangedListener listener2 = createOnPropertiesChangedListener(receivedUpdates2); in testTwoPropertiesListenersSameNamespace() local 864 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE1, EXECUTOR, listener2); in testTwoPropertiesListenersSameNamespace() 890 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersSameNamespace() 902 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersSameNamespace() 916 OnPropertiesChangedListener listener2 = createOnPropertiesChangedListener(receivedUpdates2); in testTwoPropertiesListenersDifferentNamespace() local 931 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE2, EXECUTOR, listener2); in testTwoPropertiesListenersDifferentNamespace() 975 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersDifferentNamespace() 989 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersDifferentNamespace()
|
/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 | 2701 MockUnhandledKeyListener listener2 = new MockUnhandledKeyListener(); in testUnhandledKeys() local 2702 listener2.mReturnVal = true; in testUnhandledKeys() 2703 mActivityRule.runOnUiThread(() -> mockView1.addOnUnhandledKeyEventListener(listener2)); in testUnhandledKeys() 2706 assertTrue(listener2.fired()); in testUnhandledKeys() 2708 listener2.reset(); in testUnhandledKeys() 2713 mockView1.removeOnUnhandledKeyEventListener(listener2); in testUnhandledKeys()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSessionManagerTest.java | 464 Session2TokenListener listener2 = new Session2TokenListener(); in testAddAndRemoveSession2TokensListener() local 465 mSessionManager.addOnSession2TokensChangedListener(listener2, handler); in testAddAndRemoveSession2TokensListener() 470 assertTrue(listener2.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAddAndRemoveSession2TokensListener()
|