/external/mockito/src/test/java/org/mockitousage/debugging/ |
InvocationListenerCallbackTest.java | 53 RememberingListener listener2 = new RememberingListener(container); local 55 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); 61 assertThat(container).containsExactly(listener1, listener2); 84 RememberingListener listener2 = new RememberingListener(); local 85 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); 93 assertThat(listener2).is(notifiedFor("rosemary", getClass().getSimpleName())); 100 InvocationListener listener2 = mock(InvocationListener.class, "listener2"); local 101 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); 110 InOrder orderedVerify = inOrder(listener1, listener2); [all...] |
VerificationListenerCallBackTest.java | 56 RememberingListener2 listener2 = new RememberingListener2(); local 57 Mockito.framework().addListener(listener1).addListener(listener2); 68 assertThat(listener2).is(notifiedFor(foo, never, invocationWanted));
|
/cts/tests/tests/text/src/android/text/method/cts/ |
DialerKeyListenerTest.java | 76 DialerKeyListener listener2 = DialerKeyListener.getInstance(); local 79 assertTrue(listener2 instanceof DialerKeyListener); 80 assertSame(listener1, listener2);
|
TextKeyListenerTest.java | 121 TextKeyListener listener2 = TextKeyListener.getInstance(true, Capitalize.WORDS); local 126 assertNotNull(listener2); 127 assertSame(listener1, listener2); 134 listener2.release(); 142 TextKeyListener listener2 = TextKeyListener.getInstance(); local 145 assertNotNull(listener2); 146 assertSame(listener1, listener2); 149 listener2.release();
|
DigitsKeyListenerTest.java | 753 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(); local 766 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(true, true); local 794 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(Locale.US, false, false); local 803 DigitsKeyListener listener2 = DigitsKeyListener.getInstance(Locale.US, true, false); local [all...] |
MultiTapKeyListenerTest.java | 243 MultiTapKeyListener listener2 = MultiTapKeyListener.getInstance(false, Capitalize.NONE); local 248 assertNotNull(listener2); 249 assertSame(listener1, listener2);
|
QwertyKeyListenerTest.java | 186 final QwertyKeyListener listener2 = QwertyKeyListener.getInstance(true, Capitalize.WORDS); local 192 assertNotNull(listener2); 193 assertSame(listener1, listener2);
|
/external/mockito/src/test/java/org/mockito/internal/listeners/ |
StubbingLookupNotifierTest.java | 47 StubbingLookupListener listener2 = mock(StubbingLookupListener.class); local 48 List<StubbingLookupListener> listeners = Lists.newArrayList(listener1, listener2); 56 verify(listener2).onStubbingLookup(argThat(new EventArgumentMatcher()));
|
/external/libevent/test/ |
regress_listener.c | 75 struct evconnlistener *listener1 = NULL, *listener2 = NULL; local 98 listener2 = evconnlistener_new_bind(base, acceptcb, &count2, 100 tt_assert(listener2); 103 tt_int_op(evconnlistener_get_fd(listener2), >=, 0); 106 tt_assert(getsockname(evconnlistener_get_fd(listener2), 118 tt_ptr_op(evconnlistener_get_base(listener2), ==, base); 142 if (listener2) 143 evconnlistener_free(listener2);
|
/external/mockito/src/test/java/org/mockito/internal/handler/ |
InvocationNotifierHandlerTest.java | 43 @Mock private InvocationListener listener2; field in class:InvocationNotifierHandlerTest 55 (MockCreationSettings<ArrayList<Answer<?>>>) new MockSettingsImpl<ArrayList<Answer<?>>>().invocationListeners(customListener, listener1, listener2) 69 verify(listener2).reportInvocation(new NotifiedMethodInvocationReport(invocation, "returned value")); 83 verify(listener2).reportInvocation(new NotifiedMethodInvocationReport(invocation, (Object) computedException)); 99 verify(listener2).reportInvocation(new NotifiedMethodInvocationReport(invocation, parseException));
|
/cts/tests/tests/car/src/android/car/cts/ |
CarAppFocusManagerTest.java | 94 FocusChangedListerner listener2 = new FocusChangedListerner(); local 96 mManager.addFocusListener(listener2, 1); 98 mManager.removeFocusListener(listener2); 220 FocusChangedListerner listener2 = new FocusChangedListerner(); local 223 manager2.addFocusListener(listener2, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION); 232 assertTrue(listener2.waitForFocusChangedAndAssert(DEFAULT_WAIT_TIMEOUT_MS, 236 listener2.reset(); 240 assertTrue(listener2.waitForFocusChangedAndAssert(DEFAULT_WAIT_TIMEOUT_MS, 247 FocusChangedListerner listener2 = new FocusChangedListerner(); local 250 mManager.addFocusListener(listener2, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION) [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowSubscriptionManagerTest.java | 75 DummySubscriptionsChangedListener listener2 = new DummySubscriptionsChangedListener(); local 77 shadowSubscriptionManager.addOnSubscriptionsChangedListener(listener2); 84 assertThat(listener2.subscriptionChanged).isTrue();
|
ShadowConnectivityManagerTest.java | 421 ConnectivityManager.OnNetworkActiveListener listener2 = local 424 connectivityManager.addDefaultNetworkActiveListener(listener2); 429 verify(listener2).onNetworkActive(); 438 ConnectivityManager.OnNetworkActiveListener listener2 = local 441 connectivityManager.addDefaultNetworkActiveListener(listener2); 446 verify(listener2).onNetworkActive(); 448 connectivityManager.removeDefaultNetworkActiveListener(listener2); 453 verify(listener2).onNetworkActive(); 460 verify(listener2).onNetworkActive();
|
ShadowSensorManagerTest.java | 109 TestSensorEventListener listener2 = new TestSensorEventListener(); local 112 sensorManager.registerListener(listener2, sensor, SensorManager.SENSOR_DELAY_NORMAL); 118 assertThat(listener2.getLatestSensorEvent().get()).isEqualTo(event);
|
ShadowLocationManagerTest.java | 155 TestLocationListener listener2 = new TestLocationListener(); local 164 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1, 1, listener2); 165 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1, 1, listener2); 171 assertEquals(listOfExpectedProvidersForListener2, new HashSet<>(shadowLocationManager.getProvidersForListener(listener2)));
|
ShadowAlarmManagerTest.java | 320 OnAlarmListener listener2 = () -> {}; local 324 alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, 30, "tag", listener2, handler); 330 assertThat(shadowAlarmManager.peekNextScheduledAlarm().onAlarmListener).isEqualTo(listener2);
|
/cts/tests/tests/transition/src/android/transition/cts/ |
TransitionTest.java | 90 final Transition.TransitionListener listener2 = mock(Transition.TransitionListener.class); local 95 autoTransition.addListener(listener2); 100 waitForStart(listener2); 108 verify(listener2, never()).onTransitionPause(any()); 109 verify(listener2, never()).onTransitionResume(any()); 110 verify(listener2, never()).onTransitionCancel(any()); 111 verify(listener2, never()).onTransitionEnd(any()); 112 verify(listener2, times(1)).onTransitionStart(any()); 560 final Transition.TransitionListener listener2 = mock(Transition.TransitionListener.class); local 572 transition2.addListener(listener2); [all...] |
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/ |
OkHttpClientTransportTest.java | 275 MockStreamListener listener2 = new MockStreamListener(); local 282 stream2.start(listener2); 289 listener2.waitUntilStreamClosed(); 294 assertEquals(Status.UNAVAILABLE.getCode(), listener2.status.getCode()); 295 assertEquals(NETWORK_ISSUE_MESSAGE, listener2.status.getCause().getMessage()); 584 MockStreamListener listener2 = new MockStreamListener(); local 592 stream2.start(listener2); 641 listener2.waitUntilStreamClosed(); 643 listener2.status.getCode()); 801 MockStreamListener listener2 = new MockStreamListener() local 831 MockStreamListener listener2 = new MockStreamListener(); local 927 final MockStreamListener listener2 = new MockStreamListener(); local 985 final MockStreamListener listener2 = new MockStreamListener(); local 1037 final MockStreamListener listener2 = new MockStreamListener(); local 1712 MockStreamListener listener2 = new MockStreamListener(); local 1752 MockStreamListener listener2 = new MockStreamListener(); local [all...] |
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
LogManagerTest.java | 566 MockPropertyChangeListener listener2 = new MockPropertyChangeListener(); local 570 mockManager.addPropertyChangeListener(listener2); 573 assertNull(listener2.getEvent()); 577 assertNotNull(listener2.getEvent()); 581 listener2.reset(); 588 assertNotNull(listener2.getEvent()); 590 listener2.reset(); 597 assertNotNull(listener2.getEvent()); 598 listener2.reset(); 602 assertNull(listener2.getEvent()) [all...] |
/cts/tests/tests/animation/src/android/animation/cts/ |
AnimatorSetTest.java | 493 Animator.AnimatorListener listener2 = mock(AnimatorListenerAdapter.class); local 494 a2.addListener(listener2); 509 verify(listener2, times(1)).onAnimationEnd(a2, false); 529 Animator.AnimatorListener listener2 = mock(AnimatorListenerAdapter.class); local 530 a2.addListener(listener2); 547 verify(listener2, never()).onAnimationStart(a2, false); 557 verify(listener2, within(800)).onAnimationStart(a2, false); 564 verify(listener2, times(1)).onAnimationEnd(a2, false); 672 AnimatorListenerAdapter listener2 = new AnimatorListenerAdapter(){}; local 678 animator2.addListener(listener2); [all...] |
AnimatorTest.java | 194 MyListener listener2 = new MyListener(); local 196 mAnimator.addListener(listener2);
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
DeviceConfigApiTests.java | 740 OnPropertiesChangedListener listener2 = createOnPropertiesChangedListener(receivedUpdates2); local 755 DeviceConfig.addOnPropertiesChangedListener(NAMESPACE1, EXECUTOR, listener2); 781 DeviceConfig.removeOnPropertiesChangedListener(listener2); 793 DeviceConfig.removeOnPropertiesChangedListener(listener2); 807 OnPropertiesChangedListener listener2 = createOnPropertiesChangedListener(receivedUpdates2); local [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaSessionManagerTest.java | 374 Session2TokenListener listener2 = new Session2TokenListener(); local 375 mSessionManager.addOnSession2TokensChangedListener(listener2, handler); 380 assertTrue(listener2.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS));
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
ServerInterceptorsTest.java | 274 final ServerCall.Listener<String> listener2 = mock(ServerCall.Listener.class); local 286 return (ServerCall.Listener<R1>) listener2; 291 assertSame(listener2,
|
/cts/tests/tests/view/src/android/view/cts/ |
HoverTest.java | 276 View.OnHoverListener listener2 = installHoverListener(mLayer2); local 294 verifyEnterMoveExit(listener2, mLayer2, 4);
|