Home
last modified time | relevance | path

Searched defs:promise (Results 1 – 25 of 74) sorted by relevance

123

/packages/modules/Bluetooth/system/test/headless/
Dbt_stack_info.cc31 std::promise<pid_t> promise; in BtStackInfo() local
34 [](std::promise<pid_t> promise) { in BtStackInfo()
42 std::promise<pid_t> promise; in BtStackInfo() local
45 [](std::promise<pid_t> promise) { promise.set_value(getpid()); }, in BtStackInfo()
/packages/modules/Bluetooth/system/gd/os/linux_generic/
Dalarm_timerfd_unittest.cc83 auto promise = std::make_unique<std::promise<void>>(); in TEST_F() local
90 auto promise = std::make_unique<std::promise<void>>(); in TEST_F() local
98 auto promise = std::promise<void>(); in TEST_F() local
102 [](std::shared_ptr<Alarm> alarm, std::promise<void> promise) { in TEST_F()
114 auto promise = std::make_unique<std::promise<void>>(); in TEST_F() local
122 auto promise = std::make_unique<std::promise<void>>(); in TEST_F() local
145 auto promise = std::make_unique<std::promise<void>>(); in TEST_F() local
149 [](std::shared_ptr<Alarm> alarm2, std::unique_ptr<std::promise<void>> promise) { in TEST_F()
Dalarm_unittest.cc70 std::promise<void> promise; in TEST_F() local
87 std::promise<void> promise; in TEST_F() local
91 [](std::shared_ptr<Alarm> alarm, std::promise<void> promise) { in TEST_F()
106 std::promise<void> promise; in TEST_F() local
136 auto promise = std::make_unique<std::promise<void>>(); in TEST_F() local
144 std::unique_ptr<std::promise<void>> promise2) { in TEST_F()
Drepeating_alarm_unittest.cc50 std::promise<void> promise; in VerifyMultipleDelayedTasks() local
74 std::promise<void>* promise, in verify_delayed_tasks()
101 std::promise<void> promise; in TEST_F() local
119 std::promise<void> promise; in TEST_F() local
123 [](RepeatingAlarm* alarm, std::promise<void>* promise) { in TEST_F()
136 std::promise<void> promise; in TEST_F() local
Dqueue_unittest.cc88 std::promise<void> promise; in UnregisterEnqueue() local
135 void handle_unregister_enqueue(std::promise<void> promise) { in handle_unregister_enqueue()
154 std::promise<void> promise; in UnregisterDequeue() local
200 void handle_unregister_dequeue(std::promise<void> promise) { in handle_unregister_dequeue()
728 std::promise<void> promise; in TEST_F() local
732 [](os::Handler* dequeue_handler, Queue<std::string>* queue, std::promise<void>* promise) { in TEST_F()
734 [](Queue<std::string>* queue, std::promise<void>* promise) { in TEST_F()
888 std::promise<void> promise; in SynchronizeHandler() local
890 …handler_->Post(common::BindOnce([](std::promise<void> promise) { promise.set_value(); }, std::move… in SynchronizeHandler()
/packages/modules/Bluetooth/system/gd/
Dstack_manager.cc45 std::promise<void> promise; in StartUp() local
65 …ckManager::handle_start_up(ModuleList* modules, Thread* stack_thread, std::promise<void> promise) { in handle_start_up()
73 std::promise<void> promise; in ShutDown() local
94 void StackManager::handle_shut_down(std::promise<void> promise) { in handle_shut_down()
Dmodule_gdx_unittest.cc275 std::promise promise = std::promise<void>(); in sync_main_handler() local
282 std::promise promise = std::promise<void>(); in sync_jni_handler() local
322 [](std::promise<pid_t> promise) { promise.set_value(base::PlatformThread::CurrentId()); }, in get_handler_tid()
482 [](std::promise<void> promise) { in TEST_F()
518 [](std::promise<void> promise) { in TEST_F()
554 [](std::promise<void> promise) { in TEST_F()
590 [](std::promise<void> promise) { in TEST_F()
626 [](std::promise<void> promise) { in TEST_F()
662 [](std::promise<void> promise) { in TEST_F()
Dmodule_state_dumper_unittest.cc93 std::promise promise = std::promise<void>(); in sync_main_handler() local
125 [](std::promise<pid_t> promise) { promise.set_value(base::PlatformThread::CurrentId()); }, in get_handler_tid()
/packages/modules/Bluetooth/system/gd/common/
Dbidi_queue_unittest.cc69 std::promise<void>* promise = new std::promise<void>(); in Send() local
79 std::promise<TB*>* promise = new std::promise<TB*>(); in Receive() local
86 void handle_send(TA* value, std::promise<void>* promise) { in handle_send()
96 std::unique_ptr<TA> handle_register_enqueue(TA* value, std::promise<void>* promise) { in handle_register_enqueue()
102 void handle_receive(std::promise<TB*>* promise) { in handle_receive()
109 void handle_register_dequeue(std::promise<TB*>* promise) { in handle_register_dequeue()
/packages/modules/Bluetooth/system/common/
Drepeating_timer.cc80 std::promise<void> promise; in Cancel() local
86 std::promise<void> promise; in CancelAndWait() local
93 void RepeatingTimer::CancelHelper(std::promise<void> promise) { in CancelHelper()
110 void RepeatingTimer::CancelClosure(std::promise<void> promise) { in CancelClosure()
Drepeating_timer_unittest.cc40 void IncreaseTaskCounter(int scheduled_tasks, std::promise<void>* promise) { in IncreaseTaskCounter()
47 void GetName(std::string* name, std::promise<void>* promise) { in GetName()
54 void SleepAndIncreaseCounter(std::promise<void>* promise, int sleep_ms) { in SleepAndIncreaseCounter()
63 std::promise<void>* promise) { in VerifyDelayTimeAndSleep()
/packages/modules/Bluetooth/system/btif/src/
Dstack_manager.cc153 std::promise<void> promise; in init_stack() local
177 std::promise<void> promise; in clean_up_stack() local
255 static void event_init_stack(std::promise<void> promise, in event_init_stack()
394 static void event_clean_up_stack(std::promise<void> promise, in event_clean_up_stack()
/packages/modules/Bluetooth/system/test/headless/sdp/
Dsdp.cc35 static void bta_jv_start_discovery_callback(std::promise<tSDP_STATUS>* promise, in bta_jv_start_discovery_callback()
59 std::promise<tSDP_STATUS> promise; in sdp_query_uuid() local
/packages/modules/Bluetooth/system/main/test/
Dmain_shim_dumpsys_test.cc65 std::promise<void> promise; in TEST_F() local
75 std::promise<void> promise; in TEST_F() local
/packages/modules/Bluetooth/system/gd/hci/
Dremote_name_request_test.cc98 common::ContextualOnceCallback<void(T...)> promiseCallback(std::promise<void> promise) { in promiseCallback()
100 [](std::promise<void> promise, T... /* args */) { promise.set_value(); }, in promiseCallback()
106 std::promise<std::tuple<T...>> promise) { in capturingPromiseCallback()
108 [](std::promise<std::tuple<T...>> promise, T... args) { in capturingPromiseCallback()
115 common::ContextualOnceCallback<void(T)> capturingPromiseCallback(std::promise<T> promise) { in capturingPromiseCallback()
117 [](std::promise<T> promise, T arg) { promise.set_value(arg); }, std::move(promise)); in capturingPromiseCallback()
Dacl_manager_unittest.cc179 std::promise<void> promise; in sync_client_handler() local
224 std::promise<void> promise; in SendAclData() local
229 [](decltype(queue_end) queue_end, uint16_t handle, std::promise<void> promise) { in SendAclData()
255 std::promise<void> promise; in TearDown() local
261 std::promise<void> promise; in TearDown() local
456 std::promise<void> promise; in sync_client_handler() local
532 auto promise = std::promise<void>(); in TEST_F() local
Dacl_manager.cc218 void AclManager::UnregisterCallbacks(ConnectionCallbacks* callbacks, std::promise<void> promise) { in UnregisterCallbacks()
246 void AclManager::UnregisterLeCallbacks(LeConnectionCallbacks* callbacks, std::promise<void> promise in UnregisterLeCallbacks()
252 LeAcceptlistCallbacks* callbacks, std::promise<void> promise) { in UnregisterLeAcceptlistCallbacks()
272 void AclManager::IsOnBackgroundList(AddressWithType address_with_type, std::promise<bool> promise) { in IsOnBackgroundList()
450std::promise<flatbuffers::Offset<AclManagerData>> promise, flatbuffers::FlatBufferBuilder* fb_buil… in Dump()
483 std::promise<flatbuffers::Offset<AclManagerData>> promise; in GetDumpsysData() local
/packages/modules/Bluetooth/system/gd/l2cap/fuzz/
Dfuzz_dynamic_channel_manager_impl.h81 …nFail(l2cap::classic::DynamicChannelManager::ConnectionResult result, std::promise<void> promise) { in SetConnectionOnFail()
86 …d SetConnectionOnOpen(std::unique_ptr<l2cap::DynamicChannel> channel, std::promise<void> promise) { in SetConnectionOnOpen()
/packages/modules/Bluetooth/system/gd/shim/
Ddumpsys.cc149 void Dumpsys::impl::DumpWithArgsSync(int fd, const char** args, std::promise<void> promise) { in DumpWithArgsSync()
173 std::promise<void> promise; in Dump() local
180 void Dumpsys::Dump(int fd, const char** args, std::promise<void> promise) { in Dump()
Ddumpsys_test.cc110 std::promise<void> promise; in TEST_F() local
127 std::promise<void> promise; in TEST_F() local
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dacl_scheduler_test.cc74 …ContextualOnceCallback<void(std::string)> promiseCallbackTakingString(std::promise<void> promise) { in promiseCallbackTakingString()
76 [](std::promise<void> promise, std::string /* _ */) { promise.set_value(); }, in promiseCallbackTakingString()
88 common::ContextualOnceCallback<void()> promiseCallback(std::promise<void> promise) { in promiseCallback()
89 …return client_handler_->BindOnce([](std::promise<void> promise) { promise.set_value(); }, std::mov… in promiseCallback()
/packages/modules/Bluetooth/system/test/common/
Dsync_main_handler.cc25 std::promise promise = std::promise<void>(); in sync_main_handler() local
/packages/modules/Bluetooth/system/gd/l2cap/le/
Dfacade.cc237 std::promise<void> promise; in SendPacket() local
251 std::promise<void> promise) { in enqueue_callback()
391 std::promise<void> promise; in SendPacket() local
405 std::promise<void> promise) { in enqueue_callback()
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/
Dsignalling_manager_test.cc39 std::promise<void> promise; in SyncHandler() local
/packages/modules/Bluetooth/system/main/shim/
Ddumpsys.cc64 std::promise<void> promise; in Dump() local

123