Home
last modified time | relevance | path

Searched refs:future (Results 1 – 25 of 128) sorted by relevance

123456

/system/bt/osi/src/
Dfuture.cc36 static void future_free(future_t* future);
63 void future_ready(future_t* future, void* value) { in future_ready() argument
64 CHECK(future != NULL); in future_ready()
65 CHECK(future->ready_can_be_called); in future_ready()
67 future->ready_can_be_called = false; in future_ready()
68 future->result = value; in future_ready()
69 semaphore_post(future->semaphore); in future_ready()
72 void* future_await(future_t* future) { in future_await() argument
73 CHECK(future != NULL); in future_await()
76 if (future->semaphore) semaphore_wait(future->semaphore); in future_await()
[all …]
/system/bt/osi/test/
Dfuture_test.cc40 future_t* future = future_new(); in TEST_F() local
41 ASSERT_TRUE(future != NULL); in TEST_F()
45 worker_thread.DoInThread(FROM_HERE, base::Bind(post_to_future, future)); in TEST_F()
47 EXPECT_EQ(pass_back_data0, future_await(future)); in TEST_F()
53 future_t* future = future_new_immediate((void*)pass_back_data1); in TEST_F() local
54 ASSERT_TRUE(future != NULL); in TEST_F()
55 EXPECT_EQ(pass_back_data1, future_await(future)); in TEST_F()
/system/iorap/src/common/
Dasync_pool.h30 std::deque<std::future<void>> futures_;
57 std::future<void> future = std::move(*it); in Join() local
61 future.get(); in Join()
79 auto future = std::async(std::launch::async, std::forward<T>(u)); in LaunchAsync() local
83 futures_.push_back(std::move(future)); in LaunchAsync()
/system/bt/main/shim/
Dconfig.cc39 auto future = promise.get_future(); in checksum_read() local
47 return future.get(); in checksum_read()
52 auto future = promise.get_future(); in checksum_save() local
59 return future.get(); in checksum_save()
66 auto future = promise.get_future(); in config_new() local
76 return future.get(); in config_new()
81 auto future = promise.get_future(); in config_save() local
88 return future.get(); in config_save()
/system/bt/common/benchmark/
Dthread_performance_benchmark.cc117 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
138 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
152 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
164 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
185 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
199 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
211 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
230 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
244 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
273 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
[all …]
/system/bt/gd/
Dstack_manager.cc40 auto future = promise.get_future(); in StartUp() local
44 auto init_status = future.wait_for(std::chrono::seconds(3)); in StartUp()
57 auto future = promise.get_future(); in ShutDown() local
60 auto stop_status = future.wait_for(std::chrono::seconds(3)); in ShutDown()
/system/bt/gd/os/linux_generic/
Drepeating_alarm_unittest.cc47 auto future = promise.get_future(); in VerifyMultipleDelayedTasks() local
54 future.get(); in VerifyMultipleDelayedTasks()
85 auto future = promise.get_future(); in TEST_F() local
90 future.get(); in TEST_F()
112 auto future = promise.get_future(); in TEST_F() local
115 future.get(); in TEST_F()
Dreactor_unittest.cc200 auto future = g_promise->get_future(); in TEST_F() local
204 EXPECT_EQ(future.get(), kReadReadyValue); in TEST_F()
212 auto future = g_promise->get_future(); in TEST_F() local
219 EXPECT_EQ(future.get(), kReadReadyValue); in TEST_F()
284 auto future = g_promise->get_future(); in TEST_F() local
288 future.wait_for(std::chrono::milliseconds(10)); in TEST_F()
290 EXPECT_EQ(future.get(), 2); in TEST_F()
297 auto future = g_promise->get_future(); in TEST_F() local
304 EXPECT_EQ(future.get(), kReadReadyValue); in TEST_F()
307 future = g_promise->get_future(); in TEST_F()
[all …]
Dhandler_unittest.cc54 auto future = closure_ran.get_future(); in TEST_F() local
62 future.wait(); in TEST_F()
74 [](int* val, std::promise<void> closure_started, std::future<void> can_continue_future) { in TEST_F()
102 auto future = promise.get_future(); in TEST_F() local
105 future.wait(); in TEST_F()
Dalarm_unittest.cc57 auto future = promise.get_future(); in TEST_F() local
63 future.get(); in TEST_F()
83 auto future = promise.get_future(); in TEST_F() local
86 future.get(); in TEST_F()
/system/security/keystore-engine/
Dkeystore_backend_binder.cpp142 auto future = promise->get_future(); in sign() local
156 OperationResult result = future.get(); in sign()
165 future = {}; in sign()
167 future = promise->get_future(); in sign()
180 result = future.get(); in sign()
210 future = {}; in sign()
212 future = promise->get_future(); in sign()
228 result = future.get(); in sign()
258 auto future = promise->get_future(); in get_pubkey() local
273 auto export_result = future.get(); in get_pubkey()
/system/security/keystore/tests/
Dconfirmationui_invocation_test.cpp68 auto future = listener->get_future(); in TEST() local
79 auto fstatus = future.wait_for(2s); in TEST()
88 future.wait(); in TEST()
89 auto [rc, dataThatWasConfirmed] = future.get(); in TEST()
/system/bt/common/test/
Dthread_performance_test.cc100 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
120 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
145 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
165 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
191 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
210 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
251 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
278 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
301 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
327 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
[all …]
/system/bt/common/
Drepeating_timer_unittest.cc81 auto future = promise_->get_future(); in VerifyMultipleDelayedTasks() local
90 future.get(); in VerifyMultipleDelayedTasks()
138 auto future = promise_->get_future(); in TEST_F() local
147 future.get(); in TEST_F()
200 auto future = promise_->get_future(); in TEST_F() local
207 future.wait(); in TEST_F()
235 auto future = promise_->get_future(); in TEST_F() local
244 future.wait(); in TEST_F()
Donce_timer_unittest.cc93 auto future = promise_->get_future(); in TEST_F() local
102 future.get(); in TEST_F()
162 auto future = promise_->get_future(); in TEST_F() local
170 future.get(); in TEST_F()
214 auto future = promise_->get_future(); in TEST_F() local
223 future.get(); in TEST_F()
/system/security/keystore/
Dkeystore_client_impl.cpp184 auto future = promise->get_future(); in addRandomNumberGeneratorEntropy() local
193 auto result = future.get(); in addRandomNumberGeneratorEntropy()
205 auto future = promise->get_future(); in generateKey() local
215 auto [km_response, characteristics] = future.get(); in generateKey()
232 auto future = promise->get_future(); in getKeyCharacteristics() local
241 auto [km_response, characteristics] = future.get(); in getKeyCharacteristics()
260 auto future = promise->get_future(); in importKey() local
270 auto [km_response, characteristics] = future.get(); in importKey()
286 auto future = promise->get_future(); in exportKey() local
295 auto export_result = future.get(); in exportKey()
[all …]
/system/bt/gd/l2cap/classic/internal/
Dsignalling_manager_test.cc40 auto future = promise.get_future(); in SyncHandler() local
42 future.wait_for(std::chrono::milliseconds(3)); in SyncHandler()
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp151 auto future = promise->get_future(); in getPublicKey() local
168 auto export_result = future.get(); in getPublicKey()
231 auto future = promise->get_future(); in sign() local
248 OperationResult result = future.get(); in sign()
260 future = promise->get_future(); in sign()
276 result = future.get(); in sign()
308 future = {}; in sign()
310 future = promise->get_future(); in sign()
328 result = future.get(); in sign()
/system/bt/gd/storage/
Dlegacy_test.cc126 auto future = promise.get_future(); in TEST_F() local
129 future.wait(); in TEST_F()
135 auto future = promise.get_future(); in TEST_F() local
138 future.wait(); in TEST_F()
143 auto future = promise.get_future(); in TEST_F() local
146 future.wait(); in TEST_F()
152 auto future = promise.get_future(); in TEST_F() local
155 future.wait(); in TEST_F()
/system/bt/test/headless/read/
Dname.cc53 auto future = promise_.get_future(); in Run() local
62 tBTM_REMOTE_DEV_NAME name_packet = future.get(); in Run()
/system/bt/gd/shim/
Dl2cap_test.cc136 std::future<void> connected_future_;
139 std::future<void> register_future_;
198 auto future = promise.get_future(); in CreateConnection() local
205 return future.get(); in CreateConnection()
376 auto future = test_link_.connection_closed_promise_.get_future(); in TEST_F() local
378 future.wait(); in TEST_F()
408 auto future = promise.get_future(); in TEST_F() local
427 uint16_t psm = future.get(); in TEST_F()
433 auto future = promise.get_future(); in TEST_F() local
452 uint16_t psm = future.get(); in TEST_F()
/system/sepolicy/prebuilts/api/28.0/private/
Duntrusted_app_25.te30 # This will go away in a future Android release
34 # This will go away in a future Android release
41 # This will go away in a future Android release
/system/bt/gd/cert/
Devent_callback_stream.py54 self.future = self.executor.submit(EventCallbackStream._event_loop,
119 result = self.future.result()
/system/sepolicy/prebuilts/api/26.0/private/
Duntrusted_app_25.te34 # This will go away in a future Android release
38 # This will go away in a future Android release
45 # This will go away in a future Android release
/system/sepolicy/prebuilts/api/27.0/private/
Duntrusted_app_25.te34 # This will go away in a future Android release
38 # This will go away in a future Android release
45 # This will go away in a future Android release

123456