Home
last modified time | relevance | path

Searched refs:set_sched_policy (Results 1 – 7 of 7) sorted by relevance

/system/core/libcutils/
Dsched_policy_test.cpp69 TEST(SchedPolicy, set_sched_policy) { in TEST() argument
77 ASSERT_EQ(0, set_sched_policy(0, SP_BACKGROUND)); in TEST()
80 ASSERT_EQ(0, set_sched_policy(0, SP_FOREGROUND)); in TEST()
99 ASSERT_EQ(0, set_sched_policy(0, SP_BACKGROUND)); in TEST()
102 ASSERT_EQ(0, set_sched_policy(0, SP_FOREGROUND)); in TEST()
/system/core/libprocessgroup/include/processgroup/
Dsched_policy.h64 extern int set_sched_policy(int tid, SchedPolicy policy);
/system/core/libprocessgroup/
Dsched_policy.cpp84 int set_sched_policy(int tid, SchedPolicy policy) { in set_sched_policy() function
212 int set_sched_policy(int, SchedPolicy) { in set_sched_policy() function
/system/bt/utils/src/
Dbt_utils.cc130 rc = set_sched_policy(tid, SP_AUDIO_SYS); in raise_priority_a2dp()
/system/core/libutils/
DThreads.cpp83 set_sched_policy(0, SP_BACKGROUND); in trampoline()
85 set_sched_policy(0, SP_FOREGROUND); in trampoline()
305 rc = set_sched_policy(tid, SP_BACKGROUND); in androidSetThreadPriority()
307 rc = set_sched_policy(tid, SP_FOREGROUND); in androidSetThreadPriority()
/system/core/logd/
Dmain.cpp92 if (set_sched_policy(0, SP_BACKGROUND) < 0) { in drop_privs()
230 set_sched_policy(0, SP_BACKGROUND); in reinit_thread_start()
/system/core/logcat/
Dlogcat.cpp385 if ((set_sched_policy(0, SP_BACKGROUND) < 0) && context->error) { in setupOutputAndSchedulingPolicy()