/system/core/init/ |
H A D | keychords.h | 20 struct service; 22 void add_service_keycodes(struct service *svc);
|
H A D | init.h | 75 #define SVC_RESTART 0x100 /* Use to safely restart (stop, wait, start) a service */ 81 struct service { struct 106 /* keycodes for triggering this service via /dev/keychord */ 121 struct service *service_find_by_name(const char *name); 122 struct service *service_find_by_pid(pid_t pid); 123 struct service *service_find_by_keychord(int keychord_id); 124 void service_for_each(void (*func)(struct service *svc)); 126 void (*func)(struct service *svc)); 128 void (*func)(struct service *svc)); 129 void service_stop(struct service *sv [all...] |
H A D | keychords.c | 35 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 D | init_parser.c | 429 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 D | parser.c | 13 struct service *svc; 22 svc = node_to_item(node, struct service, slist); 23 RAW("service %s\n", svc->name);
|
H A D | init.c | 154 void service_start(struct service *svc, const char *dynamic_args) 163 /* starting a service removes it from the disabled or reset 181 ERROR("service '%s' requires console\n", svc->name); 193 ERROR("service '%s' must be one-shot to use dynamic args, disabling\n", 209 INFO("computing context for service '%s'\n", svc->args[0]); 363 static void service_stop_or_reset(struct service *svc, int how) 365 /* The service is still SVC_RUNNING until its process exits, but if it has 373 /* if the service has not yet started, prevent 383 NOTICE("service '%s' is being killed\n", svc->name); 391 void service_reset(struct service *sv [all...] |
H A D | signal_handler.c | 48 struct service *svc; 112 /* Execute all onrestart commands for this service. */
|
H A D | property_service.c | 82 { "service.", AID_SYSTEM, 0 }, 90 { "service.adb.root", AID_SHELL, 0 }, 91 { "service.adb.tcp.port", AID_SHELL, 0 }, 93 { "persist.service.", AID_SYSTEM, 0 }, 95 { "persist.service.bdroid.", AID_BLUETOOTH, 0 }, 105 const char *service; member in struct:__anon143 180 * Create a name prefix out of ctl.<service name> 182 * property service backend labeling while avoiding 207 for (i = 0; control_perms[i].service; i++) { 208 if (strcmp(control_perms[i].service, nam [all...] |
H A D | builtins.c | 195 static void service_start_if_not_disabled(struct service *svc) 586 struct service *svc; 596 struct service *svc; 606 struct service *svc;
|
H A D | keywords.h | 77 KEYWORD(service, SECTION, 0, 0)
|
/system/core/adb/ |
H A D | adb_client.h | 6 /* 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 D | adb_client.c | 94 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 293 adb_command(const char *service) argument 308 adb_query(const char *service) argument [all...] |
H A D | sockets.c | 627 char *skip_host_serial(char *service) { argument 632 if (!strncmp(service, prefixes[i].str, prefixes[i].len)) 633 return strchr(service + prefixes[i].len, ':'); 636 first_colon = strchr(service, ':'); 638 /* No colon in service string. */ 659 char *service = NULL; local 705 service = (char *)p->data + 4; 706 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) { 708 service += strlen("host-serial:"); 711 serial_end = skip_host_serial(service); [all...] |
H A D | adb.c | 169 /* A handle to adb-debug qemud service in the emulator. */ 172 /* Initializes connection with the adb-debug qemud service in the emulator. */ 181 /* adb debugging QEMUD service connection request. */ 1236 // service.adb.root property has been set by the "adb root" command 1239 property_get("service.adb.root", value, ""); 1264 // No SIGCHLD. Let the service subproc handle its children. 1352 property_get("service.adb.tcp.port", value, ""); 1358 // listen on TCP port specified by service.adb.tcp.port property 1390 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) argument 1395 if(!strcmp(service, "kil [all...] |
H A D | commandline.c | 389 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, argument 397 sprintf(buf,"%s:%d", service, sz); 411 char *x = strrchr(service, ':'); 412 if(x) service = x + 1; 450 int adb_download(const char *service, const char *fn, unsigned progress) argument 461 int status = adb_download_buffer(service, fn, data, sz, progress); 566 fprintf(stderr, "usage: adb %s <adb service name> [ppp opts]\n", 577 fprintf(stderr,"Error: Could not open adb service: %s. Error: %s\n", 1246 char* service = argv[0]; local 1247 if (!strncmp(service, "wai [all...] |
H A D | adb.h | 91 ** local service socket 157 ** connect to a service implemented within the ADB server itself. 213 ** specific remote service. 216 ** determine what exact service to connect to on the far 366 * qemud service that can display adb trace messages (on condition that emulator 487 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
|
/system/security/keystore/ |
H A D | keystore_get.cpp | 27 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 D | keystore_cli.cpp | 50 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 D | rsa_meth.cpp | 84 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 D | dsa_meth.cpp | 61 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 D | ecdsa_meth.cpp | 67 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 D | eng_keystore.cpp | 112 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/ |
H A D | DnsProxyListener.cpp | 52 char* service, 60 mService(service), 195 char* service = argv[2]; local 196 if (strcmp("^", service) == 0) { 197 service = NULL; 199 service = strdup(service); 229 service ? service : "[nullservice]", 236 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hint 50 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints, char* iface, pid_t pid, uid_t uid, int mark) argument [all...] |
H A D | DnsProxyListener.h | 43 // Note: All of host, service, and hints may be NULL 46 char* service,
|
/system/vold/ |
H A D | Volume.cpp | 456 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);
|