Home
last modified time | relevance | path

Searched refs:SchedPolicy (Results 1 – 5 of 5) sorted by relevance

/system/core/libprocessgroup/include/processgroup/
Dsched_policy.h54 } SchedPolicy; typedef
56 extern int set_cpuset_policy(int tid, SchedPolicy policy);
64 extern int set_sched_policy(int tid, SchedPolicy policy);
70 extern int get_sched_policy(int tid, SchedPolicy* policy);
76 extern const char* get_sched_policy_name(SchedPolicy policy);
82 extern const char* get_cpuset_policy_profile_name(SchedPolicy policy);
88 extern const char* get_sched_policy_profile_name(SchedPolicy policy);
/system/core/libcutils/
Dsched_policy_test.cpp63 static void AssertPolicy(SchedPolicy expected_policy) { in AssertPolicy()
64 SchedPolicy current_policy; in AssertPolicy()
69 TEST(SchedPolicy, set_sched_policy) { in TEST() argument
84 TEST(SchedPolicy, set_sched_policy_timerslack) { in TEST() argument
108 TEST(SchedPolicy, get_sched_policy_name) { in TEST() argument
110 EXPECT_EQ(nullptr, get_sched_policy_name(SchedPolicy(-2))); in TEST()
114 TEST(SchedPolicy, get_cpuset_policy_profile_name) { in TEST() argument
116 EXPECT_EQ(nullptr, get_cpuset_policy_profile_name(SchedPolicy(-2))); in TEST()
120 TEST(SchedPolicy, get_sched_policy_profile_name) { in TEST() argument
122 EXPECT_EQ(nullptr, get_sched_policy_profile_name(SchedPolicy(-2))); in TEST()
/system/core/libprocessgroup/
Dsched_policy.cpp35 static inline SchedPolicy _policy(SchedPolicy p) { in _policy()
41 int set_cpuset_policy(int tid, SchedPolicy policy) { in set_cpuset_policy()
67 int set_sched_policy(int tid, SchedPolicy policy) { in set_sched_policy()
167 int get_sched_policy(int tid, SchedPolicy* policy) { in get_sched_policy()
206 int set_sched_policy(int, SchedPolicy) { in set_sched_policy() argument
210 int get_sched_policy(int, SchedPolicy* policy) { in get_sched_policy()
217 const char* get_sched_policy_name(SchedPolicy policy) { in get_sched_policy_name()
231 const char* get_cpuset_policy_profile_name(SchedPolicy policy) { in get_cpuset_policy_profile_name()
250 const char* get_sched_policy_profile_name(SchedPolicy policy) { in get_sched_policy_profile_name()
/system/core/libutils/
DThreads.cpp318 SchedPolicy policy = SP_FOREGROUND; in androidSetThreadPriority()
/system/memory/lmkd/
Dlmkd.cpp1910 static void set_process_group_and_prio(int pid, SchedPolicy sp, int prio) { in set_process_group_and_prio()