/ohos5.0/base/msdp/device_status/tools/vdev/src/ |
H A D | virtual_touchscreen_builder.cpp | 292 while ((optind < argc) && Utility::IsInteger(argv[optind])) { in ReadDownAction() 293 optind++; in ReadDownAction() 302 …if (!Utility::IsInteger(optarg) || (optind < 0) || (optind + 1 >= argc) || !Utility::IsInteger(arg… in ReadMoveAction() 310 if ((optind + 1 < argc) && Utility::IsInteger(argv[optind + 1])) { in ReadMoveAction() 315 while ((optind < argc) && Utility::IsInteger(argv[optind])) { in ReadMoveAction() 316 optind++; in ReadMoveAction() 339 …if (!Utility::IsInteger(optarg) || (optind < 0) || (optind + 1 >= argc) || !Utility::IsInteger(arg… in ReadMoveToAction() 350 while ((optind < argc) && Utility::IsInteger(argv[optind])) { in ReadMoveToAction() 351 optind++; in ReadMoveToAction() 379 while ((optind < argc) && Utility::IsInteger(argv[optind])) { in ReadDragToAction() [all …]
|
H A D | virtual_mouse_builder.cpp | 269 if (!Utility::IsInteger(std::string(optarg)) || (optind < 0) || (optind >= argc) || in ReadMoveAction() 278 if ((argv[optind] != nullptr) && Utility::IsInteger(std::string(argv[optind]))) { in ReadMoveAction() 279 dy = std::atoi(argv[optind++]); in ReadMoveAction() 290 …if (!Utility::IsInteger(optarg) || (optind < 0) || (optind >= argc) || !Utility::IsInteger(argv[op… in ReadMoveToAction() 296 int32_t y = std::atoi(argv[optind]); in ReadMoveToAction() 299 while ((optind < argc) && Utility::IsInteger(argv[optind])) { in ReadMoveToAction() 300 optind++; in ReadMoveToAction() 308 …if (!Utility::IsInteger(optarg) || (optind < 0) || (optind >= argc) || !Utility::IsInteger(argv[op… in ReadDragToAction() 314 int32_t y = std::atoi(argv[optind]); in ReadDragToAction() 321 while ((optind < argc) && Utility::IsInteger(argv[optind])) { in ReadDragToAction() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_tool/frameworks/src/ |
H A D | bundle_test_tool.cpp | 1062 if (optind < 0 || optind > argc_) { in RunAsCheckCommand() 1249 if (optind < 0 || optind > argc_) { in RunAsSetRemovableCommand() 1294 if (optind < 0 || optind > argc_) { in RunAsGetRemovableCommand() 1442 if (optind < 0 || optind > argc_) { in RunAsInstallSandboxCommand() 1498 if (optind < 0 || optind > argc_) { in RunAsUninstallSandboxCommand() 1562 if (optind < 0 || optind > argc_) { in RunAsDumpSandboxCommand() 1770 if (optind < 0 || optind > argc_) { in RunAsGetProxyDataCommand() 1818 if (optind < 0 || optind > argc_) { in RunAsGetAllProxyDataCommand() 1862 if (optind < 0 || optind > argc_) { in RunAsGetStringCommand() 1967 if (optind < 0 || optind > argc_) { in RunAsSetExtNameOrMIMEToAppCommand() [all …]
|
H A D | bundle_command.cpp | 304 if (optind < 0 || optind > argc_) { in RunAsCopyApCommand() 314 if (optind < 0 || optind > argc_) { in RunAsCopyApCommand() 411 if (optind < 0 || optind > argc_) { in RunAsCompileCommand() 532 if (optind < 0 || optind > argc_) { in RunAsInstallCommand() 759 if (optind < 0 || optind > argc_) { in RunAsUninstallCommand() 961 if (optind < 0 || optind > argc_) { in RunAsDumpCommand() 1138 if (optind < 0 || optind > argc_) { in RunAsCleanCommand() 1315 if (optind < 0 || optind > argc_) { in RunAsEnableCommand() 1464 if (optind < 0 || optind > argc_) { in RunAsDisableCommand() 1601 if (optind < 0 || optind > argc_) { in RunAsGetCommand() [all …]
|
H A D | shell_command.cpp | 97 if (optind < 0 || optind > argc_) { in GetUnknownOptionMsg()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/old/tools/dp/src/ |
H A D | dp_command.cpp | 170 … HILOGI("option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in QueryCommand() 171 if (optind < 0 || optind > argc_) { in QueryCommand() 202 … HILOGI("option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in PutCommand() 203 if (optind < 0 || optind > argc_) { in PutCommand() 236 … HILOGI("option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in DeleteCommand() 237 if (optind < 0 || optind > argc_) { in DeleteCommand() 263 if (optind < 0 || optind > argc_) { in SyncCommand() 298 if (optind < 0 || optind > argc_) { in SubscribeCommand() 345 HILOGI("'dp query' %{public}s", argv_[optind - 1]); in HandleNormalOption() 391 HILOGI("'dp sync' %{public}s", argv_[optind - 1]); in HandleSyncOption() [all …]
|
H A D | shell_command.cpp | 103 if (optind < 0 || optind > argc_) { in GetUnknownOptionMsg()
|
/ohos5.0/drivers/peripheral/audio/test/audio_utils/audio_mixer/ |
H A D | audio_mixer_main.c | 623 updateId = optind; in main() 661 chnmapId = optind; in main() 703 if (argc - optind <= 0) { in main() 709 if (argc - optind <= 0) { in main() 717 if (strcmp(argv[optind], "help") == 0) { in main() 719 } else if (strcmp(argv[optind], "info") == 0) { in main() 721 } else if (strcmp(argv[optind], "controls") == 0) { in main() 725 } else if (strcmp(argv[optind], "set") == 0) { in main() 726 …ret = MixerESet(argc - optind - 1, (argc - optind > 1) ? (argv + optind + 1) : NULL, SSET_WR) ? 1 … in main() 727 } else if (strcmp(argv[optind], "get") == 0) { in main() [all …]
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/manager/ |
H A D | dump_implement.cpp | 203 optind = 0; // reset getopt_long in CmdParseWithParameter() 283 optind, in SetCmdParameter() 285 if (optind > 1 && optind <= argc) { in SetCmdParameter() 289 opts_.logArgs_.push_back(argv[optind - 1]); in SetCmdParameter() 291 status = SetCmdIntegerParameter(argv[optind - 1], opts_.memPid_); in SetCmdParameter() 293 status = SetCmdIntegerParameter(argv[optind - 1], opts_.netPid_); in SetCmdParameter() 297 opts_.systemArgs_.push_back(argv[optind - 1]); in SetCmdParameter() 301 status = SetCmdIntegerParameter(argv[optind - 1], opts_.threadId_); in SetCmdParameter() 303 opts_.abilitieNames_.push_back(argv[optind - 1]); in SetCmdParameter() 444 std::string optionName = RemoveCharacterFromStr(argv[optind - 1], '-'); in ParseCmdOptionForA() [all …]
|
/ohos5.0/foundation/multimodalinput/input/tools/inject_event/src/ |
H A D | input_manager_command.cpp | 194 optind = 0; in ParseCommand() 227 }(argc - optind + 1, &argv[optind - 1]); in ParseCommand() 249 optind++; in ParseCommand() 285 optind++; in ParseCommand() 1254 optind++; in ParseCommand() 1284 optind++; in ParseCommand() 1578 if (optind < argc) { in ParseCommand() 1834 if (optind < 0 || optind > argc) { in SingleKnuckleGestureProcesser() 1884 if (optind < 0 || optind > argc) { in DoubleKnuckleGestureProcesser() 2099 if (optind < 0 || optind > argc) { in ProcessPinchGesture() [all …]
|
/ohos5.0/base/hiviewdfx/hisysevent/frameworks/native/test/unittest/common/ |
H A D | hisysevent_tool_unit_test.cpp | 198 optind = ARGV_START_INDEX; 222 optind = ARGV_START_INDEX; 247 optind = ARGV_START_INDEX; 266 optind = ARGV_START_INDEX; 288 optind = ARGV_START_INDEX; 313 optind = ARGV_START_INDEX; 341 optind = ARGV_START_INDEX; 366 optind = ARGV_START_INDEX; 411 optind = ARGV_START_INDEX; 433 optind = ARGV_START_INDEX;
|
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/src/ |
H A D | injection_tools_help_func.cpp | 89 std::string inputOptions = argv[optind]; in SelectOptions() 94 optind++; in SelectOptions() 119 std::string deviceNode = argv[optind]; in SendEventOption() 129 while (++optind < argc) { in SendEventOption() 130 std::string deviceInfo = argv[optind]; in SendEventOption() 147 const std::string jsonFile = argv[optind]; in JsonOption()
|
/ohos5.0/foundation/ability/ability_runtime/tools/aa/src/ |
H A D | ability_command.cpp | 343 if (optind < 0 || optind > argc_) { in RunAsDumpsysCommand() 702 if (optind < 0 || optind > argc_) { in ParseAppDebugParameter() 981 if (optind < 0 || optind > argc_) { in MakeWantForProcess() 1184 optopt, optind); in ParseBundleName() 1186 if (optind < 0 || optind > argc_) { in ParseBundleName() 1301 if (optind < 0 || optind > argc_) { in MakeWantFromCmd() 1643 optind++; in MakeWantFromCmd() 1658 optind++; in MakeWantFromCmd() 1673 optind++; in MakeWantFromCmd() 2110 if (optind < 0 || optind > argc_) { in RunAsForceExitAppCommand() [all …]
|
H A D | ability_tool_command.cpp | 271 …ag::AA_TOOL, "option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in ParseStartAbilityArgsFromCmd() 285 if (!GetKeyAndValueByOpt(optind, paramName, paramValue)) { in ParseStartAbilityArgsFromCmd() 378 …ag::AA_TOOL, "option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in ParseStopServiceArgsFromCmd() 426 …ag::AA_TOOL, "option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in ParseTestArgsFromCmd() 434 if (!GetKeyAndValueByOpt(optind, tempKey, paramValue)) { in ParseTestArgsFromCmd() 470 bool AbilityToolCommand::GetKeyAndValueByOpt(int optind, std::string& key, std::string& value) in GetKeyAndValueByOpt() argument 472 int argListIndex = optind - ARG_LIST_INDEX_OFFSET; in GetKeyAndValueByOpt()
|
H A D | accessibility_ability_command.cpp | 349 argument.unknownArguments.push_back(argv_[optind - 1]); in CheckEnableCommandOption() 366 …ag::AA_TOOL, "option: %{public}d, optind: %{public}d, optopt: %{public}d", option, optind, optopt); in MakeEnableCommandArgumentFromCmd() 368 if (optind < 0 || optind > argc_) { in MakeEnableCommandArgumentFromCmd() 373 if (counter == 1 && strcmp(argv_[optind], cmd_.c_str()) == 0) { in MakeEnableCommandArgumentFromCmd() 1196 argument.unknownArguments.push_back(argv_[optind - 1]); in SetArgument() 1211 …ag::AA_TOOL, "optopt: %{public}d, option: %{public}d, optind: %{public}d", optopt, option, optind); in MakeCommandArgumentFromCmd() 1213 if (optind < 0 || optind > argc_) { in MakeCommandArgumentFromCmd() 1218 if (counter == 1 && strcmp(argv_[optind], cmd_.c_str()) == 0) { in MakeCommandArgumentFromCmd() 1260 if (optind < 0 || optind > argc_) { in MakeSetCommandArgumentFromCmd() 1265 if (counter == 1 && strcmp(argv_[optind], cmd_.c_str()) == 0) { in MakeSetCommandArgumentFromCmd() [all …]
|
H A D | shell_command.cpp | 104 if (optind < 0 || optind > argc_) { in GetUnknownOptionMsg()
|
/ohos5.0/base/security/access_token/tools/accesstoken/src/ |
H A D | atm_command.cpp | 166 if ((optind < 0) || (optind >= argc_)) { in RunAsCommandError() 171 if (strcmp(argv_[optind], cmd_.c_str()) == 0) { in RunAsCommandError() 185 if ((optind < 0) || (optind > argc_)) { in GetUnknownOptionMsg() 406 if ((optind < 0) || (optind > argc_)) { in HandleComplexCommand()
|
/ohos5.0/base/account/os_account/tools/acm/src/ |
H A D | account_command.cpp | 98 if (optind < 0 || optind > argc_) { in GetUnknownOptionMsg() 142 …ACCOUNT_LOGD("option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in ParseCreateCommandOpt() 274 …ACCOUNT_LOGD("option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in RunCommand() 347 …ACCOUNT_LOGD("option: %{public}d, optopt: %{public}d, optind: %{public}d", option, optopt, optind); in ParseCommandOpt() 544 if (optind < 0 || optind >= argc_) { in RunCommandError() 545 ACCOUNT_LOGD("optind %{public}d invalid", optind); in RunCommandError() 550 if (strcmp(argv_[optind], cmd_.c_str()) == 0) { in RunCommandError()
|
/ohos5.0/base/tee/tee_client/services/tlogcat/src/ |
H A D | tlogcat.c | 1226 if (optind > 0 && optind < argc) { in main() 1227 tlogd("optind: %d, argc:%d, argv[%d]:%s\n", optind, argc, optind, argv[optind]); in main() 1234 if (optind > 0 && optind < argc) { in main() 1235 tlogd("optind=%d, argv[%d]=%s\n", optind, optind, argv[optind]); in main()
|
/ohos5.0/base/notification/distributed_notification_service/tools/dump/src/ |
H A D | shell_command.cpp | 84 if (optind < 0 || optind > argc_) { in GetUnknownOptionMsg()
|
/ohos5.0/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | option.cpp | 45 if (optind >= argc) { in Parse() 50 SetSourceOption(argv[optind]); in Parse()
|
/ohos5.0/foundation/ability/ability_runtime/tools/test/unittest/ability_delegator/ |
H A D | accessibility_ability_command_second_test.cpp | 66 optind = 0; in SetUp() 176 optind = 5; 231 optind = -1; 322 optind = 5; 450 optind = -1;
|
/ohos5.0/foundation/ability/ability_runtime/tools/aa/include/ |
H A D | ability_tool_command.h | 45 bool GetKeyAndValueByOpt(int optind, std::string& key, std::string& value);
|
/ohos5.0/foundation/ability/ability_runtime/tools/test/systemtest/aa/ |
H A D | aa_command_stop_service_system_test.cpp | 54 optind = 0; in SetUp()
|
/ohos5.0/foundation/bundlemanager/bundle_tool/test/systemtest/bm/ |
H A D | bm_command_uninstall_system_test.cpp | 52 optind = 0; in SetUp()
|