Searched defs:action (Results 1 - 16 of 16) sorted by relevance

/system/core/include/cutils/
H A Ddebugger.h39 debugger_action_t action; member in struct:__anon301
/system/netd/
H A DNetlinkHandler.cpp56 int action = evt->getAction(); local
59 if (action == evt->NlActionAdd) {
61 } else if (action == evt->NlActionRemove) {
63 } else if (action == evt->NlActionChange) {
66 } else if (action == evt->NlActionLinkUp) {
68 } else if (action == evt->NlActionLinkDown) {
78 int action = evt->getAction(); local
H A DSecondaryTableController.cpp82 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, argument
89 IP_PATH, action, dest, prefix, iface, tableIndex+BASE_TABLE_NUMBER);
92 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
96 ALOGE("ip route %s failed: %s route %s %s/%d via %s dev %s table %d", action,
97 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
103 if (strcmp(action, ADD) == 0) {
111 modifyRuleCount(tableIndex, action);
116 void SecondaryTableController::modifyRuleCount(int tableIndex, const char *action) { argument
117 if (strcmp(action, ADD) == 0) {
158 int SecondaryTableController::modifyFromRule(int tableIndex, const char *action, argument
175 modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr) argument
[all...]
/system/vold/
H A DProcess.cpp175 * action = 0 to just warn,
176 * action = 1 to SIGHUP,
177 * action = 2 to SIGKILL
180 void Process::killProcessesWithOpenFiles(const char *path, int action) { argument
213 if (action == 1) {
216 } else if (action == 2) {
H A DDirectVolume.cpp96 int action = evt->getAction(); local
99 if (action == NetlinkEvent::NlActionAdd) {
126 } else if (action == NetlinkEvent::NlActionRemove) {
132 } else if (action == NetlinkEvent::NlActionChange) {
H A DVolume.cpp544 int action = 0; local
548 action = 2; // SIGKILL
550 action = 1; // SIGHUP
553 SLOGW("Failed to move %s -> %s (%s, retries %d, action %d)",
554 src, dst, strerror(errno), retries, action);
555 Process::killProcessesWithOpenFiles(src, action);
577 int action = 0; local
581 action = 2; // SIGKILL
583 action = 1; // SIGHUP
587 SLOGW("Failed to unmount %s (%s, retries %d, action
[all...]
H A DVolumeManager.cpp714 int action = 0; // default is to just complain local
718 action = 2; // SIGKILL
720 action = 1; // SIGHUP
723 Process::killProcessesWithOpenFiles(mountPoint, action);
/system/core/sh/
H A Derror.c285 short action; /* operation which encountered the error */ member in struct:errname
355 errmsg(int e, int action) argument
361 if (ep->errcode == e && (ep->action & action) != 0)
H A Dtrap.c134 char *action; local
150 action = NULL;
168 action = *ap++;
181 if (action)
182 action = savestr(action);
187 trap[signo] = action;
234 int action; local
240 action = S_DFL;
242 action
[all...]
/system/core/init/
H A Dinit.h28 /* list of commands in an action */
36 struct action { struct
105 struct action onrestart; /* Actions to execute on restart. */
H A Ddevices.c63 const char *action; member in struct:uevent
307 uevent->action = "";
321 uevent->action = msg;
354 uevent->action, uevent->path, uevent->subsystem,
470 static void handle_device(const char *action, const char *devpath, argument
475 if(!strcmp(action, "add")) {
483 if(!strcmp(action, "remove")) {
502 if (!strcmp(uevent->action, "add"))
504 else if (!strcmp(uevent->action, "remove"))
546 handle_device(uevent->action, devpat
[all...]
/system/core/debuggerd/
H A Ddebuggerd.c52 debugger_action_t action; member in struct:__anon288
220 out_request->action = msg.action;
226 if (msg.action == DEBUGGER_ACTION_CRASH) {
237 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) {
255 if (request->action == DEBUGGER_ACTION_CRASH) {
294 if (request.action == DEBUGGER_ACTION_CRASH) {
308 if (request.action == DEBUGGER_ACTION_DUMP_TOMBSTONE) {
313 } else if (request.action == DEBUGGER_ACTION_DUMP_BACKTRACE) {
361 if (request.action
[all...]
/system/core/adb/
H A Dtransport.c519 int action; member in struct:tmsg
584 if(m.action == 0){
685 m.action = 1;
696 m.action = 0;
/system/core/charger/
H A Dcharger.c129 const char *action; member in struct:uevent
357 uevent->action = "";
371 uevent->action = msg;
395 uevent->action, uevent->path, uevent->subsystem,
435 if (!strcmp(uevent->action, "add")) {
450 } else if (!strcmp(uevent->action, "remove")) {
457 } else if (!strcmp(uevent->action, "change")) {
476 LOGI("power supply %s (%s) %s (action=%s num_online=%d num_supplies=%d)\n",
478 uevent->action, charger->num_supplies_online, charger->num_supplies);
/system/core/libnetutils/
H A Difc_utils.c247 int ifc_act_on_address(int action, const char *name, const char *address, argument
298 req.n.nlmsg_type = action;
504 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument
536 result = ioctl(ifc_ctl_sock, action, &rt);
820 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, argument
855 result = ioctl(ifc_ctl_sock6, action, &rtmsg);
867 int ifc_act_on_route(int action, const char *ifname, const char *dst, int prefix_length, argument
918 ret = ifc_act_on_ipv6_route(action, ifname, ipv6_dst.sin6_addr,
923 ret = ifc_act_on_ipv4_route(action, ifname, ipv4_dst.sin_addr,
/system/security/keystore/
H A Dkeystore.cpp927 * performing an action. The number of parameters required by each action is
928 * fixed and defined in a table. If the return value of an action is positive,
1331 static struct action { struct
1377 struct action* action = actions; local
1383 while (action->code && action->code != code) {
1384 ++action;
1386 if (!action
[all...]

Completed in 5152 milliseconds