/external/perfetto/src/ipc/ |
D | deferred_unittest.cc | 38 std::shared_ptr<int> num_callbacks(new int{0}); in TEST() local 39 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 45 (*num_callbacks)++; in TEST() 59 ASSERT_EQ(1, *num_callbacks); in TEST() 65 std::shared_ptr<int> num_callbacks(new int{0}); in TEST() local 66 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 71 (*num_callbacks)++; in TEST() 79 ASSERT_EQ(1, *num_callbacks); in TEST() 84 std::shared_ptr<int> num_callbacks(new int{0}); in TEST() local 87 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() [all …]
|
/external/perfetto/src/base/ |
D | periodic_task_unittest.cc | 36 uint32_t num_callbacks = 0; in TEST() local 41 if (++num_callbacks == 3) in TEST() 47 EXPECT_EQ(num_callbacks, 1u); in TEST() 49 EXPECT_EQ(num_callbacks, 3u); in TEST() 56 uint32_t num_callbacks = 0; in TEST() local 60 ++num_callbacks; in TEST() 66 EXPECT_EQ(num_callbacks, 0u); // No immediate execution. in TEST() 69 EXPECT_EQ(num_callbacks, 1u); in TEST() 80 uint32_t num_callbacks = 0; in TEST() local 85 ++num_callbacks; in TEST() [all …]
|
/external/libchrome/base/ |
D | barrier_closure.cc | 27 BarrierInfo::BarrierInfo(int num_callbacks, OnceClosure done_closure) in BarrierInfo() argument 28 : num_callbacks_left_(num_callbacks), in BarrierInfo()
|
/external/webrtc/modules/audio_device/android/ |
D | audio_device_unittest.cc | 107 FileAudioStream(size_t num_callbacks, in FileAudioStream() argument 113 EXPECT_GE(file_size_in_callbacks(), num_callbacks) in FileAudioStream() 373 int num_callbacks) { in HandleCallbacks() argument 376 num_callbacks_ = num_callbacks; in HandleCallbacks() 933 const int num_callbacks = kFilePlayTimeInSec * kNumCallbacksPerSecond; in TEST_F() local 936 new FileAudioStream(num_callbacks, file_name, playout_sample_rate())); in TEST_F() 937 mock.HandleCallbacks(&test_is_done_, file_audio_stream.get(), num_callbacks); in TEST_F()
|
/external/webrtc/sdk/android/native_unittests/audio_device/ |
D | audio_device_unittest.cc | 104 FileAudioStream(size_t num_callbacks, in FileAudioStream() argument 110 EXPECT_GE(file_size_in_callbacks(), num_callbacks) in FileAudioStream() 370 int num_callbacks) { in HandleCallbacks() argument 373 num_callbacks_ = num_callbacks; in HandleCallbacks() 934 const int num_callbacks = kFilePlayTimeInSec * kNumCallbacksPerSecond; in TEST_F() local 937 new FileAudioStream(num_callbacks, file_name, playout_sample_rate())); in TEST_F() 938 mock.HandleCallbacks(&test_is_done_, file_audio_stream.get(), num_callbacks); in TEST_F()
|
/external/webrtc/sdk/objc/unittests/ |
D | RTCAudioDeviceModule_xctest.mm | 283 __block int num_callbacks = 0; 300 if (++num_callbacks == kNumCallbacks) { 324 __block int num_callbacks = 0; 339 if (++num_callbacks == kNumCallbacks) { 357 __block int num_callbacks = 0; 377 if (++num_callbacks == kNumCallbacks) {
|
/external/vulkan-validation-layers/layers/ |
D | vk_layer_logging.h | 746 static inline VkResult layer_copy_tmp_report_callbacks(const void *pChain, uint32_t *num_callbacks, in layer_copy_tmp_report_callbacks() argument 749 uint32_t n = *num_callbacks = 0; in layer_copy_tmp_report_callbacks() 787 *num_callbacks = n; in layer_copy_tmp_report_callbacks() 799 …e VkResult layer_enable_tmp_report_callbacks(debug_report_data *debug_data, uint32_t num_callbacks, in layer_enable_tmp_report_callbacks() argument 803 for (uint32_t i = 0; i < num_callbacks; i++) { in layer_enable_tmp_report_callbacks() 817 …line void layer_disable_tmp_report_callbacks(debug_report_data *debug_data, uint32_t num_callbacks, in layer_disable_tmp_report_callbacks() argument 819 for (uint32_t i = 0; i < num_callbacks; i++) { in layer_disable_tmp_report_callbacks()
|
/external/webrtc/modules/audio_device/ |
D | audio_device_unittest.cc | 344 int num_callbacks) { in HandleCallbacks() argument 347 num_callbacks_ = num_callbacks; in HandleCallbacks()
|
/external/grpc-grpc/src/core/ext/filters/client_channel/ |
D | client_channel.cc | 2504 const int num_callbacks = has_send_ops + batch->recv_initial_metadata + in add_subchannel_batches_for_pending_batches() local 2508 elem, num_callbacks, has_send_ops /* set_on_complete */); in add_subchannel_batches_for_pending_batches()
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/ |
D | client_channel.cc | 4681 const int num_callbacks = has_send_ops + batch->recv_initial_metadata + in AddSubchannelBatchesForPendingBatches() local 4685 this, num_callbacks, has_send_ops /* set_on_complete */); in AddSubchannelBatchesForPendingBatches()
|