/system/tools/aidl/ |
D | options.cpp | 191 optind = 0; in Options() 359 if (argc - optind <= 0) { in Options() 364 input_files_.emplace_back(argv[optind++]); in Options() 365 if (argc - optind >= 1) { in Options() 366 output_file_ = argv[optind++]; in Options() 380 input_files_.emplace_back(argv[optind++]); in Options() 381 if (argc - optind < 2) { in Options() 385 output_header_dir_ = argv[optind++]; in Options() 389 output_file_ = argv[optind++]; in Options() 391 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 | 76 if (optind >= argc) { in ParseArgs() 80 if (optind + 1 < argc) { in ParseArgs() 84 args->input_file_path = argv[optind]; in ParseArgs()
|
D | CppMain.cpp | 81 if (optind >= argc) { in ParseArgs() 85 if (optind + 1 < argc) { in ParseArgs() 94 ret.input_file_path = argv[optind]; in ParseArgs()
|
/system/core/logwrapper/ |
D | logwrapper.cpp | 74 argc -= optind; in main() 75 argv += optind; in main()
|
/system/libvintf/ |
D | assemble_vintf_main.cpp | 85 int optind; in main() local 86 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/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/extras/puncture_fs/ |
D | puncture_fs.cpp | 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/tools/hidl/c2hal/ |
D | main.cpp | 156 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/ |
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()
|
D | lpadd.cc | 444 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/fs_mgr/ |
D | fs_mgr_remount.cpp | 249 for (; argc > optind; ++optind) { in do_remount() 250 auto partition = std::string(argv[optind]); in do_remount() 262 LOG(ERROR) << "Unknown partition " << argv[optind] << ", skipping"; in do_remount() 269 LOG(INFO) << "partition " << argv[optind] << " covered by overlayfs for " in do_remount() 276 LOG(ERROR) << "Invalid partition " << argv[optind] << ", skipping"; in do_remount()
|
/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/memory/libmeminfo/libdmabufinfo/tools/ |
D | dmabuf_dump.cpp | 232 if (optind < argc) { in main() 237 if (optind != (argc - 1)) { in main() 241 pid = atoi(argv[optind]); in main() 243 fprintf(stderr, "Invalid process id %s\n", argv[optind]); in main()
|
/system/bt/test/headless/ |
D | get_options.cc | 134 while (optind < argc) { in GetOpt() 135 non_options_.push_back(argv[optind++]); in GetOpt()
|
/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/tools/hidl/lint/ |
D | main.cpp | 96 argc -= optind; in main() 97 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/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/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/memory/libmeminfo/tools/ |
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()
|