/system/extras/ext4_utils/ |
H A D | make_ext4fs_main.c | 72 info.len = parse_num(optarg); 75 info.journal_blocks = parse_num(optarg); 78 info.block_size = parse_num(optarg); 81 info.blocks_per_group = parse_num(optarg); 84 info.inodes = parse_num(optarg); 87 info.inode_size = parse_num(optarg); 90 info.label = optarg; 98 mountpoint = optarg; 125 seopts[0].value = optarg; 128 perror(optarg); [all...] |
H A D | ext4fixup_main.c | 48 sscanf(optarg, "%d,%d,%d", &stop_phase, &stop_loc, &stop_count);
|
/system/core/toolbox/grep/ |
H A D | grep.c | 413 if (optarg == NULL) { 422 l = strtoull(optarg, &ep, 10); 447 if (strcasecmp(optarg, "skip") == 0) 449 else if (strcasecmp(optarg, "read") == 0) 455 if (strcasecmp("recurse", optarg) == 0) { 458 } else if (strcasecmp("skip", optarg) == 0) 460 else if (strcasecmp("read", optarg) == 0) 469 add_pattern(optarg, strlen(optarg)); 476 read_patterns(optarg); [all...] |
/system/bluetooth/brcm_patchram_plus/ |
H A D | brcm_patchram_plus.c | 196 parse_patchram(char *optarg) argument 200 if (!(p = strrchr(optarg, '.'))) { 201 fprintf(stderr, "file %s not an HCD file\n", optarg); 208 fprintf(stderr, "file %s not an HCD file\n", optarg); 212 if ((hcdfile_fd = open(optarg, O_RDONLY)) == -1) { 213 fprintf(stderr, "file %s could not be opened, error %d\n", optarg, errno); 274 parse_baudrate(char *optarg) argument 276 int baudrate = atoi(optarg); 286 parse_bdaddr(char *optarg) argument 291 sscanf(optarg, " 305 parse_enable_lpm(char *optarg) argument 312 parse_use_baudrate_for_download(char *optarg) argument 319 parse_enable_hci(char *optarg) argument 326 parse_scopcm(char *optarg) argument 354 parse_i2s(char *optarg) argument 377 parse_no2bytes(char *optarg) argument 384 parse_tosleep(char *optarg) argument [all...] |
/system/core/toolbox/ |
H A D | setkey.c | 46 kbe.kb_table = strtol(optarg, NULL, 0); 49 kbe.kb_index = strtol(optarg, NULL, 0); 52 kbe.kb_value = strtol(optarg, NULL, 0);
|
H A D | hd.c | 33 base = strtol(optarg, NULL, 0); 36 count = strtol(optarg, NULL, 0); 39 repeat = strtol(optarg, NULL, 0);
|
H A D | log.c | 110 tag = optarg; 114 priority = filterCharToPri(optarg[0]);
|
H A D | notify.c | 35 event_mask = strtol(optarg, NULL, 0); 38 event_count = atoi(optarg); 44 verbose = atoi(optarg); 47 width = atoi(optarg);
|
H A D | readtty.c | 81 timeout = atoi(optarg); 90 accept = optarg; 93 rejectstring = optarg; 99 exit_string = optarg;
|
H A D | newfs_msdos.c | 278 opt_ofs = argtooff(optarg, "offset"); 284 opt_B = optarg; 287 opt_create = argtooff(optarg, "create size"); 290 if (strcmp(optarg, "12") && 291 strcmp(optarg, "16") && 292 strcmp(optarg, "32")) 293 errx(1, "%s: bad FAT type", optarg); 294 opt_F = atoi(optarg); 297 opt_I = argto4(optarg, 0, "volume ID"); 301 if (!oklabel(optarg)) [all...] |
H A D | ioctl.c | 41 length = strtol(optarg, NULL, 0); 44 arg_size = strtol(optarg, NULL, 0);
|
H A D | setconsole.c | 50 ttydev = optarg; 73 switch_vc = atoi(optarg);
|
H A D | rotatefb.c | 28 fbdev = optarg;
|
H A D | nandread.c | 55 devname = optarg; 58 filename = optarg; 61 spare_size = atoi(optarg); 64 start = strtoll(optarg, NULL, 0); 67 len = strtoll(optarg, NULL, 0);
|
H A D | cmp.c | 36 limit = atoi(optarg);
|
H A D | date.c | 67 settime(optarg);
|
/system/extras/tests/wifi/stress/ |
H A D | wifiLoadScanAssoc.c | 143 delayMin = strtod(optarg, &chptr); 146 "of: %s", optarg); 152 delayMax = strtod(optarg, &chptr); 155 "of: %s", optarg); 161 duration = strtod(optarg, &chptr); 164 optarg); 180 startPass = strtoul(optarg, &chptr, 10); 183 "of: %s", optarg); 199 endPass = strtoul(optarg, &chptr, 10); 202 "of: %s", optarg); [all...] |
/system/core/libion/ |
H A D | ion_test.c | 221 len = atol(optarg); 224 align = atol(optarg); 228 map_flags |= strstr(optarg, "PROT_EXEC") ? 230 map_flags |= strstr(optarg, "PROT_READ") ? 232 map_flags |= strstr(optarg, "PROT_WRITE") ? 234 map_flags |= strstr(optarg, "PROT_NONE") ? 239 prot |= strstr(optarg, "MAP_PRIVATE") ? 241 prot |= strstr(optarg, "MAP_SHARED") ? 245 alloc_flags = atol(optarg); 248 heap_mask = atol(optarg); [all...] |
/system/extras/tests/binder/benchmarks/ |
H A D | binderAddInts.cpp | 121 int cpu = strtoul(optarg, &chptr, 10); 124 << " option of: " << optarg << endl; 130 cerr << "CPU " << optarg << " not currently available" << endl; 141 options.iterations = strtoul(optarg, &chptr, 10); 143 cerr << "Invalid iterations specified of: " << optarg << endl; 148 << optarg << endl; 154 options.iterDelay = strtod(optarg, &chptr); 156 cerr << "Invalid delay specified of: " << optarg << endl;
|
/system/extras/tests/framebuffer/ |
H A D | mdp_test.c | 198 if (parse_geometry(optarg, &srcw, &srch, &srcx, &srcy)) { 206 if (parse_geometry(optarg, &dstw, &dsth, &dstx, &dsty)) { 214 if (parse_geometry(optarg, &src_imgw, &src_imgh, NULL, NULL)) { 222 if (parse_geometry(optarg, &dst_imgw, &dst_imgh, NULL, NULL)) { 235 if (open_file(optarg, &file_fd, &file_len, &src_fmt) < 0) { 259 if (!strncmp(optarg, "yuv420", 6)) 262 else if (!strncmp(optarg, "rgb565", 6))
|
/system/extras/tests/sdcard/ |
H A D | sdcard_perf_test.cpp | 84 extern char *optarg; 223 testCase->setDataSize(atoi(optarg) * 1024); 226 testCase->setChunkSize(atoi(optarg) * 1024); 229 testCase->setTreeDepth(atoi(optarg)); 232 testCase->setIter(atoi(optarg)); 236 testCase->setNproc(atoi(optarg)); 240 testCase->setTypeFromName(optarg); 251 if (strcmp("sync", optarg) == 0) { 253 } else if (strcmp("fsync", optarg) == 0) { 268 testCase->setFadvise(optarg); [all...] |
/system/extras/tests/bionic/libc/ |
H A D | run-test.sh | 31 optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` 44 ADB_CMD="$optarg"
|
/system/core/logcat/ |
H A D | logcat.cpp | 507 g_tail_lines = atoi(optarg); 515 char* buf = (char*) malloc(strlen(LOG_FILE_DIR) + strlen(optarg) + 1); 517 strcat(buf, optarg); 519 bool binary = strcmp(optarg, "events") == 0; 529 dev->next = new log_device_t(buf, binary, optarg[0]); 531 devices = new log_device_t(buf, binary, optarg[0]); 544 android::g_outputFileName = optarg; 549 if (optarg == NULL) { 556 if (!isdigit(optarg[0])) { 561 android::g_logRotateSizeKBytes = atoi(optarg); [all...] |
/system/core/fastboot/ |
H A D | fastboot.c | 832 base_addr = strtoul(optarg, 0, 16); 835 page_size = (unsigned)strtoul(optarg, NULL, 0); 839 serial = optarg; 842 sparse_limit = parse_num(optarg); 851 product = optarg; 854 cmdline = optarg; 860 val = strtoul(optarg, &endptr, 0); 862 die("invalid vendor id '%s'", optarg);
|
/system/extras/atrace/ |
H A D | atrace.c | 475 g_traceBufferSizeKB = atoi(optarg); 511 g_initialSleepSecs = atoi(optarg); 515 g_traceDurationSeconds = atoi(optarg);
|