Home
last modified time | relevance | path

Searched refs:fin (Results 1 - 25 of 37) sorted by relevance

12

/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
H A Dbinder_catcher.cpp47 std::ifstream fin; in Catch() local
48 fin.open("/proc/transaction_proc"); in Catch()
49 if (!fin.is_open()) { in Catch()
54 while (getline(fin, line)) { in Catch()
57 fin.close(); in Catch()
H A Dpeer_binder_catcher.cpp161 std::ifstream& fin, int fd, int jsonFd) const in BinderInfoParser()
167 BinderInfoParser(fin, fd, manager, outputBinderInfoList); in BinderInfoParser()
186 void PeerBinderCatcher::BinderInfoParser(std::ifstream& fin, int fd, in BinderInfoParser() argument
193 while (getline(fin, line)) { in BinderInfoParser()
248 std::ifstream fin; in GetBinderPeerPids() local
250 fin.open(path.c_str()); in GetBinderPeerPids()
251 if (!fin.is_open()) { in GetBinderPeerPids()
258 std::map<int, std::list<PeerBinderCatcher::BinderInfo>> manager = BinderInfoParser(fin, fd, jsonFd); in GetBinderPeerPids()
259 fin.close(); in GetBinderPeerPids()
160 BinderInfoParser( std::ifstream& fin, int fd, int jsonFd) const BinderInfoParser() argument
/base/hiviewdfx/hiview/base/utility/
H A Dfile_util.cpp290 std::ifstream fin(src, ios::binary); in CopyFile()
292 if (!fin.is_open()) { in CopyFile()
298 fout << fin.rdbuf(); in CopyFile()
342 bool GetLastLine(std::istream &fin, std::string &line, uint32_t maxLen) in GetLastLine() argument
344 if (fin.tellg() <= 0) { in GetLastLine()
347 fin.seekg(-1, fin.cur); in GetLastLine()
350 while (fin.good() && fin.peek() == fin in GetLastLine()
[all...]
/base/account/os_account/services/accountmgr/src/
H A Daccount_helper_data.cpp43 std::ifstream fin(ACCOUNTMGR_HELPER_JSON_FILE); in ParseJsonData()
44 if (!fin) { in ParseJsonData()
49 jsonData = json::parse(fin, nullptr, false); in ParseJsonData()
52 fin.close(); in ParseJsonData()
55 fin.close(); in ParseJsonData()
H A Dohos_account_data_deal.cpp142 std::ifstream fin(configFile); in Init()
143 if (!fin) { in Init()
151 nlohmann::json jsonData = json::parse(fin, nullptr, false); in Init()
152 fin.close(); in Init()
229 std::ifstream fin(filePath); in ParseJsonFromFile()
230 if (!fin) { in ParseJsonFromFile()
236 jsonData = json::parse(fin, nullptr, false); in ParseJsonFromFile()
237 fin.close(); in ParseJsonFromFile()
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/
H A Dnative_leak_config.cpp46 ifstream fin; in GetThresholdList() local
48 fin.open(path.c_str()); in GetThresholdList()
49 if (!fin.is_open()) { in GetThresholdList()
54 while (getline(fin, line)) { in GetThresholdList()
H A Dnative_leak_state.cpp127 ifstream fin; in CollectUserBaseInfo() local
128 fin.open(smapsRollupPath.c_str()); in CollectUserBaseInfo()
129 if (!fin.is_open()) { in CollectUserBaseInfo()
136 while (getline(fin, line)) { in CollectUserBaseInfo()
322 ifstream fin(meminfoPath); in DumpGeneralInfo()
323 if (!fin.is_open()) { in DumpGeneralInfo()
329 fout << fin.rdbuf(); in DumpGeneralInfo()
/base/security/code_signature/test/unittest/
H A Dmulti_thread_local_sign_test.cpp58 int32_t fin = open(ORIGIN_AN_FILE.c_str(), O_RDONLY); in DupFile() local
59 if (fin < 0) { in DupFile()
62 uint32_t fileSize = GetFileSize(fin); in DupFile()
65 close(fin); in DupFile()
72 ssize_t len = read(fin, buffer, BUFFER_SIZE); in DupFile()
79 close(fin); in DupFile()
/base/account/os_account/test/systemtest/common/resource/fuzzTest/include/
H A Dfuzz_config_parser.h43 std::ifstream fin(path); in ParseFromFile4FuzzTest()
44 if (!fin) { in ParseFromFile4FuzzTest()
49 nlohmann::json jsonObj = nlohmann::json::parse(fin, nullptr, false); in ParseFromFile4FuzzTest()
50 fin.close(); in ParseFromFile4FuzzTest()
/base/security/selinux_adapter/test/unittest/common/
H A Dtest_common.cpp113 std::ifstream fin(src, std::ifstream::in || std::ifstream::binary); in CopyFile()
114 if (!fin) { in CopyFile()
119 fin.close(); in CopyFile()
122 fout << fin.rdbuf(); in CopyFile()
124 fin.close(); in CopyFile()
128 fin.close(); in CopyFile()
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/
H A Dpanic_error_info_handle.cpp118 ifstream fin(SYS_FS_PSTORE_PATH); in RKTransData()
119 if (!fin.is_open()) { in RKTransData()
128 fin.read(reinterpret_cast<char* >(&info), sizeof(ErrorInfo)); in RKTransData()
129 if (!fin) { in RKTransData()
134 CopyPstoreFileToHistoryLog(fin); in RKTransData()
162 void CopyPstoreFileToHistoryLog(ifstream &fin) in CopyPstoreFileToHistoryLog() argument
179 fout << fin.rdbuf(); in CopyPstoreFileToHistoryLog()
H A Dpanic_error_info_handle.h53 void CopyPstoreFileToHistoryLog(std::ifstream &fin);
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
H A DPluralFetcher.java57 try (BufferedReader fin = new BufferedReader(new InputStreamReader(new FileInputStream( in init()
62 while ((line = fin.readLine()) != null) { in init()
69 try (BufferedReader fin = new BufferedReader(new InputStreamReader(new FileInputStream( in init()
74 while ((line = fin.readLine()) != null) { in init()
H A DMeasureFormatPatternFetcher.java73 try (BufferedReader fin = new BufferedReader(new InputStreamReader(new FileInputStream( in init()
77 while ((line = fin.readLine()) != null) { in init()
/base/hiviewdfx/hicollie/frameworks/native/
H A Dxcollie_utils.cpp87 std::ifstream fin; in GetSelfProcName() local
88 fin.open("/proc/self/comm", std::ifstream::in); in GetSelfProcName()
89 if (!fin.is_open()) { in GetSelfProcName()
90 XCOLLIE_LOGE("fin.is_open() false"); in GetSelfProcName()
94 fin.getline(readStr, READ_SIZE - 1); in GetSelfProcName()
95 fin.close(); in GetSelfProcName()
230 int ParsePeerBinderPid(std::ifstream& fin, int32_t pid) in ParsePeerBinderPid() argument
235 while (getline(fin, line)) { in ParsePeerBinderPid()
289 std::ifstream fin; in KillProcessByPid() local
296 fin in KillProcessByPid()
[all...]
/base/update/updater/services/ptable_parse/
H A Dptable.cpp156 std::ifstream fin(filePath, std::ios::in); in MemReadWithOffset()
157 if (fin.fail()) { in MemReadWithOffset()
162 fin.seekg(offset, std::ios::beg); in MemReadWithOffset()
163 if (fin.tellg() != static_cast<long long>(offset)) { in MemReadWithOffset()
165 " failed. Now is in 0x" << std::hex << fin.tellg() << std::dec; in MemReadWithOffset()
166 fin.close(); in MemReadWithOffset()
170 if (!fin.read(reinterpret_cast<char *>(outData), dataSize)) { in MemReadWithOffset()
172 " failed. only read 0x" << std::hex << fin.gcount() << std::dec; in MemReadWithOffset()
173 fin.close(); in MemReadWithOffset()
176 fin in MemReadWithOffset()
[all...]
/base/hiviewdfx/hiview/base/event_store/config/src/
H A Devent_store_config.cpp48 std::ifstream fin(CONFIG_FILE_PATH, std::ifstream::binary); in Init()
49 if (!fin.is_open()) { in Init()
55 if (!parseFromStream(jsonRBuilder, fin, &root, &errs)) { in Init()
/base/hiviewdfx/hiview/adapter/service/server/src/
H A Dhiview_log_config_manager.cpp34 std::ifstream fin(path, std::ifstream::binary); in ParseJsonFile()
35 if (!fin.is_open()) { in ParseJsonFile()
42 if (!parseFromStream(builder, fin, &jsonRoot, &errs)) { in ParseJsonFile()
/base/hiviewdfx/hiview/utility/smart_parser/rule/
H A Dcompose_rule.cpp32 std::ifstream fin(config, std::ifstream::binary); in ParseComposeRule()
43 bool ret = parseFromStream(builder, fin, &root, &errs); in ParseComposeRule()
50 if (!reader.parse(fin, root) || !root.isMember(type)) { in ParseComposeRule()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/include/
H A Dpeer_binder_catcher.h52 std::map<int, std::list<PeerBinderCatcher::BinderInfo>> BinderInfoParser(std::ifstream& fin,
54 void BinderInfoParser(std::ifstream& fin, int fd,
/base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/
H A Dwatchdog_inner_test.cpp256 std::ifstream fin(path); in HWTEST_F()
257 if (!fin.is_open()) { in HWTEST_F()
261 int result = ParsePeerBinderPid(fin, pid); in HWTEST_F()
262 fin.close(); in HWTEST_F()
273 fin.open(path.c_str()); in HWTEST_F()
274 if (!fin.is_open()) { in HWTEST_F()
278 result = ParsePeerBinderPid(fin, pid); in HWTEST_F()
279 fin.close(); in HWTEST_F()
/base/hiviewdfx/hiview/base/
H A Ddispatch_rule_parser.cpp34 std::ifstream fin(filePath, std::ifstream::binary); in DispatchRuleParser()
35 if (!fin.is_open()) { in DispatchRuleParser()
42 if (!parseFromStream(jsonRBuilder, fin, &root, &errs)) { in DispatchRuleParser()
/base/global/i18n/frameworks/intl/src/
H A Dholiday_manager.cpp168 std::ifstream fin; in ReadHolidayFile() local
169 fin.open(path, std::ios::in); in ReadHolidayFile()
171 while (getline(fin, line)) { in ReadHolidayFile()
177 while (getline(fin, line)) { in ReadHolidayFile()
186 fin.close(); in ReadHolidayFile()
/base/hiviewdfx/hiview/plugins/sysevent_source/
H A Devent_json_parser.cpp42 std::ifstream fin(path, std::ifstream::binary); in ReadSysEventDefFromFile()
43 if (!fin.is_open()) { in ReadSysEventDefFromFile()
50 return parseFromStream(jsonRBuilder, fin, &hiSysEventDef, &errs); in ReadSysEventDefFromFile()
/base/hiviewdfx/hisysevent/frameworks/native/
H A Dhisysevent_json_decorator.cpp55 std::ifstream fin(HISYSEVENT_YAML_DEF_JSON_PATH, std::ifstream::binary); in HiSysEventJsonDecorator()
60 if (!parseFromStream(jsonRBuilder, fin, &jsonRoot_, &errs)) { in HiSysEventJsonDecorator()
63 if (!reader.parse(fin, jsonRoot_)) { in HiSysEventJsonDecorator()

Completed in 12 milliseconds

12