/system/core/init/ |
H A D | keychords.h | 20 struct service; 22 void add_service_keycodes(struct service *svc);
|
H A D | init.h | 80 struct service { struct 105 /* keycodes for triggering this service via /dev/keychord */ 120 struct service *service_find_by_name(const char *name); 121 struct service *service_find_by_pid(pid_t pid); 122 struct service *service_find_by_keychord(int keychord_id); 123 void service_for_each(void (*func)(struct service *svc)); 125 void (*func)(struct service *svc)); 127 void (*func)(struct service *svc)); 128 void service_stop(struct service *svc); 129 void service_reset(struct service *sv [all...] |
H A D | keychords.c | 35 void add_service_keycodes(struct service *svc) 97 struct service *svc; 114 INFO("starting service %s from keychord\n", svc->name); 117 ERROR("service for keychord %d not found\n", id);
|
H A D | init_parser.c | 425 struct service *service_find_by_name(const char *name) 428 struct service *svc; 430 svc = node_to_item(node, struct service, slist); 438 struct service *service_find_by_pid(pid_t pid) 441 struct service *svc; 443 svc = node_to_item(node, struct service, slist); 451 struct service *service_find_by_keychord(int keychord_id) 454 struct service *svc; 456 svc = node_to_item(node, struct service, slist); 464 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) 374 /* if the service has not yet started, prevent 384 NOTICE("service '%s' is being killed\n", svc->name); 392 void service_reset(struct service *svc) 397 void service_stop(struct service *sv [all...] |
H A D | signal_handler.c | 48 struct service *svc; 110 /* Execute all onrestart commands for this service. */
|
H A D | property_service.c | 81 { "service.", AID_SYSTEM, 0 }, 89 { "service.adb.root", AID_SHELL, 0 }, 90 { "service.adb.tcp.port", AID_SHELL, 0 }, 92 { "persist.service.", AID_SYSTEM, 0 }, 94 { "persist.service.bdroid.", AID_BLUETOOTH, 0 }, 104 const char *service; member in struct:__anon375 229 * Create a name prefix out of ctl.<service name> 231 * property service backend labeling while avoiding 256 for (i = 0; control_perms[i].service; i++) { 257 if (strcmp(control_perms[i].service, nam [all...] |
H A D | builtins.c | 194 static void service_start_if_not_disabled(struct service *svc) 573 struct service *svc; 583 struct service *svc; 593 struct service *svc;
|
H A D | keywords.h | 74 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 | 168 /* A handle to adb-debug qemud service in the emulator. */ 171 /* Initializes connection with the adb-debug qemud service in the emulator. */ 180 /* adb debugging QEMUD service connection request. */ 1231 // service.adb.root property has been set by the "adb root" command 1234 property_get("service.adb.root", value, ""); 1259 // No SIGCHLD. Let the service subproc handle its children. 1365 property_get("service.adb.tcp.port", value, ""); 1371 // listen on TCP port specified by service.adb.tcp.port property 1502 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) argument 1507 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 160 ** connect to a service implemented within the ADB server itself. 216 ** specific remote service. 219 ** determine what exact service to connect to on the far 369 * qemud service that can display adb trace messages (on condition that emulator 490 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
|
H A D | usb_osx.c | 286 AndroidInterfaceNotify(void *refCon, io_service_t service, natural_t messageType, void *messageArgument) argument
|
/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 | eng_keystore.cpp | 166 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local 168 if (service == NULL) { 175 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), padded.get(), 210 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local 212 if (service == NULL) { 221 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), from, 305 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); local 307 if (service == NULL) { 314 int32_t ret = service->get_pubkey(String16(key_id), &pubkey, &pubkeyLen);
|
/system/netd/ |
H A D | DnsProxyListener.cpp | 50 char* service, 56 mService(service), 185 char* service = argv[2]; local 186 if (strcmp("^", service) == 0) { 187 service = NULL; 189 service = strdup(service); 218 service ? service : "[nullservice]", 225 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hint 48 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints, char* iface, pid_t pid) argument [all...] |
H A D | DnsProxyListener.h | 39 // Note: All of host, service, and hints may be NULL 42 char* service,
|