Home
last modified time | relevance | path

Searched refs:TaskProfile (Results 1 – 4 of 4) sorted by relevance

/aosp14/system/core/libprocessgroup/
H A Dtask_profiles.h192 class TaskProfile {
194 TaskProfile(const std::string& name) : name_(name), res_cached_(false) {} in TaskProfile() function
198 void MoveTo(TaskProfile* profile);
217 ApplyProfileAction(const std::vector<std::shared_ptr<TaskProfile>>& profiles) in ApplyProfileAction()
229 std::vector<std::shared_ptr<TaskProfile>> profiles_;
237 TaskProfile* GetProfile(std::string_view name) const;
252 std::map<std::string, std::shared_ptr<TaskProfile>, std::less<>> profiles_;
H A Dtask_profiles_test.cpp185 TEST_P(TaskProfileFixture, TaskProfile) { in TEST_P() argument
194 std::shared_ptr<TaskProfile> tp = std::make_shared<TaskProfile>("test_profile"); in TEST_P()
199 TaskProfile tp2("meta_profile"); in TEST_P()
200 std::vector<std::shared_ptr<TaskProfile>> profiles = {tp}; in TEST_P()
H A Dtask_profiles.cpp693 void TaskProfile::MoveTo(TaskProfile* profile) { in MoveTo()
698 bool TaskProfile::ExecuteForProcess(uid_t uid, pid_t pid) const { in ExecuteForProcess()
708 bool TaskProfile::ExecuteForTask(int tid) const { in ExecuteForTask()
721 bool TaskProfile::ExecuteForUID(uid_t uid) const { in ExecuteForUID()
755 bool TaskProfile::IsValidForProcess(uid_t uid, pid_t pid) const { in IsValidForProcess()
762 bool TaskProfile::IsValidForTask(int tid) const { in IsValidForTask()
857 auto profile = std::make_shared<TaskProfile>(profile_name); in Load()
951 std::vector<std::shared_ptr<TaskProfile>> profiles; in Load()
1000 TaskProfile* profile = GetProfile(name); in SetUserProfiles()
1020 TaskProfile* profile = GetProfile(name); in SetProcessProfiles()
[all …]
H A Dprocessgroup.cpp662 const TaskProfile* tp = TaskProfiles::GetInstance().GetProfile(profile_name); in isProfileValidForProcess()