/system/chre/platform/linux/include/chre/platform/linux/task_util/ |
D | task.h | 37 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 {
|
D | task_manager.h | 33 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/ |
D | task_test.cc | 26 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/ |
D | task.cc | 22 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()
|
D | task_manager.cc | 27 : 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/ |
D | task.h | 33 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 …]
|
D | fastboot.h | 117 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,
|
D | task_test.cpp | 45 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 …]
|
D | fastboot.cpp | 1646 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 …]
|
D | task.cpp | 143 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/ |
D | options.cpp | 355 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 …]
|
D | options.h | 104 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;
|
D | options_unittest.cpp | 122 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()
|
D | aidl.cpp | 915 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/ |
D | TaskRunner.h | 27 using Task = std::function<void(void)>; variable 61 bool push(const Task &t); 64 std::shared_ptr<SynchronizedQueue<Task>> mQueue;
|
/system/libhidl/base/ |
D | TaskRunner.cpp | 32 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/ |
D | file.te | 206 # 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/ |
D | file.te | 215 # 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/ |
D | file.te | 206 # 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/ |
D | file.te | 220 # Task profiles file under /system/etc/task_profiles.json 222 # Task profiles file under /system/etc/task_profiles/task_profiles_*.json
|
/system/sepolicy/public/ |
D | file.te | 241 # 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/ |
D | file.te | 217 # 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/ |
D | file.te | 169 # Task profiles file under /system/etc/task_profiles.json
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | file.te | 184 # Task profiles file under /system/etc/task_profiles.json
|