Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 152) sorted by relevance

1234567

/base/customization/enterprise_device_management/services/edm_plugin/src/
Diptables_rule_plugin.cpp61 std::string command("-t filter -n -v -L --line-number"); in OnGetPolicy() local
62 …et = NetManagerStandard::NetsysController::GetInstance().SetIptablesCommandForRes(command, result); in OnGetPolicy()
77 std::string command; in AddIptablesFilterRule() local
78 if (!ConvertAddFilterToIptablesCommand(addFilter, command)) { in AddIptablesFilterRule()
84 …et = NetManagerStandard::NetsysController::GetInstance().SetIptablesCommandForRes(command, result); in AddIptablesFilterRule()
125 …ugin::ConvertAddFilterToIptablesCommand(const IPTABLES::AddFilter &addFilter, std::string &command) in ConvertAddFilterToIptablesCommand() argument
127 command = "-t filter"; in ConvertAddFilterToIptablesCommand()
129 command.append(" -A"); in ConvertAddFilterToIptablesCommand()
131 command.append(" -I"); in ConvertAddFilterToIptablesCommand()
136 if (!ConvertChainCommand(addFilter.action, addFilter.direction, command)) { in ConvertAddFilterToIptablesCommand()
[all …]
/base/account/os_account/tools/test/moduletest/acm/
Daccount_command_util.cpp38 …std::string command = TOOL_NAME + " create -n " + STRING_LOCAL_ACCOUNT_NAME + " -t " + STRING_TYPE; in CreateOsAccount() local
39 GTEST_LOG_(INFO) << "command = " << command; in CreateOsAccount()
41 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in CreateOsAccount()
58 std::string command = TOOL_NAME + " delete -i " + localAccountId; in DeleteLastOsAccount() local
59 GTEST_LOG_(INFO) << "command = " << command; in DeleteLastOsAccount()
61 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in DeleteLastOsAccount()
79 std::string command = TOOL_NAME + " dump -i " + localAccountId; in DumpLastOsAccount() local
80 GTEST_LOG_(INFO) << "command = " << command; in DumpLastOsAccount()
82 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in DumpLastOsAccount()
100 std::string command = TOOL_NAME + " switch -i " + localAccountId; in SwitchToFirstOsAccount() local
[all …]
Daccount_command_set_module_test.cpp74 …std::string command = TOOL_NAME + " set -i " + localAccountId + " -c " + STRING_CONSTRAINT_INVALID; variable
75 GTEST_LOG_(INFO) << "command = " << command;
77 std::string commandResult = ToolSystemTest::ExecuteCommand(command);
101 …std::string command = TOOL_NAME + " set -i " + localAccountId + " -c " + STRING_CONSTRAINT + " -e"; variable
102 GTEST_LOG_(INFO) << "command = " << command;
104 std::string commandResult = ToolSystemTest::ExecuteCommand(command);
107 command = TOOL_NAME + " set -i " + localAccountId + " -c " + STRING_CONSTRAINT + " -e";
108 GTEST_LOG_(INFO) << "command = " << command;
110 commandResult = ToolSystemTest::ExecuteCommand(command);
Daccount_command_delete_module_test.cpp62 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID; variable
63 GTEST_LOG_(INFO) << "command = " << command;
65 std::string commandResult = ToolSystemTest::ExecuteCommand(command);
77 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID_TWO; variable
78 GTEST_LOG_(INFO) << "command = " << command;
80 std::string commandResult = ToolSystemTest::ExecuteCommand(command);
Daccount_command_switch_module_test.cpp62 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID; variable
63 GTEST_LOG_(INFO) << "command = " << command;
65 std::string commandResult = ToolSystemTest::ExecuteCommand(command);
77 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID_TWO; variable
78 GTEST_LOG_(INFO) << "command = " << command;
80 std::string commandResult = ToolSystemTest::ExecuteCommand(command);
Daccount_command_dump_module_test.cpp62 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID; variable
63 GTEST_LOG_(INFO) << "command = " << command;
65 std::string commandResult = ToolSystemTest::ExecuteCommand(command);
77 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID_TWO; variable
78 GTEST_LOG_(INFO) << "command = " << command;
80 std::string commandResult = ToolSystemTest::ExecuteCommand(command);
/base/useriam/user_auth_framework/test/unittest/executors/
Dauth_command_unit_test.cpp88 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); variable
89 ASSERT_NE(command, nullptr);
90 command->OnResult(testResultCode, testExtraInfo);
109 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); variable
110 ASSERT_NE(command, nullptr);
111 command->OnResult(testResultCode, testExtraInfo);
139 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); variable
140 ASSERT_NE(command, nullptr);
141 command->OnResult(testResultCode);
156 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); variable
[all …]
Didentify_command_unit_test.cpp88 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); variable
89 ASSERT_NE(command, nullptr);
90 command->OnResult(testResultCode, testExtraInfo);
110 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); variable
111 ASSERT_NE(command, nullptr);
112 command->OnResult(testResultCode, testExtraInfo);
140 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); variable
141 ASSERT_NE(command, nullptr);
142 command->OnResult(testResultCode);
157 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); variable
[all …]
Denroll_command_unit_test.cpp88 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); variable
89 ASSERT_NE(command, nullptr);
90 command->OnResult(testResultCode, testExtraInfo);
110 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); variable
111 ASSERT_NE(command, nullptr);
112 command->OnResult(testResultCode, testExtraInfo);
140 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); variable
141 ASSERT_NE(command, nullptr);
142 command->OnResult(testResultCode);
157 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); variable
[all …]
/base/notification/common_event_service/tools/test/systemtest/cem/
Dcommon_event_command_dump_system_test.cpp35 std::string ExecuteCommand(const std::string &command) in ExecuteCommand() argument
38 FILE *file = popen(command.c_str(), "r"); in ExecuteCommand()
114 std::string command = "cem dump -a"; variable
115 std::string commandResult = ExecuteCommand(command);
131 std::string command = "cem dump -e " + STRING_EVENT; variable
132 std::string commandResult = ExecuteCommand(command);
159 std::string command = "cem dump -e " + STRING_EVENT; variable
160 std::string commandResult = ExecuteCommand(command);
Dcommon_event_command_publish_system_test.cpp43 std::string ExecuteCommand(const std::string &command) in ExecuteCommand() argument
46 FILE *file = popen(command.c_str(), "r"); in ExecuteCommand()
170 std::string command = "cem publish -e " + STRING_EVENT; variable
171 std::string commandResult = ExecuteCommand(command);
230 …std::string command = "cem publish -e " + STRING_EVENT + " -c " + STRING_CODE + " -d " + STRING_DA… variable
231 std::string commandResult = ExecuteCommand(command);
290 std::string command = "cem publish -e " + STRING_EVENT + " -c " + STRING_CODE_TWO; variable
291 std::string commandResult = ExecuteCommand(command);
350 std::string command = "cem publish -e " + STRING_EVENT + " -d " + STRING_DATA_TWO; variable
351 std::string commandResult = ExecuteCommand(command);
/base/inputmethod/imf/services/dfx/src/
Dinputmethod_dump.cpp57 std::string command = ""; in Dump() local
59 command = args.at(SUB_CMD_NAME); in Dump()
63 if (command == CMD_HELP) { in Dump()
65 } else if (command == CMD_ALL_DUMP) { in Dump()
73 IMSA_HILOGI("InputmethodDump::Dump command=%{public}s.", command.c_str()); in Dump()
/base/telephony/ril_adapter/services/vendor/include/
Dat_support.h56 int32_t SendCommandLock(const char *command, const char *prefix, long long timeout, ResponseInfo **…
59 const char *command, const char *prefix, long long timeout, ResponseInfo **outResponse);
62 …const char *command, const char *smsPdu, const char *prefix, long long timeout, ResponseInfo **out…
64 int32_t SendCommandNoLock(const char *command, long long timeout, ResponseInfo **outResponse);
/base/hiviewdfx/hidumper/
DREADME.md16 …f HiDumper, which provides functions such as information classification, command request distribut…
17 - Dumpers: Exports various information, including file information, command information, CPU usag…
61 1. Access the device CLI, and run the **hidumper -h** command to obtain the help information, whic…
67 2. Run the **hidumper -lc** command to obtain the system information cluster list.
73 3. Run the **hidumper -c** command to obtain all information that is classified by **base** and **…
86 5. Run the **hidumper -ls** command to obtain the system ability list.
92 6. Run the **hidumper -s** command to obtain all system ability information.
98 7. Run the **hidumper -s 3301 -a "-h"** command to obtain the help information about the ability w…
104 8. Run the **hidumper -s 3008** command to obtain all information about the ability whose ID is **…
110 9. Run the **hidumper -e** command to obtain the crash information generated by the Faultlog modul…
[all …]
/base/update/updater/services/flashd/daemon/
Ddaemon.cpp98 const uint16_t command, uint8_t *payload, const int payloadSize) in RedirectToTask() argument
102 WRITE_LOG(LOG_DEBUG, "RedirectToTask command %d", command); in RedirectToTask()
103 switch (command) { in RedirectToTask()
114 … ret = TaskCommandDispatch<HdcDaemonUnity>(hTaskInfo, TYPE_UNITY, command, payload, payloadSize); in RedirectToTask()
118 … ret = TaskCommandDispatch<HdcShell>(hTaskInfo, TYPE_SHELL, command, payload, payloadSize); in RedirectToTask()
125 ret = TaskCommandDispatch<HdcFile>(hTaskInfo, TASK_FILE, command, payload, payloadSize); in RedirectToTask()
137 … ret = TaskCommandDispatch<DaemonUpdater>(hTaskInfo, TASK_UPDATER, command, payload, payloadSize); in RedirectToTask()
231 bool HdcDaemon::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, u… in FetchCommand() argument
234 WRITE_LOG(LOG_DEBUG, "FetchCommand command %d", command); in FetchCommand()
236 if (!hSession->handshakeOK && command != CMD_KERNEL_HANDSHAKE) { in FetchCommand()
[all …]
/base/useriam/fingerprint_auth/services/src/
Dsa_command_manager.cpp72 for (const auto &command : commands) { in ProcessSaCommands() local
73 IAM_LOGI("process command %{public}d", command.id); in ProcessSaCommands()
74 auto it = commandId2Processors_.find(command.id); in ProcessSaCommands()
76 for (const auto &processor : commandId2Processors_[command.id]) { in ProcessSaCommands()
78 UserAuth::ResultCode result = processor->ProcessSaCommand(executor, command); in ProcessSaCommands()
/base/useriam/user_auth_framework/frameworks/native/client/src/
Dexecutor_callback_service.cpp49 const Attributes &command) in OnBeginExecute() argument
56 return callback_->OnBeginExecute(scheduleId, publicKey, command); in OnBeginExecute()
59 int32_t ExecutorCallbackService::OnEndExecute(uint64_t scheduleId, const Attributes &command) in OnEndExecute() argument
66 return callback_->OnEndExecute(scheduleId, command); in OnEndExecute()
/base/startup/init/services/modules/reboot/
Dreboot_misc.c30 char command[MAX_COMMAND_SIZE]; member
81 return strcpy_s(reason, size, msg.command); in GetRebootReasonFromMisc()
97 ret = snprintf_s(msg.command, MAX_COMMAND_SIZE, MAX_COMMAND_SIZE - 1, "%s", boot); in UpdateMiscMessage()
99 msg.command[MAX_COMMAND_SIZE - 1] = 0; in UpdateMiscMessage()
101 ret = memset_s(msg.command, MAX_COMMAND_SIZE, 0, MAX_COMMAND_SIZE); in UpdateMiscMessage()
/base/startup/init/test/unittest/lite/
Dcmd_func_test.cpp314 std::string command = cmdStr + cmdContentStr; variable
315 ParseCmdLine(command.c_str(), &curCmdLine);
333 std::string command = cmdStr + cmdContentStr; variable
334 ParseCmdLine(command.c_str(), &curCmdLine);
350 command = cmdStr + cmdContentStr;
351 ParseCmdLine(command.c_str(), &curCmdLine);
378 std::string command = cmdStr + cmdContentStr; variable
379 ParseCmdLine(command.c_str(), &curCmdLine);
385 command = cmdStr + cmdContentStr;
386 ParseCmdLine(command .c_str(), &curCmdLine);
[all …]
/base/useriam/user_auth_framework/test/fuzztest/services/servicecore_fuzzer/inc/
Dcommon_dummy.h87 const Attributes &command) in BeginExecute() argument
92 static_cast<void>(command); in BeginExecute()
96 int32_t EndExecute(uint64_t scheduleId, const Attributes &command) in EndExecute() argument
100 static_cast<void>(command); in EndExecute()
/base/useriam/user_auth_framework/frameworks/native/executors/src/framework/
Dframework_executor_callback.cpp170 …auto command = Common::MakeShared<EnrollCommand>(executor_, scheduleId, properties, executorMessen… in ProcessEnrollCommand() local
171 IF_FALSE_LOGE_AND_RETURN_VAL(command != nullptr, ResultCode::GENERAL_ERROR); in ProcessEnrollCommand()
172 return command->StartProcess(); in ProcessEnrollCommand()
177 …auto command = Common::MakeShared<AuthCommand>(executor_, scheduleId, properties, executorMessenge… in ProcessAuthCommand() local
178 IF_FALSE_LOGE_AND_RETURN_VAL(command != nullptr, ResultCode::GENERAL_ERROR); in ProcessAuthCommand()
179 return command->StartProcess(); in ProcessAuthCommand()
184 …auto command = Common::MakeShared<IdentifyCommand>(executor_, scheduleId, properties, executorMess… in ProcessIdentifyCommand() local
185 IF_FALSE_LOGE_AND_RETURN_VAL(command != nullptr, ResultCode::GENERAL_ERROR); in ProcessIdentifyCommand()
186 return command->StartProcess(); in ProcessIdentifyCommand()
245 auto command = Common::MakeShared<CustomCommand>(executor_, properties); in ProcessCustomCommand() local
[all …]
/base/useriam/face_auth/services/src/
Dscreen_brightness_manager.cpp58 const SaCommand &command) in ProcessSaCommand() argument
65 switch (command.id) { in ProcessSaCommand()
67 result = ProcessScreenBrightnessIncreaseBegin(executor, command.param); in ProcessSaCommand()
70 result = ProcessScreenBrightnessIncreaseEnd(executor, command.param); in ProcessSaCommand()
73 IAM_LOGE("command id %{public}d not match", command.id); in ProcessSaCommand()
Dsa_command_manager.cpp72 for (const auto &command : commands) { in ProcessSaCommands() local
73 auto it = commandId2Processors_.find(command.id); in ProcessSaCommands()
75 for (const auto &processor : commandId2Processors_[command.id]) { in ProcessSaCommands()
77 UserAuth::ResultCode result = processor->ProcessSaCommand(executor, command); in ProcessSaCommands()
/base/account/os_account/frameworks/account_iam/test/unittest/src/
Dtest_common.cpp24 std::string RunCommand(const std::string &command) in RunCommand() argument
27 FILE *file = popen(command.c_str(), "r"); in RunCommand()
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_resource_node.h40 … int32_t(uint64_t scheduleId, const std::vector<uint8_t> &publicKey, const Attributes &command));
41 MOCK_METHOD2(EndExecute, int32_t(uint64_t scheduleId, const Attributes &command));
76 …&callback](uint64_t scheduleId, const std::vector<uint8_t> &publicKey, const Attributes &command) { in CreateWithExecuteIndex()
77 return callback.OnBeginExecute(scheduleId, publicKey, command); in CreateWithExecuteIndex()
79 …CALL(*node, EndExecute).WillByDefault([&callback](uint64_t scheduleId, const Attributes &command) { in CreateWithExecuteIndex()
80 return callback.OnEndExecute(scheduleId, command); in CreateWithExecuteIndex()

1234567