Home
last modified time | relevance | path

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

/foundation/arkui/ace_engine/adapter/preview/external/ability/
H A Dcontext.cpp41 std::ifstream fin(filename, std::ios::in); in CreateContext()
42 if (!fin) { in CreateContext()
46 while (fin >> contents) { in CreateContext()
50 fin.close(); in CreateContext()
/foundation/ability/ability_runtime/services/abilitymgr/src/rdb/
H A Dparser_util.cpp165 std::ifstream fin(path); in ReadFileIntoJson()
166 if (!fin.is_open()) { in ReadFileIntoJson()
171 fin.seekg(0, std::ios::end); in ReadFileIntoJson()
172 int64_t size = fin.tellg(); in ReadFileIntoJson()
175 fin.close(); in ReadFileIntoJson()
179 fin.seekg(0, std::ios::beg); in ReadFileIntoJson()
180 jsonBuf = nlohmann::json::parse(fin, nullptr, false); in ReadFileIntoJson()
181 fin.close(); in ReadFileIntoJson()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/src/
H A Dconfig_factory.cpp40 std::ifstream fin(file_); in Initialize()
41 while (fin.good()) { in Initialize()
43 std::getline(fin, line); in Initialize()
/foundation/distributeddatamgr/pasteboard/services/load/src/
H A Dloader.cpp69 std::ifstream fin(CONF_FILE); in LoadConfig()
70 while (fin.good()) { in LoadConfig()
72 std::getline(fin, line); in LoadConfig()
/foundation/multimodalinput/input/service/module_loader/src/
H A Dwatchdog_task.cpp110 std::ifstream fin; in GetSelfProcName() local
111 fin.open("/proc/self/comm", std::ifstream::in); in GetSelfProcName()
112 if (!fin.is_open()) { in GetSelfProcName()
113 MMI_HILOGE("fin.is_open() false"); in GetSelfProcName()
117 fin.getline(readStr, READ_SIZE - 1); in GetSelfProcName()
118 fin.close(); in GetSelfProcName()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dadapter_config.cpp57 std::ifstream fin(pimpl->fileBasePath_, std::ios::in | std::ios::binary); in Reload()
58 if (!fin) { in Reload()
65 fout << fin.rdbuf(); in Reload()
H A Dadapter_device_info.cpp64 std::ifstream fin(pimpl->fileBasePath_, std::ios::in | std::ios::binary); in Reload()
65 if (!fin) { in Reload()
72 fout << fin.rdbuf(); in Reload()
H A Dprofile_config.cpp58 std::ifstream fin(pimpl->fileBasePath_, std::ios::in | std::ios::binary); in Reload()
59 if (!fin) { in Reload()
66 fout << fin.rdbuf(); in Reload()
H A Dadapter_device_config.cpp64 std::ifstream fin(pimpl->fileBasePath_, std::ios::in | std::ios::binary); in Reload()
65 if (!fin) { in Reload()
72 fout << fin.rdbuf(); in Reload()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/src/
H A Dprocess_group_util.cpp123 std::ifstream fin(realPath.c_str(), std::ios::in); in ReadFileToStringForVFS()
124 if (!fin) { in ReadFileToStringForVFS()
128 ss << fin.rdbuf(); in ReadFileToStringForVFS()
130 fin.close(); in ReadFileToStringForVFS()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/src/
H A Dbackup_manager.cpp280 std::fstream fin, fout; in CopyFile() local
284 fin.open(oldPath, std::ios_base::in); in CopyFile()
291 while (fin.good()) { in CopyFile()
292 fin.read(buf, COPY_SIZE); in CopyFile()
293 fout.write(buf, fin.gcount()); in CopyFile()
295 fin.close(); in CopyFile()
/foundation/distributeddatamgr/udmf/framework/common/
H A Dcustom_utd_store.cpp53 std::ifstream fin(CUSTOM_UTD_HAP_DIR); in GetHapTypeCfgs()
54 while (fin.good()) { in GetHapTypeCfgs()
56 std::getline(fin, line); in GetHapTypeCfgs()
76 std::ifstream fin(cfgFilePath); in GetTypeCfgs()
77 while (fin.good()) { in GetTypeCfgs()
79 std::getline(fin, line); in GetTypeCfgs()
/foundation/resourceschedule/device_standby/utils/policy/src/
H A Djson_utils.cpp200 std::ifstream fin(fullPath); in GetFileContent()
201 if (!fin.is_open()) { in GetFileContent()
205 ss << fin.rdbuf(); in GetFileContent()
/foundation/resourceschedule/background_task_mgr/services/common/src/
H A Ddata_storage_helper.cpp155 std::ifstream fin; in ParseJsonValueFromFile() local
161 fin.open(realPath, std::ios::in); in ParseJsonValueFromFile()
162 if (!fin.is_open()) { in ParseJsonValueFromFile()
168 while (fin.getline(buffer, MAX_BUFFER)) { in ParseJsonValueFromFile()
/foundation/resourceschedule/resource_schedule_service/ressched_executor/services/resschedexemgr/src/
H A Dres_sched_exe_mgr.cpp215 std::ifstream fin(realPath.c_str(), std::ios::in); in GetCgroupFileContent()
216 if (!fin) { in GetCgroupFileContent()
220 ss << fin.rdbuf(); in GetCgroupFileContent()
/foundation/ability/ability_runtime/services/appdfr/src/
H A Dappfreeze_manager.cpp323 std::map<int, std::set<int>> AppfreezeManager::BinderParser(std::ifstream& fin, std::string& stack) const in BinderParser() argument
331 while (getline(fin, line)) { in BinderParser()
385 std::ifstream fin; in GetBinderPeerPids() local
392 fin.open(resolvePath); in GetBinderPeerPids()
393 if (!fin.is_open()) { in GetBinderPeerPids()
400 std::map<int, std::set<int>> binderInfo = BinderParser(fin, stack); in GetBinderPeerPids()
401 fin.close(); in GetBinderPeerPids()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/
H A Dfillp_mgt_msg_log.c313 void FillpConnFinLog(FILLP_INT sockIndex, FILLP_CONST struct FillpPktFin *fin, FILLP_INT direction) in FillpConnFinLog() argument
317 FILLP_UINT32 flags = FILLP_NTOHS(fin->flag); in FillpConnFinLog()
324 FillpHeaderNtoH(&hdr, (FILLP_CONST struct FillpPktHead *)fin->head, direction); in FillpConnFinLog()
H A Dfillp_conn.c1123 // If not recved fin before, then there should be one IN event in FillpStateClosingHandleFinInput()
1179 struct FillpPktFin *fin = (struct FillpPktFin *)(void *)p->p; in FillpHandleFinFlagGet() local
1180 fin->flag = FILLP_HTONS(fin->flag); in FillpHandleFinFlagGet()
1182 if (FILLP_PKT_DISCONN_MSG_FLAG_IS_ACK(fin->flag)) { in FillpHandleFinFlagGet()
1186 if (FILLP_PKT_DISCONN_MSG_FLAG_IS_RD(fin->flag)) { in FillpHandleFinFlagGet()
1190 if (FILLP_PKT_DISCONN_MSG_FLAG_IS_WR(fin->flag)) { in FillpHandleFinFlagGet()
1194 if (FILLP_PKT_DISCONN_MSG_FLAG_IS_VER(fin->flag)) { in FillpHandleFinFlagGet()
1199 FILLP_LOGWAR("Invalid fin flag!!!fin ac in FillpHandleFinFlagGet()
1302 struct FillpPktFin *fin = FILLP_NULL_PTR; FillpFinInput() local
[all...]
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/include/fillp/
H A Dfillp_mgt_msg_log.h44 void FillpConnFinLog(FILLP_INT sockIndex, FILLP_CONST struct FillpPktFin *fin, FILLP_INT direction);
/foundation/ability/ability_runtime/services/appdfr/include/
H A Dappfreeze_manager.h93 std::map<int, std::set<int>> BinderParser(std::ifstream& fin, std::string& stack) const;
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_scheduler_service.cpp293 ifstream fin; in GetJsonFromFile() local
300 fin.open(realPath, ios::in); in GetJsonFromFile()
301 if (!fin.is_open()) { in GetJsonFromFile()
307 while (fin.getline(buffer, MAX_BUFFER)) { in GetJsonFromFile()
315 fin.close(); in GetJsonFromFile()
/foundation/graphic/graphic_3d/lume/metaobject/src/serialization/
H A Dimporter.cpp128 if (auto fin = interface_pointer_cast<IImportFinalize>(result)) { in ImportObject()
129 finalizes_.push_back(fin); in ImportObject()
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dability_manager_service.cpp11575 std::ifstream fin; in ParseJsonValueFromFile() local
11581 fin.open(realPath, std::ios::in); in ParseJsonValueFromFile()
11582 if (!fin.is_open()) { in ParseJsonValueFromFile()
11588 while (fin.getline(buffer, MAX_BUFFER)) { in ParseJsonValueFromFile()

Completed in 36 milliseconds