Home
last modified time | relevance | path

Searched refs:SetTaskProfiles (Results 1 – 8 of 8) sorted by relevance

/system/core/libprocessgroup/
Dsched_policy.cpp49 return SetTaskProfiles(tid, {"CPUSET_SP_BACKGROUND"}, true) ? 0 : -1; in set_cpuset_policy()
53 return SetTaskProfiles(tid, {"CPUSET_SP_FOREGROUND"}, true) ? 0 : -1; in set_cpuset_policy()
55 return SetTaskProfiles(tid, {"CPUSET_SP_TOP_APP"}, true) ? 0 : -1; in set_cpuset_policy()
57 return SetTaskProfiles(tid, {"CPUSET_SP_SYSTEM"}, true) ? 0 : -1; in set_cpuset_policy()
59 return SetTaskProfiles(tid, {"CPUSET_SP_RESTRICTED"}, true) ? 0 : -1; in set_cpuset_policy()
120 return SetTaskProfiles(tid, {"SCHED_SP_BACKGROUND"}, true) ? 0 : -1; in set_sched_policy()
124 return SetTaskProfiles(tid, {"SCHED_SP_FOREGROUND"}, true) ? 0 : -1; in set_sched_policy()
126 return SetTaskProfiles(tid, {"SCHED_SP_TOP_APP"}, true) ? 0 : -1; in set_sched_policy()
128 return SetTaskProfiles(tid, {"SCHED_SP_SYSTEM"}, true) ? 0 : -1; in set_sched_policy()
130 return SetTaskProfiles(tid, {"SCHED_SP_RT_APP"}, true) ? 0 : -1; in set_sched_policy()
[all …]
Dprocessgroup.cpp122 bool SetTaskProfiles(int tid, const std::vector<std::string>& profiles, bool use_fd_cache) { in SetTaskProfiles() function
123 return TaskProfiles::GetInstance().SetTaskProfiles(tid, profiles, use_fd_cache); in SetTaskProfiles()
Dtask_profiles.h198 bool SetTaskProfiles(int tid, const std::vector<std::string>& profiles, bool use_fd_cache);
Dtask_profiles.cpp612 bool TaskProfiles::SetTaskProfiles(int tid, const std::vector<std::string>& profiles, in SetTaskProfiles() function in TaskProfiles
/system/core/libprocessgroup/include/processgroup/
Dprocessgroup.h32 bool SetTaskProfiles(int tid, const std::vector<std::string>& profiles, bool use_fd_cache = false);
/system/libartpalette/
Dpalette_android.cc73 SetTaskProfiles(tid, {"SCHED_SP_BACKGROUND"}, true); in PaletteSchedSetPriority()
80 SetTaskProfiles(tid, {get_sched_policy_profile_name(policy)}, true); in PaletteSchedSetPriority()
/system/core/libutils/
DThreads.cpp90 SetTaskProfiles(0, {"SCHED_SP_BACKGROUND"}, true); in trampoline()
316 rc = SetTaskProfiles(tid, {"SCHED_SP_BACKGROUND"}, true) ? 0 : -1; in androidSetThreadPriority()
321 rc = SetTaskProfiles(tid, {get_sched_policy_profile_name(policy)}, true) ? 0 : -1; in androidSetThreadPriority()
/system/core/init/
Dservice.cpp534 if (task_profiles_.size() > 0 && !SetTaskProfiles(getpid(), task_profiles_)) { in Start()