/base/hiviewdfx/hisysevent/frameworks/native/ |
H A D | hisysevent_tool.cpp | 108 {'v', [] (struct ArgStuct& cmdArg, const char* optarg) { in InitOptHandlers() 110 }}, {'r', [] (struct ArgStuct& cmdArg, const char* optarg) { in InitOptHandlers() 112 }}, {'c', [] (struct ArgStuct& cmdArg, const char* optarg) { in InitOptHandlers() 113 cmdArg.ruleType = GetRuleTypeFromArg(optarg); in InitOptHandlers() 114 }}, {'o', [] (struct ArgStuct& cmdArg, const char* optarg) { in InitOptHandlers() 115 cmdArg.domain = optarg; in InitOptHandlers() 116 }}, {'n', [] (struct ArgStuct& cmdArg, const char* optarg) { in InitOptHandlers() 117 cmdArg.eventName = optarg; in InitOptHandlers() 118 }}, {'t', [] (struct ArgStuct& cmdArg, const char* optarg) { in InitOptHandlers() 119 cmdArg.tag = optarg; in InitOptHandlers() [all...] |
/base/hiviewdfx/faultloggerd/tools/dump_catcher/ |
H A D | main.cpp | 58 if (optarg == nullptr) { in ParseParamters() 61 if (atoi(optarg) > 0) { in ParseParamters() 63 pid = atoi(optarg); in ParseParamters() 70 if (optarg == nullptr) { in ParseParamters() 73 if (atoi(optarg) > 0) { in ParseParamters() 74 tid = atoi(optarg); in ParseParamters()
|
/base/update/updater/services/diffpatch/ |
H A D | diff_main.cpp | 37 diffParams.source = optarg; in main() 40 diffParams.destination = optarg; in main() 43 diffParams.patch = optarg; in main() 46 diffParams.limit = atoi(optarg); in main() 49 diffParams.block = atoi(optarg); in main()
|
/base/msdp/device_status/tools/vdev/src/ |
H A D | vdevadm.cpp | 109 if ((opt != 't') || (optarg == nullptr)) { in Mount() 115 if (strcmp(optarg, "M") == 0) { in Mount() 118 } else if (strcmp(optarg, "T") == 0) { in Mount() 121 } else if (strcmp(optarg, "K") == 0) { in Mount() 133 if ((opt != 't') || (optarg == nullptr)) { in Unmount() 138 if (strcmp(optarg, "M") == 0) { in Unmount() 141 } else if (strcmp(optarg, "T") == 0) { in Unmount() 144 } else if (strcmp(optarg, "K") == 0) { in Unmount() 156 if ((opt != 't') || (optarg == nullptr)) { in Clone() 162 if (strcmp(optarg, " in Clone() [all...] |
H A D | virtual_mouse_builder.cpp | 226 action->second(optarg); in Act() 238 VirtualDeviceBuilder::WaitFor(optarg, "mouse"); in Act() 248 CHKPV(optarg); in ReadDownAction() 250 if (strcmp(optarg, "L") == 0) { in ReadDownAction() 253 } else if (strcmp(optarg, "M") == 0) { in ReadDownAction() 256 } else if (strcmp(optarg, "R") == 0) { in ReadDownAction() 268 CHKPV(optarg); in ReadMoveAction() 269 if (!Utility::IsInteger(std::string(optarg)) || (optind < 0) || (optind >= argc) || in ReadMoveAction() 275 int32_t dx = std::atoi(optarg); in ReadMoveAction() 288 CHKPV(optarg); in ReadMoveToAction() [all...] |
H A D | virtual_touchscreen_builder.cpp | 257 action->second(optarg); in Act() 269 VirtualDeviceBuilder::WaitFor(optarg, "touchscreen"); in Act() 279 CHKPV(optarg); in ReadDownAction() 281 if (!Utility::IsInteger(optarg) || (optind < 0) || (optind + 1 >= argc) || in ReadDownAction() 287 int32_t slot = std::atoi(optarg); in ReadDownAction() 300 CHKPV(optarg); in ReadMoveAction() 302 if (!Utility::IsInteger(optarg) || (optind < 0) || (optind + 1 >= argc) || !Utility::IsInteger(argv[optind])) { in ReadMoveAction() 307 int32_t slot = std::atoi(optarg); in ReadMoveAction() 323 CHKPV(optarg); in ReadUpAction() 324 if (!Utility::IsInteger(optarg)) { in ReadUpAction() [all...] |
H A D | virtual_keyboard_builder.cpp | 174 ReadActions(optarg); in Act() 178 ReadRawInput(optarg); in Act() 182 VirtualDeviceBuilder::WaitFor(optarg, "keyboard"); in Act() 196 CHKPV(optarg); in ReadDownAction() 197 if (!Utility::IsInteger(optarg)) { in ReadDownAction() 203 int32_t key = std::atoi(optarg); in ReadDownAction() 211 CHKPV(optarg); in ReadUpAction() 212 if (!Utility::IsInteger(optarg)) { in ReadUpAction() 218 int32_t key = std::atoi(optarg); in ReadUpAction()
|
/base/notification/common_event_service/tools/cem/src/ |
H A D | common_event_command.cpp | 114 cmdInfo.action = optarg; in SetPublishCmdInfo() 123 cmdInfo.code = atoi(optarg); in SetPublishCmdInfo() 126 cmdInfo.data = optarg; in SetPublishCmdInfo() 129 cmdInfo.userId = atoi(optarg); in SetPublishCmdInfo() 213 cmdInfo.action = optarg; in SetDumpCmdInfo() 216 cmdInfo.userId = atoi(optarg); in SetDumpCmdInfo() 244 if (strcmp(optarg, "subscriber") == 0) { in CheckDumpEventType() 246 } else if (strcmp(optarg, "sticky") == 0) { in CheckDumpEventType() 248 } else if (strcmp(optarg, "pending") == 0) { in CheckDumpEventType() 250 } else if (strcmp(optarg, "histor in CheckDumpEventType() [all...] |
/base/startup/init/test/benchmark/ |
H A D | benchmark_fwk.cpp | 91 char *optarg = argv[i]; in ShiftOptions() local 94 while (g_benchmarkLongOptions[index].name && strncmp(g_benchmarkLongOptions[index].name, optarg + 2, // 2 arg in ShiftOptions() 100 argvAfterShift->push_back(optarg); in ShiftOptions() 101 } else if ((g_benchmarkLongOptions[index].has_arg == required_argument) && !strchr(optarg, '=')) { in ShiftOptions() 118 if (!(*optarg)) { in ParseOptions() 123 opts.cpuNum = strtol(optarg, &errorCheck, 10); // 10 base in ParseOptions() 125 errx(1, "ERROR: Args %s is not a valid integer.", optarg); in ParseOptions() 129 if (!(*optarg)) { in ParseOptions() 134 opts.iterNum = strtol(optarg, &errorCheck, 10); // 10 base in ParseOptions() 136 errx(1, "ERROR: Args %s is not a valid number of iterations.", optarg); in ParseOptions() [all...] |
/base/security/access_token/tools/accesstoken/src/ |
H A D | atm_command.cpp | 246 if (optarg != nullptr) { in RunAsCommandExistentOptionArgument() 247 info.tokenId = static_cast<AccessTokenID>(std::atoi(optarg)); in RunAsCommandExistentOptionArgument() 251 if (optarg != nullptr) { in RunAsCommandExistentOptionArgument() 252 info.permissionName = optarg; in RunAsCommandExistentOptionArgument() 256 if (optarg != nullptr) { in RunAsCommandExistentOptionArgument() 257 info.bundleName = optarg; in RunAsCommandExistentOptionArgument() 261 if (optarg != nullptr) { in RunAsCommandExistentOptionArgument() 262 info.processName = optarg; in RunAsCommandExistentOptionArgument() 266 if (optarg != nullptr) { in RunAsCommandExistentOptionArgument() 267 info.userID = static_cast<int32_t>(std::atoi(optarg)); in RunAsCommandExistentOptionArgument() [all...] |
/base/startup/init/services/begetctl/ |
H A D | sandbox.cpp | 210 serviceName = optarg; in main_cmd() 214 namespaceName = optarg; in main_cmd() 216 processName = optarg; in main_cmd() 218 pid = optarg; in main_cmd() 223 serviceName = optarg; in main_cmd() 229 namespaceName = optarg; in main_cmd() 232 processName = optarg; in main_cmd() 235 pid = optarg; in main_cmd()
|
/base/security/selinux_adapter/framework/tools/hap_restorecon/ |
H A D | test.cpp | 77 input.apl = optarg; in SetOptions() 85 input.multiPath.emplace_back(optarg); in SetOptions() 89 std::stringstream str(optarg); in SetOptions() 97 input.name = optarg; in SetOptions() 101 input.recurse = optarg; in SetOptions()
|
/base/notification/distributed_notification_service/tools/dump/src/ |
H A D | notification_shell_command.cpp | 229 bundle = optarg; in SetDumpCmdInfo() 232 userId = atoi(optarg); in SetDumpCmdInfo() 235 recvUserId = atoi(optarg); in SetDumpCmdInfo() 287 int32_t count = atoi(optarg); in RunAsSettingCommand() 295 cmd.append(" ").append(std::string(optarg)); in RunAsSettingCommand() 317 std::string info = std::string(optarg); in RunSetEnableCmd() 349 std::string info = std::string(optarg); in RunSetDeviceStatusCmd()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/ |
H A D | usage_event_report_service.cpp | 139 InitWorkPath(optarg);
in ProcessArgsRequest() 151 lastReportTime_ = strtoull(optarg, nullptr, 0);
in ProcessArgsRequest() 154 lastSysReportTime_ = strtoull(optarg, nullptr, 0);
in ProcessArgsRequest()
|
/base/powermgr/power_manager/utils/shell/src/ |
H A D | power_shell_command.cpp | 437 if (!optarg) { in RunAsProxyLockCommand() 443 StrToInt(optarg, uid); in RunAsProxyLockCommand() 495 if (!optarg) { in DisplayOptargEmpty() 521 StrToInt(optarg, value); in RunAsDisplayCommandOverride() 555 StrToInt(optarg, value); in RunAsDisplayCommandBoost() 589 StrToInt(optarg, value); in RunAsDisplayCommandSetValue() 608 std::stringstream fstr(optarg); in RunAsDisplayCommandDiscount() 660 if (!optarg) { in RunAsTimeOutCommand() 667 StrToInt(optarg, timeout); in RunAsTimeOutCommand()
|
/base/startup/appspawn/service/hnp/pack/src/ |
H A D | hnp_pack.c | 214 packArgv.source = optarg;
in HnpCmdPack() 217 packArgv.output = optarg;
in HnpCmdPack() 220 packArgv.name = optarg;
in HnpCmdPack() 223 packArgv.version = optarg;
in HnpCmdPack()
|
/base/hiviewdfx/hitrace/cmd/src/ |
H A D | hitrace_cmd.cpp | 316 if (!StrToNum(optarg, bufferSizeKB)) { in ParseLongOpt() 327 if (regex_match(optarg, re)) { in ParseLongOpt() 328 g_traceArgs.clockType = optarg; in ParseLongOpt() 336 if (!StrToNum(optarg, g_traceArgs.duration)) { in ParseLongOpt() 340 ConsoleLog("error: \"-t " + std::string(optarg) + "\" to be greater than zero. eg: \"--time 5\"."); in ParseLongOpt() 346 isTrue = CheckOutputFile(optarg); in ParseLongOpt() 379 if (!StrToNum(optarg, fileSizeKB)) { in ParseLongOpt() 402 if (!StrToNum(optarg, bufferSizeKB)) { in ParseOpt() 420 if (!StrToNum(optarg, g_traceArgs.duration)) { in ParseOpt() 424 ConsoleLog("error: \"-t " + std::string(optarg) in ParseOpt() [all...] |
/base/startup/appspawn/service/hnp/installer/src/ |
H A D | hnp_installer.c | 773 ret = HnpInstallerUidGet(optarg, &installInfo->uid);
in ParseInstallArgs() 775 HNP_LOGE("hnp install argv uid[%{public}s] invalid", optarg);
in ParseInstallArgs() 780 installInfo->hapPackageName = (char *)optarg;
in ParseInstallArgs() 783 installInfo->hnpRootPath = (char *)optarg;
in ParseInstallArgs() 786 installInfo->hapPath = (char *)optarg;
in ParseInstallArgs() 789 installInfo->abi = (char *)optarg;
in ParseInstallArgs() 836 uidArg = optarg;
in HnpCmdUnInstall() 844 packageName = (char *)optarg;
in HnpCmdUnInstall()
|
/base/account/os_account/tools/acm/src/ |
H A D | account_command.cpp | 479 name = optarg; in RunAsCreateCommandExistentOptionArgument() 491 shortName = optarg; in RunAsCreateCommandExistentOptionArgument() 673 std::string typeByUser = optarg; in AnalyzeTypeArgument() 728 std::string listPath = optarg; in AnalyzeDisallowedListArgument() 734 std::string idByUser = optarg; in AnalyzeLocalIdArgument() 745 std::string constraintsByUser = optarg; in AnalyzeConstraintArgument()
|
/base/hiviewdfx/hilog_lite/command/ |
H A D | hilog_command.c | 208 ret = HilogLevelProc(optarg); in HilogCmdProc() 211 ret = HilogDomainProc(optarg); in HilogCmdProc()
|
/base/customization/enterprise_device_management/tools/edm/src/ |
H A D | edm_command.cpp | 164 bundleName = optarg; in RunAsEnableCommandParseOptionArgument() 167 abilityName = optarg; in RunAsEnableCommandParseOptionArgument()
|
/base/update/updater/services/ |
H A D | updater_main.cpp | 653 std::unordered_map<std::string, std::function<void ()>> InitOptionsFuncTab(char* &optarg, 659 upParams.updatePackage.push_back(optarg); 665 upParams.retryCount = atoi(optarg); 695 upParams.pkgLocation = static_cast<unsigned int>(atoi(optarg)); 723 if (std::string(optarg) == POWEROFF) { 758 auto optionsFuncTab = InitOptionsFuncTab(optarg, mode, upParams);
|
/base/startup/init/ueventd/ |
H A D | ueventd_main.c | 196 EnableInitLog(atoi(optarg)); in main()
|
/base/hiviewdfx/hidumper/frameworks/native/src/manager/ |
H A D | dump_implement.cpp | 398 if (optarg != nullptr) { in ParseLongCmdOption() 399 return SetCmdIntegerParameter(optarg, opts_.dumpJsHeapMemPid_); in ParseLongCmdOption() 446 SplitStr(optarg, " ", opts_.abilitieArgs_); in ParseCmdOptionForA() 449 if (optarg != nullptr) { in ParseCmdOptionForA() 451 SplitStr(optarg, "--", ipcStatParams); in ParseCmdOptionForA()
|
/base/security/selinux_adapter/framework/tools/service_check/ |
H A D | test.cpp | 78 input.serviceName = optarg; in SetOptions()
|