Home
last modified time | relevance | path

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

123

/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/bt/gd/os/linux_generic/
Dreactor_unittest.cc155 auto future = g_promise->get_future(); in TEST_F() local
159 EXPECT_EQ(future.get(), kReadReadyValue); in TEST_F()
167 auto future = g_promise->get_future(); in TEST_F() local
174 EXPECT_EQ(future.get(), kReadReadyValue); in TEST_F()
187 auto future = g_promise->get_future(); in TEST_F() local
191 future.wait_for(std::chrono::milliseconds(10)); in TEST_F()
193 EXPECT_EQ(future.get(), 2); in TEST_F()
200 auto future = g_promise->get_future(); in TEST_F() local
207 EXPECT_EQ(future.get(), kReadReadyValue); in TEST_F()
216 auto future = g_promise->get_future(); in TEST_F() local
[all …]
Drepeating_alarm_unittest.cc43 auto future = promise.get_future(); in VerifyMultipleDelayedTasks() local
58 future.get(); in VerifyMultipleDelayedTasks()
74 auto future = promise.get_future(); in TEST_F() local
78 future.get(); in TEST_F()
99 auto future = promise.get_future(); in TEST_F() local
101 future.get(); in TEST_F()
Dalarm_unittest.cc50 auto future = promise.get_future(); in TEST_F() local
55 future.get(); in TEST_F()
75 auto future = promise.get_future(); in TEST_F() local
77 future.get(); in TEST_F()
/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/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()
277 std::future<void> set_up_future = set_up_promise_->get_future(); in SetUp()
300 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
326 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()
Dmessage_loop_thread_unittest.cc142 std::future<std::string> name_future = name_promise.get_future(); in TEST_F()
159 std::future<base::PlatformThreadId> thread_id_future = in TEST_F()
195 std::future<void> execution_future = execution_promise.get_future(); in TEST_F()
208 std::future<pid_t> tid_future = tid_promise.get_future(); in TEST_F()
271 std::future<std::string> name_future = name_promise.get_future(); in TEST_F()
Donce_timer.cc75 auto future = promise.get_future(); in CancelAndWait() local
77 future.wait(); in CancelAndWait()
/system/security/keystore/
Dkeystore_client_impl.cpp190 auto future = promise->get_future(); in addRandomNumberGeneratorEntropy() local
199 auto result = future.get(); in addRandomNumberGeneratorEntropy()
211 auto future = promise->get_future(); in generateKey() local
221 auto [km_response, characteristics] = future.get(); in generateKey()
238 auto future = promise->get_future(); in getKeyCharacteristics() local
247 auto [km_response, characteristics] = future.get(); in getKeyCharacteristics()
266 auto future = promise->get_future(); in importKey() local
276 auto [km_response, characteristics] = future.get(); in importKey()
292 auto future = promise->get_future(); in exportKey() local
301 auto export_result = future.get(); in exportKey()
[all …]
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp95 auto future = promise->get_future(); in getPublicKey() local
112 auto export_result = future.get(); in getPublicKey()
188 auto future = promise->get_future(); in sign() local
205 OperationResult result = future.get(); in sign()
217 future = promise->get_future(); in sign()
233 result = future.get(); in sign()
265 future = {}; in sign()
267 future = promise->get_future(); in sign()
285 result = future.get(); in sign()
/system/netd/resolv/
DDnsTlsQueryMap.h48 QueryFuture(Query query, std::future<Result> result) in QueryFuture()
52 std::future<Result> result;
/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/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
/system/bt/btcore/src/
Dmodule.cc142 future_t* future = function(); in call_lifecycle_function() local
145 if (!future) return true; in call_lifecycle_function()
148 return future_await(future); in call_lifecycle_function()
/system/bt/osi/include/
Dfuture.h37 void future_ready(future_t* future, void* value);
/system/bt/gd/os/
Dthread_benchmark.cc80 std::future<void> counter_future = counter_promise_.get_future(); in BENCHMARK_DEFINE_F()
101 std::future<void> counter_future = counter_promise_.get_future(); in BENCHMARK_DEFINE_F()
/system/sepolicy/prebuilts/api/29.0/private/
Duntrusted_app_25.te30 # This will go away in a future Android release
35 # This will go away in a future Android release
42 # This will go away in a future Android release
/system/sepolicy/private/
Duntrusted_app_25.te30 # This will go away in a future Android release
35 # This will go away in a future Android release
42 # This will go away in a future Android release
/system/bpf/bpfloader/
Dbpfloader.rc7 # future, it will have dedicated rlimit to itself and this can be 8MB.

123