Home
last modified time | relevance | path

Searched refs:listener1 (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/text/src/android/text/method/cts/
DTextKeyListenerTest.java118 TextKeyListener listener1 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1() local
123 assertNotNull(listener1); in testGetInstance1()
125 assertSame(listener1, listener2); in testGetInstance1()
127 assertNotSame(listener1, listener3); in testGetInstance1()
128 assertNotSame(listener1, listener4); in testGetInstance1()
131 listener1.release(); in testGetInstance1()
139 TextKeyListener listener1 = TextKeyListener.getInstance(); in testGetInstance2() local
142 assertNotNull(listener1); in testGetInstance2()
144 assertSame(listener1, listener2); in testGetInstance2()
146 listener1.release(); in testGetInstance2()
DDialerKeyListenerTest.java75 DialerKeyListener listener1 = DialerKeyListener.getInstance(); in testGetInstance() local
78 assertTrue(listener1 instanceof DialerKeyListener); in testGetInstance()
80 assertSame(listener1, listener2); in testGetInstance()
DQwertyKeyListenerTest.java185 final QwertyKeyListener listener1 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance() local
191 assertNotNull(listener1); in testGetInstance()
193 assertSame(listener1, listener2); in testGetInstance()
195 assertNotSame(listener1, listener3); in testGetInstance()
196 assertNotSame(listener1, listener4); in testGetInstance()
DMultiTapKeyListenerTest.java242 MultiTapKeyListener listener1 = MultiTapKeyListener.getInstance(false, Capitalize.NONE); in testGetInstance() local
247 assertNotNull(listener1); in testGetInstance()
249 assertSame(listener1, listener2); in testGetInstance()
251 assertNotSame(listener1, listener3); in testGetInstance()
253 assertNotSame(listener4, listener1); in testGetInstance()
DDigitsKeyListenerTest.java750 DigitsKeyListener listener1 = DigitsKeyListener.getInstance(); in testGetInstance1() local
754 assertNotNull(listener1); in testGetInstance1()
757 assertSame(listener1, listener2); in testGetInstance1()
758 assertSame(listener1, listener3); in testGetInstance1()
763 DigitsKeyListener listener1 = DigitsKeyListener.getInstance(true, true); in testGetInstance2() local
766 assertNotNull(listener1); in testGetInstance2()
768 assertSame(listener1, listener2); in testGetInstance2()
777 assertNotSame(listener1, listener3); in testGetInstance2()
791 DigitsKeyListener listener1 = DigitsKeyListener.getInstance(Locale.US); in testGetInstance4() local
793 assertNotNull(listener1); in testGetInstance4()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DPowerManager_WakeLockTest.java135 final PowerManager.WakeLockStateListener listener1 = in testWakeLockCallback_changeListener() local
152 lock.setStateListener(mExec, listener1); in testWakeLockCallback_changeListener()
177 lock.setStateListener(mExec, listener1); in testWakeLockCallback_changeListener()
195 final PowerManager.WakeLockStateListener listener1 = in testWakeLockCallback_nullListener() local
205 lock.setStateListener(mExec, listener1); in testWakeLockCallback_nullListener()
218 lock.setStateListener(mExec, listener1); in testWakeLockCallback_nullListener()
DParcelFileDescriptorTest.java453 final FutureCloseListener listener1 = new FutureCloseListener(); in testFileWrapped() local
457 listener1); in testFileWrapped()
/cts/tests/tests/car/src/android/car/cts/
DCarAppFocusManagerTest.java144 FocusChangedListener listener1 = new FocusChangedListener(); in testRegisterUnregister() local
147 mManager.addFocusListener(listener1, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregister()
149 mManager.removeFocusListener(listener1); in testRegisterUnregister()
155 assertThat(listener1.waitForFocusChangedAndAssert( in testRegisterUnregister()
166 assertThat(listener1.waitForFocusChangedAndAssert( in testRegisterUnregister()
173 mManager.removeFocusListener(listener1); in testRegisterUnregister()
179 FocusChangedListener listener1 = new FocusChangedListener(); in testRegisterUnregisterSpecificApp() local
182 mManager.addFocusListener(listener1, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp()
184 mManager.removeFocusListener(listener1, APP_FOCUS_TYPE_NAVIGATION); in testRegisterUnregisterSpecificApp()
190 assertThat(listener1.waitForFocusChangedAndAssert( in testRegisterUnregisterSpecificApp()
[all …]
/cts/tests/tests/car/src/android/car/cluster/cts/
DClusterHomeManagerTest.java178 TestNavigationStateListener listener1 = new TestNavigationStateListener(); in testRegisterAndUnregisterClusterNavigationStateListener() local
181 mContext.getMainExecutor(), listener1); in testRegisterAndUnregisterClusterNavigationStateListener() local
192 () -> (listener1.getNavigationState().equals(NAVIGATION_STATE_1) in testRegisterAndUnregisterClusterNavigationStateListener()
196 mClusterHomeManager.unregisterClusterNavigationStateListener(listener1); in testRegisterAndUnregisterClusterNavigationStateListener()
203 assertThat(listener1.getNavigationState()).isEqualTo(NAVIGATION_STATE_1); in testRegisterAndUnregisterClusterNavigationStateListener()
/cts/tests/vibrator/src/android/os/cts/
DVibratorTest.java621 OnVibratorStateChangedListener listener1 = newMockStateListener(); in testVibratorStateCallback() local
624 mVibrator.addVibratorStateListener(Executors.newSingleThreadExecutor(), listener1); in testVibratorStateCallback() local
627 verify(listener1, timeout(CALLBACK_TIMEOUT_MILLIS)).onVibratorStateChanged(false); in testVibratorStateCallback()
633 verify(listener1, timeout(CALLBACK_TIMEOUT_MILLIS)).onVibratorStateChanged(true); in testVibratorStateCallback()
637 verify(listener1, timeout(CALLBACK_TIMEOUT_MILLIS).times(2)).onVibratorStateChanged(false); in testVibratorStateCallback()
646 OnVibratorStateChangedListener listener1 = newMockStateListener(); in testVibratorStateCallbackRemoval() local
649 mVibrator.addVibratorStateListener(Executors.newSingleThreadExecutor(), listener1); in testVibratorStateCallbackRemoval() local
652 verify(listener1, timeout(CALLBACK_TIMEOUT_MILLIS)).onVibratorStateChanged(false); in testVibratorStateCallbackRemoval()
656 mVibrator.removeVibratorStateListener(listener1); in testVibratorStateCallbackRemoval()
663 verify(listener1, after(CALLBACK_TIMEOUT_MILLIS).never()).onVibratorStateChanged(true); in testVibratorStateCallbackRemoval()
/cts/tests/tests/animation/src/android/animation/cts/
DAnimatorSetTest.java445 Animator.AnimatorListener listener1 = mock(AnimatorListenerAdapter.class); in testReverseWithStartDelay() local
446 a1.addListener(listener1); in testReverseWithStartDelay()
478 verify(listener1, never()).onAnimationStart(a1, true); in testReverseWithStartDelay()
483 verify(listener1, times(1)).onAnimationEnd(a1, true); in testReverseWithStartDelay()
496 Animator.AnimatorListener listener1 = mock(AnimatorListenerAdapter.class); in testZeroDurationScale() local
497 a1.addListener(listener1); in testZeroDurationScale()
518 verify(listener1, times(1)).onAnimationEnd(a1, false); in testZeroDurationScale()
532 Animator.AnimatorListener listener1 = mock(AnimatorListenerAdapter.class); in testDurationScale() local
533 a1.addListener(listener1); in testDurationScale()
556 verify(listener1, never()).onAnimationStart(a1, false); in testDurationScale()
[all …]
DAnimatorTest.java215 MyListener listener1 = new MyListener(); in testRemoveAllListenerers() local
217 mAnimator.addListener(listener1); in testRemoveAllListenerers()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSessionManagerTest.java553 Session2TokenListener listener1 = new Session2TokenListener(); in testAddAndRemoveSession2TokensListener() local
554 mSessionManager.addOnSession2TokensChangedListener(listener1, handler); in testAddAndRemoveSession2TokensListener()
560 assertThat(listener1.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testAddAndRemoveSession2TokensListener()
562 assertThat(listContainsToken(listener1.mTokens, currentToken)).isTrue(); in testAddAndRemoveSession2TokensListener()
565 listener1.resetCountDownLatch(); in testAddAndRemoveSession2TokensListener()
568 mSessionManager.removeOnSession2TokensChangedListener(listener1); in testAddAndRemoveSession2TokensListener()
571 assertThat(listener1.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) in testAddAndRemoveSession2TokensListener()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java1129 OnPropertiesChangedListener listener1 = createOnPropertiesChangedListener(receivedUpdates1); in testTwoPropertiesListenersSameNamespace() local
1133 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE1, EXECUTOR, listener1); in testTwoPropertiesListenersSameNamespace()
1158 DeviceConfig.removeOnPropertiesChangedListener(listener1); in testTwoPropertiesListenersSameNamespace()
1182 DeviceConfig.removeOnPropertiesChangedListener(listener1); in testTwoPropertiesListenersSameNamespace()
1196 OnPropertiesChangedListener listener1 = createOnPropertiesChangedListener(receivedUpdates1); in testTwoPropertiesListenersDifferentNamespace() local
1200 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE1, EXECUTOR, listener1); in testTwoPropertiesListenersDifferentNamespace()
1235 DeviceConfig.removeOnPropertiesChangedListener(listener1); in testTwoPropertiesListenersDifferentNamespace()
1269 DeviceConfig.removeOnPropertiesChangedListener(listener1); in testTwoPropertiesListenersDifferentNamespace()
/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java974 PendingIntent.CancelListener listener1 = (pi) -> { in testCancelListener() local
990 assertTrue(pi1.addCancelListener(e, listener1)); in testCancelListener()
995 pi1.removeCancelListener(listener1); in testCancelListener()
1043 PendingIntent.CancelListener listener1 = (pi) -> { in testCancelListener_cancelCurrent() local
1047 assertTrue(pi1.addCancelListener(Runnable::run, listener1)); in testCancelListener_cancelCurrent()
1078 PendingIntent.CancelListener listener1 = (pi) -> { in testCancelListener_oneShot() local
1082 assertTrue(pi1.addCancelListener(Runnable::run, listener1)); in testCancelListener_oneShot()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java559 final Transition.TransitionListener listener1 = mock(Transition.TransitionListener.class); in testForceToEndTransitionsDependedEachOther() local
585 transition1.addListener(listener1); in testForceToEndTransitionsDependedEachOther()
599 .when(listener1) in testForceToEndTransitionsDependedEachOther()
612 verify(listener1, within(4000)).onTransitionStart(any()); in testForceToEndTransitionsDependedEachOther()
621 verify(listener1, within(4000)).onTransitionEnd(any()); in testForceToEndTransitionsDependedEachOther()
/cts/tests/tests/view/src/android/view/cts/
DHoverTest.java315 View.OnHoverListener listener1 = installHoverListener(mLayer1); in testOverlappingHoverTargets() local
334 verifyNoMoreInteractions(listener1); in testOverlappingHoverTargets()