/cts/tests/tests/car/src/android/car/cts/ |
D | CarAppFocusManagerTest.java | 145 FocusChangedListener listener2 = new FocusChangedListener(); in testRegisterUnregister() local 148 mManager.addFocusListener(listener2, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregister() 157 assertThat(listener2.waitForFocusChangedAndAssert( in testRegisterUnregister() 160 mManager.removeFocusListener(listener2); in testRegisterUnregister() 169 assertThat(listener2.waitForFocusChangedAndAssert( in testRegisterUnregister() 174 mManager.removeFocusListener(listener2); in testRegisterUnregister() 180 FocusChangedListener listener2 = new FocusChangedListener(); in testRegisterUnregisterSpecificApp() local 183 mManager.addFocusListener(listener2, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp() 192 assertThat(listener2.waitForFocusChangedAndAssert( in testRegisterUnregisterSpecificApp() 195 mManager.removeFocusListener(listener2, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TextKeyListenerTest.java | 119 TextKeyListener listener2 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1() local 124 assertNotNull(listener2); in testGetInstance1() 125 assertSame(listener1, listener2); in testGetInstance1() 132 listener2.release(); in testGetInstance1() 140 TextKeyListener listener2 = TextKeyListener.getInstance(); in testGetInstance2() local 143 assertNotNull(listener2); in testGetInstance2() 144 assertSame(listener1, listener2); in testGetInstance2() 147 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 | 751 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(); in testGetInstance1() local 755 assertNotNull(listener2); in testGetInstance1() 757 assertSame(listener1, listener2); in testGetInstance1() 764 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(true, true); in testGetInstance2() local 767 assertNotNull(listener2); in testGetInstance2() 768 assertSame(listener1, listener2); in testGetInstance2() 792 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(Locale.US, false, false); in testGetInstance4() local 794 assertNotNull(listener2); in testGetInstance4() 795 assertSame(listener1, listener2); in testGetInstance4() 801 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/vibrator/src/android/os/cts/ |
D | VibratorTest.java | 622 OnVibratorStateChangedListener listener2 = newMockStateListener(); in testVibratorStateCallback() local 626 mVibrator.addVibratorStateListener(listener2); in testVibratorStateCallback() 628 verify(listener2, timeout(CALLBACK_TIMEOUT_MILLIS)).onVibratorStateChanged(false); in testVibratorStateCallback() 634 verify(listener2, timeout(CALLBACK_TIMEOUT_MILLIS)).onVibratorStateChanged(true); in testVibratorStateCallback() 638 verify(listener2, timeout(CALLBACK_TIMEOUT_MILLIS).times(2)).onVibratorStateChanged(false); in testVibratorStateCallback() 647 OnVibratorStateChangedListener listener2 = newMockStateListener(); in testVibratorStateCallbackRemoval() local 651 mVibrator.addVibratorStateListener(listener2); in testVibratorStateCallbackRemoval() 653 verify(listener2, timeout(CALLBACK_TIMEOUT_MILLIS)).onVibratorStateChanged(false); in testVibratorStateCallbackRemoval() 657 mVibrator.removeVibratorStateListener(listener2); in testVibratorStateCallbackRemoval() 665 verify(listener2, never()).onVibratorStateChanged(true); in testVibratorStateCallbackRemoval()
|
/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/car/src/android/car/cluster/cts/ |
D | ClusterHomeManagerTest.java | 179 TestNavigationStateListener listener2 = new TestNavigationStateListener(); in testRegisterAndUnregisterClusterNavigationStateListener() local 183 mContext.getMainExecutor(), listener2); in testRegisterAndUnregisterClusterNavigationStateListener() local 193 && listener2.getNavigationState().equals(NAVIGATION_STATE_1))); in testRegisterAndUnregisterClusterNavigationStateListener() 202 () -> (listener2.getNavigationState().equals(NAVIGATION_STATE_2))); in testRegisterAndUnregisterClusterNavigationStateListener()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManager_WakeLockTest.java | 143 final PowerManager.WakeLockStateListener listener2 = in testWakeLockCallback_changeListener() local 160 lock.setStateListener(mExec, listener2); in testWakeLockCallback_changeListener()
|
D | ParcelFileDescriptorTest.java | 454 final FutureCloseListener listener2 = new FutureCloseListener(); in testFileWrapped() local 458 final ParcelFileDescriptor file2 = ParcelFileDescriptor.wrap(file1, handler2, listener2); in testFileWrapped() 464 assertEquals(null, listener2.get()); in testFileWrapped()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | AnimatorSetTest.java | 503 Animator.AnimatorListener listener2 = mock(AnimatorListenerAdapter.class); in testZeroDurationScale() local 504 a2.addListener(listener2); in testZeroDurationScale() 519 verify(listener2, times(1)).onAnimationEnd(a2, false); in testZeroDurationScale() 539 Animator.AnimatorListener listener2 = mock(AnimatorListenerAdapter.class); in testDurationScale() local 540 a2.addListener(listener2); in testDurationScale() 557 verify(listener2, never()).onAnimationStart(a2, false); in testDurationScale() 567 verify(listener2, within(800)).onAnimationStart(a2, false); in testDurationScale() 574 verify(listener2, times(1)).onAnimationEnd(a2, false); in testDurationScale() 682 AnimatorListenerAdapter listener2 = new AnimatorListenerAdapter(){}; in testClone() local 688 animator2.addListener(listener2); in testClone() [all …]
|
D | AnimatorTest.java | 216 MyListener listener2 = new MyListener(); in testRemoveAllListenerers() local 218 mAnimator.addListener(listener2); in testRemoveAllListenerers()
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiTests.java | 1130 OnPropertiesChangedListener listener2 = createOnPropertiesChangedListener(receivedUpdates2); in testTwoPropertiesListenersSameNamespace() local 1145 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE1, EXECUTOR, listener2); in testTwoPropertiesListenersSameNamespace() 1171 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersSameNamespace() 1183 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersSameNamespace() 1197 OnPropertiesChangedListener listener2 = createOnPropertiesChangedListener(receivedUpdates2); in testTwoPropertiesListenersDifferentNamespace() local 1212 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE2, EXECUTOR, listener2); in testTwoPropertiesListenersDifferentNamespace() 1256 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersDifferentNamespace() 1270 DeviceConfig.removeOnPropertiesChangedListener(listener2); in testTwoPropertiesListenersDifferentNamespace()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | HoverTest.java | 316 View.OnHoverListener listener2 = installHoverListener(mLayer2); in testOverlappingHoverTargets() local 335 verifyEnterMoveExit(listener2, mLayer2, 4); in testOverlappingHoverTargets()
|
D | ViewTest.java | 2828 MockUnhandledKeyListener listener2 = new MockUnhandledKeyListener(); in testUnhandledKeys() local 2829 listener2.mReturnVal = true; in testUnhandledKeys() 2830 mActivityRule.runOnUiThread(() -> mockView1.addOnUnhandledKeyEventListener(listener2)); in testUnhandledKeys() 2833 assertTrue(listener2.fired()); in testUnhandledKeys() 2835 listener2.reset(); in testUnhandledKeys() 2840 mockView1.removeOnUnhandledKeyEventListener(listener2); in testUnhandledKeys()
|
/cts/tests/app/src/android/app/cts/ |
D | PendingIntentTest.java | 978 PendingIntent.CancelListener listener2 = (pi) -> { in testCancelListener() local 991 assertTrue(pi1.addCancelListener(e, listener2)); in testCancelListener() 1052 PendingIntent.CancelListener listener2 = (pi) -> { in testCancelListener_cancelCurrent() local 1056 assertTrue(pi2.addCancelListener(Runnable::run, listener2)); in testCancelListener_cancelCurrent()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSessionManagerTest.java | 566 Session2TokenListener listener2 = new Session2TokenListener(); in testAddAndRemoveSession2TokensListener() local 567 mSessionManager.addOnSession2TokensChangedListener(listener2, handler); in testAddAndRemoveSession2TokensListener() 573 assertThat(listener2.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testAddAndRemoveSession2TokensListener()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 4797 Consumer<Integer> listener2 = new Consumer<Integer>() { in testSetTdlsEnabledWithMacAddressConsumerModel() local 4818 sWifiManager.getNumberOfEnabledTdlsSessions(mExecutor, listener2); in testSetTdlsEnabledWithMacAddressConsumerModel() 4825 sWifiManager.getNumberOfEnabledTdlsSessions(mExecutor, listener2); in testSetTdlsEnabledWithMacAddressConsumerModel()
|