Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/osi/src/
Dfuture.cc31 struct future_t { struct
37 static void future_free(future_t* future); argument
39 future_t* future_new(void) { in future_new()
40 future_t* ret = static_cast<future_t*>(osi_calloc(sizeof(future_t))); in future_new()
55 future_t* future_new_immediate(void* value) { in future_new_immediate()
56 future_t* ret = static_cast<future_t*>(osi_calloc(sizeof(future_t))); in future_new_immediate()
63 void future_ready(future_t* future, void* value) { in future_ready()
72 void* future_await(future_t* future) { in future_await()
85 static void future_free(future_t* future) { in future_free()
/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_future.h44 std::function<void*(future_t* future)> body{
45 [this](future_t* /* future */) { return return_value; }};
46 void* operator()(future_t* future) { return body(future); } in operator()
54 future_t* return_value{0};
55 std::function<future_t*(void)> body{[this](void) { return return_value; }};
56 future_t* operator()(void) { return body(); } in operator()
64 future_t* return_value{0};
65 std::function<future_t*(void* value)> body{[this](void* /* value */) {
69 future_t* operator()(void* value) { return body(value); } in operator()
77 std::function<void(future_t* future, void* value)> body{
[all …]
Dmock_osi_future.cc45 void* future_await(future_t* future) { in future_await()
49 future_t* future_new(void) { in future_new()
53 future_t* future_new_immediate(void* value) { in future_new_immediate()
57 void future_ready(future_t* future, void* value) { in future_ready()
Dmock_btif_stack_manager.cc26 static future_t* hack_future;
28 future_t* stack_manager_get_hack_future() { return hack_future; } in stack_manager_get_hack_future()
/packages/modules/Bluetooth/system/osi/include/
Dfuture.h21 typedef struct future_t future_t; typedef
27 future_t* future_new(void);
32 future_t* future_new_immediate(void* value);
37 void future_ready(future_t* future, void* value);
41 void* future_await(future_t* async_result);
/packages/modules/Bluetooth/system/device/src/
Ddevice_iot_config_int.h62 struct future_t;
67 future_t* device_iot_config_module_init(void);
68 future_t* device_iot_config_module_start_up(void);
69 future_t* device_iot_config_module_shut_down(void);
70 future_t* device_iot_config_module_clean_up(void);
Ddevice_iot_config_int.cc60 future_t* device_iot_config_module_init(void) { in device_iot_config_module_init()
153 future_t* device_iot_config_module_start_up(void) { in device_iot_config_module_start_up()
158 future_t* device_iot_config_module_shut_down(void) { in device_iot_config_module_shut_down()
164 future_t* device_iot_config_module_clean_up(void) { in device_iot_config_module_clean_up()
Dinterop.cc291 static future_t* interop_init(void) { in interop_init()
299 static future_t* interop_clean_up(void) { in interop_clean_up()
/packages/modules/Bluetooth/system/osi/test/
Dfuture_test.cc35 future_ready((future_t*)context, (void*)pass_back_data0); in post_to_future()
39 future_t* future = future_new(); in TEST_F()
52 future_t* future = future_new_immediate((void*)pass_back_data1); in TEST_F()
Dfixed_queue_test.cc16 static future_t* received_message_future = NULL;
/packages/modules/Bluetooth/system/rust/src/core/ffi/
Dmodule.cc46 void FutureReady(future_t& future) { future_ready(&future, FUTURE_SUCCESS); } in FutureReady()
52 future_t* Start() { in Start()
73 future_t* Stop() { in Stop()
Dmodule.h29 void FutureReady(future_t& future);
/packages/modules/Bluetooth/system/btcore/src/
Dosi_module.cc29 static future_t* osi_init(void) { return future_new_immediate(FUTURE_SUCCESS); } in osi_init()
31 static future_t* osi_clean_up(void) { in osi_clean_up()
Dmodule.cc141 future_t* future = function(); in call_lifecycle_function()
/packages/modules/Bluetooth/system/main/shim/
Dshim.cc36 static future_t* ShimModuleStartUp() { in ShimModuleStartUp()
46 static future_t* GeneralShutDown() { in GeneralShutDown()
Dshim.h27 constexpr future_t* kReturnImmediate = nullptr;
/packages/modules/Bluetooth/system/btif/src/
Dstack_manager.cc134 static future_t* hack_future;
286 future_t* local_hack_future = future_new(); in event_start_up_stack()
345 future_t* local_hack_future = future_new(); in event_shut_down_stack()
481 future_t* stack_manager_get_hack_future() { return hack_future; } in stack_manager_get_hack_future()
Dbtif_config.cc148 static future_t* init(void) { in init()
157 static future_t* shut_down(void) { return future_new_immediate(FUTURE_SUCCESS); } in shut_down()
159 static future_t* clean_up(void) { in clean_up()
/packages/modules/Bluetooth/system/main/
Dstack_config.cc58 static future_t* init() { in init()
80 static future_t* clean_up() { in clean_up()
/packages/modules/Bluetooth/system/test/stub/
Dosi.cc196 future_t* future_new(void) { in future_new()
200 future_t* future_new_immediate(void* value) { in future_new_immediate()
204 void future_ready(future_t* future, void* value) { inc_func_call_count(__func__); } in future_ready()
207 void* future_await(future_t* future) { in future_await()
/packages/modules/Bluetooth/system/btif/include/
Dstack_manager_t.h47 future_t* stack_manager_get_hack_future();
/packages/modules/Bluetooth/system/btcore/include/
Dmodule.h25 typedef future_t* (*module_lifecycle_fn)(void);
/packages/modules/Bluetooth/system/osi/test/fuzzers/future/
Dfuzz_future.cc37 future_t* future = nullptr; in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/osi/test/fuzzers/fixed_queue/
Dfuzz_fixed_queue.cc29 static future_t* received_message_future = nullptr;
/packages/modules/Bluetooth/system/device/test/
Ddevice_iot_config_test.cc51 struct future_t { struct
52 future_t(void* /*value*/) {} in future_t() argument
57 struct future_t placeholder_future(NULL); argument
80 test::mock::osi_future::future_new_immediate.body = [&](void* /*value*/) -> future_t* { in SetUp()
798 test::mock::osi_future::future_new_immediate.body = [&](void* /*value*/) -> future_t* { in SetUp()