Home
last modified time | relevance | path

Searched refs:promise (Results 1 – 25 of 40) sorted by relevance

12

/system/bt/gd/os/linux_generic/
Drepeating_alarm_unittest.cc42 std::promise<void> promise; in VerifyMultipleDelayedTasks() local
43 auto future = promise.get_future(); in VerifyMultipleDelayedTasks()
47 … [&counter, &promise, start_time, scheduled_tasks, task_length_ms, interval_between_tasks_ms]() { in VerifyMultipleDelayedTasks()
52 promise.set_value(); in VerifyMultipleDelayedTasks()
73 std::promise<void> promise; in TEST_F() local
74 auto future = promise.get_future(); in TEST_F()
77 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(period_ms)); in TEST_F()
98 std::promise<void> promise; in TEST_F() local
99 auto future = promise.get_future(); in TEST_F()
100 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(10)); in TEST_F()
Dalarm_unittest.cc49 std::promise<void> promise; in TEST_F() local
50 auto future = promise.get_future(); in TEST_F()
54 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(delay_ms)); in TEST_F()
74 std::promise<void> promise; in TEST_F() local
75 auto future = promise.get_future(); in TEST_F()
76 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(10)); in TEST_F()
/system/bt/common/
Donce_timer.cc68 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 …]
Drepeating_timer.cc78 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 …]
Drepeating_timer_unittest.cc39 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_;
Donce_timer.h81 void CancelHelper(std::promise<void> promise);
82 void CancelClosure(std::promise<void> promise);
Drepeating_timer.h82 void CancelHelper(std::promise<void> promise);
83 void CancelClosure(std::promise<void> promise);
Donce_timer_unittest.cc39 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_;
Dmessage_loop_thread_unittest.cc38 void GetThreadId(std::promise<base::PlatformThreadId> thread_id_promise) { in GetThreadId()
42 void GetLinuxTid(std::promise<pid_t> tid_promise) { in GetLinuxTid()
46 void GetName(std::promise<std::string> name_promise) { in GetName()
54 std::promise<void> execution_promise) { in GetSchedulingPolicyAndPriority()
62 void SleepAndGetName(std::promise<std::string> name_promise, int sleep_ms) { in SleepAndGetName()
141 std::promise<std::string> name_promise; in TEST_F()
158 std::promise<base::PlatformThreadId> thread_id_promise; in TEST_F()
194 std::promise<void> execution_promise; in TEST_F()
207 std::promise<pid_t> tid_promise; in TEST_F()
270 std::promise<std::string> name_promise; in TEST_F()
Dmessage_loop_thread.h149 std::promise<void> start_up_promise);
188 void Run(std::promise<void> start_up_promise);
Dmessage_loop_thread.cc44 std::promise<void> start_up_promise; in StartUp()
139 std::promise<void> start_up_promise) { in RunThread()
172 void MessageLoopThread::Run(std::promise<void> start_up_promise) { in Run()
/system/bt/common/benchmark/
Dthread_performance_benchmark.cc36 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 …]
Dtimer_performance_benchmark.cc40 std::shared_ptr<std::promise<void>> g_promise;
67 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
111 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
163 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
216 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
/system/security/keystore/
Dkeystore_client_impl.cpp189 android::sp<KeystoreResponsePromise> promise(new KeystoreResponsePromise()); in addRandomNumberGeneratorEntropy() local
190 auto future = promise->get_future(); in addRandomNumberGeneratorEntropy()
193 keystore_->addRngEntropy(promise, blob2hidlVec(entropy), flags, &error_code); in addRandomNumberGeneratorEntropy()
210 android::sp<KeyCharacteristicsPromise> promise(new KeyCharacteristicsPromise); in generateKey() local
211 auto future = promise->get_future(); in generateKey()
213 promise, key_name16, in generateKey()
237 android::sp<KeyCharacteristicsPromise> promise(new KeyCharacteristicsPromise); in getKeyCharacteristics() local
238 auto future = promise->get_future(); in getKeyCharacteristics()
240 promise, key_name16, android::security::keymaster::KeymasterBlob(), in getKeyCharacteristics()
265 android::sp<KeyCharacteristicsPromise> promise(new KeyCharacteristicsPromise); in importKey() local
[all …]
/system/security/keystore-engine/
Dkeystore_backend_binder.cpp141 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()
214 binder_result = service->finish(promise, handle, KeymasterArguments(params), in sign()
257 android::sp<KeystoreExportPromise> promise(new KeystoreExportPromise); in get_pubkey() local
[all …]
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp94 android::sp<KeystoreExportPromise> promise(new KeystoreExportPromise); in getPublicKey() local
95 auto future = promise->get_future(); in getPublicKey()
97 promise, String16(keyId.c_str()), static_cast<int32_t>(KeyFormat::X509), in getPublicKey()
187 sp<OperationResultPromise> promise(new OperationResultPromise()); in sign() local
188 auto future = promise->get_future(); in sign()
189 binder_result = service->begin(promise, token, key_name16, (int)KeyPurpose::SIGN, in sign()
216 promise = new OperationResultPromise(); in sign()
217 future = promise->get_future(); in sign()
218 binder_result = service->update(promise, handle, KeymasterArguments(params), in sign()
266 promise = new OperationResultPromise(); in sign()
[all …]
/system/bt/common/test/
Dthread_performance_test.cc38 static std::unique_ptr<std::promise<void>> g_counter_promise = nullptr;
53 set_up_promise_ = std::make_unique<std::promise<void>>(); in SetUp()
64 std::unique_ptr<std::promise<void>> set_up_promise_ = nullptr;
82 FROM_HERE, base::Bind(&std::promise<void>::set_value, in RunMessageLoop()
119 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
164 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
209 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
250 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
282 FROM_HERE, base::Bind(&std::promise<void>::set_value, in SetUp()
299 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
[all …]
/system/bt/gd/os/
Dthread_benchmark.cc36 counter_promise_ = std::promise<void>(); in SetUp()
55 std::promise<void> counter_promise_;
79 counter_promise_ = std::promise<void>(); in BENCHMARK_DEFINE_F()
100 counter_promise_ = std::promise<void>(); in BENCHMARK_DEFINE_F()
Dalarm_benchmark.cc44 promise_ = std::promise<void>(); in SetUp()
75 std::promise<void> promise_;
/system/bt/btif/include/
Dbtif_a2dp_source.h42 std::promise<void> peer_ready_promise);
53 std::promise<void> peer_ready_promise);
Dbtif_a2dp_sink.h57 std::promise<void> peer_ready_promise);
68 std::promise<void> peer_ready_promise);
/system/bt/vendor_libs/test_vendor_lib/desktop/
Dtest_environment.h36 void initialize(std::promise<void> barrier);
44 std::promise<void> barrier_;
Droot_canal_main.cc64 std::promise<void> barrier; in main()
/system/security/keystore/include/keystore/
Dkeystore_promises.h31 class CallbackPromise : public BnInterface, public std::promise<Result> {
41 : public BnInterface, public std::promise<std::tuple<Results...>> {
/system/bt/bta/include/
Dbta_hearing_aid_api.h42 virtual void OnAudioSuspend(std::promise<void> do_suspend_promise) = 0;
43 virtual void OnAudioResume(std::promise<void> do_resume_promise) = 0;

12