Home
last modified time | relevance | path

Searched refs:optarg (Results 1 – 15 of 15) sorted by relevance

/device/google/trout/hal/vehicle/2.0/
DUtils.cpp70 static std::optional<unsigned> parseUnsignedIntFromString(const char* optarg, const char* name) { in parseUnsignedIntFromString() argument
71 auto v = strtoul(optarg, nullptr, 0); in parseUnsignedIntFromString()
73 cerr << name << " value is out of range: " << optarg << endl; in parseUnsignedIntFromString()
77 cerr << name << " value is invalid or missing: " << optarg << endl; in parseUnsignedIntFromString()
109 cid = parseUnsignedIntFromString(optarg, "cid"); in fromCommandLine()
112 port = parseUnsignedIntFromString(optarg, "port"); in fromCommandLine()
115 powerStateMarkerFilePath = std::string(optarg); in fromCommandLine()
118 powerStateSocketPath = std::string(optarg); in fromCommandLine()
/device/google/contexthub/util/stm32_flash/
Dflash.c116 dev = optarg; in main()
119 sector = strtol(optarg, NULL, 0); in main()
122 write_filename = optarg; in main()
125 read_filename = optarg; in main()
128 length = strtol(optarg, NULL, 0); in main()
131 address = strtol(optarg, NULL, 0); in main()
137 type = strtol(optarg, NULL, 0); in main()
149 gpio_nreset = strtol(optarg, NULL, 0); in main()
/device/google/trout/tools/tracing/client/
DTracingClientTestMain.cpp86 tracing_service_addr = optarg; in main()
89 const auto optarg_str = std::string(optarg); in main()
97 std::cerr << "tracing-client doesn't support command: " << optarg << std::endl; in main()
103 host_config = optarg; in main()
106 file_dir = optarg; in main()
109 session_id = std::stoull(optarg); in main()
/device/google/contexthub/util/nanotool/
Dnanotool.cpp318 args->command = StrToCommand(optarg); in ParseArgs()
320 fprintf(stderr, "%s: Invalid command '%s'\n", argv[0], optarg); in ParseArgs()
326 if (!ParseSensorArg(args->sensors, optarg, argv[0])) { in ParseArgs()
332 args->count = atoi(optarg); in ParseArgs()
341 if (optarg && optarg[0] == 'v') { in ParseArgs()
353 if (optarg) { in ParseArgs()
354 args->filename = std::string(optarg); in ParseArgs()
362 args->device_index = atoi(optarg); in ParseArgs()
/device/generic/opengl-transport/host/commands/emugen/
Dgetopt.c11 char* optarg; variable
51 optarg = NULL; in getopt()
60 optarg = (char *)place; in getopt()
62 optarg = (char *)argv[optind++]; in getopt()
66 optarg = NULL; in getopt()
Dmain.cpp53 wrapperDir = std::string(optarg); in main()
63 encoderDir = std::string(optarg); in main()
66 decoderDir = std::string(optarg); in main()
69 inDir = std::string(optarg); in main()
Dgetopt.h9 extern char* optarg;
/device/generic/car/emulator/usbpt/bluetooth/usb_modeswitch/
Dusb_modeswitch.c361 case 'v': DefaultVendor = strtol(optarg, NULL, 16); break; in readArguments()
362 case 'p': DefaultProduct = strtol(optarg, NULL, 16); break; in readArguments()
363 case 'V': TargetVendor = strtol(optarg, NULL, 16); break; in readArguments()
364 case 'P': TargetProduct = strtol(optarg, NULL, 16); break; in readArguments()
365 case 'C': TargetClass = strtol(optarg, NULL, 16); break; in readArguments()
366 case 'm': MessageEndpoint = strtol(optarg, NULL, 16); break; in readArguments()
367 case 'M': strncpy(MessageContent, optarg, LINE_DIM); break; in readArguments()
368 case '2': strncpy(MessageContent2, optarg, LINE_DIM); break; in readArguments()
369 case '3': strncpy(MessageContent3, optarg, LINE_DIM); break; in readArguments()
370 case 'w': ReleaseDelay = strtol(optarg, NULL, 10); break; in readArguments()
[all …]
/device/google/atv/audio_proxy/service/
DServiceConfig.cpp26 std::pair<std::string, StreamConfig> parseStreamConfig(const char* optarg) { in parseStreamConfig() argument
27 std::vector<std::string> tokens = android::base::Split(optarg, ":"); in parseStreamConfig()
64 config.name = optarg; in parseServiceConfigFromCommandLine()
69 parseStreamConfig(optarg); in parseServiceConfigFromCommandLine()
/device/google/contexthub/contexthubhal/test/
Dmain.cpp234 msg = strtoul(optarg, &end, 16); in main()
237 cmd = strtol(optarg, &end, 10); in main()
240 appId = strtoull(optarg, &end, 16); in main()
243 appFileName = optarg; in main()
247 std::clog << "Invalid argument: " << optarg << std::endl; in main()
/device/google/trout/hal/dumpstate/1.1/
Dserver_main.cpp79 serverAddr = optarg; in main()
82 serverConfig = optarg; in main()
/device/google/trout/hal/audiocontrol/aidl/1.0/libandroid_audio_controller_test/
Dmain.cpp86 file_path = optarg; in main()
93 server_addr = optarg; in main()
/device/generic/trusty/secure_dpu/
Dmain.cpp45 device_name = optarg; in parse_device_name()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Dreference-ril.c6438 s_port = atoi(optarg);
6447 s_device_path = optarg;
6452 s_device_path = optarg;
6458 RLOGI("Client id received %s\n", optarg);
6462 s_modem_simulator_port = strtoul(optarg, NULL, 10);
6503 s_port = atoi(optarg);
6511 s_device_path = optarg;
6516 s_device_path = optarg;
/device/linaro/dragonboard/shared/utils/rmtfs/
Drmtfs.c515 storage_root = optarg; in main()