/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 103 /* keycodes for triggering this service via /dev/keychord */ 118 struct service *service_find_by_name(const char *name); 119 struct service *service_find_by_pid(pid_t pid); 120 struct service *service_find_by_keychord(int keychord_id); 121 void service_for_each(void (*func)(struct service *svc)); 123 void (*func)(struct service *svc)); 125 void (*func)(struct service *svc)); 126 void service_stop(struct service *svc); 127 void service_reset(struct service *sv [all...] |
H A D | init_parser.c | 258 struct service *service_find_by_name(const char *name) 261 struct service *svc; 263 svc = node_to_item(node, struct service, slist); 271 struct service *service_find_by_pid(pid_t pid) 274 struct service *svc; 276 svc = node_to_item(node, struct service, slist); 284 struct service *service_find_by_keychord(int keychord_id) 287 struct service *svc; 289 svc = node_to_item(node, struct service, slist); 297 void service_for_each(void (*func)(struct service *sv [all...] |
H A D | keychords.c | 35 void add_service_keycodes(struct service *svc) 97 struct service *svc; 118 INFO("starting service %s from keychord\n", svc->name); 121 ERROR("service for keychord %d not found\n", id);
|
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 | 146 void service_start(struct service *svc, const char *dynamic_args) 153 /* starting a service removes it from the disabled or reset 171 ERROR("service '%s' requires console\n", svc->name); 183 ERROR("service '%s' must be one-shot to use dynamic args, disabling\n", 304 static void service_stop_or_reset(struct service *svc, int how) 315 /* if the service has not yet started, prevent 325 NOTICE("service '%s' is being killed\n", svc->name); 333 void service_reset(struct service *svc) 338 void service_stop(struct service *svc) 349 static void restart_service_if_needed(struct service *sv [all...] |
H A D | builtins.c | 131 static void service_start_if_not_disabled(struct service *svc) 482 struct service *svc; 492 struct service *svc; 502 struct service *svc;
|
H A D | signal_handler.c | 48 struct service *svc; 110 /* Execute all onrestart commands for this service. */
|
H A D | property_service.c | 77 { "service.", AID_SYSTEM, 0 }, 83 { "service.adb.root", AID_SHELL, 0 }, 84 { "service.adb.tcp.port", AID_SHELL, 0 }, 86 { "persist.service.", AID_SYSTEM, 0 }, 96 const char *service; member in struct:__anon361 205 for (i = 0; control_perms[i].service; i++) { 206 if (strcmp(control_perms[i].service, name) == 0) { 398 ERROR("sys_prop: Unable to %s service ctl [%s] uid:%d gid:%d pid:%d\n", 521 * property service is started, so any properties stored there are
|
H A D | keywords.h | 66 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 | 88 char service[64]; local 93 snprintf(service, sizeof service, "host:transport:%s", __adb_serial); 113 snprintf(service, sizeof service, "host:%s", transport_type); 115 len = strlen(service); 118 if(writex(fd, tmp, 4) || writex(fd, service, len)) { 170 int _adb_connect(const char *service) argument 176 D("_adb_connect: %s\n", service); 177 len = strlen(service); 209 adb_connect(const char *service) argument 280 adb_command(const char *service) argument 295 adb_query(const char *service) argument [all...] |
H A D | sockets.c | 598 char *skip_host_serial(char *service) { argument 601 first_colon = strchr(service, ':'); 603 /* No colon in service string. */ 624 char *service = NULL; local 670 service = (char *)p->data + 4; 671 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) { 673 service += strlen("host-serial:"); 676 serial_end = skip_host_serial(service); 679 serial = service; 680 service [all...] |
H A D | adb.c | 850 // No SIGCHLD. Let the service subproc handle its children. 880 // service.adb.root property has been set by the "adb root" command 883 property_get("service.adb.root", value, ""); 944 ** android usb device exists and the "service.adb.tcp.port" and 948 property_get("service.adb.tcp.port", value, ""); 952 // listen on TCP port specified by service.adb.tcp.port property 1085 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) argument 1090 if(!strcmp(service, "kill")) { 1103 if (!strncmp(service, "transport", strlen("transport"))) { 1107 if (!strncmp(service, "transpor [all...] |
H A D | commandline.c | 470 fprintf(stderr, "usage: adb %s <adb service name> [ppp opts]\n", 481 fprintf(stderr,"Error: Could not open adb service: %s. Error: %s\n", 1090 char* service = argv[0]; local 1091 if (!strncmp(service, "wait-for-device", strlen("wait-for-device"))) { 1093 service = "wait-for-usb"; 1095 service = "wait-for-local"; 1097 service = "wait-for-any"; 1101 format_host_command(buf, sizeof buf, service, ttype, serial);
|
H A D | adb.h | 154 ** connect to a service implemented within the ADB server itself. 199 ** specific remote service. 202 ** determine what exact service to connect to on the far 444 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
|
H A D | usb_osx.c | 278 AndroidInterfaceNotify(void *refCon, io_service_t service, natural_t messageType, void *messageArgument) argument
|
/system/netd/ |
H A D | DnsProxyListener.cpp | 122 char* service = argv[2]; local 123 if (strcmp("^", service) == 0) { 124 service = NULL; 126 service = strdup(service); 146 service ? service : "[nullservice]"); 151 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints);
|
H A D | DnsProxyListener.h | 40 // Note: All of host, service, and hints may be NULL 43 char* service, 47 mService(service), 41 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints) argument
|
/system/media/wilhelm/src/android/ |
H A D | VideoCodec_to_android.cpp | 60 sp<IMediaPlayerService> service(IMediaDeathNotifier::getMediaPlayerService()); 61 if (service == NULL) { 66 omx = service->getOMX();
|