/system/tools/aidl/ |
D | options.cpp | 154 optind = 0; in Options() 304 if (argc - optind <= 0) { in Options() 309 input_files_.emplace_back(argv[optind++]); in Options() 310 if (argc - optind >= 1) { in Options() 311 output_file_ = argv[optind++]; in Options() 325 input_files_.emplace_back(argv[optind++]); in Options() 326 if (argc - optind < 2) { in Options() 330 output_header_dir_ = argv[optind++]; in Options() 334 output_file_ = argv[optind++]; in Options() 336 if (argc - optind > 0) { in Options() [all …]
|
/system/core/reboot/ |
D | reboot.c | 52 if(argc > optind + 1) { in main() 57 if (argc > optind) in main() 58 optarg = argv[optind]; in main()
|
/system/core/toolbox/ |
D | getprop.cpp | 148 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/ |
D | slideshow.cpp | 109 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/ |
D | JavaMain.cpp | 58 if (optind >= argc) { in ParseArgs() 63 if (optind + 1 < argc) { in ParseArgs() 68 args->input_file_path = argv[optind]; in ParseArgs()
|
D | CppMain.cpp | 77 if (optind >= argc) { in ParseArgs() 82 if (optind + 1 < argc) { in ParseArgs() 92 args->input_file_path = argv[optind]; in ParseArgs()
|
/system/core/logwrapper/ |
D | logwrapper.c | 75 argc -= optind; in main() 76 argv += optind; in main()
|
/system/core/demangle/ |
D | demangle.cpp | 122 if (optind == argc) return Filter(compare); in main() 125 while (optind < argc) { in main() 126 const char* name = argv[optind++]; in main()
|
/system/libvintf/ |
D | assemble_vintf_main.cpp | 86 int optind; in main() local 87 while ((res = getopt_long(argc, argv, "hi:o:mc:nl", longopts, &optind)) >= 0) { in main()
|
/system/extras/pssbench/ |
D | main.cpp | 76 if (argv[optind] == NULL) { in main() 80 int pid = atoi(argv[optind]); in main()
|
/system/core/fs_mgr/ |
D | fs_mgr_remount.cpp | 210 for (; argc > optind; ++optind) { in main() 211 auto partition = std::string(argv[optind]); in main() 223 LOG(ERROR) << "Unknown partition " << argv[optind] << ", skipping"; in main() 230 LOG(INFO) << "partition " << argv[optind] << " covered by overlayfs for " in main() 237 LOG(ERROR) << "Invalid partition " << argv[optind] << ", skipping"; in main()
|
/system/extras/puncture_fs/ |
D | puncture_fs.c | 235 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/extras/tests/ext4/ |
D | rand_emmc_perf.c | 235 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/tools/hidl/c2hal/ |
D | main.cpp | 151 if (optind == 1) { in main() 168 if (optind == argc) { in main() 174 for(int i = optind; i < argc; i++) { in main()
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 125 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()
|
/system/core/trusty/utils/trusty-ut-ctrl/ |
D | ut-ctrl.c | 88 if (optind < argc) { in parse_options() 89 ut_app = strdup(argv[optind]); in parse_options()
|
/system/extras/verity/ |
D | build_verity_tree_main.cpp | 113 argc -= optind; in main() 114 argv += optind; in main()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 109 argc -= optind; in main() 110 argv += optind; in main()
|
/system/extras/tests/suspend_stress/ |
D | suspend_stress.cpp | 87 if (optind < argc) { in main() 88 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); in main()
|
/system/extras/runconuid/ |
D | runconuid.cpp | 170 child_argv = &argv[optind]; in parse_arguments() 172 if (optind == argc) { in parse_arguments()
|
/system/core/libmeminfo/tools/ |
D | procmem.cpp | 165 if (optind != (argc - 1)) { in main() 170 pid_t pid = atoi(argv[optind]); in main()
|
D | wsstop.cpp | 202 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()
|
D | showmap.cpp | 249 if ((argc - 1) < optind) { in main() 254 g_pid = atoi(argv[optind]); in main() 256 fprintf(stderr, "Invalid process id %s\n", argv[optind]); in main()
|
/system/bt/tools/bdtool/ |
D | bdtool.c | 353 if (optind < argc) { in parse_args() 355 while (optind < argc) fprintf(stderr, "%s ", argv[optind++]); in parse_args()
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | grep.c | 639 newarg = optind != prevoptind; in main() 640 prevoptind = optind; in main() 642 aargc -= optind; in main() 643 aargv += optind; in main()
|