/base/hiviewdfx/hiview/utility/common_utils/ |
D | tbox.cpp | 82 bool Tbox::IsCallStack(string& line) in IsCallStack() argument 84 if (regex_search(line, regex("^\\s+at (.*)\\(.*")) || in IsCallStack() 85 regex_search(line, regex("^\\s*at .*")) || in IsCallStack() 86 regex_search(line, regex("^\\s+- (.*)\\(.*")) || in IsCallStack() 87 regex_search(line, regex("\\s+#\\d+")) || in IsCallStack() 88 regex_search(line, regex("[0-9a-zA-Z_]+\\+0x[0-9a-f]+/0x[0-9a-f]+")) || in IsCallStack() 89 regex_search(line, regex("#\\d+")) || in IsCallStack() 90 regex_search(line, regex("\\.*"))) { in IsCallStack() 96 bool Tbox::HasCausedBy(const string& line) in HasCausedBy() argument 98 if ((line.find(CAUSEDBY_HEADER) != string::npos) || in HasCausedBy() [all …]
|
/base/startup/init/services/etc/param/ |
D | param_fixer.py | 38 def parse_params(line, contents): argument 39 line = line.strip() 40 pos = line.find('=') 43 name = line[:pos] 44 value = line[pos + 1:] 60 for line in lines: 61 line = line.strip() 63 if line.startswith('#') or not line: 65 parse_params(line, contents)
|
/base/notification/eventhandler/test/systemtest/ems_logger_system_test/ |
D | ems_logger_system_test.cpp | 62 void Log(const std::string &line) in Log() argument 65 GTEST_LOG_(INFO) << line; in Log() 75 void Log(const std::string &line) in Log() argument 78 GTEST_LOG_(INFO) << line; in Log() 88 void Log(const std::string &line) in Log() argument 91 GTEST_LOG_(INFO) << line; in Log() 101 void Log(const std::string &line) in Log() argument 104 GTEST_LOG_(INFO) << line; in Log() 114 void Log(const std::string &line) in Log() argument 117 GTEST_LOG_(INFO) << line; in Log()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
D | faultlog_formatter.cpp | 123 bool ParseFaultLogLine(const std::list<const char **>& parseList, const std::string& line, const st… in ParseFaultLogLine() argument 128 if (line.find(sectionHead) != std::string::npos) { in ParseFaultLogLine() 129 if (line.at(line.size() - 1) == ':') { in ParseFaultLogLine() 135 info.sectionMap[item[LOG_MAP_KEY]] = line.substr(line.find_first_of(":") + 1); in ParseFaultLogLine() 152 std::string line; in WriteStackTraceFromLog() local 154 while (std::getline(logFile, line)) { in WriteStackTraceFromLog() 159 if (line.empty()) { in WriteStackTraceFromLog() 163 if ((line.find("----- pid") != std::string::npos) && in WriteStackTraceFromLog() 164 (line.find(pidStr) != std::string::npos)) { in WriteStackTraceFromLog() 168 if ((line.find("----- end") != std::string::npos) && in WriteStackTraceFromLog() [all …]
|
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/ |
D | log_util.cpp | 74 resultIpcLine.push_back(Ipc.line); in ParseIpcInfo() 92 string line; in ReadIpcInfo() local 93 while (getline(buffer, line)) { in ReadIpcInfo() 94 if (line.find("async") == string::npos && line.find(ARROW) != string::npos) { in ReadIpcInfo() 95 GetIpcInfo(line); in ReadIpcInfo() 97 if (line.empty() || line.find("end Ipc transactions") != string::npos) { in ReadIpcInfo() 123 void LogUtil::GetIpcInfo(const string& line) in GetIpcInfo() argument 125 string serverIpc = StringUtil::GetMidSubstr(line, ARROW, CODE); in GetIpcInfo() 126 string codeStr = StringUtil::GetMidSubstr(line, CODE, WAIT); in GetIpcInfo() 128 string clientIpc = StringUtil::GetLeftSubstr(line, ARROW); in GetIpcInfo() [all …]
|
D | feature_analysis.cpp | 75 string line; in RawInfoPosition() local 78 while (getline(buffer, line)) { in RawInfoPosition() 79 if (line.length() > 2048 || // 2048 : max length of line in RawInfoPosition() 80 … (CheckStartSegment(segmentStart) && (line.empty() || line[0] == ' ' || line[0] == '\t'))) { in RawInfoPosition() 83 GetCursorInfo(buffer, line); in RawInfoPosition() 93 if (CheckVariableParam(featureCmd) && IsSourceMatch(line, featureCmd)) { in RawInfoPosition() 95 bool matchFlag = ParseElementForParam(line, featureCmd); in RawInfoPosition() 96 while (--num > 0 && getline(buffer, line)) { in RawInfoPosition() 97 GetCursorInfo(buffer, line); in RawInfoPosition() 98 ParseElementForParam(line, featureCmd); in RawInfoPosition() [all …]
|
/base/hiviewdfx/hiview/utility/smart_parser/test/moduletest/common/ |
D | smart_parser_module_test.cpp | 78 std::string line; variable 80 while (getline(buff, line) && num < trace.size()) { 81 EXPECT_STREQ(line.c_str(), trace[num++].c_str()); 118 std::string line; variable 120 while (getline(buff, line) && num < trace.size()) { 121 EXPECT_STREQ(line.c_str(), trace[num++].c_str()); 161 std::string line; variable 163 while (getline(buff, line) && num < trace.size()) { 164 EXPECT_STREQ(trace[num++].c_str(), line.c_str()); 196 std::string line; variable [all …]
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | zipfolder_output.cpp | 83 std::string line; in Execute() local 86 line.append(item); in Execute() 90 … if (line.empty() || (line.at(line.length() - 1) != NEW_LINE_BREAKS_CHAR)) { // No line breaks in Execute() 91 line.append(NEW_LINE_BREAKS_STR); in Execute() 94 outstr.append(line); in Execute() 95 line.clear(); in Execute()
|
D | fd_output.cpp | 74 std::vector<std::string> line = dumpDatas_->at(i); in OutMethod() local 75 for (size_t j = 0; j < line.size(); j++) { in OutMethod() 76 std::string str = line[j]; in OutMethod() 77 if ((i < dumpDatas_->size()) && (j == (line.size() - 1))) { in OutMethod()
|
/base/telephony/ril_adapter/services/vendor/src/ |
D | at_network.c | 286 static void ParseGetGsmSignalStrength(const char *line, HRilRssi *hrilRssi) in ParseGetGsmSignalStrength() argument 288 char *lineStr = (char *)line; in ParseGetGsmSignalStrength() 298 static void ParseGetLteSignalStrength(const char *line, HRilRssi *hrilRssi) in ParseGetLteSignalStrength() argument 300 char *lineStr = (char *)line; in ParseGetLteSignalStrength() 314 static void ParseGetWcdmaSignalStrength(const char *line, HRilRssi *hrilRssi) in ParseGetWcdmaSignalStrength() argument 316 char *lineStr = (char *)line; in ParseGetWcdmaSignalStrength() 330 static void ParseGetTdScdmaSignalStrength(const char *line, HRilRssi *hrilRssi) in ParseGetTdScdmaSignalStrength() argument 332 char *lineStr = (char *)line; in ParseGetTdScdmaSignalStrength() 341 static void ParseGetCdmaSignalStrength(const char *line, HRilRssi *hrilRssi) in ParseGetCdmaSignalStrength() argument 343 char *lineStr = (char *)line; in ParseGetCdmaSignalStrength() [all …]
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_config.cpp | 180 std::string line(codeBuffer); in ReadConfig() local 183 std::string::size_type newLinePos = line.find_first_of("\n"); in ReadConfig() 184 if (newLinePos != line.npos) { in ReadConfig() 185 line = line.substr(0, newLinePos); in ReadConfig() 187 std::string::size_type equalSignPos = line.find_first_of("="); in ReadConfig() 188 if (equalSignPos != line.npos) { in ReadConfig() 189 key = line.substr(0, equalSignPos); in ReadConfig() 190 value = line.substr(equalSignPos + 1); in ReadConfig()
|
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
D | PluralFetcher.java | 58 String line = ""; in init() local 59 while ((line = fin.readLine()) != null) { in init() 60 String[] temp = getPluralItems(line); in init() 70 String line = ""; in init() local 71 while ((line = fin.readLine()) != null) { in init() 72 String[] temp = getPluralItems(line); in init() 108 private static String[] getPluralItems(String line) { in getPluralItems() argument 110 String trimedLine = line.trim(); in getPluralItems()
|
D | MeasureFormatPatternFetcher.java | 76 String line = ""; in init() local 77 while ((line = fin.readLine()) != null) { in init() 78 String[] temp = getPatterns(line); in init() 88 private String[] getPatterns(String line) { in getPatterns() argument 90 String trimedLine = line.trim(); in getPatterns()
|
/base/security/selinux/interfaces/policycoreutils/src/ |
D | service_checker.cpp | 109 static bool CouldSkip(const std::string &line) in CouldSkip() argument 111 if (line.size() < CONTEXTS_LENGTH_MIN || line.size() > CONTEXTS_LENGTH_MAX) { in CouldSkip() 115 while (isspace(line[i])) { in CouldSkip() 118 if (line[i] == '#') { in CouldSkip() 121 if (line.find(OBJECT_PREFIX) == line.npos) { in CouldSkip() 132 static struct ServiceInfo DecodeString(const std::string &line) in DecodeString() argument 134 std::stringstream input(line); in DecodeString() 163 std::string line; in ServiceContextsLoad() local 164 while (getline(contextsFile, line)) { in ServiceContextsLoad() 166 if (CouldSkip(line)) { in ServiceContextsLoad() [all …]
|
D | hap_restorecon.cpp | 69 static bool CouldSkip(const std::string &line) in CouldSkip() argument 71 if (line.size() <= CONTEXTS_LENGTH_MIN || line.size() > CONTEXTS_LENGTH_MAX) { in CouldSkip() 75 while (isspace(line[i])) { in CouldSkip() 78 if (line[i] == '#') { in CouldSkip() 81 if (line.find(APL_PREFIX) == line.npos) { in CouldSkip() 87 static struct SehapInfo DecodeString(std::string &line) in DecodeString() argument 89 std::stringstream input(line); in DecodeString() 140 std::string line; in HapContextsLoad() local 141 while (getline(contextsFile, line)) { in HapContextsLoad() 143 if (CouldSkip(line)) { in HapContextsLoad() [all …]
|
/base/telephony/ril_adapter/services/vendor/include/ |
D | vendor_util.h | 53 int32_t ReportStrWith(const char *line, const char *prefix); 55 int32_t IsResponseSuccess(const char *line); 57 int32_t IsResponseError(const char *line); 59 int32_t IsSms(const char *line); 61 int32_t IsSmsNotify(const char *line);
|
/base/location/services/location_locator/locator/source/ |
D | location_config_manager.cpp | 139 std::string line; in GetLocationSwitchState() local 140 while (std::getline(fs, line)) { in GetLocationSwitchState() 141 if (line.empty()) { in GetLocationSwitchState() 144 if (line[0] == '0') { in GetLocationSwitchState() 146 } else if (line[0] == '1') { in GetLocationSwitchState() 221 std::string line; in GetPrivacyTypeState() local 222 while (std::getline(fs, line)) { in GetPrivacyTypeState() 223 if (line.empty()) { in GetPrivacyTypeState() 226 if (line[0] == '0') { in GetPrivacyTypeState() 228 } else if (line[0] == '1') { in GetPrivacyTypeState()
|
/base/hiviewdfx/hiview/utility/common_utils/include/ |
D | tbox.h | 36 static bool IsCallStack(std::string& line); 37 static std::string GetStackName(std::string line); 38 static bool HasCausedBy(const std::string& line);
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
D | binder_catcher.cpp | 45 std::string line; in Catch() local 54 while (getline(fin, line)) { in Catch() 55 FileUtil::SaveStringToFd(fd, line + "\n"); in Catch()
|
D | peer_binder_catcher.cpp | 96 std::string line; in BinderInfoParser() local 99 while (getline(fin, line)) { in BinderInfoParser() 100 FileUtil::SaveStringToFd(fd, line + "\n"); in BinderInfoParser() 105 if (line.find("async") != std::string::npos) { in BinderInfoParser() 109 std::istringstream lineStream(line); in BinderInfoParser() 142 if (line.find("context") != line.npos) { in BinderInfoParser()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | write_controller.cpp | 37 const char* func, int64_t line) in CheckLimitWritingEvent() argument 41 std::string key = ConcatenateInfoAsKey(eventName, func, line); in CheckLimitWritingEvent() 69 … WriteController::ConcatenateInfoAsKey(const char* eventName, const char* func, int64_t line) const in ConcatenateInfoAsKey() 72 ss << eventName << STR_CONCAT << std::string(func) << STR_CONCAT << line; in ConcatenateInfoAsKey()
|
/base/request/request/upload/frameworks/libs/src/ |
D | module_init.cpp | 29 static void LockCallback(int mode, int type, char *file, int line) in LockCallback() argument 32 (void)line; in LockCallback() 47 using LOCK_CALLBACK = void (*)(int mode, int type, char *file, int line);
|
/base/update/updater/services/log/ |
D | log.cpp | 92 std::ostream& UpdaterLogger::OutputUpdaterLog(const std::string &path, int line) in OutputUpdaterLog() argument 101 return oss_ << path << " " << line << " : "; in OutputUpdaterLog() 134 void Logger(int level, const char* fileName, int32_t line, const char* format, ...) in Logger() argument 142 UpdaterLogger(level).OutputUpdaterLog(fileName, line) << "vsnprintf_s failed"; in Logger() 146 UpdaterLogger(level).OutputUpdaterLog(fileName, line) << str; in Logger() 149 std::ostream& ErrorCode::OutputErrorCode(const std::string &path, int line, UpdaterErrorCode code) in OutputErrorCode() argument 159 …return g_errorCode << realTime << " " << path << " " << line << " , error code is : " << code <<… in OutputErrorCode()
|
/base/security/selinux/scripts/ |
D | build_contexts.py | 88 for line in contexts_read: 89 line_ = line.lstrip() 155 for line in contexts_read: 156 line_ = line.lstrip() 159 contexts_write.write(line) 168 line = match.group(1) + " u:r:" + match.group(3) + ":s0\n" 170 line = match.group(1) + " u:object_r:" + \ 172 contexts_write.write(line)
|
/base/powermgr/battery_statistics/services/native/src/ |
D | cpu_time_reader.cpp | 168 bool CpuTimeReader::ReadUidCpuActiveTimeImpl(std::string& line, int32_t uid) in ReadUidCpuActiveTimeImpl() argument 172 Split(line, ' ', splitedTime); in ReadUidCpuActiveTimeImpl() 216 std::string line; in ReadUidCpuActiveTime() local 219 while (getline(input, line)) { in ReadUidCpuActiveTime() 222 Split(line, ':', splitedLine); in ReadUidCpuActiveTime() 246 void CpuTimeReader::ReadPolicy(std::vector<uint16_t>& clusters, std::string& line) in ReadPolicy() argument 249 Split(line, ' ', splitedPolicy); in ReadPolicy() 299 std::string line; in ReadUidCpuClusterTime() local 303 while (getline(input, line)) { in ReadUidCpuClusterTime() 305 if (line.find("policy") != line.npos) { in ReadUidCpuClusterTime() [all …]
|