Home
last modified time | relevance | path

Searched refs:AsyncTaskId (Results 1 – 13 of 13) sorted by relevance

/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dtest_model.h37 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds,
40 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds,
44 std::function<void(AsyncTaskId)> cancel,
104 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds,
107 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds,
110 std::function<void(AsyncTaskId)> cancel_task_;
115 AsyncTaskId timer_tick_task_{kInvalidTaskId};
Dasync_manager.h22 using AsyncTaskId = uint16_t; variable
66 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay,
73 AsyncTaskId ExecAsyncPeriodically(AsyncUserId user_id,
83 bool CancelAsyncTask(AsyncTaskId async_task_id);
Dasync_manager.cc78 static inline AsyncTaskId NextAsyncTaskId(const AsyncTaskId id) { in NextAsyncTaskId()
273 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay, in ExecAsync()
279 AsyncTaskId ExecAsyncPeriodically(AsyncUserId user_id, in ExecAsyncPeriodically()
287 bool CancelAsyncTask(AsyncTaskId async_task_id) { in CancelAsyncTask()
374 AsyncTaskId task_id;
385 AsyncTaskId scheduleTask(const std::shared_ptr<Task>& task) { in scheduleTask()
412 bool isTaskIdInUse(const AsyncTaskId& task_id) const { in isTaskIdInUse()
478 AsyncTaskId lastTaskId_ = kInvalidTaskId;
480 std::map<AsyncTaskId, std::shared_ptr<Task> > tasks_by_id_;
481 std::map<AsyncUserId, std::set<AsyncTaskId>> tasks_by_user_id_;
[all …]
Dtest_model.cc53 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, in TestModel()
57 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, in TestModel()
62 std::function<void(AsyncTaskId)> cancel, in TestModel()
/system/bt/vendor_libs/test_vendor_lib/test/
Dasync_manager_unittest.cc182 AsyncTaskId task1_id = in TEST_F()
193 AsyncTaskId task1_id = in TEST_F()
198 AsyncTaskId task2_id = in TEST_F()
223 AsyncTaskId task1_id = in TEST_F()
226 AsyncTaskId task2_id = in TEST_F()
229 AsyncTaskId task3_id = in TEST_F()
232 AsyncTaskId task4_id = in TEST_F()
235 AsyncTaskId task5_id = in TEST_F()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dlink_layer_controller.h94 AsyncTaskId ScheduleTask(std::chrono::milliseconds delay_ms, const TaskCallback& task);
96 void CancelScheduledTask(AsyncTaskId task);
120 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> event_scheduler);
123 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…
126 void RegisterTaskCancel(std::function<void(AsyncTaskId)> cancel);
333 std::vector<AsyncTaskId> controller_events_;
334 AsyncTaskId timer_tick_task_{};
338 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> schedule_task_;
339 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…
341 std::function<void(AsyncTaskId)> cancel_task_;
[all …]
Ddual_mode_controller.h79 …void RegisterTaskScheduler(std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback…
82 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…
85 void RegisterTaskCancel(std::function<void(AsyncTaskId)> cancel);
Dlink_layer_controller.cc1186 std::function<AsyncTaskId(milliseconds, const TaskCallback&)> in RegisterTaskScheduler()
1191 AsyncTaskId LinkLayerController::ScheduleTask(milliseconds delay_ms, in ScheduleTask()
1202 std::function<AsyncTaskId(milliseconds, milliseconds, const TaskCallback&)> in RegisterPeriodicTaskScheduler()
1207 void LinkLayerController::CancelScheduledTask(AsyncTaskId task_id) { in CancelScheduledTask()
1214 std::function<void(AsyncTaskId)> task_cancel) { in RegisterTaskCancel()
Ddual_mode_controller.cc264 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> oneshot_scheduler) { in RegisterTaskScheduler()
269 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback… in RegisterPeriodicTaskScheduler()
274 void DualModeController::RegisterTaskCancel(std::function<void(AsyncTaskId)> task_cancel) { in RegisterTaskCancel()
/system/bt/vendor_libs/test_vendor_lib/desktop/
Dtest_environment.h74 [this](test_vendor_lib::AsyncTaskId task) {
Dtest_environment.cc32 using test_vendor_lib::AsyncTaskId;
/system/bt/test/rootcanal/
Dbluetooth_hci.h109 [this](test_vendor_lib::AsyncTaskId task) {
Dbluetooth_hci.cc36 using test_vendor_lib::AsyncTaskId;
165 [this](AsyncTaskId task) { async_manager_.CancelAsyncTask(task); }); in initialize_impl()