Home
last modified time | relevance | path

Searched refs:svc (Results 1 – 9 of 9) sorted by relevance

/system/core/init/
Dsignal_handler.cpp63 service* svc = service_find_by_pid(pid); in wait_for_one_process() local
66 if (svc) { in wait_for_one_process()
67 name = android::base::StringPrintf("Service '%s' (pid %d)", svc->name, pid); in wait_for_one_process()
74 if (!svc) { in wait_for_one_process()
80 if (!(svc->flags & SVC_ONESHOT) || (svc->flags & SVC_RESTART)) { in wait_for_one_process()
81 NOTICE("Service '%s' (pid %d) killing any children in process group\n", svc->name, pid); in wait_for_one_process()
86 for (socketinfo* si = svc->sockets; si; si = si->next) { in wait_for_one_process()
92 if (svc->flags & SVC_EXEC) { in wait_for_one_process()
93 INFO("SVC_EXEC pid %d finished...\n", svc->pid); in wait_for_one_process()
95 list_remove(&svc->slist); in wait_for_one_process()
[all …]
Dinit.cpp187 void service_start(struct service *svc, const char *dynamic_args) in service_start() argument
191 svc->flags &= (~(SVC_DISABLED|SVC_RESTARTING|SVC_RESET|SVC_RESTART|SVC_DISABLED_START)); in service_start()
192 svc->time_started = 0; in service_start()
197 if (svc->flags & SVC_RUNNING) { in service_start()
201 bool needs_console = (svc->flags & SVC_CONSOLE); in service_start()
203 ERROR("service '%s' requires console\n", svc->name); in service_start()
204 svc->flags |= SVC_DISABLED; in service_start()
209 if (stat(svc->args[0], &s) != 0) { in service_start()
210 ERROR("cannot find '%s', disabling '%s'\n", svc->args[0], svc->name); in service_start()
211 svc->flags |= SVC_DISABLED; in service_start()
[all …]
Dinit_parser.cpp82 service* svc = node_to_item(node, struct service, slist); in dump_parser_state() local
83 INFO("service %s\n", svc->name); in dump_parser_state()
84 INFO(" class '%s'\n", svc->classname); in dump_parser_state()
86 for (int n = 0; n < svc->nargs; n++) { in dump_parser_state()
87 INFO(" '%s'", svc->args[n]); in dump_parser_state()
90 for (socketinfo* si = svc->sockets; si; si = si->next) { in dump_parser_state()
474 struct service *svc; in service_find_by_name() local
476 svc = node_to_item(node, struct service, slist); in service_find_by_name()
477 if (!strcmp(svc->name, name)) { in service_find_by_name()
478 return svc; in service_find_by_name()
[all …]
Dinit_parser_test.cpp80 service* svc = make_exec_oneshot_service(argc, argv); in Test_make_exec_oneshot_service() local
81 ASSERT_NE(nullptr, svc); in Test_make_exec_oneshot_service()
84 ASSERT_STREQ("u:r:su:s0", svc->seclabel); in Test_make_exec_oneshot_service()
86 ASSERT_EQ(nullptr, svc->seclabel); in Test_make_exec_oneshot_service()
89 ASSERT_EQ(decode_uid("log"), svc->uid); in Test_make_exec_oneshot_service()
91 ASSERT_EQ(0U, svc->uid); in Test_make_exec_oneshot_service()
94 ASSERT_EQ(decode_uid("shell"), svc->gid); in Test_make_exec_oneshot_service()
96 ASSERT_EQ(0U, svc->gid); in Test_make_exec_oneshot_service()
99 ASSERT_EQ(2U, svc->nr_supp_gids); in Test_make_exec_oneshot_service()
100 ASSERT_EQ(decode_uid("system"), svc->supp_gids[0]); in Test_make_exec_oneshot_service()
[all …]
Dkeychords.cpp35 void add_service_keycodes(struct service *svc) in add_service_keycodes() argument
40 if (svc->keycodes) { in add_service_keycodes()
42 size = sizeof(*keychord) + svc->nkeycodes * sizeof(keychord->keycodes[0]); in add_service_keycodes()
54 keychord->count = svc->nkeycodes; in add_service_keycodes()
55 svc->keychord_id = keychord->id; in add_service_keycodes()
57 for (i = 0; i < svc->nkeycodes; i++) { in add_service_keycodes()
58 keychord->keycodes[i] = svc->keycodes[i]; in add_service_keycodes()
66 struct service *svc; in handle_keychord() local
80 svc = service_find_by_keychord(id); in handle_keychord()
81 if (svc) { in handle_keychord()
[all …]
Dinit.h148 void service_for_each(void (*func)(struct service *svc));
150 void (*func)(struct service *svc));
152 void (*func)(struct service *svc));
153 void service_stop(struct service *svc);
154 void service_reset(struct service *svc);
155 void service_restart(struct service *svc);
156 void service_start(struct service *svc, const char *dynamic_args);
Dbuiltins.cpp103 static void service_start_if_not_disabled(struct service *svc) in service_start_if_not_disabled() argument
105 if (!(svc->flags & SVC_DISABLED)) { in service_start_if_not_disabled()
106 service_start(svc, NULL); in service_start_if_not_disabled()
108 svc->flags |= SVC_DISABLED_START; in service_start_if_not_disabled()
141 struct service *svc; in do_enable() local
142 svc = service_find_by_name(args[1]); in do_enable()
143 if (svc) { in do_enable()
144 svc->flags &= ~(SVC_DISABLED | SVC_RC_DISABLED); in do_enable()
145 if (svc->flags & SVC_DISABLED_START) { in do_enable()
146 service_start(svc, NULL); in do_enable()
[all …]
Dreadme.txt315 init.svc.<name>
/system/bt/btif/src/
Dbtif_hf.c1074 static bt_status_t cind_response(int svc, int num_active, int num_held, in cind_response() argument
1100 svc, /* network service */ in cind_response()