Lines Matching defs:role
58 static kern_return_t task_role_default_handler(task_t task, task_role_t role);
127 task_role_default_handler(task_t task, task_role_t role)
131 switch (task->role) {
139 ((role == TASK_FOREGROUND_APPLICATION)?
143 task->role = role;
184 (info->role != TASK_THROTTLE_APPLICATION))
189 switch(info->role) {
192 result = task_role_default_handler(task, info->role);
219 task->role = TASK_FOREGROUND_APPLICATION;
226 result = task_role_default_handler(task, info->role);
243 task->role = TASK_BACKGROUND_APPLICATION;
254 task->role = info->role;
264 task->role = info->role;
269 task->role = info->role;
275 } /* switch (info->role) */
338 if (task->role >= TASK_CONTROL_APPLICATION) {
345 task->role = TASK_RENICED;
373 info->role = TASK_UNSPECIFIED;
376 info->role = task->role;
869 task->role = TASK_DEFAULT_APPLICATION;
878 task->role = TASK_DEFAULT_APPLICATION;
2190 switch (task->role) {
2265 if (task->role == TASK_BACKGROUND_APPLICATION) {
2266 if (task->role == TASK_BACKGROUND_APPLICATION) {