/system/core/init/ |
D | builtins.c | 203 int do_chdir(int nargs, char **args) in do_chdir() argument 205 chdir(args[1]); in do_chdir() 209 int do_chroot(int nargs, char **args) in do_chroot() argument 211 chroot(args[1]); in do_chroot() 215 int do_class_start(int nargs, char **args) in do_class_start() argument 221 service_for_each_class(args[1], service_start_if_not_disabled); in do_class_start() 225 int do_class_stop(int nargs, char **args) in do_class_stop() argument 227 service_for_each_class(args[1], service_stop); in do_class_stop() 231 int do_class_reset(int nargs, char **args) in do_class_reset() argument 233 service_for_each_class(args[1], service_reset); in do_class_reset() [all …]
|
D | keywords.h | 3 int do_chroot(int nargs, char **args); 4 int do_chdir(int nargs, char **args); 5 int do_class_start(int nargs, char **args); 6 int do_class_stop(int nargs, char **args); 7 int do_class_reset(int nargs, char **args); 8 int do_domainname(int nargs, char **args); 9 int do_enable(int nargs, char **args); 10 int do_exec(int nargs, char **args); 11 int do_export(int nargs, char **args); 12 int do_hostname(int nargs, char **args); [all …]
|
D | ueventd_parser.c | 33 static void parse_line_device(struct parse_state *state, int nargs, char **args); 71 int nargs __attribute__((unused)), char **args __attribute__((unused))) in parse_line_no_op() argument 101 int nargs __attribute__((unused)), char **args) in parse_subsystem() argument 105 if (!valid_name(args[1])) { in parse_subsystem() 106 parse_error(state, "invalid subsystem name '%s'\n", args[1]); in parse_subsystem() 110 s = ueventd_subsystem_find_by_name(args[1]); in parse_subsystem() 113 args[1]); in parse_subsystem() 122 s->name = args[1]; in parse_subsystem() 129 char **args) in parse_line_subsystem() argument 138 kw = lookup_keyword(args[0]); in parse_line_subsystem() [all …]
|
D | init_parser.c | 45 static void *parse_service(struct parse_state *state, int nargs, char **args); 46 static void parse_line_service(struct parse_state *state, int nargs, char **args); 48 static void *parse_action(struct parse_state *state, int nargs, char **args); 49 static void parse_line_action(struct parse_state *state, int nargs, char **args); 62 int (*func)(int nargs, char **args); 172 static void parse_line_no_op(struct parse_state *state, int nargs, char **args) in parse_line_no_op() argument 295 static void parse_import(struct parse_state *state, int nargs, char **args) in parse_import() argument 307 ret = expand_props(conf_file, args[1], sizeof(conf_file)); in parse_import() 321 int nargs, char **args) in parse_new_section() argument 323 printf("[ %s %s ]\n", args[0], in parse_new_section() [all …]
|
D | ueventd.c | 122 void set_device_permission(int nargs, char **args) in set_device_permission() argument 138 if (args[0][0] == '#') in set_device_permission() 141 name = args[0]; in set_device_permission() 144 INFO("/sys/ rule %s %s\n",args[0],args[1]); in set_device_permission() 145 attr = args[1]; in set_device_permission() 146 args++; in set_device_permission() 151 ERROR("invalid line ueventd.rc line for '%s'\n", args[0]); in set_device_permission() 173 perm = strtol(args[1], &endptr, 8); in set_device_permission() 175 ERROR("invalid mode '%s'\n", args[1]); in set_device_permission() 180 ret = get_android_id(args[2]); in set_device_permission() [all …]
|
D | init.c | 199 if (stat(svc->args[0], &s) != 0) { in service_start() 200 ERROR("cannot find '%s', disabling '%s'\n", svc->args[0], svc->name); in service_start() 207 svc->args[0]); in service_start() 222 INFO("computing context for service '%s'\n", svc->args[0]); in service_start() 229 rc = getfilecon(svc->args[0], &fcon); in service_start() 298 for (n = 0; svc->args[n]; n++) { in service_start() 299 INFO("args[%d] = '%s'\n", n, svc->args[n]); in service_start() 335 if (execve(svc->args[0], (char**) svc->args, (char**) ENV) < 0) { in service_start() 336 ERROR("cannot execve('%s'): %s\n", svc->args[0], strerror(errno)); in service_start() 346 memcpy(arg_ptrs, svc->args, (svc->nargs * sizeof(char *))); in service_start() [all …]
|
/system/vold/ |
D | Ext4.cpp | 72 const char *args[4]; in resize() local 77 args[0] = RESIZE2FS_PATH; in resize() 78 args[1] = "-f"; in resize() 79 args[2] = fspath; in resize() 85 args[3] = size_str; in resize() 86 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, false, in resize() 116 const char *args[7]; in format() local 120 args[0] = MKEXT4FS_PATH; in format() 121 args[1] = "-J"; in format() 122 args[2] = "-a"; in format() [all …]
|
D | Fat.cpp | 62 const char *args[4]; in check() local 64 args[0] = FSCK_MSDOS_PATH; in check() 65 args[1] = "-p"; in check() 66 args[2] = "-f"; in check() 67 args[3] = fsPath; in check() 69 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, in check() 174 const char *args[11]; in format() local 182 args[0] = MKDOSFS_PATH; in format() 183 args[1] = "-F"; in format() 184 args[2] = "32"; in format() [all …]
|
/system/keymaster/ |
D | google_keymaster_test_utils.h | 96 va_list args; in debug() local 97 va_start(args, fmt); in debug() 98 int result = vprintf(fmt, args); in debug() 100 va_end(args); in debug() 105 va_list args; in info() local 106 va_start(args, fmt); in info() 107 int result = vprintf(fmt, args); in info() 109 va_end(args); in info() 114 va_list args; in error() local 115 va_start(args, fmt); in error() [all …]
|
/system/core/toolbox/ |
D | mknod.c | 45 int args = 0; in mknod_main() local 60 args = 5; in mknod_main() 65 args = 5; in mknod_main() 69 args = 3; in mknod_main() 76 if (argc != args) { in mknod_main() 77 if (args == 5) { in mknod_main() 85 if (args == 5) { in mknod_main()
|
D | setsebool.c | 11 static int do_setsebool(int nargs, char **args) { in do_setsebool() argument 12 const char *name = args[1]; in do_setsebool() 13 const char *value = args[2]; in do_setsebool()
|
/system/netd/server/ |
D | NetdConstants.cpp | 43 std::string args = ""; in logExecError() local 45 args += *argp; in logExecError() 46 args += ' '; in logExecError() 49 ALOGE("exec() res=%d, status=%d for %s", res, status, args.c_str()); in logExecError() 70 static int execIptables(IptablesTarget target, bool silent, va_list args) { in execIptables() argument 76 arg = va_arg(args, const char *); in execIptables() 100 va_list args; in execIptables() local 101 va_start(args, target); in execIptables() 102 int res = execIptables(target, false, args); in execIptables() 103 va_end(args); in execIptables() [all …]
|
D | TetherController.cpp | 144 char **args = (char **)malloc(sizeof(char *) * num_processed_args); in startTethering() local 145 args[num_processed_args - 1] = NULL; in startTethering() 146 args[0] = (char *)"/system/bin/dnsmasq"; in startTethering() 147 args[1] = (char *)"--keep-in-foreground"; in startTethering() 148 args[2] = (char *)"--no-resolv"; in startTethering() 149 args[3] = (char *)"--no-poll"; in startTethering() 150 args[4] = (char *)"--dhcp-authoritative"; in startTethering() 152 args[5] = (char *)"--dhcp-option-force=43,ANDROID_METERED"; in startTethering() 153 args[6] = (char *)"--pid-file"; in startTethering() 154 args[7] = (char *)""; in startTethering() [all …]
|
D | ClatdController.cpp | 74 char *args[] = { in startClatd() local 85 if (execv(args[0], args)) { in startClatd()
|
/system/extras/verity/ |
D | VeritySigner.java | 27 public static void main(String[] args) throws Exception { in main() argument 28 byte[] content = Utils.read(args[0]); in main() 29 PrivateKey privateKey = Utils.loadPEMPrivateKey(Utils.read(args[1])); in main() 31 Utils.write(signature, args[2]); in main()
|
D | BootSignature.java | 121 public static void main(String[] args) throws Exception { in main() argument 122 doSignature(args[0], args[1], args[2], args[3]); in main()
|
D | KeystoreSigner.java | 127 public static void main(String[] args) throws Exception { in main() argument 128 String privkeyFname = args[0]; in main() 129 String outfileFname = args[1]; in main() 131 for (int i=2; i < args.length; i++) { in main() 132 ks.addPublicKey(Utils.read(args[i])); in main()
|
/system/extras/ext4_utils/ |
D | ext4_utils.h | 52 #define warn(fmt, args...) do { fprintf(stderr, "warning: %s: " fmt "\n", __func__, ## args); } whi… argument 53 #define error(fmt, args...) do { fprintf(stderr, "error: %s: " fmt "\n", __func__, ## args); if (!f… argument 54 #define error_errno(s, args...) error(s ": %s", ##args, strerror(errno)) argument 55 #define critical_error(fmt, args...) do { fprintf(stderr, "critical error: %s: " fmt "\n", __func__… argument 56 #define critical_error_errno(s, args...) critical_error(s ": %s", ##args, strerror(errno)) argument
|
/system/core/netcfg/ |
D | netcfg.c | 110 static int call_func(void *_func, unsigned nargs, char **args) in call_func() argument 115 return func(args[0]); in call_func() 119 return func(args[0], args[1]); in call_func() 123 return func(args[0], args[1], args[2]); in call_func()
|
/system/core/libsparse/ |
D | sparse_defs.h | 46 #define error(fmt, args...) do { fprintf(stderr, "error: %s: " fmt "\n", __func__, ## args); } whil… argument 47 #define error_errno(s, args...) error(s ": %s", ##args, strerror(errno)) argument
|
/system/extras/tests/memtest/ |
D | bandwidth.cpp | 257 bool runThreadedTest(thread_arg_t args[], int num_threads, int run_time) { in runThreadedTest() argument 263 args[i].run = &run; in runThreadedTest() 265 (void*)&args[i]); in runThreadedTest() 289 args[i].bench->getName(), args[i].avg_mb); in runThreadedTest() 307 thread_arg_t args[cpu_list.size()]; in per_core_bandwidth() local 312 args[i].core = *it; in per_core_bandwidth() 313 args[i].bench = createBandwidthBenchmarkObject(values); in per_core_bandwidth() 314 if (!args[i].bench) { in per_core_bandwidth() 326 if (!runThreadedTest(args, cpu_list.size(), values["run_time"].int_value)) { in per_core_bandwidth() 344 thread_arg_t args[num_threads]; in multithread_bandwidth() local [all …]
|
/system/core/run-as/ |
D | run-as.c | 98 va_list args; in panic() local 101 va_start(args, format); in panic() 102 vfprintf(stderr, format, args); in panic() 103 va_end(args); in panic()
|
/system/extras/tests/bionic/libc/bionic/ |
D | test_mutex.c | 37 va_list args; in panic() local 38 va_start(args, format); in panic() 39 vfprintf(stderr, format, args); in panic() 40 va_end(args); in panic()
|
/system/extras/tests/bionic/libc/common/ |
D | test_pthread_rwlock.c | 48 va_list args; in panic() local 50 va_start(args, format); in panic() 51 vfprintf(stderr, format, args); in panic() 52 va_end(args); in panic() 62 va_list args; in error() local 64 va_start(args, format); in error() 65 vfprintf(stderr, format, args); in error() 66 va_end(args); in error()
|
/system/core/libutils/ |
D | String8.cpp | 212 va_list args; in format() local 213 va_start(args, fmt); in format() 215 String8 result(formatV(fmt, args)); in format() 217 va_end(args); in format() 221 String8 String8::formatV(const char* fmt, va_list args) in formatV() argument 224 result.appendFormatV(fmt, args); in formatV() 315 va_list args; in appendFormat() local 316 va_start(args, fmt); in appendFormat() 318 status_t result = appendFormatV(fmt, args); in appendFormat() 320 va_end(args); in appendFormat() [all …]
|