Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 42) sorted by relevance

12

/base/msdp/device_status/tools/vdev/src/
Dvdevadm.cpp108 int32_t opt = getopt(argc, argv, "t:"); in Mount() local
109 if ((opt != 't') || (optarg == nullptr)) { in Mount()
132 int32_t opt = getopt(argc, argv, "t:"); in Unmount() local
133 if ((opt != 't') || (optarg == nullptr)) { in Unmount()
155 int32_t opt = getopt(argc, argv, "t:"); in Clone() local
156 if ((opt != 't') || (optarg == nullptr)) { in Clone()
179 int32_t opt = getopt(argc, argv, "t:"); in Monitor() local
180 if ((opt != 't') || (optarg == nullptr)) { in Monitor()
200 int32_t opt = getopt(argc, argv, "t:"); in Act() local
201 if ((opt != 't') || (optarg == nullptr)) { in Act()
[all …]
Dvirtual_keyboard_builder.cpp152 int32_t opt = getopt(argc, argv, "d:u:f:r:w:"); in Act() local
153 if (opt < 0) { in Act()
163 switch (opt) { in Act()
189 } while ((opt = getopt(argc, argv, "d:u:f:r:w:")) >= 0); in Act()
/base/update/updater/services/diffpatch/
Ddiff_main.cpp32 int opt; in main() local
34 while ((opt = getopt(argc, argv, optstring)) != -1) { in main()
35 switch (opt) { in main()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Dpeer_binder_catcher.cpp216 HiperfClient::RecordOption opt; in DoExecHiperf() local
217 opt.SetOutputFilename(fileName); in DoExecHiperf()
219 opt.SetTimeStopSec(collectTime); in DoExecHiperf()
220 opt.SetFrequency(1000); // 1000 : 1kHz in DoExecHiperf()
221 opt.SetCallGraph("fp"); in DoExecHiperf()
222 opt.SetOffCPU(true); in DoExecHiperf()
231 opt.SetSelectPids(selectPids); in DoExecHiperf()
233 opt.SetTargetSystemWide(true); in DoExecHiperf()
239 perfClient_->Start(opt); in DoExecHiperf()
/base/startup/appspawn/interfaces/innerkits/client/
Dclient_socket.cpp41 int opt = 1; in CreateClient() local
42 int ret = setsockopt(socketFd_, SOL_SOCKET, SO_PASSCRED, &opt, sizeof(opt)); in CreateClient()
/base/hiviewdfx/hievent_lite/frameworks/
Dhiview_output_event.c118 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in ClearEventOutput() local
119 if (opt == OUTPUT_OPTION_BIN_FILE || opt == OUTPUT_OPTION_TEXT_FILE) { in ClearEventOutput()
128 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in InitFaultEventOutput() local
132 if (opt == OUTPUT_OPTION_DEBUG || opt == OUTPUT_OPTION_FLOW) { in InitFaultEventOutput()
146 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in InitUeEventOutput() local
147 if (opt == OUTPUT_OPTION_DEBUG || opt == OUTPUT_OPTION_FLOW) { in InitUeEventOutput()
161 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in InitStatEventOutput() local
162 if (opt == OUTPUT_OPTION_DEBUG || opt == OUTPUT_OPTION_FLOW) { in InitStatEventOutput()
250 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in OutputEvent() local
251 if (c->usedSize >= HIVIEW_HIEVENT_FILE_BUF_SIZE || opt == OUTPUT_OPTION_DEBUG) { in OutputEvent()
[all …]
/base/hiviewdfx/hilog_lite/frameworks/mini/
Dhiview_output_log.c100 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in InitLogOutput() local
101 if (opt == OUTPUT_OPTION_DEBUG || opt == OUTPUT_OPTION_FLOW) { in InitLogOutput()
105 if (opt == OUTPUT_OPTION_BIN_FILE) { in InitLogOutput()
117 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in ClearLogOutput() local
119 if (opt == OUTPUT_OPTION_TEXT_FILE) { in ClearLogOutput()
121 } else if (opt == OUTPUT_OPTION_BIN_FILE) { in ClearLogOutput()
160 int8 opt = GETOPTION(g_hiviewConfig.outputOption); in OutputLog() local
162 if (opt == OUTPUT_OPTION_DEBUG || isPrint || isDisableCache) { in OutputLog()
169 if (opt == OUTPUT_OPTION_DEBUG || isDisableCache || isLogLimited) { in OutputLog()
187 switch (opt) { in OutputLog()
[all …]
/base/startup/init/ueventd/
Dueventd_main.c152 int opt; in main() local
156 while ((opt = getopt(argc, argv, "drblv:h")) != -1) { in main()
157 switch (opt) { in main()
/base/startup/init/services/param/linux/
Dparam_message.c27 int opt = 1; in ConnectServer() local
28 int ret = setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &opt, sizeof(opt)); in ConnectServer()
/base/hiviewdfx/hisysevent/frameworks/native/
Dhisysevent_tool.cpp189 int opt; in HandleInput() local
190 while ((opt = getopt(argc, argv, selection)) != INVALID_ARG_OPT) { in HandleInput()
191 if (opt == 'h') { in HandleInput()
197 if (optHandlers.find(opt) != optHandlers.end()) { in HandleInput()
198 optHandlers.at(opt)(clientCmdArg, optarg); in HandleInput() local
/base/hiviewdfx/hiview/plugins/usage_event_report/service/
Dusage_event_report_service.cpp134 int opt = 0; in ProcessArgsRequest() local
135 while ((opt = getopt(argc, argv, ARG_SELECTION)) != -1) { in ProcessArgsRequest()
136 switch (opt) { in ProcessArgsRequest()
/base/hiviewdfx/hilog_lite/command/
Dhilog_command.c191 int opt = 0; in HilogCmdProc() local
202 while ((opt = getopt_long(argc, argv, shortOptions, longOptions, &optionIndex)) != -1) { in HilogCmdProc()
203 switch (opt) { in HilogCmdProc()
/base/hiviewdfx/hiview_lite/
Dhiview_util.h48 #define GETOPTION(opt) ((opt) & OPTION_MASK) argument
/base/msdp/device_status/services/native/src/
Ddevicestatus_dumper.cpp96 int32_t opt = getopt_long(argv.size(), argv.data(), "+hslcodm", dumpOptions, nullptr); in ParseCommand() local
97 if (opt < 0) { in ParseCommand()
100 ExecutDump(fd, datas, opt); in ParseCommand()
104 void DeviceStatusDumper::ExecutDump(int32_t fd, const std::vector<Data> &datas, int32_t opt) in ExecutDump() argument
106 switch (opt) { in ExecutDump()
/base/startup/init/services/init/
Dinit_service_manager.c497 char *opt[FILE_OPT_NUMS] = { in AddServiceFile() local
500 int num = SplitString(fileStr, " ", opt, FILE_OPT_NUMS); in AddServiceFile()
504 …if (opt[SERVICE_FILE_NAME] == NULL || opt[SERVICE_FILE_FLAGS] == NULL || opt[SERVICE_FILE_PERM] ==… in AddServiceFile()
505 opt[SERVICE_FILE_UID] == NULL || opt[SERVICE_FILE_GID] == NULL) { in AddServiceFile()
509 …ServiceFile *fileOpt = (ServiceFile *)calloc(1, sizeof(ServiceFile) + strlen(opt[SERVICE_FILE_NAME… in AddServiceFile()
510 …INIT_INFO_CHECK(fileOpt != NULL, return SERVICE_FAILURE, "Failed to calloc for file %s", opt[SERVI… in AddServiceFile()
511 … int ret = strcpy_s(fileOpt->fileName, strlen(opt[SERVICE_FILE_NAME]) + 1, opt[SERVICE_FILE_NAME]); in AddServiceFile()
513 return SERVICE_FAILURE, "Failed to copy file name %s", opt[SERVICE_FILE_NAME]); in AddServiceFile()
514 if (strcmp(opt[SERVICE_FILE_FLAGS], "rd") == 0) { in AddServiceFile()
516 } else if (strcmp(opt[SERVICE_FILE_FLAGS], "wd") == 0) { in AddServiceFile()
[all …]
/base/hiviewdfx/hiview/plugins/usage_event_report/
Dusage_event_report.cpp217 void UsageEventReport::StartServiceByOption(const std::string& opt) in StartServiceByOption() argument
219 HIVIEW_LOGI("start service, opt=%{public}s", opt.c_str()); in StartServiceByOption()
241 opt.c_str(), nullptr) < 0) { in StartServiceByOption()
/base/web/webview/ohos_adapter/pasteboard_adapter/src/
Dpasteboard_client_adapter_impl.cpp189 Media::InitializationOptions opt; in SetImgData() local
190 opt.size.width = imageData->width; in SetImgData()
191 opt.size.height = imageData->height; in SetImgData()
192 opt.pixelFormat = ClipboardToImageColorType(imageData->colorType); in SetImgData()
193 opt.alphaType = ClipboardToImageAlphaType(imageData->alphaType); in SetImgData()
194 opt.editable = true; in SetImgData()
195 std::unique_ptr<Media::PixelMap> pixelMap = Media::PixelMap::Create(opt); in SetImgData()
/base/hiviewdfx/hiview/plugins/usage_event_report/include/
Dusage_event_report.h45 static void StartServiceByOption(const std::string& opt);
/base/startup/init/test/benchmark/
Dbenchmark_fwk.cpp111 int opt; in ParseOptions() local
115 while ((opt = getopt_long(argc, argv, "c:i:a:h", g_benchmarkLongOptions, nullptr)) != -1) { in ParseOptions()
116 switch (opt) { in ParseOptions()
/base/sensors/medical_sensor/frameworks/native/medical_sensor/include/
Di_medical_sensor_service.h42 virtual ErrCode SetOption(uint32_t sensorId, uint32_t opt) = 0;
Dmedical_sensor_service_proxy.h33 ErrCode SetOption(uint32_t sensorId, uint32_t opt) override;
Dmedical_sensor_service_client.h42 int32_t SetOption(uint32_t sensorId, uint32_t opt);
/base/security/dlp_permission_service/services/dlp_permission/sa/mock/
Ddlp_credential_client_defines.h36 CloudEncOption opt; member
/base/startup/appspawn/test/unittest/
Dapp_spawn_stub.cpp86 pid_t WaitpidStub(pid_t *pid, int *status, int opt) in WaitpidStub() argument
89 UNUSED(opt); in WaitpidStub()
/base/startup/init/services/modules/init_context/
Dinit_context.c155 int opt = 1; in CreateSocketPair() local
158 ret = setsockopt(socket[0], SOL_SOCKET, SO_PASSCRED, &opt, sizeof(opt)); in CreateSocketPair()

12