HomeSort by relevance Sort by last modified time
    Searched defs:POLICY (Results 1 - 9 of 9) sorted by null

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
17-1.c 20 * the child process inherits the policy and priority
24 * -> Change the parent's scheduling policy and parameter
26 * -> check the child inherited the same policy.
54 #define POLICY SCHED_RR
65 /* Change process policy and parameters */
66 sp.sched_priority = param = sched_get_priority_max(POLICY);
72 ret = sched_setscheduler(0, POLICY, &sp);
75 UNRESOLVED(errno, "Failed to change process scheduling policy");
88 /* Check the scheduling policy */
93 "Failed to read scheduling policy in child")
    [all...]
17-2.c 20 * the child process inherits the policy and priority
24 * -> Change the parent's scheduling policy and parameter
26 * -> check the child inherited the same policy.
80 #define POLICY SCHED_FIFO
96 /* Change process policy and parameters */
97 sp.sched_priority = param = sched_get_priority_max(POLICY);
103 ret = sched_setscheduler(0, POLICY, &sp);
106 UNRESOLVED(errno, "Failed to change process scheduling policy");
119 /* Check the scheduling policy */
124 "Failed to read scheduling policy in child")
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/
2-3.c 9 * policy and priority.
14 * 3. Change main's priority and policy
16 * 5. Check that it has correct priority and policy
29 #define POLICY SCHED_FIFO
38 int policy; local
41 rc = pthread_getschedparam(pthread_self(), &policy, &param);
46 if (policy == POLICY) {
77 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
2-4.c 9 * policy and priority.
13 * 2. Change main's priority and policy
16 * 5. Check that it has correct priority and policy
29 #define POLICY SCHED_RR
38 int policy; local
41 rc = pthread_getschedparam(pthread_self(), &policy, &param);
46 if (policy == POLICY) {
65 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/
1-3.c 12 * 1. Create a pthread_attr structure and set policy and priority in it
29 #define POLICY SCHED_FIFO
40 int policy; local
41 if (pthread_getschedparam(pthread_self(), &policy, &param) != 0) {
45 if (policy == POLICY) {
61 /* initialze the attribute and set policy and priority in it */
67 rc = pthread_attr_setschedpolicy(&attr, POLICY);
104 printf("Test FAILED. Policy set incorrectly\n");
1-4.c 12 * 1. Create a pthread_attr structure and set policy and priority in it
29 #define POLICY SCHED_RR
40 int policy; local
43 rc = pthread_getschedparam(pthread_self(), &policy, &param);
48 if (policy == POLICY) {
64 /* Initialze the attribute struct and set policy and priority in it */
70 rc = pthread_attr_setschedpolicy(&attr, POLICY);
108 printf("Test FAILED. Policy set incorrectly\n");
  /external/ltp/testcases/open_posix_testsuite/functional/threads/condvar/
pthread_cond_wait_1.c 37 #define POLICY SCHED_RR
56 int policy; local
61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param));
62 if ((policy != POLICY) || (param.sched_priority != HIGH_PRIORITY)) {
63 printf("Error: the policy or priority not correct\n");
86 int policy; local
91 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param));
92 if ((policy != POLICY) || (param.sched_priority != LOW_PRIORITY))
    [all...]
pthread_cond_wait_2.c 37 #define POLICY SCHED_RR
56 int policy; local
61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param));
62 if ((policy != POLICY) || (param.sched_priority != HIGH_PRIORITY)) {
63 printf("Error: the policy or priority not correct\n");
86 int policy; local
91 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param));
92 if ((policy != POLICY) || (param.sched_priority != LOW_PRIORITY))
    [all...]
  /packages/apps/Email/provider_src/com/android/email/provider/
EmailProvider.java 101 import com.android.emailcommon.provider.Policy;
247 private static final int POLICY = POLICY_BASE;
302 array.put(POLICY_BASE >> BASE_SHIFT, Policy.TABLE_NAME);
508 deleteUnlinked(mDatabase, Policy.TABLE_NAME, PolicyColumns._ID,
    [all...]

Completed in 385 milliseconds