/base/hiviewdfx/hitrace/cmd/src/ |
H A D | hitrace_cmd.cpp | 307 static bool ParseLongOpt(const string& cmd, int optionIndex) in ParseLongOpt() argument 310 if (!strcmp(LONG_OPTIONS[optionIndex].name, "buffer_size")) { in ParseLongOpt() 325 } else if (!strcmp(LONG_OPTIONS[optionIndex].name, "trace_clock")) { in ParseLongOpt() 333 } else if (!strcmp(LONG_OPTIONS[optionIndex].name, "help")) { in ParseLongOpt() 335 } else if (!strcmp(LONG_OPTIONS[optionIndex].name, "time")) { in ParseLongOpt() 343 } else if (!strcmp(LONG_OPTIONS[optionIndex].name, "list_categories")) { in ParseLongOpt() 345 } else if (!strcmp(LONG_OPTIONS[optionIndex].name, "output")) { in ParseLongOpt() 347 } else if (!strcmp(LONG_OPTIONS[optionIndex].name, "overwrite")) { in ParseLongOpt() 349 } else if (!strcmp(LONG_OPTIONS[optionIndex].name, "trace_begin")) { in ParseLongOpt() 351 } else if (!strcmp(LONG_OPTIONS[optionIndex] in ParseLongOpt() 471 int optionIndex = 0; HandleOpt() local [all...] |
/base/hiviewdfx/hidumper/frameworks/native/src/manager/ |
H A D | dump_implement.cpp | 217 int optionIndex = 0; in CmdParseWithParameter() local 236 int c = getopt_long(argc, argv, optStr, longOptions, &optionIndex); in CmdParseWithParameter() 240 DumpStatus status = ParseLongCmdOption(argc, opts_, longOptions, optionIndex, argv); in CmdParseWithParameter() 352 const int &optionIndex, char *argv[]) in ParseSubLongCmdOption() 358 if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "cpufreq")) { in ParseSubLongCmdOption() 360 } else if (hiviewEnable && StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "cpuusage")) { in ParseSubLongCmdOption() 362 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "log")) { in ParseSubLongCmdOption() 364 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "mem")) { in ParseSubLongCmdOption() 366 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex].name, "net")) { in ParseSubLongCmdOption() 368 } else if (StringUtils::GetInstance().IsSameStr(longOptions[optionIndex] in ParseSubLongCmdOption() 351 ParseSubLongCmdOption(int argc, DumperOpts &opts_, const struct option longOptions[], const int &optionIndex, char *argv[]) ParseSubLongCmdOption() argument 380 ParseLongCmdOption(int argc, DumperOpts &opts_, const struct option longOptions[], const int &optionIndex, char *argv[]) ParseLongCmdOption() argument [all...] |
/base/sensors/miscdevice/services/miscdevice_service/src/ |
H A D | miscdevice_dump.cpp | 75 int32_t optionIndex = 0; in ParseCommand() local 94 RunVibratorDump(fd, optionIndex, args, argv); in ParseCommand() 104 void MiscdeviceDump::RunVibratorDump(int32_t fd, int32_t optionIndex, const std::vector<std::string> &args, char **argv) in RunVibratorDump() argument 113 while ((c = getopt_long(args.size(), argv, "rh", dumpOptions, &optionIndex)) != -1) { in RunVibratorDump()
|
/base/print/print_fwk/services/scan_service/include/ |
H A D | scan_service_ability.h | 58 int32_t GetScanOptionDesc(const std::string scannerId, const int32_t optionIndex, 60 int32_t OpScanOptionValue(const std::string scannerId, const int32_t optionIndex, 83 int32_t ActionSetAuto(SANE_Handle &scannerHandle, const int32_t &optionIndex); 84 int32_t ActionGetValue(SANE_Handle &scannerHandle, ScanOptionValue &value, const int32_t &optionIndex); 87 const int32_t &optionIndex, int32_t &info);
|
/base/print/print_fwk/frameworks/innerkitsimpl/scan_impl/include/ |
H A D | iscan_service.h | 42 const int32_t optionIndex, ScanOptionDescriptor &desc) = 0; 44 const int32_t optionIndex, const ScanOptionOpType op, ScanOptionValue &value, int32_t &info) =0;
|
H A D | scan_manager_client.h | 48 int32_t GetScanOptionDesc(const std::string scannerId, const int32_t optionIndex, ScanOptionDescriptor &desc); 49 int32_t OpScanOptionValue(const std::string scannerId, const int32_t optionIndex,
|
H A D | scan_service_proxy.h | 38 const int32_t optionIndex, ScanOptionDescriptor &desc) override; 39 int32_t OpScanOptionValue(const std::string scannerId, const int32_t optionIndex,
|
/base/sensors/miscdevice/services/miscdevice_service/include/ |
H A D | miscdevice_dump.h | 48 void RunVibratorDump(int32_t fd, int32_t optionIndex, const std::vector<std::string> &args, char **argv);
|
/base/print/print_fwk/test/fuzztest/scanservicestub_fuzzer/ |
H A D | scanservicestub_fuzzer.cpp | 77 int32_t optionIndex = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in TestOnGetScanOptionDesc() local 78 datas.WriteInt32(optionIndex); in TestOnGetScanOptionDesc() 93 int32_t optionIndex = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in TestOnOpScanOptionValue() local 94 datas.WriteInt32(optionIndex); in TestOnOpScanOptionValue()
|
/base/sensors/sensor/services/src/ |
H A D | sensor_dump.cpp | 93 void SensorDump::RunSensorDump(int32_t fd, int32_t optionIndex, const std::vector<std::string> &args, char **argv) in RunSensorDump() argument 107 while ((c = getopt_long(args.size(), argv, "cdohl", dumpOptions, &optionIndex)) != -1) { in RunSensorDump() 158 int32_t optionIndex = 0; in ParseCommand() local 178 RunSensorDump(fd, optionIndex, args, argv); in ParseCommand()
|
/base/sensors/sensor/services/include/ |
H A D | sensor_dump.h | 49 void RunSensorDump(int32_t fd, int32_t optionIndex, const std::vector<std::string> &args, char **argv);
|
/base/hiviewdfx/hidumper/frameworks/native/include/manager/ |
H A D | dump_implement.h | 77 const int &optionIndex, char *argv[]); 79 const int& optionIndex, char* argv[]);
|
/base/hiviewdfx/hilog_lite/command/ |
H A D | hilog_command.c | 190 int optionIndex = 0; in HilogCmdProc() local 202 while ((opt = getopt_long(argc, argv, shortOptions, longOptions, &optionIndex)) != -1) { in HilogCmdProc()
|
/base/print/print_fwk/interfaces/kits/napi/scan_napi/src/ |
H A D | napi_inner_scan.cpp | 221 SCAN_ASSERT_BASE(env, valuetype == napi_number, "optionIndex is not a number", napi_number_expected); in GetScanOptionDesc() 222 int32_t optionIndex = NapiScanUtils::GetInt32FromValue(env, argv[NapiScanUtils::INDEX_ONE]); in GetScanOptionDesc() 224 context->optionIndex = optionIndex; in GetScanOptionDesc() 232 int32_t ret = ScanManagerClient::GetInstance()->GetScanOptionDesc(context->scannerId, context->optionIndex,\ in GetScanOptionDesc() 260 SCAN_ASSERT_BASE(env, valuetype == napi_number, "optionIndex is not a number", napi_number_expected); in SetScanOption() 261 int32_t optionIndex = NapiScanUtils::GetInt32FromValue(env, argv[NapiScanUtils::INDEX_ONE]); in SetScanOption() 262 context->optionIndex = optionIndex; in SetScanOption() 279 int32_t ret = ScanManagerClient::GetInstance()->OpScanOptionValue(context->scannerId, context->optionIndex, in SetScanOption() [all...] |
/base/print/print_fwk/test/fuzztest/scanmanagerclient_fuzzer/ |
H A D | scanmanagerclient_fuzzer.cpp | 60 int32_t optionIndex = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in TestGetScanOptionDesc() local 63 scanManagerPtr->GetScanOptionDesc(scannerId, optionIndex, desc); in TestGetScanOptionDesc() 77 int32_t optionIndex = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in TestOpScanOptionValue() local 82 scanManagerPtr->OpScanOptionValue(scannerId, optionIndex, op, value, info); in TestOpScanOptionValue()
|
/base/print/print_fwk/frameworks/innerkitsimpl/scan_impl/src/ |
H A D | scan_service_proxy.cpp | 159 int32_t ScanServiceProxy::GetScanOptionDesc(const std::string scannerId, const int32_t optionIndex, in GetScanOptionDesc() argument 170 data.WriteInt32(optionIndex); in GetScanOptionDesc() 184 const int32_t optionIndex, const ScanOptionOpType op, ScanOptionValue &value, int32_t &info) in OpScanOptionValue() 194 data.WriteInt32(optionIndex); in OpScanOptionValue() 183 OpScanOptionValue(const std::string scannerId, const int32_t optionIndex, const ScanOptionOpType op, ScanOptionValue &value, int32_t &info) OpScanOptionValue() argument
|
H A D | scan_manager_client.cpp | 270 const std::string scannerId, const int32_t optionIndex, ScanOptionDescriptor &desc) in GetScanOptionDesc() 287 int32_t ret = scanServiceProxy_->GetScanOptionDesc(scannerId, optionIndex, desc); in GetScanOptionDesc() 292 int32_t ScanManagerClient::OpScanOptionValue(const std::string scannerId, const int32_t optionIndex, in OpScanOptionValue() argument 310 int32_t ret = scanServiceProxy_->OpScanOptionValue(scannerId, optionIndex, op, value, info); in OpScanOptionValue() 269 GetScanOptionDesc( const std::string scannerId, const int32_t optionIndex, ScanOptionDescriptor &desc) GetScanOptionDesc() argument
|
/base/print/print_fwk/services/scan_service/src/ |
H A D | scan_service_stub.cpp | 162 int32_t optionIndex = data.ReadInt32(); in OnGetScanOptionDesc() local 164 int32_t ret = GetScanOptionDesc(scannerId, optionIndex, desc); in OnGetScanOptionDesc() 177 int32_t optionIndex = data.ReadInt32(); in OnOpScanOptionValue() local 183 int32_t ret = OpScanOptionValue(scannerId, optionIndex, op, value, info); in OnOpScanOptionValue()
|
H A D | scan_service_ability.cpp | 739 const std::string scannerId, const int32_t optionIndex, ScanOptionDescriptor &desc) in GetScanOptionDesc() 748 SCAN_HILOGI("optionIndex [%{public}d]", optionIndex); in GetScanOptionDesc() 756 const SANE_Option_Descriptor *optionDesc = sane_get_option_descriptor(scannerHandle, optionIndex); in GetScanOptionDesc() 774 int32_t ScanServiceAbility::ActionSetAuto(SANE_Handle &scannerHandle, const int32_t &optionIndex) in ActionSetAuto() argument 778 status = sane_control_option(scannerHandle, optionIndex, SANE_ACTION_SET_AUTO, 0, 0); in ActionSetAuto() 789 const int32_t &optionIndex) in ActionGetValue() 813 status = sane_control_option(scannerHandle, optionIndex, SANE_ACTION_GET_VALUE, saneValueBuf, 0); in ActionGetValue() 875 const int32_t &optionIndex, int32_t &info) 898 status = sane_control_option(scannerHandle, optionIndex, SANE_ACTION_SET_VALU 738 GetScanOptionDesc( const std::string scannerId, const int32_t optionIndex, ScanOptionDescriptor &desc) GetScanOptionDesc() argument 788 ActionGetValue(SANE_Handle &scannerHandle, ScanOptionValue &value, const int32_t &optionIndex) ActionGetValue() argument 912 OpScanOptionValue(const std::string scannerId, const int32_t optionIndex, const ScanOptionOpType op, ScanOptionValue &value, int32_t &info) OpScanOptionValue() argument [all...] |
/base/print/print_fwk/frameworks/ohscan/src/ |
H A D | ohscan.cpp | 34 int32_t optionIndex; member 166 g_valueMap[deviceId][lengthBuff].optionIndex = i; in GetScanParaValues() 454 int32_t optionIndex = t->second.optionIndex; in OH_Scan_SetScannerParameter() local 457 optionIndex, SCAN_ACTION_SET_VALUE, optionValue, info); in OH_Scan_SetScannerParameter()
|
/base/print/print_fwk/interfaces/kits/napi/scan_napi/include/ |
H A D | napi_inner_scan.h | 81 int32_t optionIndex = 0; member
|
/base/update/updater/services/ |
H A D | updater_main.cpp | 757 int optionIndex; 767 while ((rc = getopt_long(extractedArgs.size() - 1, extractedArgs.data(), "", OPTIONS, &optionIndex)) != -1) { 770 std::string option = OPTIONS[optionIndex].name;
|
/base/print/print_fwk/test/fuzztest/scanserviceability_fuzzer/ |
H A D | scanserviceability_fuzzer.cpp | 76 int32_t optionIndex = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in TestGetScanOptionDesc() local 78 ScanServiceAbility::GetInstance()->GetScanOptionDesc(scannerId, optionIndex, desc); in TestGetScanOptionDesc()
|