Home
last modified time | relevance | path

Searched refs:optind (Results 1 – 25 of 59) sorted by relevance

123

/system/tools/aidl/
Doptions.cpp211 optind = 0; in Options()
392 if (argc - optind <= 0) { in Options()
397 input_files_.emplace_back(argv[optind++]); in Options()
398 if (argc - optind >= 1) { in Options()
399 output_file_ = argv[optind++]; in Options()
413 input_files_.emplace_back(argv[optind++]); in Options()
414 if (argc - optind < 2) { in Options()
418 output_header_dir_ = argv[optind++]; in Options()
422 output_file_ = argv[optind++]; in Options()
424 if (argc - optind > 0) { in Options()
[all …]
/system/core/reboot/
Dreboot.c52 if(argc > optind + 1) { in main()
57 if (argc > optind) in main()
58 optarg = argv[optind]; in main()
/system/core/toolbox/
Dgetprop.cpp148 if (optind >= argc) { in getprop_main()
153 if (optind < argc - 2) { in getprop_main()
158 PrintProperty(argv[optind], (optind == argc - 1) ? "" : argv[optind + 1], result_type); in getprop_main()
/system/extras/slideshow/
Dslideshow.cpp109 if (optind >= argc) { in main()
122 while (optind < argc - 1) { in main()
123 draw(argv[optind++]); in main()
147 draw(argv[optind]); in main()
/system/tools/sysprop/
DJavaMain.cpp76 if (optind >= argc) { in ParseArgs()
80 if (optind + 1 < argc) { in ParseArgs()
84 args->input_file_path = argv[optind]; in ParseArgs()
DCppMain.cpp81 if (optind >= argc) { in ParseArgs()
85 if (optind + 1 < argc) { in ParseArgs()
94 ret.input_file_path = argv[optind]; in ParseArgs()
/system/logging/logwrapper/
Dlogwrapper.cpp74 argc -= optind; in main()
75 argv += optind; in main()
/system/libvintf/
Dassemble_vintf_main.cpp85 int optind; in main() local
86 while ((res = getopt_long(argc, argv, "hi:o:mc:nl", longopts, &optind)) >= 0) { in main()
/system/extras/pssbench/
Dmain.cpp76 if (argv[optind] == NULL) { in main()
80 int pid = atoi(argv[optind]); in main()
/system/extras/tests/ext4/
Drand_emmc_perf.c235 if ((argc - optind) != 2) { in main()
240 max_blocks = atoll(argv[optind]) * ((1024*1024) / TST_BLK_SIZE); in main()
242 if ((fd = open(argv[optind + 1], O_RDWR | o_sync)) < 0) { in main()
243 fprintf(stderr, "Cannot open block device %s\n", argv[optind + 1]); in main()
/system/extras/puncture_fs/
Dpuncture_fs.cpp235 if (optind >= argc) { in main()
240 path = argv[optind++]; in main()
242 if (optind < argc) { in main()
243 fprintf(stderr, "\nUnexpected argument: %s\n", argv[optind]); in main()
/system/tools/hidl/c2hal/
Dmain.cpp156 if (optind == 1) { in main()
173 if (optind == argc) { in main()
179 for(int i = optind; i < argc; i++) { in main()
/system/extras/partition_tools/
Dlpunpack.cc125 if (optind + 1 > argc) { in main()
129 std::string super_path = argv[optind++]; in main()
132 if (optind + 1 <= argc) { in main()
133 output_dir = argv[optind++]; in main()
136 if (optind < argc) { in main()
Dlpadd.cc444 if (optind + 3 > argc) { in main()
449 std::string super_path = argv[optind++]; in main()
450 std::string partition_name = argv[optind++]; in main()
451 std::string group_name = argv[optind++]; in main()
454 if (optind < argc) { in main()
455 image_path = argv[optind++]; in main()
457 if (optind != argc) { in main()
/system/core/trusty/utils/trusty-ut-ctrl/
Dut-ctrl.c88 if (optind < argc) { in parse_options()
89 ut_app = strdup(argv[optind]); in parse_options()
/system/core/fs_mgr/
Dfs_mgr_remount.cpp253 for (; argc > optind; ++optind) { in do_remount()
254 auto partition = std::string(argv[optind]); in do_remount()
266 LOG(ERROR) << "Unknown partition " << argv[optind] << ", skipping"; in do_remount()
273 LOG(INFO) << "partition " << argv[optind] << " covered by overlayfs for " in do_remount()
280 LOG(ERROR) << "Invalid partition " << argv[optind] << ", skipping"; in do_remount()
/system/memory/libmeminfo/libdmabufinfo/tools/
Ddmabuf_dump.cpp275 if (optind < argc) { in main()
280 if (optind != (argc - 1)) { in main()
284 pid = atoi(argv[optind]); in main()
286 fprintf(stderr, "Invalid process id %s\n", argv[optind]); in main()
/system/extras/kexec_tools/
Dkexecload.c101 argc -= optind; in main()
102 argv += optind; in main()
/system/extras/verity/
Dbuild_verity_tree_main.cpp113 argc -= optind; in main()
114 argv += optind; in main()
/system/tools/hidl/lint/
Dmain.cpp96 argc -= optind; in main()
97 argv += optind; in main()
/system/extras/runconuid/
Drunconuid.cpp170 child_argv = &argv[optind]; in parse_arguments()
172 if (optind == argc) { in parse_arguments()
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp87 if (optind < argc) { in main()
88 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); in main()
/system/memory/libmeminfo/tools/
Dwsstop.cpp202 if ((argc - 1) < optind) { in main()
207 g_pid = atoi(argv[optind]); in main()
209 fprintf(stderr, "Invalid process id %s\n", argv[optind]); in main()
/system/bt/tools/bdtool/
Dbdtool.c353 if (optind < argc) { in parse_args()
355 while (optind < argc) fprintf(stderr, "%s ", argv[optind++]); in parse_args()
/system/bt/test/headless/
Dget_options.cc186 while (optind < argc) { in GetOpt()
187 non_options_.push_back(argv[optind++]); in GetOpt()

123