Home
last modified time | relevance | path

Searched refs:Task (Results 1 – 24 of 24) sorted by relevance

/system/chre/platform/linux/include/chre/platform/linux/task_util/
Dtask.h37 class Task {
44 Task() in Task() function
60 Task(const TaskFunction &func, std::chrono::nanoseconds intervalOrDelay,
68 Task(const Task &rhs);
76 Task &operator=(const Task &rhs);
138 inline bool operator<(const Task &rhs) const {
142 inline bool operator>(const Task &rhs) const {
146 inline bool operator<=(const Task &rhs) const {
150 inline bool operator>=(const Task &rhs) const {
Dtask_manager.h33 using task_manager_internal::Task;
68 const Task::TaskFunction &func,
104 PriorityQueue<Task, std::greater<Task>> mQueue;
109 Task *mCurrentTask;
/system/chre/platform/linux/tests/
Dtask_test.cc26 using chre::task_manager_internal::Task;
32 TEST(Task, Execute) { in TEST() argument
35 Task task(incrementGVar, waitTime, 0); in TEST()
52 TEST(Task, ExecuteNoRepeat) { in TEST() argument
55 Task task(incrementGVar, waitTime, 0); in TEST()
63 TEST(Task, ComparisonOperators) { in TEST() argument
65 Task tasks[numTasks] = {Task(incrementGVar, std::chrono::nanoseconds(0), 0), in TEST()
66 Task(incrementGVar, std::chrono::nanoseconds(10), 1), in TEST()
67 Task(incrementGVar, std::chrono::nanoseconds(20), 2), in TEST()
68 Task(incrementGVar, std::chrono::nanoseconds(30), 3), in TEST()
[all …]
/system/chre/platform/linux/task_util/
Dtask.cc22 Task::Task(const TaskFunction &func, std::chrono::nanoseconds intervalOrDelay, in Task() function in chre::task_manager_internal::Task
31 Task::Task(const Task &rhs) in Task() function in chre::task_manager_internal::Task
38 Task &Task::operator=(const Task &rhs) { in operator =()
40 Task rhsCopy(rhs); in operator =()
55 void Task::cancel() { in cancel()
61 void Task::execute() { in execute()
Dtask_manager.cc27 : mQueue(std::greater<Task>()), in TaskManager()
39 const Task::TaskFunction &func, std::chrono::nanoseconds intervalOrDelay, in addTask()
52 Task task(func, intervalOrDelay, returnId, isOneShot); in addTask()
116 Task task; in run()
/system/core/fastboot/
Dtask.h33 class Task {
35 Task() = default;
46 virtual ~Task() = default;
49 class FlashTask : public Task {
71 class RebootTask : public Task {
85 class OptimizedFlashSuperTask : public Task {
92 const FlashingPlan* fp, std::vector<std::unique_ptr<Task>>& tasks);
94 const std::vector<std::unique_ptr<Task>>& tasks);
107 class UpdateSuperTask : public Task {
119 class ResizeTask : public Task {
[all …]
Dfastboot.h117 std::vector<std::unique_ptr<Task>> CollectTasks();
124 std::vector<std::unique_ptr<Task>>& tasks);
126 std::vector<std::unique_ptr<Task>> CollectTasksFromFastbootInfo();
127 std::vector<std::unique_ptr<Task>> CollectTasksFromImageList();
131 std::vector<std::unique_ptr<Task>> tasks_;
173 std::unique_ptr<Task> ParseFastbootInfoLine(const FlashingPlan* fp,
175 bool AddResizeTasks(const FlashingPlan* fp, std::vector<std::unique_ptr<Task>>& tasks);
176 std::vector<std::unique_ptr<Task>> ParseFastbootInfo(const FlashingPlan* fp,
Dtask_test.cpp45 static std::vector<std::unique_ptr<Task>> collectTasks(FlashingPlan* fp, in collectTasks()
51 std::vector<std::unique_ptr<Task>> tasks; in collectTasks()
58 std::unique_ptr<Task> ParseCommand(FlashingPlan* fp, std::string command) { in ParseCommand()
65 static bool compareTaskList(std::vector<std::unique_ptr<Task>>& tasks_a, in compareTaskList()
66 std::vector<std::unique_ptr<Task>>& tasks_b) { in compareTaskList()
81 static std::string tasksToString(std::vector<std::unique_ptr<Task>>& tasks) { in tasksToString()
94 std::vector<std::unique_ptr<Task>> tasks = collectTasks(fp.get(), commands); in TEST_F()
164 std::vector<std::unique_ptr<Task>> tasks = collectTasks(fp.get(), commands); in TEST_F()
183 std::vector<std::unique_ptr<Task>> tasks = collectTasks(fp.get(), commands); in TEST_F()
257 std::unique_ptr<Task> task = in TEST_F()
[all …]
Dfastboot.cpp1646 std::unique_ptr<Task> ParseFastbootInfoLine(const FlashingPlan* fp, in ParseFastbootInfoLine()
1651 std::unique_ptr<Task> task; in ParseFastbootInfoLine()
1669 bool AddResizeTasks(const FlashingPlan* fp, std::vector<std::unique_ptr<Task>>* tasks) { in AddResizeTasks()
1672 std::vector<std::unique_ptr<Task>> resize_tasks; in AddResizeTasks()
1740 std::vector<std::unique_ptr<Task>> ParseFastbootInfo(const FlashingPlan* fp, in ParseFastbootInfo()
1742 std::vector<std::unique_ptr<Task>> tasks; in ParseFastbootInfo()
1804 std::vector<std::unique_ptr<Task>> FlashAllTool::CollectTasks() { in CollectTasks()
1805 std::vector<std::unique_ptr<Task>> tasks; in CollectTasks()
1876 std::vector<std::unique_ptr<Task>> FlashAllTool::CollectTasksFromImageList() { in CollectTasksFromImageList()
1880 std::vector<std::unique_ptr<Task>> tasks; in CollectTasksFromImageList()
[all …]
Dtask.cpp143 const std::vector<std::unique_ptr<Task>>& tasks) { in CanOptimize()
164 const FlashingPlan* fp, std::vector<std::unique_ptr<Task>>& tasks) { in Initialize()
/system/tools/aidl/
Doptions.cpp355 task_ = Options::Task::COMPILE; in Options()
358 task_ = Options::Task::COMPILE; in Options()
361 task_ = Options::Task::COMPILE; in Options()
364 task_ = Options::Task::COMPILE; in Options()
367 task_ = Options::Task::COMPILE; in Options()
375 task_ = Options::Task::PREPROCESS; in Options()
378 task_ = Options::Task::DUMP_API; in Options()
384 task_ = Options::Task::CHECK_API; in Options()
487 task_ = Task::HELP; in Options()
492 task_ = Task::DUMP_MAPPINGS; in Options()
[all …]
Doptions.h104 enum class Task { HELP, COMPILE, PREPROCESS, DUMP_API, CHECK_API, DUMP_MAPPINGS }; enum
156 Task GetTask() const { return task_; } in GetTask()
226 bool GenApiMapping() const { return task_ == Task::DUMP_MAPPINGS; } in GenApiMapping()
242 Task task_ = Task::COMPILE;
Doptions_unittest.cpp122 EXPECT_EQ(Options::Task::PREPROCESS, options->GetTask()); in TEST()
136 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST()
149 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST()
194 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST()
215 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST()
271 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST()
410 EXPECT_EQ(Options::Task::CHECK_API, options->GetTask()); in TEST()
422 EXPECT_EQ(Options::Task::CHECK_API, options->GetTask()); in TEST()
434 EXPECT_EQ(Options::Task::CHECK_API, options->GetTask()); in TEST()
Daidl.cpp915 case Options::Task::HELP: in aidl_entry()
918 case Options::Task::COMPILE: in aidl_entry()
921 case Options::Task::PREPROCESS: in aidl_entry()
924 case Options::Task::DUMP_API: in aidl_entry()
927 case Options::Task::CHECK_API: in aidl_entry()
930 case Options::Task::DUMP_MAPPINGS: in aidl_entry()
/system/libhidl/base/include/hidl/
DTaskRunner.h27 using Task = std::function<void(void)>; variable
61 bool push(const Task &t);
64 std::shared_ptr<SynchronizedQueue<Task>> mQueue;
/system/libhidl/base/
DTaskRunner.cpp32 mQueue = std::make_shared<SynchronizedQueue<Task>>(limit); in start()
41 bool TaskRunner::push(const Task &t) { in push()
55 Task nextTask; in push()
/system/sepolicy/prebuilts/api/32.0/public/
Dfile.te206 # Task profiles file under /system/etc/task_profiles.json
208 # Task profiles file under /system/etc/task_profiles/task_profiles_*.json
/system/sepolicy/prebuilts/api/33.0/public/
Dfile.te215 # Task profiles file under /system/etc/task_profiles.json
217 # Task profiles file under /system/etc/task_profiles/task_profiles_*.json
/system/sepolicy/prebuilts/api/31.0/public/
Dfile.te206 # Task profiles file under /system/etc/task_profiles.json
208 # Task profiles file under /system/etc/task_profiles/task_profiles_*.json
/system/sepolicy/prebuilts/api/202404/public/
Dfile.te220 # Task profiles file under /system/etc/task_profiles.json
222 # Task profiles file under /system/etc/task_profiles/task_profiles_*.json
/system/sepolicy/public/
Dfile.te241 # Task profiles file under /system/etc/task_profiles.json
243 # Task profiles file under /system/etc/task_profiles/task_profiles_*.json
/system/sepolicy/prebuilts/api/34.0/public/
Dfile.te217 # Task profiles file under /system/etc/task_profiles.json
219 # Task profiles file under /system/etc/task_profiles/task_profiles_*.json
/system/sepolicy/prebuilts/api/29.0/public/
Dfile.te169 # Task profiles file under /system/etc/task_profiles.json
/system/sepolicy/prebuilts/api/30.0/public/
Dfile.te184 # Task profiles file under /system/etc/task_profiles.json