/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
25-2.c | 29 struct sched_param param; local 37 if (sched_getparam(0, ¶m) != 0) { 42 if (sched_setscheduler(0, SCHED_SPORADIC, ¶m) == -1) { 57 param.sched_ss_low_priority = invalid_priority; 59 result = sched_setparam(0, ¶m);
|
25-4.c | 28 struct sched_param param; local 30 if (sched_getparam(0, ¶m) == -1) { 36 param.sched_ss_max_repl = 0; 37 result = sched_setparam(0, ¶m); 53 param.sched_ss_max_repl = SS_REPL_MAX + 1; 54 result = sched_setparam(0, ¶m);
|
26-1.c | 56 struct sched_param param; local 68 if (sched_getparam(0, ¶m) == -1) { 73 result = sched_setparam(1, ¶m);
|
27-1.c | 27 struct sched_param param; local 30 if (sched_getparam(0, ¶m) == -1) { 51 result = sched_setparam(child_pid, ¶m);
|
23-6.c | 58 struct sched_param param; local 65 param.sched_priority = sched_get_priority_min(SCHED_FIFO); 67 sched_setscheduler(0, SCHED_FIFO, ¶m); 75 if (sched_getparam(0, ¶m) == -1) { 79 old_priority = param.sched_priority; 81 param.sched_priority++; 82 rc = sched_setparam(0, ¶m); 88 if (sched_getparam(0, ¶m) != 0) { 93 if (param.sched_priority == old_priority) {
|
5-1.c | 23 struct sched_param param; local 25 if (sched_getparam(getpid(), ¶m) != 0) { 38 old_priority = param.sched_priority; 41 param.sched_priority = new_priority; 43 result = sched_setparam(0, ¶m); 45 if (sched_getparam(getpid(), ¶m) != 0) { 50 if (result == 0 && param.sched_priority == new_priority) { 53 } else if (result == 0 && param.sched_priority == old_priority) { 54 printf("The param does not change\n"); 58 ("The process have not permission to change its own param.\n") [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
16-1.c | 28 struct sched_param param; local 39 param.sched_priority = sched_get_priority_max(new_policy); 40 result = sched_setscheduler(0, new_policy, ¶m);
|
19-4.c | 31 struct sched_param param; local 33 if (sched_getparam(0, ¶m) == -1) { 38 param.sched_priority = sched_get_priority_max(SCHED_SPORADIC); 41 param.sched_ss_max_repl = 0; 42 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m); 58 param.sched_ss_max_repl = SS_REPL_MAX + 1; 59 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m);
|
21-1.c | 28 struct sched_param param; local 30 param.sched_priority = sched_get_priority_max(SCHED_FIFO); 48 result = sched_setscheduler(child_pid, SCHED_FIFO, ¶m);
|
17-2.c | 35 struct sched_param param; local 37 if (sched_getparam(getpid(), ¶m) != 0) { 41 old_priority = param.sched_priority; 57 param.sched_ss_low_priority = invalid_priority; 59 sched_setscheduler(0, SCHED_SPORADIC, ¶m); 61 if (sched_getparam(getpid(), ¶m) != 0) { 72 if (old_policy == new_policy && old_priority == param.sched_priority) { 77 if (param.sched_priority != old_priority) { 78 printf("The param has changed\n");
|
17-3.c | 35 struct sched_param param; local 37 if (sched_getparam(getpid(), ¶m) != 0) { 41 old_priority = param.sched_priority; 50 param.sched_ss_repl_period.tv_sec = 1; 51 param.sched_ss_repl_period.tv_nsec = 0; 53 param.sched_ss_init_budget.tv_sec = 2; 54 param.sched_ss_init_budget.tv_nsec = 0; 56 param.sched_priority = sched_get_priority_max(SCHED_SPORADIC); 58 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m); 60 if (sched_getparam(getpid(), ¶m) != 0) [all...] |
17-4.c | 34 struct sched_param param; local 36 if (sched_getparam(getpid(), ¶m) == -1) { 40 old_priority = param.sched_priority; 48 /* Make sure that param.sched_priority != old_priority */ 50 param.sched_priority = (old_priority == max_priority) ? 53 param.sched_ss_max_repl = 0; 55 sched_setscheduler(0, SCHED_SPORADIC, ¶m); 57 if (sched_getparam(getpid(), ¶m) != 0) { 68 if (old_policy == new_policy && old_priority == param.sched_priority) { 73 if (param.sched_priority != old_priority) [all...] |
20-1.c | 63 struct sched_param param; local 75 param.sched_priority = sched_get_priority_max(SCHED_FIFO); 77 result = sched_setscheduler(1, SCHED_FIFO, ¶m);
|
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/ |
params_test.cc | 25 DepthDependentParam param; local 26 param.set_constant_value(10.0); 28 ASSERT_EQ(ResolveParam(param, 0), 10.0); 29 ASSERT_EQ(ResolveParam(param, 100), 10.0); 33 DepthDependentParam param; local 34 auto* linear = param.mutable_linear(); 40 ASSERT_EQ(ResolveParam(param, 0), 90); 41 ASSERT_EQ(ResolveParam(param, 1), 90); 42 ASSERT_EQ(ResolveParam(param, 2), 80); 44 ASSERT_EQ(ResolveParam(param, 30), 23) 48 DepthDependentParam param; local 61 DepthDependentParam param; local [all...] |
/external/libcups/cups/ |
ppd-custom.c | 64 ppd_cparam_t *param; /* Current custom parameter */ local 70 for (param = (ppd_cparam_t *)cupsArrayFirst(opt->params); 71 param; 72 param = (ppd_cparam_t *)cupsArrayNext(opt->params)) 73 if (!_cups_strcasecmp(param->name, name)) 76 return (param);
|
/external/ltp/testcases/kernel/syscalls/sched_getparam/ |
sched_getparam01.c | 75 static struct sched_param param; variable in typeref:struct:sched_param 90 param.sched_priority = 100; 96 TEST(sched_getparam(0, ¶m)); 104 if ((TEST_RETURN == 0) && (param.sched_priority == 0)) { 112 param.sched_priority);
|
/external/ltp/testcases/kernel/syscalls/sched_setparam/ |
sched_setparam01.c | 75 static struct sched_param param; variable in typeref:struct:sched_param 94 TEST(sched_setparam(0, ¶m)); 118 param.sched_priority = 0;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
6-1.c | 74 struct sched_param param; local 89 result = sched_getparam(1, ¶m);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_rr_get_interval/ |
1-1.c | 29 struct sched_param param; local 31 param.sched_priority = sched_get_priority_min(SCHED_RR); 32 if (sched_setscheduler(0, SCHED_RR, ¶m) == -1) {
|
3-1.c | 30 struct sched_param param; local 32 param.sched_priority = sched_get_priority_min(SCHED_RR); 33 if (sched_setscheduler(0, SCHED_RR, ¶m) == -1) {
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen6_constant_state.c | 137 gl_constant_value *param; local 140 param = brw_state_batch(brw, type, 153 param[i] = *prog_data->param[i]; 163 fprintf(stderr, "%8f ", param[i].f);
|
/external/syslinux/gpxe/src/core/ |
ansiesc.c | 85 int *param = &ctx->params[ctx->count - 1]; local 86 if ( *param < 0 ) 87 *param = 0; 88 *param = ( ( *param * 10 ) + ( c - '0' ) );
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
IMSIParameterTest.java | 68 IMSIParameter param = new IMSIParameter("1234", false); local 69 assertFalse(param.matchesImsi(null)); 80 IMSIParameter param = new IMSIParameter("1234", false); local 83 assertFalse(param.matchesImsi("123")); 84 assertFalse(param.matchesImsi("12345")); 85 assertTrue(param.matchesImsi("1234")); 96 IMSIParameter param = new IMSIParameter("1234", true); local 99 assertFalse(param.matchesImsi("123")); 100 assertTrue(param.matchesImsi("12345")); 101 assertTrue(param.matchesImsi("1234")) 112 IMSIParameter param = new IMSIParameter("1234", false); local 124 IMSIParameter param = new IMSIParameter("1234567890", false); local 139 IMSIParameter param = new IMSIParameter("12345", true); local 156 IMSIParameter param = new IMSIParameter("1234567890", true); local [all...] |
/external/ipsec-tools/src/racoon/ |
prsa_par.y | 285 params param 286 | param 289 param: label
|
/external/ltp/testcases/kernel/containers/share/ |
ns_common.h | 26 struct param { struct 31 struct param params[] = { 42 struct param *get_param(const char *name)
|