Searched refs:service (Results 1 - 25 of 25) sorted by relevance

/system/core/init/
H A Dkeychords.h20 struct service;
22 void add_service_keycodes(struct service *svc);
H A Dinit.h80 #define SVC_RESTART 0x100 /* Use to safely restart (stop, wait, start) a service */
87 struct service { struct
112 /* keycodes for triggering this service via /dev/keychord */
127 struct service *service_find_by_name(const char *name);
128 struct service *service_find_by_pid(pid_t pid);
129 struct service *service_find_by_keychord(int keychord_id);
130 void service_for_each(void (*func)(struct service *svc));
132 void (*func)(struct service *svc));
134 void (*func)(struct service *svc));
135 void service_stop(struct service *sv
[all...]
H A Dkeychords.c35 void add_service_keycodes(struct service *svc)
97 struct service *svc;
113 INFO("starting service %s from keychord\n", svc->name);
116 ERROR("service for keychord %d not found\n", id);
H A Dinit_parser.c429 struct service *service_find_by_name(const char *name)
432 struct service *svc;
434 svc = node_to_item(node, struct service, slist);
442 struct service *service_find_by_pid(pid_t pid)
445 struct service *svc;
447 svc = node_to_item(node, struct service, slist);
455 struct service *service_find_by_keychord(int keychord_id)
458 struct service *svc;
460 svc = node_to_item(node, struct service, slist);
468 void service_for_each(void (*func)(struct service *sv
[all...]
H A Dparser.c13 struct service *svc;
22 svc = node_to_item(node, struct service, slist);
23 RAW("service %s\n", svc->name);
H A Dinit.c167 void service_start(struct service *svc, const char *dynamic_args)
176 /* starting a service removes it from the disabled or reset
194 ERROR("service '%s' requires console\n", svc->name);
206 ERROR("service '%s' must be one-shot to use dynamic args, disabling\n",
222 INFO("computing context for service '%s'\n", svc->args[0]);
376 static void service_stop_or_reset(struct service *svc, int how)
378 /* The service is still SVC_RUNNING until its process exits, but if it has
386 /* if the service has not yet started, prevent
396 NOTICE("service '%s' is being killed\n", svc->name);
404 void service_reset(struct service *sv
[all...]
H A Dbuiltins.c194 static void service_start_if_not_disabled(struct service *svc)
244 struct service *svc;
636 struct service *svc;
646 struct service *svc;
656 struct service *svc;
H A Dsignal_handler.c48 struct service *svc;
120 /* Execute all onrestart commands for this service. */
H A Dkeywords.h82 KEYWORD(service, SECTION, 0, 0)
/system/core/adb/
H A Dadb_client.h6 /* connect to adb, connect to the named service, and return
7 ** a valid fd for interacting with that service upon success
10 int adb_connect(const char *service);
11 int _adb_connect(const char *service);
13 /* connect to adb, connect to the named service, return 0 if
14 ** the connection succeeded AND the service returned OKAY
16 int adb_command(const char *service);
18 /* connect to adb, connect to the named service, return
22 char *adb_query(const char *service);
H A Dadb_client.c94 char service[64]; local
99 snprintf(service, sizeof service, "host:transport:%s", __adb_serial);
119 snprintf(service, sizeof service, "host:%s", transport_type);
121 len = strlen(service);
124 if(writex(fd, tmp, 4) || writex(fd, service, len)) {
176 int _adb_connect(const char *service) argument
182 D("_adb_connect: %s\n", service);
183 len = strlen(service);
219 adb_connect(const char *service) argument
295 adb_command(const char *service) argument
311 adb_query(const char *service) argument
[all...]
H A Dsockets.c558 /* Create an asocket to exchange packets with a remote service through transport
559 |t|. Where |id| is the socket id of the corresponding service on the other
674 char *skip_host_serial(char *service) { argument
679 if (!strncmp(service, prefixes[i].str, prefixes[i].len))
680 return strchr(service + prefixes[i].len, ':');
683 first_colon = strchr(service, ':');
685 /* No colon in service string. */
706 char *service = NULL; local
752 service = (char *)p->data + 4;
753 if(!strncmp(service, "hos
[all...]
H A Dadb.c172 /* A handle to adb-debug qemud service in the emulator. */
175 /* Initializes connection with the adb-debug qemud service in the emulator. */
184 /* adb debugging QEMUD service connection request. */
1281 // service.adb.root property has been set by the "adb root" command
1284 property_get("service.adb.root", value, "");
1309 // No SIGCHLD. Let the service subproc handle its children.
1403 property_get("service.adb.tcp.port", value, "");
1409 // listen on TCP port specified by service.adb.tcp.port property
1444 int handle_forward_request(const char* service, transport_type ttype, char* serial, int reply_fd) argument
1446 if (!strcmp(service, "lis
1555 handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) argument
[all...]
H A Dcommandline.c449 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, argument
457 sprintf(buf,"%s:%d", service, sz);
471 char *x = strrchr(service, ':');
472 if(x) service = x + 1;
510 int adb_download(const char *service, const char *fn, unsigned progress) argument
521 int status = adb_download_buffer(service, fn, data, sz, progress);
741 fprintf(stderr, "usage: adb %s <adb service name> [ppp opts]\n",
752 fprintf(stderr,"Error: Could not open adb service: %s. Error: %s\n",
1467 char* service = argv[0]; local
1468 if (!strncmp(service, "wai
[all...]
H A Dadb.h92 ** local service socket
164 ** connect to a service implemented within the ADB server itself.
220 ** specific remote service.
223 ** determine what exact service to connect to on the far
327 int handle_forward_request(const char* service, transport_type ttype, char* serial, int reply_fd);
415 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
H A Dusb_osx.c286 AndroidInterfaceNotify(void *refCon, io_service_t service, natural_t messageType, void *messageArgument) argument
/system/security/keystore/
H A Dkeystore_get.cpp27 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local
29 if (service == NULL) {
34 int32_t ret = service->get(String16(key, keyLength), value, &valueLength);
H A Dkeystore_cli.cpp50 int32_t ret = service->cmd(); \
68 int32_t ret = service->cmd(String16(argv[2])); \
91 int32_t ret = service->cmd(String16(argv[2]), uid); \
112 int32_t ret = service->cmd(String16(argv[2]), data, dataSize); \
132 int32_t ret = service->cmd(String16(argv[2]), &data, &dataSize); \
148 static int saw(sp<IKeystoreService> service, const String16& name, int uid) { argument
150 int32_t ret = service->saw(name, uid, &matches);
175 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local
177 if (service == NULL) {
178 fprintf(stderr, "%s: error: could not connect to keystore service\
[all...]
/system/security/keystore-engine/
H A Drsa_meth.cpp84 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local
86 if (service == NULL) {
93 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), padded.get(),
128 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local
130 if (service == NULL) {
139 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), from,
H A Ddsa_meth.cpp61 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local
63 if (service == NULL) {
72 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), dgst,
H A Decdsa_meth.cpp67 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local
69 if (service == NULL) {
78 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), dgst,
H A Deng_keystore.cpp112 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local
114 if (service == NULL) {
121 int32_t ret = service->get_pubkey(String16(key_id), &pubkey, &pubkeyLen);
/system/netd/server/
H A DDnsProxyListener.cpp53 char* service,
59 mService(service),
182 char* service = argv[2]; local
183 if (strcmp("^", service) == 0) {
184 service = NULL;
186 service = strdup(service);
218 service ? service : "[nullservice]",
224 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hint
51 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints, unsigned netId, uint32_t mark) argument
[all...]
H A DDnsProxyListener.h44 // Note: All of host, service, and hints may be NULL
47 char* service,
/system/vold/
H A DVolume.cpp456 char service[64]; local
457 snprintf(service, 64, "fuse_%s", getLabel());
458 property_set("ctl.start", service);
548 char service[64]; local
549 snprintf(service, 64, "fuse_%s", getLabel());
550 property_set("ctl.stop", service);

Completed in 3069 milliseconds