Home
last modified time | relevance | path

Searched refs:callback2 (Results 1 – 25 of 30) sorted by relevance

12

/external/wayland/tests/
Dqueue-test.c84 struct wl_callback* callback2; member
98 wl_callback_destroy(state->callback2); in sync_callback()
128 state.callback2 = wl_display_sync(state.display); in client_test_multiple_queues()
129 assert(state.callback2 != NULL); in client_test_multiple_queues()
130 wl_callback_add_listener(state.callback2, &sync_listener, NULL); in client_test_multiple_queues()
131 wl_proxy_set_queue((struct wl_proxy *) state.callback2, queue); in client_test_multiple_queues()
162 struct wl_callback *callback2; in client_test_queue_roundtrip() local
179 callback2 = wl_display_sync(display); in client_test_queue_roundtrip()
180 assert(callback2 != NULL); in client_test_queue_roundtrip()
181 wl_callback_add_listener(callback2, &sync_listener_roundtrip, &done2); in client_test_queue_roundtrip()
[all …]
/external/llvm-project/clang/test/CodeGenCXX/
Dattr-callback.cpp6 __attribute__((callback(1))) void no_args_2(void (*callback1)(void), void (*callback2)(void));
7 …__attribute__((callback(callback1))) void no_args_3(void (*callback1)(void), void (*callback2)(voi…
24 __attribute__((callback(2))) void Base::no_args_2(void (*callback1)(void), void (*callback2)(void))… in no_args_2()
27 __attribute__((callback(callback2))) void Base::no_args_3(void (*callback1)(void), void (*callback2 in no_args_3()
/external/libevent/test/
Dtest-dumpevents.c56 callback2(evutil_socket_t fd, short events, void *arg) in callback2() function
112 ev[2] = event_new(base, pair2[0], EV_WRITE|EV_PERSIST, callback2, NULL); in main()
113 ev[3] = event_new(base, pair2[1], EV_READ, callback2, NULL); in main()
119 ev[7] = event_new(base, -1, EV_PERSIST, callback2, NULL); in main()
120 ev[8] = event_new(base, -1, EV_PERSIST, callback2, NULL); in main()
121 ev[9] = event_new(base, -1, EV_PERSIST, callback2, NULL); in main()
125 ev[11] = event_new(base, -1, 0, callback2, NULL); in main()
128 ev[12] = evsignal_new(base, SIGINT, callback2, NULL); in main()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dsync_handle_registry_unittest.cc32 auto callback2 = base::Bind(callback, &called2); in TEST_F() local
37 registry()->RegisterEvent(&e, callback2); in TEST_F()
54 registry()->UnregisterEvent(&e, callback2); in TEST_F()
64 auto callback2 = base::Bind( in TEST_F() local
74 registry()->RegisterEvent(&e, callback2); in TEST_F()
91 registry()->UnregisterEvent(&e, callback2); in TEST_F()
185 auto callback2 = in TEST_F() local
187 registry->RegisterEvent(e, callback2); in TEST_F()
192 registry->UnregisterEvent(e, callback2); in TEST_F()
216 auto callback2 = base::Bind( in TEST_F() local
[all …]
/external/webrtc/video/adaptation/
Dquality_scaler_resource_unittest.cc139 rtc::scoped_refptr<FakeQualityScalerQpUsageHandlerCallback> callback2 = in TEST_F() local
143 encoder_queue_.PostTask([this, callback1, callback2, callback3] { in TEST_F()
145 quality_scaler_resource_->OnReportQpUsageLow(callback2); in TEST_F()
149 callback2->qp_usage_handled_event()->Wait(kDefaultTimeout); in TEST_F()
156 rtc::scoped_refptr<FakeQualityScalerQpUsageHandlerCallback> callback2 = in TEST_F() local
158 encoder_queue_.PostTask([this, callback1, callback2] { in TEST_F()
164 quality_scaler_resource_->OnReportQpUsageHigh(callback2); in TEST_F()
167 callback2->qp_usage_handled_event()->Wait(kDefaultTimeout); in TEST_F()
/external/libchrome/base/android/javatests/src/org/chromium/base/
DAdvancedMockContextTest.java58 Callback2 callback2 = new Callback2(); in testComponentCallbacksForTargetContext() local
60 context.registerComponentCallbacks(callback2); in testComponentCallbacksForTargetContext()
64 Assert.assertTrue("onLowMemory should have been called.", callback2.mOnLowMemoryCalled); in testComponentCallbacksForTargetContext()
71 callback2.mConfiguration); in testComponentCallbacksForTargetContext()
75 ComponentCallbacks2.TRIM_MEMORY_MODERATE, callback2.mLevel); in testComponentCallbacksForTargetContext()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSurfaceViewTest.java20 private SurfaceHolder.Callback callback2 = new TestCallback(); field in ShadowSurfaceViewTest
36 surfaceHolder.addCallback(callback2); in addCallback()
39 assertThat(fakeSurfaceHolder.getCallbacks()).contains(callback2); in addCallback()
45 surfaceHolder.addCallback(callback2); in removeCallback()
52 assertThat(fakeSurfaceHolder.getCallbacks()).contains(callback2); in removeCallback()
DShadowBluetoothAdapterTest.java117 BluetoothAdapter.LeScanCallback callback2 = newLeScanCallback(); in testLeScan() local
121 bluetoothAdapter.startLeScan(callback2); in testLeScan()
122 assertThat(shadowBluetoothAdapter.getLeScanCallbacks()).containsExactly(callback1, callback2); in testLeScan()
125 assertThat(shadowBluetoothAdapter.getLeScanCallbacks()).containsExactly(callback2); in testLeScan()
126 bluetoothAdapter.stopLeScan(callback2); in testLeScan()
134 BluetoothAdapter.LeScanCallback callback2 = newLeScanCallback(); in testGetSingleLeScanCallback() local
139 bluetoothAdapter.startLeScan(callback2); in testGetSingleLeScanCallback()
/external/llvm-project/llvm/test/Transforms/Attributor/
Dmisc.ll19 ; CHECK-NEXT: call void @callback2(void (i8*)* noundef bitcast (void (i32*)* @foo to void (i8*)*…
20 ; CHECK-NEXT: call void @callback2(void (i8*)* nonnull [[FP]])
31 call void @callback2(void (i8*)* bitcast (void (i32*)* @foo to void (i8*)*))
32 call void @callback2(void (i8*)* %fp)
47 ; CHECK-NEXT: call void @callback2(void (i8*)* noundef bitcast (void (i32*)* @foo to void (i8*)*…
48 ; CHECK-NEXT: call void @callback2(void (i8*)* [[FP]])
60 call void @callback2(void (i8*)* bitcast (void (i32*)* @foo to void (i8*)*))
61 call void @callback2(void (i8*)* %fp)
91 declare void @callback2(void (i8*)*)
/external/libchrome/base/android/jni_generator/
DtestMultipleJNIAdditionalImport.golden40 const base::android::JavaParamRef<jobject>& callback2);
46 jobject callback2) {
49 base::android::JavaParamRef<jobject>(env, callback2));
55 const base::android::JavaRef<jobject>& callback2) {
66 method_id, callback1.obj(), callback2.obj());
/external/libchrome/base/
Dcancelable_callback_unittest.cc68 base::Closure callback2 = cancelable.callback(); in TEST() local
74 callback2.Run(); in TEST()
148 base::Closure callback2 = cancelable.callback(); in TEST() local
149 ASSERT_FALSE(callback2.is_null()); in TEST()
151 callback2.Run(); in TEST()
/external/adhd/cras/src/tests/
Dalert_unittest.cc15 void callback2(void* arg, void* data);
116 cras_alert_add_callback(alert, &callback2, NULL); in TEST_F()
141 cras_alert_add_callback(alert2, &callback2, alert1); in TEST_F()
170 cras_alert_add_callback(alert2, &callback2, NULL); in TEST_F()
209 void callback2(void* arg, void* data) { in callback2() function
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_unix_events.py1269 callback2 = mock.Mock()
1277 self.assertFalse(callback2.called)
1285 self.watcher.add_child_handler(44, callback2, 147, 18)
1288 self.assertFalse(callback2.called)
1298 self.assertFalse(callback2.called)
1309 self.assertFalse(callback2.called)
1323 self.assertFalse(callback2.called)
1334 callback2.assert_called_once_with(44, 108, 147, 18)
1343 callback2.reset_mock()
1352 self.assertFalse(callback2.called)
[all …]
/external/clang/test/Sema/
Dcallingconv-cast.c43 void (*callback2)(int) = mismatched; in main() local
44 take_callback((callback_t)callback2); in main()
/external/llvm-project/clang/test/Sema/
Dcallingconv-cast.c50 void (*callback2)(int) = mismatched; in main() local
51 take_callback((callback_t)callback2); in main()
Dattr-callback-broken.c21 …ute__((callback(2))) void multiple_cb_2(void (*callback1)(void), void (*callback2)(void)); // expe…
56 …(callback(1))) __attribute__((callback(callback2))) void multiple_cb_2b(void (*callback1)(void), v…
/external/openscreen/discovery/dnssd/impl/
Dquerier_impl_unittest.cc249 StrictMock<MockCallback> callback2; in TEST_F() local
255 querier->StartQuery(service2, &callback2); in TEST_F()
261 querier->StopQuery(service2, &callback2); in TEST_F()
266 StrictMock<MockCallback> callback2; in TEST_F() local
269 EXPECT_CALL(callback2, OnEndpointCreated(_)).Times(1); in TEST_F()
270 querier->StartQuery(service, &callback2); in TEST_F()
271 testing::Mock::VerifyAndClearExpectations(&callback2); in TEST_F()
298 StrictMock<MockCallback> callback2; in TEST_F() local
299 querier->StopQuery(service, &callback2); in TEST_F()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dacountry.c85 static void callback2(void *arg, int status, int timeouts, struct hostent *host);
155 ares_gethostbyname(channel, *argv, AF_INET, callback2, &addr); in main()
242 static void callback2(void *arg, int status, int timeouts, struct hostent *host) in callback2() function
/external/webrtc/api/video_codecs/test/
Dvideo_encoder_software_fallback_wrapper_unittest.cc378 FakeEncodedImageCallback callback2; in TEST_F() local
379 fallback_wrapper_->RegisterEncodeCompleteCallback(&callback2); in TEST_F()
386 EXPECT_EQ(callback2.callback_count_, 1); in TEST_F()
390 EXPECT_EQ(&callback2, fake_encoder_->encode_complete_callback_); in TEST_F()
394 EXPECT_EQ(callback2.callback_count_, 2); in TEST_F()
1009 FakeEncodedImageCallback callback2; in TEST_F() local
1016 EXPECT_CALL(*sw_, RegisterEncodeCompleteCallback(&callback2)); in TEST_F()
1018 wrapper_->RegisterEncodeCompleteCallback(&callback2); in TEST_F()
1043 EXPECT_CALL(*hw_, RegisterEncodeCompleteCallback(&callback2)); in TEST_F()
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/
DCronetClientTransportTest.java111 BidirectionalStream.Callback callback2 = callbackCaptor.getValue(); in shutdownTransport() local
121 callback2.onCanceled(cronetStream1, null); in shutdownTransport()
/external/libchrome/dbus/
Dbus_unittest.cc372 Bus::GetServiceOwnerCallback callback2 = in TEST() local
377 bus->ListenForServiceOwnerChange("org.chromium.TestService", callback2); in TEST()
392 bus->UnlistenForServiceOwnerChange("org.chromium.TestService", callback2); in TEST()
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/
DNonSimpleCallbackListener.java24 void callback2(String string3, String string4); in callback2() method
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/
DNonSimpleCallbackListenerImpl.java36 public void callback2(String string3, String string4) { in callback2() method in NonSimpleCallbackListenerImpl
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyClientHandlerTest.java562 PingCallbackImpl callback2 = new PingCallbackImpl(); in ping() local
563 sendPing(callback2); in ping()
578 assertEquals(0, callback2.invocationCount); in ping()
588 assertEquals(1, callback2.invocationCount); in ping()
589 assertEquals(10101, callback2.roundTripTime); in ping()
590 assertNull(callback2.failureCause); in ping()
/external/oboe/tests/
DtestStreamClosedMethods.cpp141 AudioStreamDataCallback *callback2 = mStream->getDataCallback(); in TEST_F() local
142 ASSERT_EQ(callback, callback2); in TEST_F()

12