Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 50) sorted by relevance

12

/system/bt/stack/btm/
Dbtm_ble_adv_filter.c55 static UINT8 btm_ble_cs_update_pf_counter(tBTM_BLE_SCAN_COND_OP action,
112 void btm_ble_advfilt_enq_op_q(UINT8 action, UINT8 ocf, tBTM_BLE_FILT_CB_EVT cb_evt, in btm_ble_advfilt_enq_op_q() argument
116 btm_ble_adv_filt_cb.op_q.action_ocf[btm_ble_adv_filt_cb.op_q.next_idx] = (action |(ocf << 4)); in btm_ble_advfilt_enq_op_q()
123 btm_ble_adv_filt_cb.op_q.action_ocf[btm_ble_adv_filt_cb.op_q.next_idx], action, in btm_ble_advfilt_enq_op_q()
259 UINT8 *p = p_params->p_param_buf, op_subcode = 0, action = 0xff; in btm_ble_scan_pf_cmpl_cback() local
271 btm_ble_advfilt_deq_op_q(&action, &ocf, &cb_evt, &ref_value, &p_scan_cfg_cback, in btm_ble_scan_pf_cmpl_cback()
276 btm_ble_advfilt_deq_op_q(&action, &ocf, &cb_evt, &ref_value, &p_scan_cfg_cback, in btm_ble_scan_pf_cmpl_cback()
281 STREAM_TO_UINT8(action, p); in btm_ble_scan_pf_cmpl_cback()
289 ocf, op_subcode, action, evt_len, ref_value, status); in btm_ble_scan_pf_cmpl_cback()
295 btm_ble_adv_filt_cb.p_filt_stat_cback(action, status, ref_value); in btm_ble_scan_pf_cmpl_cback()
[all …]
/system/netd/server/
DNetlinkHandler.cpp61 NetlinkEvent::Action action = evt->getAction(); in onEvent() local
64 if (action == NetlinkEvent::Action::kAdd) { in onEvent()
66 } else if (action == NetlinkEvent::Action::kRemove) { in onEvent()
68 } else if (action == NetlinkEvent::Action::kChange) { in onEvent()
71 } else if (action == NetlinkEvent::Action::kLinkUp) { in onEvent()
73 } else if (action == NetlinkEvent::Action::kLinkDown) { in onEvent()
75 } else if (action == NetlinkEvent::Action::kAddressUpdated || in onEvent()
76 action == NetlinkEvent::Action::kAddressRemoved) { in onEvent()
80 if (action == NetlinkEvent::Action::kAddressRemoved && iface && address) { in onEvent()
89 notifyAddressChanged(action, address, iface, flags, scope); in onEvent()
[all …]
DRouteController.cpp183 WARN_UNUSED_RESULT int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) { in sendNetlinkRequest() argument
185 .nlmsg_type = action, in sendNetlinkRequest()
257 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument
287 .action = static_cast<uint8_t>(priority != RULE_PRIORITY_UNREACHABLE ? FR_ACT_TO_TBL : in modifyIpRule()
296 if (table == RT_TABLE_UNSPEC && rule.action == FR_ACT_TO_TBL && action != RTM_DELRULE) { in modifyIpRule()
327 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_CREATE_REQUEST_FLAGS : NETLINK_REQUEST_FLAGS; in modifyIpRule()
330 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov))) { in modifyIpRule()
338 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument
340 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule()
346 WARN_UNUSED_RESULT int modifyIpRoute(uint16_t action, uint32_t table, const char* interface, in modifyIpRoute() argument
[all …]
DNetlinkHandler.h45 void notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface,
49 …void notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const …
/system/core/init/
Dinit_parser.h22 struct action;
25 struct action *action_remove_queue_head(void);
26 void action_add_queue_tail(struct action *act);
28 void (*func)(struct action *act));
Ddevices.cpp61 const char *action; member
359 uevent->action = ""; in parse_event()
373 uevent->action = msg; in parse_event()
407 uevent->action, uevent->path, uevent->subsystem, in parse_event()
524 static void handle_device(const char *action, const char *devpath, in handle_device() argument
529 if(!strcmp(action, "add")) { in handle_device()
537 if(!strcmp(action, "remove")) { in handle_device()
556 if (!strcmp(uevent->action, "add")) in handle_platform_device_event()
558 else if (!strcmp(uevent->action, "remove")) in handle_platform_device_event()
603 handle_device(uevent->action, devpath, uevent->path, 1, in handle_block_device_event()
[all …]
Dinit.h47 struct action { struct
120 struct action onrestart; /* Actions to execute on restart. */
141 void build_triggers_string(char *name_str, int length, struct action *cur_action);
Dinit_parser.cpp96 action* act = node_to_item(node, struct action, alist); in dump_parser_state()
546 void (*func)(struct action *act)) in action_for_each_trigger()
549 struct action *act; in action_for_each_trigger()
553 act = node_to_item(node, struct action, alist); in action_for_each_trigger()
567 struct action *act; in queue_property_triggers()
573 act = node_to_item(node, struct action, alist); in queue_property_triggers()
625 action* act = (action*) calloc(1, sizeof(*act)); in queue_builtin_action()
643 void action_add_queue_tail(struct action *act) in action_add_queue_tail()
650 struct action *action_remove_queue_head(void) in action_remove_queue_head()
656 struct action *act = node_to_item(node, struct action, qlist); in action_remove_queue_head()
[all …]
Dreadme.txt28 is used to determine when the action should occur. When an event
29 occurs which matches an action's trigger, that action is added to
33 Each action in the queue is dequeued in sequence and each command in
34 that action is executed in sequence. Init handles other activities
121 of events and used to cause an action to occur.
282 Trigger an event. Used to queue an action from another
283 action.
309 init.action
310 Equal to the name of the action currently being executed or "" if none
/system/core/debuggerd/
Ddebuggerd.cpp59 debugger_action_t action; member
149 static bool selinux_action_allowed(int s, pid_t tid, debugger_action_t action) in selinux_action_allowed() argument
159 if (action <= 0 || action >= (sizeof(debuggerd_perms)/sizeof(debuggerd_perms[0]))) { in selinux_action_allowed()
160 ALOGE("SELinux: No permission defined for debugger action %d", action); in selinux_action_allowed()
164 perm = debuggerd_perms[action]; in selinux_action_allowed()
218 out_request->action = static_cast<debugger_action_t>(msg.action); in read_request()
226 if (msg.action == DEBUGGER_ACTION_CRASH) { in read_request()
237 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) { in read_request()
247 if (!selinux_action_allowed(fd, out_request->tid, out_request->action)) in read_request()
257 if (request->action == DEBUGGER_ACTION_CRASH) { in should_attach_gdb()
[all …]
/system/bt/bta/mce/
Dbta_mce_main.c68 UINT16 action = (p_msg->event & 0x00ff); in bta_mce_sm_execute() local
71 if(action < BTA_MCE_NUM_ACTIONS) in bta_mce_sm_execute()
73 (*bta_mce_action[action])((tBTA_MCE_MSG*)p_msg); in bta_mce_sm_execute()
/system/bt/bta/sdp/
Dbta_sdp.c67 UINT16 action = (p_msg->event & 0x00ff); in bta_sdp_sm_execute() local
70 if(action < BTA_SDP_NUM_ACTIONS) in bta_sdp_sm_execute()
72 (*bta_sdp_action[action])((tBTA_SDP_MSG*)p_msg); in bta_sdp_sm_execute()
/system/bt/bta/jv/
Dbta_jv_main.c88 UINT16 action = (p_msg->event & 0x00ff); in bta_jv_sm_execute() local
91 if(action < BTA_JV_NUM_ACTIONS) in bta_jv_sm_execute()
93 (*bta_jv_action[action])((tBTA_JV_MSG*)p_msg); in bta_jv_sm_execute()
/system/bt/doc/
Dpower_management.md36 policy is determined by the greatest allowable power action defined across all
38 it's willing to go to into SNIFF and specifies that as an action, and say, a PAN
39 connection is up which specifies it is willing to go into SNIFF, but its action
54 The action constants are defined in `bta_api.h` and are defined as a series of
62 action that `bta_dm_pm_set_mode` will take, the connection will be removed
68 action is still the same, however -- SNIFF mode is attempted. There are
100 returns with no action taken.
104 there's no action to be performed (`BTA_DM_PM_NO_ACTION`), and if so,
105 returns with no action taken.
123 the first power management action didn't timeout (or was never attempted,
[all …]
/system/core/libcutils/
Ddebugger.c45 static int make_dump_request(debugger_action_t action, pid_t tid, int timeout_secs) { in make_dump_request() argument
49 msg.action = action; in make_dump_request()
/system/bt/stack/avct/
Davct_lcb.c197 UINT8 action; in avct_lcb_event() local
215 if ((action = state_table[event][i]) != AVCT_LCB_IGNORE) in avct_lcb_event()
217 (*avct_lcb_action[action])(p_lcb, p_data); in avct_lcb_event()
240 UINT8 action; in avct_bcb_event() local
258 if ((action = state_table[event][i]) != AVCT_LCB_IGNORE) in avct_bcb_event()
260 (*avct_bcb_action[action])(p_bcb, p_data); in avct_bcb_event()
/system/bt/btif/src/
Dbtif_gatt_client.c140 uint8_t action; member
160 uint8_t action; member
197 uint8_t action; member
798 HAL_CBACK(bt_gatt_callbacks, client->scan_filter_cfg_cb, p_btif_cb->action, in btif_gattc_upstreams_evt()
808 p_data->action, p_data->avbl_space, p_data->status); in btif_gattc_upstreams_evt()
810 , p_data->action, p_data->client_if, p_data->status in btif_gattc_upstreams_evt()
819 p_data->action, p_data->status); in btif_gattc_upstreams_evt()
821 , p_data->action, p_data->client_if, p_data->status); in btif_gattc_upstreams_evt()
914 btif_cb.action = 0; in bta_gattc_set_adv_data_cback()
1087 static void bta_scan_filt_cfg_cb(tBTA_DM_BLE_PF_ACTION action, tBTA_DM_BLE_SCAN_COND_OP cfg_op, in bta_scan_filt_cfg_cb() argument
[all …]
/system/bt/stack/smp/
Dsmp_br_main.c337 UINT8 action, entry; in smp_br_state_machine_event() local
387 if ((action = state_table[entry - 1][i]) != SMP_BR_SM_NO_ACTION) in smp_br_state_machine_event()
389 (*smp_br_sm_action[action])(p_cb, (tSMP_INT_DATA *)p_data); in smp_br_state_machine_event()
/system/bt/bta/dm/
Dbta_dm_api.c1673 void BTA_DmBleCfgFilterCondition(tBTA_DM_BLE_SCAN_COND_OP action, in BTA_DmBleCfgFilterCondition() argument
1682 APPL_TRACE_API ("BTA_DmBleCfgFilterCondition: %d, %d", action, cond_type); in BTA_DmBleCfgFilterCondition()
1719 p_msg->action = action; in BTA_DmBleCfgFilterCondition()
1784 UNUSED(action); in BTA_DmBleCfgFilterCondition()
1809 void BTA_DmBleScanFilterSetup(UINT8 action, tBTA_DM_BLE_PF_FILT_INDEX filt_index, in BTA_DmBleScanFilterSetup() argument
1817 APPL_TRACE_API ("BTA_DmBleScanFilterSetup: %d", action); in BTA_DmBleScanFilterSetup()
1826 p_msg->action = action; in BTA_DmBleScanFilterSetup()
1842 UNUSED(action); in BTA_DmBleScanFilterSetup()
1891 void BTA_DmEnableScanFilter(UINT8 action, tBTA_DM_BLE_PF_STATUS_CBACK *p_cmpl_cback, in BTA_DmEnableScanFilter() argument
1896 APPL_TRACE_API ("BTA_DmEnableScanFilter: %d", action); in BTA_DmEnableScanFilter()
[all …]
Dbta_dm_main.c347 UINT8 action; in bta_dm_search_sm_execute() local
362 if ((action = state_table[p_msg->event & 0x00ff][i]) != BTA_DM_SEARCH_IGNORE) in bta_dm_search_sm_execute()
364 (*bta_dm_search_action[action])( (tBTA_DM_MSG*) p_msg); in bta_dm_search_sm_execute()
/system/bt/bta/pan/
Dbta_pan_main.c201 UINT8 action; in bta_pan_sm_execute() local
217 if ((action = state_table[event][i]) != BTA_PAN_IGNORE) in bta_pan_sm_execute()
219 (*bta_pan_action[action])(p_scb, p_data); in bta_pan_sm_execute()
/system/bt/stack/mcap/
Dmca_dsm.c140 UINT8 action; in mca_dcb_event() local
157 if ((action = state_table[event][MCA_DCB_ACT_COL]) != MCA_DCB_IGNORE) in mca_dcb_event()
159 (*mca_dcb_action[action])(p_dcb, p_data); in mca_dcb_event()
Dmca_csm.c190 UINT8 action; in mca_ccb_event() local
205 if ((action = state_table[event][MCA_CCB_ACT_COL]) != MCA_CCB_IGNORE) in mca_ccb_event()
207 (*mca_ccb_action[action])(p_ccb, p_data); in mca_ccb_event()
/system/core/include/cutils/
Ddebugger.h43 int32_t action; member
/system/bt/bta/gatt/
Dbta_gattc_main.c298 UINT8 action; in bta_gattc_sm_execute() local
322 if ((action = state_table[event][i]) != BTA_GATTC_IGNORE) in bta_gattc_sm_execute()
324 (*bta_gattc_action[action])(p_clcb, p_data); in bta_gattc_sm_execute()

12