/system/bt/gd/common/ |
D | bidi_queue_unittest.cc | 68 std::promise<void>* Send(TA* value) { in Send() 69 std::promise<void>* promise = new std::promise<void>(); in Send() local 74 common::Unretained(promise))); in Send() 75 return promise; in Send() 78 std::promise<TB*>* Receive() { in Receive() 79 std::promise<TB*>* promise = new std::promise<TB*>(); in Receive() local 81 …&TestBidiQueueEnd<TA, TB>::handle_receive, common::Unretained(this), common::Unretained(promise))); in Receive() 83 return promise; in Receive() 86 void handle_send(TA* value, std::promise<void>* promise) { in handle_send() argument 93 common::Unretained(promise))); in handle_send() [all …]
|
/system/bt/gd/ |
D | stack_manager.cc | 39 std::promise<void> promise; in StartUp() local 40 auto future = promise.get_future(); in StartUp() 42 std::move(promise))); in StartUp() 50 …ckManager::handle_start_up(ModuleList* modules, Thread* stack_thread, std::promise<void> promise) { in handle_start_up() argument 52 promise.set_value(); in handle_start_up() 56 std::promise<void> promise; in ShutDown() local 57 auto future = promise.get_future(); in ShutDown() 58 …t(common::BindOnce(&StackManager::handle_shut_down, common::Unretained(this), std::move(promise))); in ShutDown() 69 void StackManager::handle_shut_down(std::promise<void> promise) { in handle_shut_down() argument 71 promise.set_value(); in handle_shut_down()
|
D | stack_manager.h | 40 void handle_start_up(ModuleList* modules, os::Thread* stack_thread, std::promise<void> promise); 41 void handle_shut_down(std::promise<void> promise);
|
/system/bt/common/ |
D | once_timer.cc | 68 std::promise<void> promise; in Cancel() local 69 CancelHelper(std::move(promise)); in Cancel() 74 std::promise<void> promise; in CancelAndWait() local 75 auto future = promise.get_future(); in CancelAndWait() 76 CancelHelper(std::move(promise)); in CancelAndWait() 81 void OnceTimer::CancelHelper(std::promise<void> promise) { in CancelHelper() argument 85 promise.set_value(); in CancelHelper() 89 CancelClosure(std::move(promise)); in CancelHelper() 94 base::Unretained(this), std::move(promise))); in CancelHelper() 98 void OnceTimer::CancelClosure(std::promise<void> promise) { in CancelClosure() argument [all …]
|
D | repeating_timer.cc | 78 std::promise<void> promise; in Cancel() local 79 CancelHelper(std::move(promise)); in Cancel() 84 std::promise<void> promise; in CancelAndWait() local 85 auto future = promise.get_future(); in CancelAndWait() 86 CancelHelper(std::move(promise)); in CancelAndWait() 91 void RepeatingTimer::CancelHelper(std::promise<void> promise) { in CancelHelper() argument 95 promise.set_value(); in CancelHelper() 99 CancelClosure(std::move(promise)); in CancelHelper() 104 base::Unretained(this), std::move(promise))); in CancelHelper() 108 void RepeatingTimer::CancelClosure(std::promise<void> promise) { in CancelClosure() argument [all …]
|
D | repeating_timer_unittest.cc | 39 void IncreaseTaskCounter(int scheduled_tasks, std::promise<void>* promise) { in IncreaseTaskCounter() argument 42 promise->set_value(); in IncreaseTaskCounter() 46 void GetName(std::string* name, std::promise<void>* promise) { in GetName() argument 50 promise->set_value(); in GetName() 53 void SleepAndIncreaseCounter(std::promise<void>* promise, int sleep_ms) { in SleepAndIncreaseCounter() argument 54 promise->set_value(); in SleepAndIncreaseCounter() 62 std::promise<void>* promise) { in VerifyDelayTimeAndSleep() argument 69 promise->set_value(); in VerifyDelayTimeAndSleep() 101 promise_ = new std::promise<void>(); in SetUp() 117 std::promise<void>* promise_;
|
D | once_timer.h | 81 void CancelHelper(std::promise<void> promise); 82 void CancelClosure(std::promise<void> promise);
|
D | repeating_timer.h | 82 void CancelHelper(std::promise<void> promise); 83 void CancelClosure(std::promise<void> promise);
|
D | once_timer_unittest.cc | 39 void IncreaseTaskCounter(int scheduled_tasks, std::promise<void>* promise) { in IncreaseTaskCounter() argument 42 promise->set_value(); in IncreaseTaskCounter() 46 void GetName(std::string* name, std::promise<void>* promise) { in GetName() argument 50 promise->set_value(); in GetName() 53 void SleepAndIncreaseCounter(std::promise<void>* promise, int sleep_ms) { in SleepAndIncreaseCounter() argument 54 promise->set_value(); in SleepAndIncreaseCounter() 66 promise_ = new std::promise<void>(); in SetUp() 82 std::promise<void>* promise_;
|
/system/bt/gd/os/linux_generic/ |
D | repeating_alarm_unittest.cc | 46 std::promise<void> promise; in VerifyMultipleDelayedTasks() local 47 auto future = promise.get_future(); in VerifyMultipleDelayedTasks() 57 common::Unretained(&promise), in VerifyMultipleDelayedTasks() 69 std::promise<void>* promise, in verify_delayed_tasks() argument 76 promise->set_value(); in verify_delayed_tasks() 96 std::promise<void> promise; in TEST_F() local 97 auto future = promise.get_future(); in TEST_F() 101 …common::Bind(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseco… in TEST_F() 123 std::promise<void> promise; in TEST_F() local 124 auto future = promise.get_future(); in TEST_F() [all …]
|
D | alarm_unittest.cc | 56 std::promise<void> promise; in TEST_F() local 57 auto future = promise.get_future(); in TEST_F() 62 …BindOnce(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(… in TEST_F() 82 std::promise<void> promise; in TEST_F() local 83 auto future = promise.get_future(); in TEST_F() 85 …BindOnce(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(… in TEST_F()
|
D | handler_unittest.cc | 54 std::promise<void> closure_ran; in TEST_F() 57 [](int* val, std::promise<void> closure_ran) { in TEST_F() 71 std::promise<void> closure_started; in TEST_F() 73 std::promise<void> closure_can_continue; in TEST_F() 76 [](int* val, std::promise<void> closure_started, std::future<void> can_continue_future) { in TEST_F() 105 std::promise<void> promise; in TEST_F() local 106 auto future = promise.get_future(); in TEST_F() 107 …auto once_callback = common::BindOnce(&std::promise<void>::set_value, common::Unretained(&promise)… in TEST_F()
|
D | queue_unittest.cc | 72 void RegisterEnqueue(std::unordered_map<int, std::promise<int>>* promise_map) { in RegisterEnqueue() 78 std::promise<void> promise; in UnregisterEnqueue() local 79 auto future = promise.get_future(); in UnregisterEnqueue() 82 …indOnce(&TestEnqueueEnd::handle_unregister_enqueue, common::Unretained(this), std::move(promise))); in UnregisterEnqueue() 117 std::unordered_map<int, std::promise<int>>* promise_map_; 124 void handle_unregister_enqueue(std::promise<void> promise) { in handle_unregister_enqueue() argument 126 promise.set_value(); in handle_unregister_enqueue() 137 void RegisterDequeue(std::unordered_map<int, std::promise<int>>* promise_map) { in RegisterDequeue() 143 std::promise<void> promise; in UnregisterDequeue() local 144 auto future = promise.get_future(); in UnregisterDequeue() [all …]
|
/system/bt/gd/shim/ |
D | dumpsys_test.cc | 111 std::promise<void> promise; in TEST_F() local 112 std::future future = promise.get_future(); in TEST_F() 113 dumpsys_module_->Dump(sv[0], args, std::move(promise)); in TEST_F() 128 std::promise<void> promise; in TEST_F() local 129 std::future future = promise.get_future(); in TEST_F() 130 dumpsys_module_->Dump(sv[0], args, std::move(promise)); in TEST_F()
|
D | dumpsys.cc | 41 void DumpWithArgsSync(int fd, const char** args, std::promise<void> promise); 136 void Dumpsys::impl::DumpWithArgsSync(int fd, const char** args, std::promise<void> promise) { in DumpWithArgsSync() argument 138 promise.set_value(); in DumpWithArgsSync() 145 std::promise<void> promise; in Dump() local 146 auto future = promise.get_future(); in Dump() 147 CallOn(pimpl_.get(), &Dumpsys::impl::DumpWithArgsSync, fd, args, std::move(promise)); in Dump() 151 void Dumpsys::Dump(int fd, const char** args, std::promise<void> promise) { in Dump() argument 152 CallOn(pimpl_.get(), &Dumpsys::impl::DumpWithArgsSync, fd, args, std::move(promise)); in Dump()
|
D | l2cap_test.cc | 68 std::promise<void> connection_closed_promise_; 102 connected_promise_ = std::promise<void>(); in SetConnectionFuture() 111 register_promise_ = std::promise<void>(); in SetRegistrationFuture() 119 …nFail(l2cap::classic::DynamicChannelManager::ConnectionResult result, std::promise<void> promise) { in SetConnectionOnFail() argument 121 promise.set_value(); in SetConnectionOnFail() 124 …d SetConnectionOnOpen(std::unique_ptr<l2cap::DynamicChannel> channel, std::promise<void> promise) { in SetConnectionOnOpen() argument 126 promise.set_value(); in SetConnectionOnOpen() 137 std::promise<void> connected_promise_; 140 std::promise<void> register_promise_; 201 std::promise<uint16_t> promise; in CreateConnection() local [all …]
|
/system/bt/gd/l2cap/classic/internal/ |
D | signalling_manager_test.cc | 39 std::promise<void> promise; in SyncHandler() local 40 auto future = promise.get_future(); in SyncHandler() 41 handler->Post(common::BindOnce(&std::promise<void>::set_value, common::Unretained(&promise))); in SyncHandler()
|
D | fixed_channel_service_manager_test.cc | 60 std::promise<void> promise; in sync_user_handler() local 61 auto future = promise.get_future(); in sync_user_handler() 62 …user_handler_->Post(common::BindOnce(&std::promise<void>::set_value, common::Unretained(&promise))… in sync_user_handler()
|
/system/bt/test/headless/sdp/ |
D | sdp.cc | 33 auto promise = static_cast<std::promise<uint16_t>*>(user_data); in bta_jv_start_discovery_callback() local 34 promise->set_value(result); in bta_jv_start_discovery_callback() 92 std::promise<uint16_t> promise; in sdp_query_uuid() local 93 auto future = promise.get_future(); in sdp_query_uuid() 99 bta_jv_start_discovery_callback, (void*)&promise)) { in sdp_query_uuid()
|
/system/bt/gd/os/ |
D | queue_benchmark.cc | 59 …EnqueueEnd(int64_t count, Queue<std::string>* queue, Handler* handler, std::promise<void>* promise) in TestEnqueueEnd() argument 60 : count_(count), handler_(handler), queue_(queue), promise_(promise) {} in TestEnqueueEnd() 99 std::promise<void>* promise_; 109 …DequeueEnd(int64_t count, Queue<std::string>* queue, Handler* handler, std::promise<void>* promise) in TestDequeueEnd() argument 110 : count_(count), handler_(handler), queue_(queue), promise_(promise) {} in TestDequeueEnd() 133 std::promise<void>* promise_; 146 std::promise<void> dequeue_promise; in BENCHMARK_DEFINE_F() 152 std::promise<void> enqueue_promise; in BENCHMARK_DEFINE_F() 180 std::promise<void> dequeue_promise; in BENCHMARK_DEFINE_F() 186 std::promise<void> enqueue_promise; in BENCHMARK_DEFINE_F()
|
/system/bt/common/benchmark/ |
D | thread_performance_benchmark.cc | 36 static std::unique_ptr<std::promise<void>> g_counter_promise = nullptr; 69 set_up_promise_ = std::make_unique<std::promise<void>>(); in SetUp() 81 std::unique_ptr<std::promise<void>> set_up_promise_; 99 FROM_HERE, base::BindOnce(&std::promise<void>::set_value, in RunMessageLoop() 137 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F() 151 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F() 184 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F() 198 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F() 229 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F() 243 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F() [all …]
|
/system/security/keystore/ |
D | keystore_client_impl.cpp | 183 android::sp<KeystoreResponsePromise> promise(new KeystoreResponsePromise()); in addRandomNumberGeneratorEntropy() local 184 auto future = promise->get_future(); in addRandomNumberGeneratorEntropy() 187 keystore_->addRngEntropy(promise, blob2hidlVec(entropy), flags, &error_code); in addRandomNumberGeneratorEntropy() 204 android::sp<KeyCharacteristicsPromise> promise(new KeyCharacteristicsPromise); in generateKey() local 205 auto future = promise->get_future(); in generateKey() 207 promise, key_name16, in generateKey() 231 android::sp<KeyCharacteristicsPromise> promise(new KeyCharacteristicsPromise); in getKeyCharacteristics() local 232 auto future = promise->get_future(); in getKeyCharacteristics() 234 promise, key_name16, android::security::keymaster::KeymasterBlob(), in getKeyCharacteristics() 259 android::sp<KeyCharacteristicsPromise> promise(new KeyCharacteristicsPromise); in importKey() local [all …]
|
/system/bt/gd/l2cap/le/internal/ |
D | fixed_channel_service_manager_test.cc | 60 std::promise<void> promise; in sync_user_handler() local 61 auto future = promise.get_future(); in sync_user_handler() 62 …user_handler_->Post(common::BindOnce(&std::promise<void>::set_value, common::Unretained(&promise))… in sync_user_handler()
|
/system/security/keystore-engine/ |
D | keystore_backend_binder.cpp | 141 sp<OperationResultPromise> promise(new OperationResultPromise()); in sign() local 142 auto future = promise->get_future(); in sign() 143 binder_result = service->begin(promise, token, key_name16, (int)KeyPurpose::SIGN, in sign() 166 promise = new OperationResultPromise(); in sign() 167 future = promise->get_future(); in sign() 168 binder_result = service->update(promise, handle, KeymasterArguments(params), in sign() 211 promise = new OperationResultPromise(); in sign() 212 future = promise->get_future(); in sign() 215 promise, handle, KeymasterArguments(params), std::vector<uint8_t>() /* input */, in sign() 257 android::sp<KeystoreExportPromise> promise(new KeystoreExportPromise); in get_pubkey() local [all …]
|
/system/bt/btif/include/ |
D | btif_a2dp_source.h | 42 std::promise<void> peer_ready_promise); 53 std::promise<void> peer_ready_promise); 93 std::promise<void> peer_ready_promise);
|