/base/inputmethod/imf/frameworks/ndk/src/ |
H A D | inputmethod_private_command_capi.cpp | 25 void OH_PrivateCommand_Destroy(InputMethod_PrivateCommand *command) in OH_PrivateCommand_Destroy() argument 27 if (command == nullptr) { in OH_PrivateCommand_Destroy() 28 IMSA_HILOGE("command is nullptr"); in OH_PrivateCommand_Destroy() 31 delete command; in OH_PrivateCommand_Destroy() 33 InputMethod_ErrorCode OH_PrivateCommand_SetKey(InputMethod_PrivateCommand *command, char key[], size_t keyLength) in OH_PrivateCommand_SetKey() argument 35 if (command == nullptr) { in OH_PrivateCommand_SetKey() 36 IMSA_HILOGE("command is nullptr"); in OH_PrivateCommand_SetKey() 43 command->key = std::string(key, keyLength); in OH_PrivateCommand_SetKey() 46 InputMethod_ErrorCode OH_PrivateCommand_SetBoolValue(InputMethod_PrivateCommand *command, bool value) in OH_PrivateCommand_SetBoolValue() argument 48 if (command in OH_PrivateCommand_SetBoolValue() 55 OH_PrivateCommand_SetIntValue(InputMethod_PrivateCommand *command, int32_t value) OH_PrivateCommand_SetIntValue() argument 64 OH_PrivateCommand_SetStrValue( InputMethod_PrivateCommand *command, char value[], size_t valueLength) OH_PrivateCommand_SetStrValue() argument 79 OH_PrivateCommand_GetKey(InputMethod_PrivateCommand *command, const char **key, size_t *keyLength) OH_PrivateCommand_GetKey() argument 98 OH_PrivateCommand_GetValueType( InputMethod_PrivateCommand *command, InputMethod_CommandValueType *type) OH_PrivateCommand_GetValueType() argument 123 OH_PrivateCommand_GetBoolValue(InputMethod_PrivateCommand *command, bool *value) OH_PrivateCommand_GetBoolValue() argument 142 OH_PrivateCommand_GetIntValue(InputMethod_PrivateCommand *command, int32_t *value) OH_PrivateCommand_GetIntValue() argument 162 OH_PrivateCommand_GetStrValue( InputMethod_PrivateCommand *command, const char **value, size_t *valueLength) OH_PrivateCommand_GetStrValue() argument [all...] |
/base/hiviewdfx/hidumper/test/scripts/testModule/ |
H A D | test_cpu.py | 36 command = "hidumper --cpuusage"
38 CheckCmd(command, CheckCpuUsageOutput)
40 CheckCmdRedirect(command, CheckCpuUsageOutput)
42 CheckCmdZip(command, CheckCpuUsageOutput)
46 command = "hidumper --cpuusage 1"
48 CheckCmd(command, CheckCpuUsageWithPidOutput)
50 CheckCmdRedirect(command, CheckCpuUsageWithPidOutput)
52 CheckCmdZip(command, CheckCpuUsageWithPidOutput)
56 command = "hidumper --cpufreq"
58 CheckCmd(command, CheckCpufreqOutpu [all...] |
H A D | test_sa.py | 38 command = "hidumper -ls"
40 CheckCmd(command, CheckSAList)
42 CheckCmdRedirect(command, CheckSAList)
44 CheckCmdZip(command, CheckSAList)
48 command = "hidumper -s 1201 1212"
50 CheckCmd(command, CheckSAHelp)
52 CheckCmdRedirect(command, CheckSAHelp)
54 CheckCmdZip(command, CheckSAHelp)
58 command = "hidumper -s WindowManagerService -a -h"
60 CheckCmd(command, CheckSAInterfac [all...] |
H A D | test_net.py | 47 command = f"hidumper --net"
49 CheckCmd(command, CheckNetAllOutput)
51 CheckCmdRedirect(command, CheckNetAllOutput)
53 CheckCmdZip(command, CheckNetAllOutput)
57 command = f"hidumper --net `pidof samgr`"
59 CheckCmd(command, CheckNetTraffic)
61 CheckCmdRedirect(command, CheckNetTraffic)
63 CheckCmdZip(command, CheckNetTraffic
|
H A D | test_memory.py | 24 def WaitUntillOutputAppear(command, targetStr, second):
26 command = None
28 command = "hdc shell \"ls -l /data/log/faultlog/temp |grep jsheap\""
30 command = "hdc shell \"ls -l /data/log/reliability/resource_leak/memory_leak |grep jsheap\""
31 output = subprocess.check_output(command, shell=True, text=True, encoding="utf-8").strip()
89 command = f"hidumper --mem"
91 CheckCmd(command, CheckHidumperMemoryWithoutPidOutput)
93 CheckCmdRedirect(command, CheckHidumperMemoryWithoutPidOutput)
95 CheckCmdZip(command, CheckHidumperMemoryWithoutPidOutput)
101 command [all...] |
H A D | test_permission.py | 98 command = f"hidumper --mem-smaps {pid}"
100 CheckCmd(command, CheckFunc)
102 CheckCmdRedirect(command, CheckFunc)
105 CheckCmdZip(command, CheckFunc)
115 command = f"hidumper --mem-smaps {pid} -v"
117 CheckCmd(command, CheckFunc)
119 CheckCmdRedirect(command, CheckFunc)
122 CheckCmdZip(command, CheckFunc)
133 command = f"hidumper -p"
135 CheckCmd(command, CheckFun [all...] |
H A D | test_storage.py | 51 command = "hidumper --storage"
53 CheckCmd(command, CheckStorageWithoutPid)
55 CheckCmdRedirect(command, CheckStorageWithoutPid)
57 CheckCmdZip(command, CheckStorageWithoutPid)
61 command = f"hidumper --storage 1"
63 CheckCmd(command, CheckStorageWithPid)
65 CheckCmdRedirect(command, CheckStorageWithPid)
67 CheckCmdZip(command, CheckStorageWithPid
|
H A D | test_base_command.py | 113 command = "hidumper -c base"
116 CheckCmd(command, CheckFunc)
118 CheckCmdRedirect(command, CheckFunc)
120 CheckCmdZip(command, CheckFunc)
124 command = "hidumper -c system"
127 CheckCmd(command, CheckFunc)
129 CheckCmdRedirect(command, CheckFunc)
131 CheckCmdZip(command, CheckFunc)
135 command = "hidumper -e"
138 CheckCmd(command, CheckFun [all...] |
/base/inputmethod/imf/interfaces/kits/c/ |
H A D | inputmethod_private_command_capi.h | 47 * The private command between text editor and input method. 56 * @param key The key of the private command. 66 * @param command Represents a pointer to an {@link InputMethod_PrivateCommand} instance which will be destroyed. 69 void OH_PrivateCommand_Destroy(InputMethod_PrivateCommand *command); 73 * @param command Represents a pointer to an {@link InputMethod_PrivateCommand} instance which will be set value. 82 InputMethod_ErrorCode OH_PrivateCommand_SetKey(InputMethod_PrivateCommand *command, char key[], size_t keyLength); 86 * @param command Represents a pointer to an {@link InputMethod_PrivateCommand} instance which will be set value. 94 InputMethod_ErrorCode OH_PrivateCommand_SetBoolValue(InputMethod_PrivateCommand *command, bool value); 98 * @param command Represents a pointer to an {@link InputMethod_PrivateCommand} instance which will be set value. 106 InputMethod_ErrorCode OH_PrivateCommand_SetIntValue(InputMethod_PrivateCommand *command, int32_ [all...] |
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | iptables_rule_plugin.cpp | 62 std::string command("-t filter -n -v -L --line-number"); in OnGetPolicy() 63 int32_t ret = NetManagerStandard::NetsysController::GetInstance().SetIptablesCommandForRes(command, result); in OnGetPolicy() 78 std::string command; in AddIptablesFilterRule() local 79 if (!ConvertAddFilterToIptablesCommand(addFilter, command)) { in AddIptablesFilterRule() 85 int32_t ret = NetManagerStandard::NetsysController::GetInstance().SetIptablesCommandForRes(command, result); in AddIptablesFilterRule() 126 bool IptablesRulePlugin::ConvertAddFilterToIptablesCommand(const IPTABLES::AddFilter &addFilter, std::string &command) in ConvertAddFilterToIptablesCommand() argument 128 command = "-t filter"; in ConvertAddFilterToIptablesCommand() 130 command.append(" -A"); in ConvertAddFilterToIptablesCommand() 132 command.append(" -I"); in ConvertAddFilterToIptablesCommand() 137 if (!ConvertChainCommand(addFilter.action, addFilter.direction, command)) { in ConvertAddFilterToIptablesCommand() 188 std::string command = "-t filter -D"; ExecRemoveFilterByDetailedCommand() local 201 ConvertChainCommand(const IPTABLES::Action &action, const IPTABLES::Direction &direction, std::string &command) ConvertChainCommand() argument 218 ConvertProtocolCommand(const IPTABLES::Protocol &protocol, std::string &command) ConvertProtocolCommand() argument 238 ConvertActionCommand(const IPTABLES::Action &action, std::string &command) ConvertActionCommand() argument 253 ConvertIpAddressCommand(const std::string &ipAddress, const bool isSourceIp, std::string &command) ConvertIpAddressCommand() argument 276 ConvertPortCommand(const std::string &port, const bool isSourcePort, std::string &command) ConvertPortCommand() argument 288 ConvertUidCommand(const std::string &uid, std::string &command) ConvertUidCommand() argument 296 ConvertRuleNoCommand(const IPTABLES::AddMethod &method, uint32_t ruleNo, std::string &command) ConvertRuleNoCommand() argument [all...] |
/base/account/os_account/tools/test/moduletest/acm/ |
H A D | account_command_util.cpp | 38 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() 48 std::string command = TOOL_NAME + " create -n " + name + " -t " + STRING_TYPE; in CreateOsAccount() local 49 GTEST_LOG_(INFO) << "command = " << command; in CreateOsAccount() 51 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in CreateOsAccount() 68 std::string command = TOOL_NAME + " delete -i " + localAccountId; in DeleteLastOsAccount() local 69 GTEST_LOG_(INFO) << "command in DeleteLastOsAccount() 89 std::string command = TOOL_NAME + " dump -i " + localAccountId; DumpLastOsAccount() local 110 std::string command = TOOL_NAME + " switch -i " + localAccountId; SwitchToFirstOsAccount() local 131 std::string command = TOOL_NAME + " switch -i " + localAccountId; SwitchToLastOsAccount() local [all...] |
H A D | account_command_set_module_test.cpp | 82 * @tc.desc: Verify the "acm set -i <local-account-id> -c <constraints>" command. 97 std::string command = TOOL_NAME + " set -i " + localAccountId + " -c " + STRING_CONSTRAINT_INVALID; in HWTEST_F() local 98 GTEST_LOG_(INFO) << "command = " << command; in HWTEST_F() 100 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F() 109 * @tc.desc: Verify the "acm set -i <local-account-id> -c <constraints>" command. 124 std::string command = TOOL_NAME + " set -i " + localAccountId + " -c " + STRING_CONSTRAINT + " -e"; in HWTEST_F() local 125 GTEST_LOG_(INFO) << "command = " << command; in HWTEST_F() 127 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F() [all...] |
H A D | account_command_delete_module_test.cpp | 79 * @tc.desc: Verify the "acm delete -i <local-account-id>" command. 85 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID; in HWTEST_F() local 86 GTEST_LOG_(INFO) << "command = " << command; in HWTEST_F() 88 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F() 94 * @tc.desc: Verify the "acm delete -i <local-account-id>" command. 100 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID_TWO; in HWTEST_F() local 101 GTEST_LOG_(INFO) << "command = " << command; in HWTEST_F() 103 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F() [all...] |
H A D | account_command_switch_module_test.cpp | 64 * @tc.desc: Verify the "acm delete -i <local-account-id>" command. 70 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID; in HWTEST_F() local 71 GTEST_LOG_(INFO) << "command = " << command; in HWTEST_F() 73 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F() 79 * @tc.desc: Verify the "acm delete -i <local-account-id>" command. 85 std::string command = TOOL_NAME + " " + cmd_ + " -i " + STRING_LOCAL_ACCOUNT_ID_INVALID_TWO; in HWTEST_F() local 86 GTEST_LOG_(INFO) << "command = " << command; in HWTEST_F() 88 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F() [all...] |
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_command_lexer_test.cpp | 73 std::string command = Join(SPACE_STR, in HWTEST_F() local 75 CommandLexer lexer(command); in HWTEST_F() 90 std::string command = Join(SPACE_STR, in HWTEST_F() local 92 CommandLexer lexer(command); in HWTEST_F() 106 std::string command = Join(SPACE_STR, in HWTEST_F() local 109 CommandLexer lexer(command); in HWTEST_F() 121 std::string command; in HWTEST_F() local 122 CommandLexer lexer(command); in HWTEST_F() 130 std::string command = " "; in HWTEST_F() local 131 CommandLexer lexer(command); in HWTEST_F() 141 std::string command = Join(SPACE_STR, fileName, message, nullptr); HWTEST_F() local 153 std::string command = Join(SPACE_STR, fileName, opt, dirName, nullptr); HWTEST_F() local [all...] |
/base/useriam/user_auth_framework/test/unittest/executors/ |
H A D | identify_command_unit_test.cpp | 87 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 88 ASSERT_NE(command, nullptr); in HWTEST_F() 89 command->OnResult(testResultCode, testExtraInfo); in HWTEST_F() 109 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 110 ASSERT_NE(command, nullptr); in HWTEST_F() 111 command->OnResult(testResultCode, testExtraInfo); in HWTEST_F() 138 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 139 ASSERT_NE(command, nullptr); in HWTEST_F() 140 command->OnResult(testResultCode); in HWTEST_F() 155 auto command in HWTEST_F() local 182 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 202 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 229 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 253 auto command = Common::MakeShared<IdentifyCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local [all...] |
H A D | enroll_command_unit_test.cpp | 87 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 88 ASSERT_NE(command, nullptr); in HWTEST_F() 89 command->OnResult(testResultCode, testExtraInfo); in HWTEST_F() 109 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 110 ASSERT_NE(command, nullptr); in HWTEST_F() 111 command->OnResult(testResultCode, testExtraInfo); in HWTEST_F() 138 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 139 ASSERT_NE(command, nullptr); in HWTEST_F() 140 command->OnResult(testResultCode); in HWTEST_F() 155 auto command in HWTEST_F() local 182 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 202 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 229 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 253 auto command = Common::MakeShared<EnrollCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local [all...] |
H A D | auth_command_unit_test.cpp | 87 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 88 ASSERT_NE(command, nullptr); in HWTEST_F() 89 command->OnResult(testResultCode, testExtraInfo); in HWTEST_F() 108 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 109 ASSERT_NE(command, nullptr); in HWTEST_F() 110 command->OnResult(testResultCode, testExtraInfo); in HWTEST_F() 137 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); in HWTEST_F() local 138 ASSERT_NE(command, nullptr); in HWTEST_F() 139 command->OnResult(testResultCode); in HWTEST_F() 154 auto command in HWTEST_F() local 181 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 201 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 228 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local 252 auto command = Common::MakeShared<AuthCommand>(executor, testScheduleId, attr, messenger); HWTEST_F() local [all...] |
/base/inputmethod/imf/common/src/ |
H A D | inputmethod_dump.cpp | 45 std::string command = ""; in Dump() local 47 command = args.at(SUB_CMD_NAME); in Dump() 51 if (command == CMD_HELP) { in Dump() 53 } else if (command == CMD_ALL_DUMP) { in Dump() 61 IMSA_HILOGI("InputmethodDump::Dump command=%{public}s.", command.c_str()); in Dump() 68 result.append("Usage:dump <command> [options]\n") in ShowHelp()
|
/base/notification/common_event_service/tools/test/systemtest/cem/ |
H A D | common_event_command_dump_system_test.cpp | 35 std::string ExecuteCommand(const std::string &command) in ExecuteCommand() argument 38 FILE *file = popen(command.c_str(), "r"); in ExecuteCommand() 95 * @tc.desc: Verify the "cem dump -a" command with a subscriber. 114 std::string command = "cem dump -a"; in HWTEST_F() local 115 std::string commandResult = ExecuteCommand(command); in HWTEST_F() 126 * @tc.desc: Verify the "cem dump -e <name>" command with no subscriber. 131 std::string command = "cem dump -e " + STRING_EVENT + ".test"; in HWTEST_F() local 132 std::string commandResult = ExecuteCommand(command); in HWTEST_F() 140 * @tc.desc: Verify the "cem dump -e <name>" command with a subscriber. 159 std::string command in HWTEST_F() local [all...] |
/base/telephony/ril_adapter/services/vendor/include/ |
H A D | at_support.h | 56 int32_t SendCommandLock(const char *command, const char *prefix, long long timeout, ResponseInfo **outResponse); 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 **outResponse); 64 int32_t SendCommandNoLock(const char *command, long long timeout, ResponseInfo **outResponse);
|
/base/update/updater/services/flashd/daemon/ |
H A D | daemon.cpp | 98 const uint16_t command, uint8_t *payload, const int payloadSize) in RedirectToTask() 102 WRITE_LOG(LOG_DEBUG, "RedirectToTask command %d", command); in RedirectToTask() 103 switch (command) { in RedirectToTask() 106 ret = TaskCommandDispatch<HdcDaemonUnity>(hTaskInfo, TYPE_UNITY, command, payload, payloadSize); in RedirectToTask() 110 ret = TaskCommandDispatch<HdcShell>(hTaskInfo, TYPE_SHELL, command, payload, payloadSize); in RedirectToTask() 117 ret = TaskCommandDispatch<HdcFile>(hTaskInfo, TASK_FILE, command, payload, payloadSize); in RedirectToTask() 122 ret = TaskCommandDispatch<HdcDaemonUnity>(hTaskInfo, TYPE_UNITY, command, payload, payloadSize); in RedirectToTask() 134 ret = TaskCommandDispatch<DaemonUpdater>(hTaskInfo, TASK_UPDATER, command, payload, payloadSize); in RedirectToTask() 142 ret = TaskCommandDispatch<InvalidDaemon>(hTaskInfo, TASK_FAKE, command, payloa in RedirectToTask() 97 RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload, const int payloadSize) RedirectToTask() argument 236 FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload, int payloadSize) FetchCommand() argument 296 ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t command, uint8_t *bufPtr, const int size) ServerCommand() argument [all...] |
/base/useriam/user_auth_framework/services/context/src/ |
H A D | widget_json.cpp | 102 void GetJsonCmd(nlohmann::json &jsonCommand, const WidgetCommand &command) in GetJsonCmd() argument 105 for (auto &cmd : command.cmdList) { in GetJsonCmd() 115 jsonCommand = nlohmann::json({{JSON_WIDGET_CTX_ID, command.widgetContextId}, in GetJsonCmd() 116 {JSON_AUTH_TYPE, command.typeList}, in GetJsonCmd() 117 {JSON_AUTH_TITLE, command.title}, in GetJsonCmd() 120 if (command.pinSubType != "") { in GetJsonCmd() 121 jsonCommand[JSON_AUTH_PIN_SUB_TYPE] = command.pinSubType; in GetJsonCmd() 123 if (command.windowModeType != "") { in GetJsonCmd() 124 jsonCommand[JSON_AUTH_WINDOW_MODE] = command.windowModeType; in GetJsonCmd() 126 if (command in GetJsonCmd() 308 to_json(nlohmann::json &jsonCommand, const WidgetCommand &command) to_json() argument [all...] |
/base/update/updater/test/unittest/misc_info_test/ |
H A D | misc_info_unittest.cpp | 47 EXPECT_EQ(strncpy_s(boot.command, sizeof(boot.command) - 1, command1.c_str(), command1.size()), 0);
in HWTEST_F() 75 const std::string command = "boot_updater";
in HWTEST_F() local 77 EXPECT_EQ(strncpy_s(writePara.reserved, sizeof(writePara.reserved) - 1, command.c_str(), command.size()), 0);
in HWTEST_F()
|
/base/useriam/fingerprint_auth/services/src/ |
H A D | sa_command_manager.cpp | 72 for (const auto &command : commands) { in ProcessSaCommands() 73 IAM_LOGI("process command %{public}d", command.id); in ProcessSaCommands() 74 auto it = commandId2Processors_.find(static_cast<SaCommandId>(command.id)); in ProcessSaCommands() 76 for (const auto &processor : commandId2Processors_[static_cast<SaCommandId>(command.id)]) { in ProcessSaCommands() 78 UserAuth::ResultCode result = processor->ProcessSaCommand(executor, command); in ProcessSaCommands()
|