Home
last modified time | relevance | path

Searched refs:AsyncTaskId (Results 1 – 12 of 12) 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()
368 AsyncTaskId task_id;
379 bool cancel_task_with_lock_held(AsyncTaskId async_task_id) { in cancel_task_with_lock_held()
388 AsyncTaskId scheduleTask(const std::shared_ptr<Task>& task) { in scheduleTask()
415 bool isTaskIdInUse(const AsyncTaskId& task_id) const { in isTaskIdInUse()
486 AsyncTaskId lastTaskId_ = kInvalidTaskId;
488 std::map<AsyncTaskId, std::shared_ptr<Task> > tasks_by_id_;
[all …]
Dtest_model.cc48 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, in TestModel()
52 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, in TestModel()
57 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.h106 AsyncTaskId ScheduleTask(std::chrono::milliseconds delay_ms, const TaskCallback& task);
108 void CancelScheduledTask(AsyncTaskId task);
134 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> event_scheduler);
137 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…
140 void RegisterTaskCancel(std::function<void(AsyncTaskId)> cancel);
416 std::vector<AsyncTaskId> controller_events_;
417 AsyncTaskId timer_tick_task_{};
421 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> schedule_task_;
422 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…
424 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);
Ddual_mode_controller.cc311 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> oneshot_scheduler) { in RegisterTaskScheduler()
316 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback… in RegisterPeriodicTaskScheduler()
321 void DualModeController::RegisterTaskCancel(std::function<void(AsyncTaskId)> task_cancel) { in RegisterTaskCancel()
/system/bt/vendor_libs/test_vendor_lib/desktop/
Dtest_environment.h88 [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;
177 [this](AsyncTaskId task) { async_manager_.CancelAsyncTask(task); }); in initialize_impl()