| /base/update/updater/test/unittest/applypatch_test/ |
| D | commands_unittest.cpp | 56 std::string cmdLine = std::string("move ") + hashValue + " " + blockInfo; variable 60 cmd->Init(cmdLine); 66 EXPECT_EQ(cmd->GetCommandLine(), cmdLine); 74 std::string cmdLine = std::string("move ") + hashValue + " " + blockInfo; variable 78 EXPECT_EQ(cmd->Init(cmdLine), true); 79 cmdLine = "abort"; 80 EXPECT_EQ(cmd->Init(cmdLine), true); 81 cmdLine = "bsdiff 1,1"; 82 EXPECT_EQ(cmd->Init(cmdLine), true); 83 cmdLine = "earse 1,1"; [all …]
|
| D | commandsfunction_unittest.cpp | 37 CommandResult TestCommandFnExec(std::shared_ptr<Command> cmd, std::string cmdLine) in TestCommandFnExec() argument 39 cmd->Init(cmdLine); in TestCommandFnExec() 79 std::string cmdLine = std::string("erase 2,0,1"); variable 80 CommandResult ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); 82 cmdLine = "free 2,0,1"; 83 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); 86 cmdLine = "move ad7facb2586fc6e966c004d7d1d16b024f5805ff7cb47c7a85dabd8b48892ca7 2,3,4 1 2,1,2"; 88 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); 90 cmdLine = R"(bsdiff 0 132 ad7facb2586fc6e966c004d7d1d16b024f5805ff7cb4 95 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); [all …]
|
| D | blockset_unittest.cpp | 117 std::string cmdLine = std::string("move ") + hashValue + " " + blockInfo; variable 126 cmd->Init(cmdLine);
|
| /base/update/updater/services/applypatch/ |
| D | command.cpp | 23 bool Command::Init(const std::string &cmdLine) in Init() argument 25 cmdLine_ = std::move(cmdLine); in Init()
|
| /base/update/updater/services/include/applypatch/ |
| D | apply_patch.h | 25 std::string cmdLine; member
|
| /base/hiviewdfx/hiview/base/utility/ |
| D | string_util.cpp | 418 std::string FormatCmdLine(const std::string& cmdLine) in FormatCmdLine() argument 421 size_t endPos = cmdLine.size(); in FormatCmdLine() 422 for (size_t i = 0; i < cmdLine.size(); i++) { in FormatCmdLine() 423 if (cmdLine[i] == '/') { in FormatCmdLine() 425 } else if (cmdLine[i] == '\0') { in FormatCmdLine() 430 return cmdLine.substr(startPos, endPos - startPos); in FormatCmdLine()
|
| /base/startup/init/services/modules/bootchart/ |
| D | bootchart.c | 83 …char *cmdLine = ReadFileToBuffer("/proc/cmdline", g_bootchartCtrl->buffer, g_bootchartCtrl->buffer… in BootchartLogHeader() local 84 PLUGIN_CHECK(cmdLine != NULL, return, "Failed to open file "BOOTCHART_OUTPUT_PATH"header"); in BootchartLogHeader() 96 (void)fprintf(file, "system.kernel.options = %s\n", cmdLine); in BootchartLogHeader()
|
| /base/startup/init/services/param/trigger/ |
| D | trigger_processor.c | 202 static int GetCommandInfo(const char *cmdLine, int *cmdKeyIndex, char **content) in GetCommandInfo() argument 204 const char *matchCmd = GetMatchCmd(cmdLine, cmdKeyIndex); in GetCommandInfo() 205 PARAM_CHECK(matchCmd != NULL, return -1, "Command not support %s", cmdLine); in GetCommandInfo() 206 char *str = strstr(cmdLine, matchCmd); in GetCommandInfo()
|
| /base/startup/init/test/unittest/modules/ |
| D | eng_unittest.cpp | 248 const char *cmdLine = "ohos.boot.root_package=off "; variable 249 CreateTestFile(BOOT_CMD_LINE, cmdLine);
|
| /base/startup/init/test/unittest/init/ |
| D | cmds_unittest.cpp | 87 auto checkMkdirCmd = [=](const char *mkdirFile, const char *cmdLine) { in __anone5478c310102() argument 88 DoCmdByName("mkdir ", cmdLine); in __anone5478c310102()
|
| /base/hiviewdfx/hiview/base/utility/include/ |
| D | string_util.h | 156 std::string FormatCmdLine(const std::string& cmdLine);
|
| /base/startup/init/test/unittest/param/ |
| D | param_stub.cpp | 411 const char *cmdLine = "bootgroup=device.boot.group earlycon=uart8250,mmio32,0xfe660000 " in PrepareCmdLineData() local 420 CreateTestFile(BOOT_CMD_LINE, cmdLine); in PrepareCmdLineData()
|
| /base/web/webview/interfaces/kits/napi/webviewcontroller/ |
| D | napi_webview_controller.cpp | 718 std::string cmdLine = WebviewController::customeSchemeCmdLine_; in InnerGetCustomeSchemeCmdLine() local 719 napi_create_string_utf8(env, cmdLine.c_str(), cmdLine.length(), &result); in InnerGetCustomeSchemeCmdLine() 3410 std::string cmdLine; in CustomizeSchemesArrayDataHandler() local 3438 cmdLine.append(schemeName + "," + corsCmdLine + fetchCmdLine); in CustomizeSchemesArrayDataHandler() 3440 cmdLine.pop_back(); in CustomizeSchemesArrayDataHandler() 3441 WVLOG_I("Reg scheme cmdline %{public}s", cmdLine.c_str()); in CustomizeSchemesArrayDataHandler() 3442 WebviewController::customeSchemeCmdLine_ = cmdLine; in CustomizeSchemesArrayDataHandler()
|