/external/wayland/tests/ |
D | queue-test.c | 112 struct wl_callback *callback1; in client_test_multiple_queues() local 123 callback1 = wl_display_sync(state.display); in client_test_multiple_queues() 124 assert(callback1 != NULL); in client_test_multiple_queues() 125 wl_callback_add_listener(callback1, &sync_listener, &state); in client_test_multiple_queues() 126 wl_proxy_set_queue((struct wl_proxy *) callback1, queue); in client_test_multiple_queues() 161 struct wl_callback *callback1; in client_test_queue_roundtrip() local 174 callback1 = wl_display_sync(display); in client_test_queue_roundtrip() 175 assert(callback1 != NULL); in client_test_queue_roundtrip() 176 wl_callback_add_listener(callback1, &sync_listener_roundtrip, &done1); in client_test_queue_roundtrip() 191 wl_callback_destroy(callback1); in client_test_queue_roundtrip() [all …]
|
/external/adhd/cras/src/tests/ |
D | alert_unittest.cc | 14 void callback1(void *arg, void *data); 48 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F() 59 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F() 73 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F() 87 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F() 106 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F() 120 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F() 134 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F() 145 cras_alert_add_callback(alert1, &callback1, NULL); in TEST_F() 161 cras_alert_add_callback(alert, &callback1, NULL); in TEST_F() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowSurfaceViewTest.java | 19 private SurfaceHolder.Callback callback1 = new TestCallback(); field in ShadowSurfaceViewTest 32 surfaceHolder.addCallback(callback1); in addCallback() 34 assertThat(fakeSurfaceHolder.getCallbacks()).contains(callback1); in addCallback() 38 assertThat(fakeSurfaceHolder.getCallbacks()).contains(callback1); in addCallback() 44 surfaceHolder.addCallback(callback1); in removeCallback() 49 surfaceHolder.removeCallback(callback1); in removeCallback() 51 assertThat(fakeSurfaceHolder.getCallbacks()).doesNotContain(callback1); in removeCallback()
|
D | ShadowBluetoothAdapterTest.java | 116 BluetoothAdapter.LeScanCallback callback1 = newLeScanCallback(); in testLeScan() local 119 bluetoothAdapter.startLeScan(callback1); in testLeScan() 120 assertThat(shadowBluetoothAdapter.getLeScanCallbacks()).containsExactly(callback1); in testLeScan() 122 assertThat(shadowBluetoothAdapter.getLeScanCallbacks()).containsExactly(callback1, callback2); in testLeScan() 124 bluetoothAdapter.stopLeScan(callback1); in testLeScan() 133 BluetoothAdapter.LeScanCallback callback1 = newLeScanCallback(); in testGetSingleLeScanCallback() local 136 bluetoothAdapter.startLeScan(callback1); in testGetSingleLeScanCallback() 137 assertThat(shadowBluetoothAdapter.getSingleLeScanCallback()).isEqualTo(callback1); in testGetSingleLeScanCallback()
|
D | ShadowConnectivityManagerTest.java | 339 ConnectivityManager.NetworkCallback callback1 = createSimpleCallback(); in unregisterCallback_shouldRemoveCallbacks() local 341 connectivityManager.registerNetworkCallback(builder.build(), callback1); in unregisterCallback_shouldRemoveCallbacks() local 347 connectivityManager.unregisterNetworkCallback(callback1); in unregisterCallback_shouldRemoveCallbacks()
|
/external/libevent/test/ |
D | test-dumpevents.c | 52 callback1(evutil_socket_t fd, short events, void *arg) in callback1() function 110 ev[0] = event_new(base, pair1[0], EV_WRITE, callback1, NULL); in main() 111 ev[1] = event_new(base, pair1[1], EV_READ|EV_PERSIST, callback1, NULL); in main() 116 ev[4] = evtimer_new(base, callback1, NULL); in main() 117 ev[5] = evtimer_new(base, callback1, NULL); in main() 118 ev[6] = evtimer_new(base, callback1, NULL); in main() 124 ev[10] = event_new(base, -1, 0, callback1, NULL); in main()
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | sync_handle_registry_unittest.cc | 31 auto callback1 = base::Bind(callback, &called1); in TEST_F() local 36 registry()->RegisterEvent(&e, callback1); in TEST_F() 44 registry()->UnregisterEvent(&e, callback1); in TEST_F() 63 auto callback1 = base::Bind([](bool* called) { *called = true; }, &called1); in TEST_F() local 70 &e, callback1, registry(), &called2); in TEST_F() 73 registry()->RegisterEvent(&e, callback1); in TEST_F() 215 auto callback1 = base::Bind([](bool* called) { *called = true; }, &called1); in TEST_F() local 245 &e1, callback1, registry(), &called2); in TEST_F() 247 registry()->RegisterEvent(e1.get(), callback1); in TEST_F()
|
/external/libchrome/base/android/jni_generator/ |
D | testMultipleJNIAdditionalImport.golden | 39 const base::android::JavaParamRef<jobject>& callback1, 45 jobject callback1, 48 base::android::JavaParamRef<jobject>(env, callback1), 54 static void Java_Foo_calledByNative(JNIEnv* env, const base::android::JavaRef<jobject>& callback1, 66 method_id, callback1.obj(), callback2.obj());
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_unix_events.py | 1228 callback1 = mock.Mock() 1234 self.watcher.add_child_handler(43, callback1, 7, 8) 1236 self.assertFalse(callback1.called) 1247 self.assertFalse(callback1.called) 1257 self.assertFalse(callback1.called) 1268 callback1.assert_called_once_with(43, -3, 7, 8) 1277 callback1.reset_mock() 1282 self.assertFalse(callback1.called) 1295 self.assertFalse(callback1.called) 1311 self.assertFalse(callback1.called) [all …]
|
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/ |
D | NettyClientHandlerTest.java | 557 PingCallbackImpl callback1 = new PingCallbackImpl(); in ping() local 559 sendPing(callback1); in ping() 577 assertEquals(0, callback1.invocationCount); in ping() 584 assertEquals(1, callback1.invocationCount); in ping() 585 assertEquals(10101, callback1.roundTripTime); in ping() 586 assertNull(callback1.failureCause); in ping() 593 callback1 = new PingCallbackImpl(); in ping() 595 sendPing(callback1); in ping() 597 assertEquals(0, callback1.invocationCount); in ping()
|
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/ |
D | CronetClientTransportTest.java | 106 BidirectionalStream.Callback callback1 = callbackCaptor.getValue(); in shutdownTransport() local 118 callback1.onCanceled(cronetStream1, null); in shutdownTransport()
|
/external/libchrome/base/ |
D | cancelable_callback_unittest.cc | 67 base::Closure callback1 = cancelable.callback(); in TEST() local 71 callback1.Run(); in TEST()
|
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/ |
D | OkHttpClientTransportTest.java | 1322 PingCallbackImpl callback1 = new PingCallbackImpl(); in ping() local 1323 clientTransport.ping(callback1, MoreExecutors.directExecutor()); in ping() 1334 assertEquals(0, callback1.invocationCount); in ping() 1343 assertEquals(0, callback1.invocationCount); in ping() 1350 assertEquals(1, callback1.invocationCount); in ping() 1351 assertEquals(10101, callback1.roundTripTime); in ping() 1352 assertNull(callback1.failureCause); in ping() 1359 callback1 = new PingCallbackImpl(); in ping() 1360 clientTransport.ping(callback1, MoreExecutors.directExecutor()); in ping() 1362 assertEquals(0, callback1.invocationCount); in ping()
|