Home
last modified time | relevance | path

Searched refs:listener2 (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/car/src/android/car/cts/
DCarAppFocusManagerTest.java145 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/
DTextKeyListenerTest.java119 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()
DDialerKeyListenerTest.java76 DialerKeyListener listener2 = DialerKeyListener.getInstance(); in testGetInstance() local
79 assertTrue(listener2 instanceof DialerKeyListener); in testGetInstance()
80 assertSame(listener1, listener2); in testGetInstance()
DDigitsKeyListenerTest.java751 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 …]
DQwertyKeyListenerTest.java186 final QwertyKeyListener listener2 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance() local
192 assertNotNull(listener2); in testGetInstance()
193 assertSame(listener1, listener2); in testGetInstance()
DMultiTapKeyListenerTest.java243 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/
DVibratorTest.java622 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/
DTransitionTest.java90 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/
DClusterHomeManagerTest.java179 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/
DPowerManager_WakeLockTest.java143 final PowerManager.WakeLockStateListener listener2 = in testWakeLockCallback_changeListener() local
160 lock.setStateListener(mExec, listener2); in testWakeLockCallback_changeListener()
DParcelFileDescriptorTest.java454 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/
DAnimatorSetTest.java503 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 …]
DAnimatorTest.java216 MyListener listener2 = new MyListener(); in testRemoveAllListenerers() local
218 mAnimator.addListener(listener2); in testRemoveAllListenerers()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java1130 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/
DHoverTest.java316 View.OnHoverListener listener2 = installHoverListener(mLayer2); in testOverlappingHoverTargets() local
335 verifyEnterMoveExit(listener2, mLayer2, 4); in testOverlappingHoverTargets()
DViewTest.java2828 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/
DPendingIntentTest.java978 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/
DMediaSessionManagerTest.java566 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/
DWifiManagerTest.java4797 Consumer<Integer> listener2 = new Consumer<Integer>() { in testSetTdlsEnabledWithMacAddressConsumerModel() local
4818 sWifiManager.getNumberOfEnabledTdlsSessions(mExecutor, listener2); in testSetTdlsEnabledWithMacAddressConsumerModel()
4825 sWifiManager.getNumberOfEnabledTdlsSessions(mExecutor, listener2); in testSetTdlsEnabledWithMacAddressConsumerModel()