/system/core/toolbox/upstream-netbsd/bin/dd/ |
D | args.c | 85 static const struct arg { struct 115 struct arg *ap, tmp; in jcl() 116 char *oper, *arg; in jcl() local 127 if ((arg = strchr(oper, '=')) == NULL) { in jcl() 131 *arg++ = '\0'; in jcl() 132 if (!*arg) { in jcl() 149 ap->f(arg); in jcl() 212 return (strcmp(((const struct arg *)a)->name, in c_arg() 213 ((const struct arg *)b)->name)); in c_arg() 217 f_bs(char *arg) in f_bs() argument [all …]
|
/system/core/debuggerd/ |
D | crasher.c | 27 static int do_action(const char* arg); 92 static int do_action_on_thread(const char* arg) in do_action_on_thread() argument 95 pthread_create(&t, NULL, thread_callback, (void*) arg); in do_action_on_thread() 126 static int do_action(const char* arg) in do_action() argument 130 if (!strncmp(arg, "thread-", strlen("thread-"))) { in do_action() 131 return do_action_on_thread(arg + strlen("thread-")); in do_action() 132 } else if (!strcmp(arg, "SIGSEGV-non-null")) { in do_action() 134 } else if (!strcmp(arg, "smash-stack")) { in do_action() 137 } else if (!strcmp(arg, "stack-overflow")) { in do_action() 139 } else if (!strcmp(arg, "nostack")) { in do_action() [all …]
|
/system/core/liblog/tests/ |
D | benchmark_main.cpp | 61 int PrettyPrintInt(char* str, int len, unsigned int arg) in PrettyPrintInt() argument 63 if (arg >= (1<<30) && arg % (1<<30) == 0) { in PrettyPrintInt() 64 return snprintf(str, len, "%uGi", arg/(1<<30)); in PrettyPrintInt() 65 } else if (arg >= (1<<20) && arg % (1<<20) == 0) { in PrettyPrintInt() 66 return snprintf(str, len, "%uMi", arg/(1<<20)); in PrettyPrintInt() 67 } else if (arg >= (1<<10) && arg % (1<<10) == 0) { in PrettyPrintInt() 68 return snprintf(str, len, "%uKi", arg/(1<<10)); in PrettyPrintInt() 69 } else if (arg >= 1000000000 && arg % 1000000000 == 0) { in PrettyPrintInt() 70 return snprintf(str, len, "%uG", arg/1000000000); in PrettyPrintInt() 71 } else if (arg >= 1000000 && arg % 1000000 == 0) { in PrettyPrintInt() [all …]
|
D | benchmark.h | 34 int PrettyPrintInt(char* str, int len, unsigned int arg); 65 BenchmarkWantsArgBase<T>* Arg(const char* arg_name, T arg) { in Arg() argument 66 BenchmarkRegister(new BenchmarkWithArg<T>(name_, fn_arg_, arg_name, arg)); in Arg() 78 BenchmarkWithArg(const char* name, void (*fn)(int, T), const char* arg_name, T arg) : in BenchmarkWithArg() argument 79 BenchmarkWantsArg<T>(name, fn), arg_(arg) { in BenchmarkWithArg() 110 BenchmarkWantsArg<int>* Arg(int arg) { in Arg() argument 112 PrettyPrintInt(arg_name, sizeof(arg_name), arg); in Arg() 113 BenchmarkRegister(new BenchmarkWithArg<int>(name_, fn_arg_, arg_name, arg)); in Arg() 130 static inline void BenchmarkAddArg(::testing::Benchmark* b, const char* name, T arg) { in BenchmarkAddArg() argument 133 ba->Arg(name, arg); in BenchmarkAddArg()
|
/system/extras/tests/bionic/libc/bionic/ |
D | test_pthread_cond.c | 13 thread1_func(void* arg) in thread1_func() argument 15 printf("Thread 1 (arg=%p tid=%d) entered.\n", arg, gettid()); in thread1_func() 25 thread2_func(void* arg) in thread2_func() argument 27 printf("Thread 2 (arg=%p tid=%d) entered.\n", arg, gettid()); in thread2_func() 38 thread3_func(void* arg) in thread3_func() argument 40 printf("Thread 3 (arg=%p tid=%d) entered.\n", arg, gettid()); in thread3_func() 55 thread4_func(void* arg) in thread4_func() argument 57 printf("Thread 4 (arg=%p tid=%d) entered.\n", arg, gettid()); in thread4_func()
|
/system/core/mkbootimg/ |
D | mkbootimg.c | 136 char *arg = argv[0]; in main() local 137 if (!strcmp(arg, "--id")) { in main() 145 if(!strcmp(arg, "--output") || !strcmp(arg, "-o")) { in main() 147 } else if(!strcmp(arg, "--kernel")) { in main() 149 } else if(!strcmp(arg, "--ramdisk")) { in main() 151 } else if(!strcmp(arg, "--second")) { in main() 153 } else if(!strcmp(arg, "--cmdline")) { in main() 155 } else if(!strcmp(arg, "--base")) { in main() 157 } else if(!strcmp(arg, "--kernel_offset")) { in main() 159 } else if(!strcmp(arg, "--ramdisk_offset")) { in main() [all …]
|
/system/extras/procrank/ |
D | procrank.c | 141 int arg; in main() local 149 for (arg = 1; arg < argc; arg++) { in main() 150 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; } in main() 151 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; } in main() 152 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; } in main() 153 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; } in main() 154 if (!strcmp(argv[arg], "-s")) { compfn = &sort_by_swap; continue; } in main() 155 … if (!strcmp(argv[arg], "-c")) { required_flags = 0; flags_mask = PM_PAGE_SWAPBACKED; continue; } in main() 156 … if (!strcmp(argv[arg], "-C")) { required_flags = flags_mask = PM_PAGE_SWAPBACKED; continue; } in main() 157 if (!strcmp(argv[arg], "-k")) { required_flags = flags_mask = PM_PAGE_KSM; continue; } in main() [all …]
|
/system/bt/osi/test/ |
D | reactor_test.cpp | 83 unregister_arg_t *arg = (unregister_arg_t *)context; in unregister_cb() local 84 reactor_unregister(arg->object); in unregister_cb() 85 reactor_stop(arg->reactor); in unregister_cb() 92 unregister_arg_t arg; in TEST_F() local 93 arg.reactor = reactor; in TEST_F() 94 arg.object = reactor_register(reactor, fd, &arg, unregister_cb, NULL); in TEST_F()
|
/system/media/audio_utils/tests/ |
D | fifo_tests.cpp | 33 char *arg = argv[i]; in main() local 34 if (arg[0] != '-') in main() 36 switch (arg[1]) { in main() 38 frameCount = atoi(&arg[2]); in main() 41 maxFramesPerRead = atoi(&arg[2]); in main() 44 maxFramesPerWrite = atoi(&arg[2]); in main() 47 fprintf(stderr, "%s: unknown option %s\n", argv[0], arg); in main()
|
/system/extras/tests/bionic/libc/other/ |
D | test_jpeg.c | 251 const char* arg = &argv[1][1]; in main() local 252 switch (arg[0]) { in main() 254 if (arg[1] == 0) { in main() 257 arg = argv[2]; in main() 261 arg += 1; in main() 263 repeat_count = strtol(arg, NULL, 10); in main() 274 if (arg[1] == 0) { in main() 277 arg = argv[2]; in main() 281 arg += 1; in main() 283 dct_method = strtol(arg, NULL, 10); in main()
|
D | test_zlib.c | 187 const char* arg = &argv[1][1]; in main() local 188 switch (arg[0]) { in main() 190 if (arg[1] == 0) { in main() 193 arg = argv[2]; in main() 197 arg += 1; in main() 199 repeat_count = strtol(arg, NULL, 10); in main() 207 compression_level = arg[0] - '0'; in main()
|
/system/core/fastboot/ |
D | usbtest.c | 154 char *arg = *argv++; in process_args() local 155 if(!strncmp(arg,"count=",6)) { in process_args() 156 arg_count = atoi(arg + 6); in process_args() 157 } else if(!strncmp(arg,"size=",5)) { in process_args() 158 arg_size = atoi(arg + 5); in process_args() 160 fprintf(stderr,"unknown argument: %s\n", arg); in process_args()
|
/system/core/adb/ |
D | fdevent.h | 39 fdevent *fdevent_create(int fd, fd_func func, void *arg); 48 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg); 78 void *arg; member
|
D | sysdeps.h | 84 typedef void* (*adb_thread_func_t)(void* arg); 86 typedef void (*win_thread_func_t)(void* arg); 88 …atic __inline__ int adb_thread_create( adb_thread_t *thread, adb_thread_func_t func, void* arg) in adb_thread_create() argument 90 thread->tid = _beginthread( (win_thread_func_t)func, 0, arg ); in adb_thread_create() 205 fdevent *fdevent_create(int fd, fd_func func, void *arg); 207 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg); 434 typedef void* (*adb_thread_func_t)( void* arg ); 436 …c __inline__ int adb_thread_create( adb_thread_t *pthread, adb_thread_func_t start, void* arg ) in adb_thread_create() argument 443 return pthread_create( pthread, &attr, start, arg ); in adb_thread_create()
|
D | services.cpp | 117 static bool reboot_service_impl(int fd, const char* arg) { in reboot_service_impl() argument 118 const char* reboot_arg = arg; in reboot_service_impl() 169 void reboot_service(int fd, void* arg) in reboot_service() argument 171 if (reboot_service_impl(fd, static_cast<const char*>(arg))) { in reboot_service() 179 free(arg); in reboot_service() 183 void reverse_service(int fd, void* arg) in reverse_service() argument 185 const char* command = reinterpret_cast<const char*>(arg); in reverse_service() 190 free(arg); in reverse_service() 473 void* arg = strdup(name + 7); in service_to_fd() local 474 if (arg == NULL) return -1; in service_to_fd() [all …]
|
D | transport_local.cpp | 135 static void *server_socket_thread(void * arg) in server_socket_thread() argument 140 int port = (int) (uintptr_t) arg; in server_socket_thread() 213 static void *qemu_socket_thread(void * arg) in qemu_socket_thread() argument 222 const int port = (int) (uintptr_t) arg; in qemu_socket_thread() 239 adb_thread_create(&thr, server_socket_thread, arg); in qemu_socket_thread()
|
/system/vold/bench/ |
D | benchgen.py | 65 def extract_file(e, arg): argument 66 if "<" in arg: 67 fd, path = arg.split("<") 76 arg = "" 82 arg += c 98 args.append(arg.strip()) 99 arg = "" 101 arg += c 103 args.append(arg.strip())
|
/system/extras/tests/memtest/ |
D | bandwidth.cpp | 70 char *arg = &argv[i][2]; in processBandwidthOptions() local 73 if (strcmp(arg, options[j].name) == 0) { in processBandwidthOptions() 180 thread_arg_t *arg = reinterpret_cast<thread_arg_t *>(data); in runBandwidthThread() local 182 if (arg->core >= 0) { in runBandwidthThread() 185 CPU_SET(arg->core, &cpuset); in runBandwidthThread() 193 while (!*arg->run) { in runBandwidthThread() 198 arg->bench->run(); in runBandwidthThread() 199 if (!*arg->run) { in runBandwidthThread() 204 avg_mb = (avg_mb/run) * (run-1) + arg->bench->mb_per_sec()/run; in runBandwidthThread() 206 arg->avg_mb = avg_mb; in runBandwidthThread()
|
/system/extras/showmap/ |
D | showmap.c | 323 char *arg; in main() local 328 arg = argv[0]; in main() 329 if (!strcmp(arg,"-v")) { in main() 333 if (!strcmp(arg,"-t")) { in main() 337 if (!strcmp(arg,"-a")) { in main() 345 pid = strtol(arg, &argend, 10); in main() 346 if (*arg && !*argend) { in main() 353 fprintf(stderr, "unrecognized argument: %s\n", arg); in main()
|
/system/core/libsysutils/src/ |
D | SocketClient.cpp | 114 char *SocketClient::quoteArg(const char *arg) { in quoteArg() argument 115 int len = strlen(arg); in quoteArg() 118 const char *end = arg + len; in quoteArg() 127 while (arg < end) { in quoteArg() 128 switch (*arg) { in quoteArg() 133 *(current++) = *(arg++); in quoteArg()
|
/system/netd/server/ |
D | NetdConstants.cpp | 75 const char* arg; in execIptables() local 81 arg = va_arg(args, const char *); in execIptables() 82 argsList.push_back(arg); in execIptables() 83 } while (arg); in execIptables()
|
D | CommandListener.h | 138 static FirewallRule parseRule(const char* arg); 139 static FirewallType parseFirewallType(const char* arg); 140 static ChildChain parseChildChain(const char* arg); 157 static StrictPenalty parsePenalty(const char* arg);
|
D | CommandListener.cpp | 56 Permission stringToPermission(const char* arg) { in stringToPermission() argument 57 if (!strcmp(arg, "NETWORK")) { in stringToPermission() 60 if (!strcmp(arg, "SYSTEM")) { in stringToPermission() 66 unsigned stringToNetId(const char* arg) { in stringToNetId() argument 67 if (!strcmp(arg, "local")) { in stringToNetId() 71 if (!strncmp(arg, "oem", 3)) { in stringToNetId() 72 unsigned n = strtoul(arg + 3, NULL, 0); in stringToNetId() 79 return strtoul(arg, NULL, 0); in stringToNetId() 1275 FirewallRule CommandListener::FirewallCmd::parseRule(const char* arg) { in parseRule() argument 1276 if (!strcmp(arg, "allow")) { in parseRule() [all …]
|
/system/core/libcutils/ |
D | android_reboot.c | 92 int android_reboot(int cmd, int flags UNUSED, const char *arg) in android_reboot() argument 110 LINUX_REBOOT_CMD_RESTART2, arg); in android_reboot()
|
/system/core/toolbox/ |
D | mount.c | 96 parse_mount_options(char *arg, unsigned long rwflag, struct extra_opts *extra, int* loop, char *loo… in parse_mount_options() argument 101 while ((s = strsep(&arg, ",")) != NULL) { in parse_mount_options() 260 static int get_mounts_dev_dir(const char *arg, char **dev, char **dir) in get_mounts_dev_dir() argument 286 (strcmp(arg, mount_dev) == 0 || in get_mounts_dev_dir() 287 strcmp(arg, mount_dir) == 0)) { in get_mounts_dev_dir()
|