Home
last modified time | relevance | path

Searched refs:optionIndex (Results 1 - 23 of 23) sorted by relevance

/base/hiviewdfx/hitrace/cmd/src/
H A Dhitrace_cmd.cpp307 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 Ddump_implement.cpp217 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 Dmiscdevice_dump.cpp75 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 Dscan_service_ability.h58 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 Discan_service.h42 const int32_t optionIndex, ScanOptionDescriptor &desc) = 0;
44 const int32_t optionIndex, const ScanOptionOpType op, ScanOptionValue &value, int32_t &info) =0;
H A Dscan_manager_client.h48 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 Dscan_service_proxy.h38 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 Dmiscdevice_dump.h48 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 Dscanservicestub_fuzzer.cpp77 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 Dsensor_dump.cpp93 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 Dsensor_dump.h49 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 Ddump_implement.h77 const int &optionIndex, char *argv[]);
79 const int& optionIndex, char* argv[]);
/base/hiviewdfx/hilog_lite/command/
H A Dhilog_command.c190 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 Dnapi_inner_scan.cpp221 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 Dscanmanagerclient_fuzzer.cpp60 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 Dscan_service_proxy.cpp159 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 Dscan_manager_client.cpp270 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 Dscan_service_stub.cpp162 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 Dscan_service_ability.cpp739 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 Dohscan.cpp34 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 Dnapi_inner_scan.h81 int32_t optionIndex = 0; member
/base/update/updater/services/
H A Dupdater_main.cpp757 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 Dscanserviceability_fuzzer.cpp76 int32_t optionIndex = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in TestGetScanOptionDesc() local
78 ScanServiceAbility::GetInstance()->GetScanOptionDesc(scannerId, optionIndex, desc); in TestGetScanOptionDesc()

Completed in 18 milliseconds