/ohos5.0/base/sensors/sensor/test/unittest/common/src/ |
H A D | system_info.cpp | 69 std::string strLine; in GetTaskPidFile() local 75 if (strLine.empty()) { in GetTaskPidFile() 109 std::string strLine; in GetProcOccupy() local 110 if (!std::getline(file, strLine)) { in GetProcOccupy() 115 if (strLine.empty()) { in GetProcOccupy() 123 std::istringstream ss(strLine); in GetProcOccupy() 124 while (ss >> strLine) { in GetProcOccupy() 154 std::string strLine; in GetSystemCpuStatInfo() local 155 if (!std::getline(statFile, strLine)) { in GetSystemCpuStatInfo() 160 if (strLine.empty()) { in GetSystemCpuStatInfo() [all …]
|
/ohos5.0/foundation/multimodalinput/input/test/unittest/common/src/ |
H A D | system_info.cpp | 66 std::string strLine; in GetTaskPidFile() local 72 if (strLine.empty()) { in GetTaskPidFile() 135 std::string strLine; in GetProcOccupy() local 136 std::getline(file, strLine); in GetProcOccupy() 137 if (strLine.empty()) { in GetProcOccupy() 145 std::istringstream ss(strLine); in GetProcOccupy() 146 while (ss >> strLine) { in GetProcOccupy() 176 std::string strLine; in GetSystemCpuStatInfo() local 177 std::getline(statFile, strLine); in GetSystemCpuStatInfo() 178 if (strLine.empty()) { in GetSystemCpuStatInfo() [all …]
|
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_config.cpp | 182 static int SetDhcpConfig(DhcpConfig *dhcpConfig, const char *strLine, int common) in SetDhcpConfig() argument 184 if ((strLine == nullptr) || (strlen(strLine) == 0)) { in SetDhcpConfig() 189 char *pSrc = (char *)strLine; in SetDhcpConfig() 231 char strLine[FILE_LINE_LEN_MAX] = {0}; in ParseConfigFile() local 232 while (fgets(strLine, FILE_LINE_LEN_MAX, fp) != nullptr) { in ParseConfigFile() 233 DHCP_LOGI("fgets strLine = %{public}s", strLine); in ParseConfigFile() 234 if ((strchr(strLine, '#') != nullptr) || (strchr(strLine, '=') == nullptr) || in ParseConfigFile() 235 !RemoveSpaceCharacters(strLine, FILE_LINE_LEN_MAX)) { in ParseConfigFile() 241 if (memcmp(strLine, "interface", strlen("interface")) == 0) { in ParseConfigFile() 252 DHCP_LOGE("set dhcp config %s %s failed", configFile, strLine); in ParseConfigFile() [all …]
|
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/memory_monitor/src/ |
H A D | memory_monitor.cpp | 75 char strLine[MALLOC_MAX_LINE_STR_LEN]; in HcMonitorMalloc() local 76 if (sprintf_s(strLine, MALLOC_MAX_LINE_STR_LEN, "%d", nLine) <= 0) { in HcMonitorMalloc() 82 mb.str += strLine; in HcMonitorMalloc()
|
/ohos5.0/foundation/communication/netmanager_ext/services/networksharemanager/src/ |
H A D | networkshare_configuration.cpp | 178 std::string strLine; in ReadConfigFile() local 179 while (getline(infile, strLine)) { in ReadConfigFile() 180 strAll.push_back(strLine); in ReadConfigFile()
|
/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_default_rule_parser.cpp | 274 std::string strLine; in ReadJsonFile() local 281 while (getline(infile, strLine)) { in ReadJsonFile() 282 strAll.append(strLine); in ReadJsonFile()
|
/ohos5.0/base/hiviewdfx/hidumper/services/native/include/ |
H A D | dump_manager_cpu_service.h | 71 void AddStrLineToDumpInfo(const std::string& strLine);
|
/ohos5.0/foundation/multimodalinput/input/util/common/src/ |
H A D | util.cpp | 339 std::string strLine; in ReadProConfigFile() local 345 while (std::getline(reader, strLine)) { in ReadProConfigFile() 346 const char* line = strLine.c_str(); in ReadProConfigFile()
|
/ohos5.0/base/hiviewdfx/hidumper/services/native/src/ |
H A D | dump_manager_cpu_service.cpp | 314 void DumpManagerCpuService::AddStrLineToDumpInfo(const std::string &strLine) in AddStrLineToDumpInfo() argument 317 vec.push_back(strLine); in AddStrLineToDumpInfo()
|
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
H A D | ethernet_configuration.cpp | 364 std::string strLine; in ReadJsonFile() local 371 while (getline(infile, strLine)) { in ReadJsonFile() 372 strAll.append(strLine); in ReadJsonFile()
|