/system/core/adb/ |
D | adb_client.c | 94 char service[64]; in switch_socket_transport() local 99 snprintf(service, sizeof service, "host:transport:%s", __adb_serial); in switch_socket_transport() 119 snprintf(service, sizeof service, "host:%s", transport_type); in switch_socket_transport() 121 len = strlen(service); in switch_socket_transport() 124 if(writex(fd, tmp, 4) || writex(fd, service, len)) { in switch_socket_transport() 176 int _adb_connect(const char *service) in _adb_connect() argument 182 D("_adb_connect: %s\n", service); in _adb_connect() 183 len = strlen(service); in _adb_connect() 200 if (memcmp(service,"host",4) != 0 && switch_socket_transport(fd)) { in _adb_connect() 204 if(writex(fd, tmp, 4) || writex(fd, service, len)) { in _adb_connect() [all …]
|
D | adb_client.h | 10 int adb_connect(const char *service); 11 int _adb_connect(const char *service); 16 int adb_command(const char *service); 22 char *adb_query(const char *service);
|
D | sockets.c | 674 char *skip_host_serial(char *service) { in skip_host_serial() argument 679 if (!strncmp(service, prefixes[i].str, prefixes[i].len)) in skip_host_serial() 680 return strchr(service + prefixes[i].len, ':'); in skip_host_serial() 683 first_colon = strchr(service, ':'); in skip_host_serial() 706 char *service = NULL; in smart_socket_enqueue() local 752 service = (char *)p->data + 4; in smart_socket_enqueue() 753 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) { in smart_socket_enqueue() 755 service += strlen("host-serial:"); in smart_socket_enqueue() 758 serial_end = skip_host_serial(service); in smart_socket_enqueue() 761 serial = service; in smart_socket_enqueue() [all …]
|
D | adb.c | 1444 int handle_forward_request(const char* service, transport_type ttype, char* serial, int reply_fd) in handle_forward_request() argument 1446 if (!strcmp(service, "list-forward")) { in handle_forward_request() 1465 if (!strcmp(service, "killforward-all")) { in handle_forward_request() 1475 if (!strncmp(service, "forward:",8) || in handle_forward_request() 1476 !strncmp(service, "killforward:",12)) { in handle_forward_request() 1481 int createForward = strncmp(service, "kill", 4); in handle_forward_request() 1484 local = strchr(service, ':') + 1; in handle_forward_request() 1555 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) in handle_host_request() argument 1559 if(!strcmp(service, "kill")) { in handle_host_request() 1572 if (!strncmp(service, "transport", strlen("transport"))) { in handle_host_request() [all …]
|
D | commandline.c | 453 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, in adb_download_buffer() argument 461 sprintf(buf,"%s:%d", service, sz); in adb_download_buffer() 475 char *x = strrchr(service, ':'); in adb_download_buffer() 476 if(x) service = x + 1; in adb_download_buffer() 514 int adb_download(const char *service, const char *fn, unsigned progress) in adb_download() argument 525 int status = adb_download_buffer(service, fn, data, sz, progress); in adb_download() 1471 char* service = argv[0]; in adb_commandline() local 1472 if (!strncmp(service, "wait-for-device", strlen("wait-for-device"))) { in adb_commandline() 1474 service = "wait-for-usb"; in adb_commandline() 1476 service = "wait-for-local"; in adb_commandline() [all …]
|
/system/core/init/ |
D | init.h | 87 struct service { struct 127 struct service *service_find_by_name(const char *name); argument 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 *svc); 136 void service_reset(struct service *svc); 137 void service_restart(struct service *svc); [all …]
|
D | readme.txt | 51 service <name> <pathname> [ <argument> ]* 60 runs the service. 63 This is a device-critical service. If it exits more than four times in 67 This service will not automatically start with its class. 78 It defaults to the service security context, as specified by seclabel or 79 computed based on the service executable file security context. 82 Change to username before exec'ing this service. 89 Change to groupname before exec'ing this service. Additional 95 Change to securitycontext before exec'ing this service. 102 Do not restart the service when it exits. [all …]
|
D | keychords.h | 20 struct service; 22 void add_service_keycodes(struct service *svc);
|
D | init_parser.c | 429 struct service *service_find_by_name(const char *name) in service_find_by_name() 432 struct service *svc; in service_find_by_name() 434 svc = node_to_item(node, struct service, slist); in service_find_by_name() 442 struct service *service_find_by_pid(pid_t pid) in service_find_by_pid() 445 struct service *svc; in service_find_by_pid() 447 svc = node_to_item(node, struct service, slist); in service_find_by_pid() 455 struct service *service_find_by_keychord(int keychord_id) in service_find_by_keychord() 458 struct service *svc; in service_find_by_keychord() 460 svc = node_to_item(node, struct service, slist); in service_find_by_keychord() 468 void service_for_each(void (*func)(struct service *svc)) in service_for_each() [all …]
|
D | keychords.c | 35 void add_service_keycodes(struct service *svc) in add_service_keycodes() 97 struct service *svc; in handle_keychord()
|
D | parser.c | 13 struct service *svc; in DUMP() 22 svc = node_to_item(node, struct service, slist); in DUMP()
|
D | init.c | 167 void service_start(struct service *svc, const char *dynamic_args) in service_start() 376 static void service_stop_or_reset(struct service *svc, int how) in service_stop_or_reset() 404 void service_reset(struct service *svc) in service_reset() 409 void service_stop(struct service *svc) in service_stop() 414 void service_restart(struct service *svc) in service_restart() 431 static void restart_service_if_needed(struct service *svc) in restart_service_if_needed() 456 struct service *svc = NULL; in msg_start() 484 struct service *svc = service_find_by_name(name); in msg_stop() 495 struct service *svc = service_find_by_name(name); in msg_restart()
|
/system/security/keystore/ |
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) { in saw() argument 150 int32_t ret = service->saw(name, uid, &matches); in saw() 175 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); in main() local 177 if (service == NULL) { in main() 197 return saw(service, argc < 3 ? String16("") : String16(argv[2]), in main()
|
D | keystore_get.cpp | 27 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); in keystore_get() local 29 if (service == NULL) { in keystore_get() 34 int32_t ret = service->get(String16(key, keyLength), value, &valueLength); in keystore_get()
|
/system/security/keystore-engine/ |
D | rsa_meth.cpp | 84 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); in keystore_rsa_priv_enc() local 86 if (service == NULL) { in keystore_rsa_priv_enc() 93 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), padded.get(), in keystore_rsa_priv_enc() 128 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); in keystore_rsa_priv_dec() local 130 if (service == NULL) { in keystore_rsa_priv_dec() 139 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), from, in keystore_rsa_priv_dec()
|
D | dsa_meth.cpp | 61 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); in keystore_dsa_do_sign() local 63 if (service == NULL) { in keystore_dsa_do_sign() 72 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), dgst, in keystore_dsa_do_sign()
|
D | ecdsa_meth.cpp | 67 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); in keystore_ecdsa_do_sign() local 69 if (service == NULL) { in keystore_ecdsa_do_sign() 78 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), dgst, in keystore_ecdsa_do_sign()
|
D | eng_keystore.cpp | 112 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); in keystore_loadkey() local 114 if (service == NULL) { in keystore_loadkey() 121 int32_t ret = service->get_pubkey(String16(key_id), &pubkey, &pubkeyLen); in keystore_loadkey()
|
/system/netd/server/ |
D | DnsProxyListener.cpp | 53 char* service, in GetAddrInfoHandler() argument 59 mService(service), in GetAddrInfoHandler() 182 char* service = argv[2]; in runCommand() local 183 if (strcmp("^", service) == 0) { in runCommand() 184 service = NULL; in runCommand() 186 service = strdup(service); in runCommand() 218 service ? service : "[nullservice]", in runCommand() 224 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netId, mark); in runCommand()
|
/system/core/rootdir/ |
D | init.zygote64_32.rc | 1 service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-system-server --sock… 9 service zygote_secondary /system/bin/app_process32 -Xzygote /system/bin --zygote --socket-name=zygo…
|
D | init.zygote32_64.rc | 1 service zygote /system/bin/app_process32 -Xzygote /system/bin --zygote --start-system-server --sock… 9 service zygote_secondary /system/bin/app_process64 -Xzygote /system/bin --zygote --socket-name=zygo…
|
D | init.rc | 470 service ueventd /sbin/ueventd 475 service logd /system/bin/logd 482 service healthd /sbin/healthd 487 service console /system/bin/sh 499 service adbd /sbin/adbd --root_seclabel=u:r:su:s0 509 service lmkd /system/bin/lmkd 514 service servicemanager /system/bin/servicemanager 525 service vold /system/bin/vold 530 service netd /system/bin/netd 537 service debuggerd /system/bin/debuggerd [all …]
|
D | init.zygote32.rc | 1 service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
|
D | init.zygote64.rc | 1 service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-system-server
|
/system/vold/ |
D | Volume.cpp | 456 char service[64]; in mountVol() local 457 snprintf(service, 64, "fuse_%s", getLabel()); in mountVol() 458 property_set("ctl.start", service); in mountVol() 548 char service[64]; in unmountVol() local 549 snprintf(service, 64, "fuse_%s", getLabel()); in unmountVol() 550 property_set("ctl.stop", service); in unmountVol()
|