Home
last modified time | relevance | path

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

/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_multiline_content.cpp63 std::string lines {}; in Dump() local
65 …allLines_.begin(), allLines_.end(), [&lines](const std::string &line) { lines += " " + line + ",";… in Dump()
66 lines.pop_back(); in Dump()
71 ", allLines = [" + lines + "]" + in Dump()
/base/startup/init/services/etc/appender/
Dfile_appender.gni17 # Append something (files or lines) to a file and install it.
25 # lines: lines of strings to be appended to the end of souce file (Optional)
32 # lines = [ "tses::1222:1222:/bin/false", "tses2::1223:1223:/bin/false" ]
35 # It will append files and lines to source passwd file after deps targets
75 if (defined(invoker.lines)) {
76 foreach(line, invoker.lines) {
Dfile_appender.py49 if options.lines:
50 for line in options.lines:
/base/hiviewdfx/hidumper/services/native/src/
Ddump_common_utils.cpp144 bool DumpCommonUtils::GetLinesInFile(const std::string& file, std::vector<std::string>& lines) in GetLinesInFile() argument
150 SplitStr(content, "\n", lines); in GetLinesInFile()
204 std::vector<std::string> lines; in GetProcessInfo() local
205 if (!GetLinesInFile(file, lines)) { in GetProcessInfo()
210 for (size_t i = 0; i < lines.size(); i++) { in GetProcessInfo()
212 SplitStr(lines[i], splitKeyValueToken, keyValue); in GetProcessInfo()
/base/hiviewdfx/hilog/services/hilogtool/
Dlog_display.cpp98 uint32_t lines = 0; in GetTotalLines() local
100 lines += rsp.lines[i]; in GetTotalLines()
102 return lines; in GetTotalLines()
279 uint32_t lines = 0; in HilogShowLogStatsInfo() local
282 lines += rsp.totalLines[i]; in HilogShowLogStatsInfo()
285 if (lines == 0) { in HilogShowLogStatsInfo()
288 cout << "Total lines: " << lines << ", length: " << Size2Str(lens) << endl; in HilogShowLogStatsInfo()
293 …"(" << setprecision(FLOAT_PRECSION) << (static_cast<float>(rsp.totalLines[i] * PERCENT) / lines) << in HilogShowLogStatsInfo()
Dmain.cpp442 int lines = 0; in HeadHandler() local
443 (void)StrToInt(arg, lines); in HeadHandler()
444 context.headLines = static_cast<uint16_t>(lines); in HeadHandler()
/base/startup/init/services/etc/param/
Dparam_fixer.py59 lines = f.readlines()
60 for line in lines:
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dsa_dumper.cpp67 std::vector<std::string> lines; in WriteLine() local
68 lines.push_back(Line); in WriteLine()
69 spData_->push_back(lines); in WriteLine()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dfreeze_detector_plugin.cpp89 std::vector<std::string> lines; in RemoveRedundantNewline() local
90 StringUtil::SplitStr(content, "\\n", lines, false, false); in RemoveRedundantNewline()
93 for (const auto& line : lines) { in RemoveRedundantNewline()
/base/hiviewdfx/hilog/services/hilogd/
Dlog_stats.cpp67 entry.lines[lvl]++; in UpdateStats()
87 for (uint32_t &i : entry.lines) { in ResetStatsEntry()
107 for (uint32_t &i : entry.lines) { in StatsInfo2NewStatsEntry()
114 entry.lines[lvl] = 1; in StatsInfo2NewStatsEntry()
Dservice_controller.cpp158 rsp.lines[i] = entry.lines[i]; in StatsEntry2StatsRsp()
494 int lines = rqst.headLines ? rqst.headLines : rqst.tailLines; in HandleOutputRqst() local
496 int linesCountDown = lines; in HandleOutputRqst()
516 if (lines && (--linesCountDown) <= 0) { in HandleOutputRqst()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dmemory_info.cpp145 void MemoryInfo::SetValue(const string &value, vector<string> &lines, vector<string> &values) in SetValue() argument
149 lines.push_back(separator); in SetValue()
169 vector<string> lines; in CalcGroup() local
172 SetValue("Total", lines, values); in CalcGroup()
173 SetValue(to_string(meminfo.pss + meminfo.swapPss), lines, values); in CalcGroup()
174 SetValue(to_string(meminfo.sharedClean), lines, values); in CalcGroup()
175 SetValue(to_string(meminfo.sharedDirty), lines, values); in CalcGroup()
176 SetValue(to_string(meminfo.privateClean), lines, values); in CalcGroup()
177 SetValue(to_string(meminfo.privateDirty), lines, values); in CalcGroup()
178 SetValue(to_string(meminfo.swap), lines, values); in CalcGroup()
[all …]
/base/hiviewdfx/hidumper/interfaces/native/innerkits/include/
Ddump_common_utils.h52 static bool GetLinesInFile(const std::string& file, std::vector<std::string>& lines);
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_stats.h49 uint32_t lines[LevelNum]; member
97 for (const uint32_t &i : lines) { in GetTotalLines()
/base/hiviewdfx/faultloggerd/test/unittest/signal_handler/
Dsignal_handler_test.cpp106 long lines = CountLines(filePath); in CheckKeyWords() local
107 vector<string> t(lines * 4); // 4 : max string blocks of one line in CheckKeyWords()
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp190 static int32_t ExecuteTransferCommand(int fd, const std::vector<std::string> &lines, Uscript::UScri… in ExecuteTransferCommand() argument
207 if (!tm->CommandsParser(fd, lines)) { in ExecuteTransferCommand()
287 …Hpackage::PkgManager::StreamPtr &outStream, const std::vector<std::string> &lines, Uscript::UScrip… in DoExecuteUpdateBlock() argument
295 int32_t ret = ExecuteTransferCommand(fd, lines, env, context, infos.partitionName); in DoExecuteUpdateBlock()
337 std::vector<std::string> lines = in ExecuteUpdateBlock() local
359 ret = DoExecuteUpdateBlock(infos, env, outStream, lines, context); in ExecuteUpdateBlock()
/base/update/updater/services/script/script_interpreter/
Dscript_lex.l68 loc.lines(yyleng); // 使用lines函数来更新位置信息中的行号
/base/hiviewdfx/hilog/test/unittest/common/
Dhilogtool_test.cpp392 int lines = 5; variable
393 std::string cmd = "hilog -a " + std::to_string(lines);
394 EXPECT_EQ(GetCmdLinesFromPopen(cmd), lines);
396 cmd = "hilog -z " + std::to_string(lines);
397 EXPECT_EQ(GetCmdLinesFromPopen(cmd), lines);
/base/security/selinux/
DBUILD.gn366 "list lines")
372 "list lines")
401 "list lines")
407 "list lines")
/base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/
Dmemory_info.h109 …void SetValue(const std::string &value, std::vector<std::string> &lines, std::vector<std::string> …
/base/hiviewdfx/hilog/frameworks/libhilog/include/
Dhilog_cmd.h173 uint32_t lines[LevelNum]; member
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/src/
Ddfx_processdump_test.cpp103 long lines = CountLines(filePath); in CheckKeyWords() local
104 vector<string> t(lines * 4); // 4 : max string blocks of one line in CheckKeyWords()
/base/startup/hvb/tools/
Dhvbtool.py204 lines = child.stdout.read().split(b'\n')
205 for line in lines:
/base/hiviewdfx/faultloggerd/test/systemtest/src/
Dfaultloggerd_system_test.cpp270 long lines = FaultLoggerdSystemTest::CountLines(filePath); in CheckKeywords() local
271 std::vector<string> t(lines * NUMBER_FOUR); in CheckKeywords()
775 int lines = FaultLoggerdSystemTest::CountLines(filePath); variable
776 GTEST_LOG_(INFO) << lines;
781 EXPECT_EQ(lines, 10) << "FaultLoggerdSystemTest0010_pre Failed";
/base/update/updater/test/unittest/test_data/applypatch/
DTestGZipModeImagePatch.old.gz