Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/method/cts/
DTextKeyListenerTest.java120 TextKeyListener listener1 = TextKeyListener.getInstance(true, Capitalize.WORDS); in testGetInstance1() local
125 assertNotNull(listener1); in testGetInstance1()
127 assertSame(listener1, listener2); in testGetInstance1()
129 assertNotSame(listener1, listener3); in testGetInstance1()
130 assertNotSame(listener1, listener4); in testGetInstance1()
133 listener1.release(); in testGetInstance1()
141 TextKeyListener listener1 = TextKeyListener.getInstance(); in testGetInstance2() local
144 assertNotNull(listener1); in testGetInstance2()
146 assertSame(listener1, listener2); in testGetInstance2()
148 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()
DDigitsKeyListenerTest.java752 DigitsKeyListener listener1 = DigitsKeyListener.getInstance(); in testGetInstance1() local
756 assertNotNull(listener1); in testGetInstance1()
759 assertSame(listener1, listener2); in testGetInstance1()
760 assertSame(listener1, listener3); in testGetInstance1()
765 DigitsKeyListener listener1 = DigitsKeyListener.getInstance(true, true); in testGetInstance2() local
768 assertNotNull(listener1); in testGetInstance2()
770 assertSame(listener1, listener2); in testGetInstance2()
779 assertNotSame(listener1, listener3); in testGetInstance2()
793 DigitsKeyListener listener1 = DigitsKeyListener.getInstance(Locale.US); in testGetInstance4() local
795 assertNotNull(listener1); in testGetInstance4()
[all …]
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()
/cts/tests/tests/animation/src/android/animation/cts/
DAnimatorSetTest.java435 Animator.AnimatorListener listener1 = mock(AnimatorListenerAdapter.class); in testReverseWithStartDelay() local
436 a1.addListener(listener1); in testReverseWithStartDelay()
468 verify(listener1, never()).onAnimationStart(a1, true); in testReverseWithStartDelay()
473 verify(listener1, times(1)).onAnimationEnd(a1, true); in testReverseWithStartDelay()
486 Animator.AnimatorListener listener1 = mock(AnimatorListenerAdapter.class); in testZeroDurationScale() local
487 a1.addListener(listener1); in testZeroDurationScale()
508 verify(listener1, times(1)).onAnimationEnd(a1, false); in testZeroDurationScale()
522 Animator.AnimatorListener listener1 = mock(AnimatorListenerAdapter.class); in testDurationScale() local
523 a1.addListener(listener1); in testDurationScale()
546 verify(listener1, never()).onAnimationStart(a1, false); in testDurationScale()
[all …]
DAnimatorTest.java193 MyListener listener1 = new MyListener(); in testRemoveAllListenerers() local
195 mAnimator.addListener(listener1); in testRemoveAllListenerers()
/cts/tests/tests/media/src/android/media/cts/
DMediaSessionManagerTest.java376 Session2TokenListener listener1 = new Session2TokenListener(); in testAddAndRemoveSession2TokensListener() local
377 mSessionManager.addOnSession2TokensChangedListener(listener1, handler); in testAddAndRemoveSession2TokensListener()
383 assertTrue(listener1.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAddAndRemoveSession2TokensListener()
385 assertTrue(listContainsToken(listener1.mTokens, currentToken)); in testAddAndRemoveSession2TokensListener()
388 listener1.resetCountDownLatch(); in testAddAndRemoveSession2TokensListener()
391 mSessionManager.removeOnSession2TokensChangedListener(listener1); in testAddAndRemoveSession2TokensListener()
394 assertFalse(listener1.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAddAndRemoveSession2TokensListener()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java739 OnPropertiesChangedListener listener1 = createOnPropertiesChangedListener(receivedUpdates1); in testTwoPropertiesListenersSameNamespace() local
743 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE1, EXECUTOR, listener1); in testTwoPropertiesListenersSameNamespace()
768 DeviceConfig.removeOnPropertiesChangedListener(listener1); in testTwoPropertiesListenersSameNamespace()
792 DeviceConfig.removeOnPropertiesChangedListener(listener1); in testTwoPropertiesListenersSameNamespace()
806 OnPropertiesChangedListener listener1 = createOnPropertiesChangedListener(receivedUpdates1); in testTwoPropertiesListenersDifferentNamespace() local
810 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE1, EXECUTOR, listener1); in testTwoPropertiesListenersDifferentNamespace()
845 DeviceConfig.removeOnPropertiesChangedListener(listener1); in testTwoPropertiesListenersDifferentNamespace()
879 DeviceConfig.removeOnPropertiesChangedListener(listener1); in testTwoPropertiesListenersDifferentNamespace()
/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.java275 View.OnHoverListener listener1 = installHoverListener(mLayer1); in testOverlappingHoverTargets() local
293 verifyNoMoreInteractions(listener1); in testOverlappingHoverTargets()