/system/core/fastbootd/commands/ |
H A D | virtual_partitions.h | 40 void (*handler)(struct protocol_handle *phandle, const char *arg); 43 int try_handle_virtual_partition(struct protocol_handle *handle, const char *arg); 47 void (*handler)(struct protocol_handle *phandle, const char *arg));
|
H A D | virtual_partitions.c | 37 int try_handle_virtual_partition(struct protocol_handle *handle, const char *arg) argument 42 if (!strcmp(current->name, arg)) { 43 current->handler(handle, arg); 52 void (*handler)(struct protocol_handle *phandle, const char *arg)) 50 virtual_partition_register( const char * name, void (*handler)(struct protocol_handle *phandle, const char *arg)) argument
|
/system/extras/tests/bionic/libc/bionic/ |
H A D | test_pthread_create.c | 6 thread1_func(void* arg) argument 8 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); 13 thread2_func(void* arg) argument 15 printf("thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
|
H A D | test_pthread_cond.c | 13 thread1_func(void* arg) argument 15 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); 25 thread2_func(void* arg) argument 27 printf("Thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); 38 thread3_func(void* arg) argument 40 printf("Thread 3 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); 55 thread4_func(void* arg) argument [all...] |
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | args.c | 85 static const struct arg { struct 115 struct arg *ap, tmp; 116 char *oper, *arg; local 127 if ((arg = strchr(oper, '=')) == NULL) { 131 *arg++ = '\0'; 132 if (!*arg) { 149 ap->f(arg); 212 return (strcmp(((const struct arg *)a)->name, 213 ((const struct arg *)b)->name)); 217 f_bs(char *arg) argument 224 f_cbs(char *arg) argument 231 f_count(char *arg) argument 240 f_files(char *arg) argument 249 f_ibs(char *arg) argument 257 f_if(char *arg) argument 266 f_msgfmt(char *arg) argument 274 f_msgfmt(char *arg) argument 288 f_obs(char *arg) argument 296 f_of(char *arg) argument 303 f_seek(char *arg) argument 310 f_skip(char *arg) argument 317 f_progress(char *arg) argument 326 f_conv(char *arg) argument 361 f_conv(char *arg) argument [all...] |
/system/core/debuggerd/ |
H A D | crasher.c | 27 static int do_action(const char* arg); 85 static int do_action_on_thread(const char* arg) argument 88 pthread_create(&t, NULL, thread_callback, (void*) arg); 119 static int do_action(const char* arg) argument 123 if (!strncmp(arg, "thread-", strlen("thread-"))) { 124 return do_action_on_thread(arg + strlen("thread-")); 125 } else if (!strcmp(arg, "SIGSEGV-non-null")) { 127 } else if (!strcmp(arg, "smash-stack")) { 129 } else if (!strcmp(arg, "stack-overflow")) { 131 } else if (!strcmp(arg, "nostac [all...] |
/system/extras/tests/bionic/libc/common/ |
H A D | test_pthread_cleanup_push.c | 42 cleanup1( void* arg ) 44 if ((unsigned)arg != MAGIC1) 51 cleanup2( void* arg ) 53 if ((unsigned)arg != MAGIC2) { 60 cleanup3( void* arg ) 62 if ((unsigned)arg != MAGIC3) 70 thread1_func( void* arg ) 76 if (arg != NULL)
|
H A D | test_pthread_join.c | 33 thread1_func(void* arg) argument 41 thread2_func(void* arg) argument 43 pthread_t t1 = (pthread_t)arg; 53 thread3_func(void* arg) argument 55 pthread_t t1 = (pthread_t)arg;
|
H A D | test_pthread_once.c | 52 thread_function(void* arg) argument 57 printf ("thread %ld: global == %d\n", (long int) arg, global_count);
|
H A D | test_clock.c | 26 void *cpu_hog(void *arg) argument
|
/system/core/fastbootd/ |
H A D | vendor_trigger.h | 65 int trigger_oem_cmd(const char *arg, const char **response);
|
H A D | vendor_trigger_default.c | 55 int trigger_oem_cmd(const char *arg, const char **response) { argument 56 KLOG_DEBUG("fastbootd", "%s: %s", __func__, arg);
|
H A D | commands.c | 54 static void cmd_boot(struct protocol_handle *phandle, const char *arg) argument 70 D(DEBUG, "cmd_boot %s\n", arg); 165 static void cmd_erase(struct protocol_handle *phandle, const char *arg) argument 169 D(DEBUG, "cmd_erase %s\n", arg); 171 if (flash_find_entry(arg, path, PATH_MAX)) { 220 static void cmd_gpt_layout(struct protocol_handle *phandle, const char *arg) { argument 268 static void cmd_flash(struct protocol_handle *phandle, const char *arg) argument 277 D(DEBUG, "cmd_flash %s\n", arg); 279 if (try_handle_virtual_partition(phandle, arg)) { 288 if (flash_find_entry(arg, pat 337 cmd_continue(struct protocol_handle *phandle, const char *arg) argument 347 cmd_getvar(struct protocol_handle *phandle, const char *arg) argument 357 cmd_download(struct protocol_handle *phandle, const char *arg) argument 385 cmd_oem(struct protocol_handle *phandle, const char *arg) argument [all...] |
H A D | protocol.h | 47 void (*handle)(struct protocol_handle *handle, const char *arg));
|
/system/core/include/cutils/ |
H A D | android_reboot.h | 30 int android_reboot(int cmd, int flags, char *arg);
|
/system/core/libcutils/ |
H A D | dlmalloc_stubs.c | 27 void* arg UNUSED)
|
/system/core/liblog/tests/ |
H A D | benchmark_main.cpp | 60 int PrettyPrintInt(char* str, int len, unsigned int arg) argument 62 if (arg >= (1<<30) && arg % (1<<30) == 0) { 63 return snprintf(str, len, "%uGi", arg/(1<<30)); 64 } else if (arg >= (1<<20) && arg % (1<<20) == 0) { 65 return snprintf(str, len, "%uMi", arg/(1<<20)); 66 } else if (arg >= (1<<10) && arg % (1<<10) == 0) { 67 return snprintf(str, len, "%uKi", arg/( [all...] |
H A D | benchmark.h | 34 int PrettyPrintInt(char* str, int len, unsigned int arg); 65 BenchmarkWantsArgBase<T>* Arg(const char* arg_name, T arg) { argument 66 BenchmarkRegister(new BenchmarkWithArg<T>(name_, fn_arg_, arg_name, arg)); 71 virtual void RunFn(int) { printf("can't run arg benchmark %s without arg\n", Name()); } 78 BenchmarkWithArg(const char* name, void (*fn)(int, T), const char* arg_name, T arg) : argument 79 BenchmarkWantsArg<T>(name, fn), arg_(arg) { 110 BenchmarkWantsArg<int>* Arg(int arg) { argument 112 PrettyPrintInt(arg_name, sizeof(arg_name), arg); 113 BenchmarkRegister(new BenchmarkWithArg<int>(name_, fn_arg_, arg_name, arg)); 130 BenchmarkAddArg(::testing::Benchmark* b, const char* name, T arg) argument [all...] |
/system/core/adb/ |
H A 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); 79 void *arg; member in struct:fdevent
|
/system/core/toolbox/upstream-netbsd/bin/sleep/ |
H A D | sleep.c | 70 char *arg, *temp; local 105 arg = *argv; 106 for (temp = arg; *temp != '\0'; temp++) 111 val = atof(arg); 120 ntime.tv_sec = atol(arg);
|
/system/core/mkbootimg/ |
H A D | mkbootimg.c | 125 char *arg = argv[0]; local 132 if(!strcmp(arg, "--output") || !strcmp(arg, "-o")) { 134 } else if(!strcmp(arg, "--kernel")) { 136 } else if(!strcmp(arg, "--ramdisk")) { 138 } else if(!strcmp(arg, "--second")) { 140 } else if(!strcmp(arg, "--cmdline")) { 142 } else if(!strcmp(arg, "--base")) { 144 } else if(!strcmp(arg, "--kernel_offset")) { 146 } else if(!strcmp(arg, " [all...] |
/system/extras/procrank/ |
H A D | procrank.c | 141 int arg; local 149 for (arg = 1; arg < argc; arg++) { 150 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; } 151 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; } 152 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; } 153 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; } 154 if (!strcmp(argv[arg], "-s")) { compfn = &sort_by_swap; continue; } 155 if (!strcmp(argv[arg], " [all...] |
/system/extras/tests/memtest/ |
H A D | thumb.cpp | 8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context *context, void *arg) argument
|
/system/extras/tests/bionic/libc/other/ |
H A D | test_jpeg.c | 251 const char* arg = &argv[1][1]; local 252 switch (arg[0]) { 254 if (arg[1] == 0) { 257 arg = argv[2]; 261 arg += 1; 263 repeat_count = strtol(arg, NULL, 10); 274 if (arg[1] == 0) { 277 arg = argv[2]; 281 arg += 1; 283 dct_method = strtol(arg, NUL [all...] |
/system/core/fastboot/ |
H A D | usbtest.c | 154 char *arg = *argv++; local 155 if(!strncmp(arg,"count=",6)) { 156 arg_count = atoi(arg + 6); 157 } else if(!strncmp(arg,"size=",5)) { 158 arg_size = atoi(arg + 5); 160 fprintf(stderr,"unknown argument: %s\n", arg);
|