Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 15 of 15) sorted by relevance

/system/core/libcutils/
Dsched_policy.c206 int get_sched_policy(int tid, SchedPolicy *policy) in get_sched_policy() argument
218 *policy = SP_FOREGROUND; in get_sched_policy()
220 *policy = SP_BACKGROUND; in get_sched_policy()
230 *policy = SP_FOREGROUND; in get_sched_policy()
232 *policy = SP_BACKGROUND; in get_sched_policy()
241 int set_cpuset_policy(int tid, SchedPolicy policy) in set_cpuset_policy() argument
245 return set_sched_policy(tid, policy); in set_cpuset_policy()
250 policy = _policy(policy); in set_cpuset_policy()
254 switch (policy) { in set_cpuset_policy()
277 int set_sched_policy(int tid, SchedPolicy policy) in set_sched_policy() argument
[all …]
/system/core/include/cutils/
Dsched_policy.h37 extern int set_cpuset_policy(int tid, SchedPolicy policy);
45 extern int set_sched_policy(int tid, SchedPolicy policy);
51 extern int get_sched_policy(int tid, SchedPolicy *policy);
57 extern const char *get_sched_policy_name(SchedPolicy policy);
/system/extras/ext4_utils/
Dext4_crypt.cpp74 int do_policy_set(const char *directory, const char *policy, int policy_length) in do_policy_set() argument
111 memcpy(eep.master_key_descriptor, policy, EXT4_KEY_DESCRIPTOR_SIZE); in do_policy_set()
123 directory, policy[0], policy[1], policy[2], policy[3]); in do_policy_set()
Dext4_crypt_init_extensions.cpp147 std::string policy = props.Get<std::string>(properties::ref); in e4crypt_set_directory_policy() local
148 if (policy.empty()) { in e4crypt_set_directory_policy()
153 int result = do_policy_set(dir, policy.c_str(), policy.size()); in e4crypt_set_directory_policy()
156 policy.c_str(), dir); in e4crypt_set_directory_policy()
Dext4_crypt_init_extensions.h13 int do_policy_set(const char *directory, const char *policy, int policy_length);
/system/bt/bta/sys/
Dbta_sys_conn.c413 void bta_sys_set_policy (UINT8 id, UINT8 policy, BD_ADDR peer_addr) in bta_sys_set_policy() argument
417 bta_sys_cb.p_policy_cb(BTA_SYS_PLCY_SET, id, policy, peer_addr); in bta_sys_set_policy()
431 void bta_sys_clear_policy (UINT8 id, UINT8 policy, BD_ADDR peer_addr) in bta_sys_clear_policy() argument
435 bta_sys_cb.p_policy_cb(BTA_SYS_PLCY_CLR, id, policy, peer_addr); in bta_sys_clear_policy()
449 void bta_sys_set_default_policy (UINT8 id, UINT8 policy) in bta_sys_set_default_policy() argument
453 bta_sys_cb.p_policy_cb(BTA_SYS_PLCY_DEF_SET, id, policy, NULL); in bta_sys_set_default_policy()
467 void bta_sys_clear_default_policy (UINT8 id, UINT8 policy) in bta_sys_clear_default_policy() argument
471 bta_sys_cb.p_policy_cb(BTA_SYS_PLCY_DEF_CLR, id, policy, NULL); in bta_sys_clear_default_policy()
Dbta_sys.h277 extern void bta_sys_set_policy (UINT8 id, UINT8 policy, BD_ADDR peer_addr);
278 extern void bta_sys_clear_policy (UINT8 id, UINT8 policy, BD_ADDR peer_addr);
279 extern void bta_sys_set_default_policy (UINT8 id, UINT8 policy);
280 extern void bta_sys_clear_default_policy (UINT8 id, UINT8 policy);
/system/core/toolbox/
Dtop.c72 char policy[POLICY_NAME_LEN]; member
392 strlcpy(proc->policy, "unk", POLICY_NAME_LEN); in read_policy()
394 strlcpy(proc->policy, get_sched_policy_name(p), POLICY_NAME_LEN); in read_policy()
395 proc->policy[2] = '\0'; in read_policy()
480 …proc->vss / 1024, proc->rss * getpagesize() / 1024, proc->policy, user_str, proc->name[0] != 0 ? p… in print_procs()
484 …proc->vss / 1024, proc->rss * getpagesize() / 1024, proc->policy, user_str, proc->tname, proc->nam… in print_procs()
/system/bt/bta/av/
Dbta_av_aact.c1995 UINT8 policy = HCI_ENABLE_SNIFF_MODE; in bta_av_do_start() local
2011 policy |= HCI_ENABLE_MASTER_SLAVE_SWITCH; in bta_av_do_start()
2014 bta_sys_clear_policy(BTA_ID_AV, policy, p_scb->peer_addr); in bta_av_do_start()
2052 UINT8 policy = HCI_ENABLE_SNIFF_MODE; in bta_av_str_stopped() local
2059 policy |= HCI_ENABLE_MASTER_SLAVE_SWITCH; in bta_av_str_stopped()
2060 bta_sys_set_policy(BTA_ID_AV, policy, p_scb->peer_addr); in bta_av_str_stopped()
2325 UINT8 policy = HCI_ENABLE_SNIFF_MODE; in bta_av_start_ok() local
2446 policy |= HCI_ENABLE_MASTER_SLAVE_SWITCH; in bta_av_start_ok()
2449 bta_sys_clear_policy(BTA_ID_AV, policy, p_scb->peer_addr); in bta_av_start_ok()
2521 UINT8 policy = HCI_ENABLE_SNIFF_MODE; in bta_av_str_closed() local
[all …]
/system/bt/btif/src/
Dbtif_sock_thread.c175 int policy; in create_thread() local
187 pthread_getschedparam(*thread_id, &policy, &param); in create_thread()
188 min_pri = sched_get_priority_min(policy); in create_thread()
192 pthread_setschedparam(*thread_id, policy, &param); in create_thread()
/system/core/rootdir/
Dinit.rc247 # make the selinux kernel policy world-readable
248 chmod 0444 /sys/fs/selinux/policy
343 # Separate location for storing security policy files on data
347 # and get proper encryption policy installed
355 # Reload policy from /data/security if present.
358 # Set SELinux security contexts on upgrade or policy update.
432 # Assume SMP uses shared cpufreq policy for all CPUs
/system/bt/doc/
Dpower_management.md36 policy is determined by the greatest allowable power action defined across all
137 - If the action chosen is `BTA_DM_PM_SNIFF`, the peer device's link policy
/system/core/init/
Dreadme.txt97 Services on the system partition can instead use policy-defined transitions
99 If not specified and no transition is defined in policy, defaults to the init context.
/system/core/liblog/
DREADME154 scheduling policy and background task cgroup. If you require a group of
/system/bt/bta/dm/
Dbta_dm_act.c992 UINT16 policy = app_id; in bta_dm_policy_cback() local
999 status, policy); in bta_dm_policy_cback()
1006 p_dev->link_policy |= policy; in bta_dm_policy_cback()
1014 p_dev->link_policy &= (~policy); in bta_dm_policy_cback()
1017 if(policy & (HCI_ENABLE_SNIFF_MODE | HCI_ENABLE_PARK_MODE)) in bta_dm_policy_cback()