/foundation/arkui/ace_engine/adapter/preview/external/ability/ |
H A D | context.cpp | 41 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 D | parser_util.cpp | 165 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 D | config_factory.cpp | 40 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 D | loader.cpp | 69 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 D | watchdog_task.cpp | 110 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 D | adapter_config.cpp | 57 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 D | adapter_device_info.cpp | 64 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 D | profile_config.cpp | 58 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 D | adapter_device_config.cpp | 64 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 D | process_group_util.cpp | 123 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 D | backup_manager.cpp | 280 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 D | custom_utd_store.cpp | 53 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 D | json_utils.cpp | 200 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 D | data_storage_helper.cpp | 155 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 D | res_sched_exe_mgr.cpp | 215 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 D | appfreeze_manager.cpp | 323 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 D | fillp_mgt_msg_log.c | 313 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 D | fillp_conn.c | 1123 // 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 D | fillp_mgt_msg_log.h | 44 void FillpConnFinLog(FILLP_INT sockIndex, FILLP_CONST struct FillpPktFin *fin, FILLP_INT direction);
|
/foundation/ability/ability_runtime/services/appdfr/include/ |
H A D | appfreeze_manager.h | 93 std::map<int, std::set<int>> BinderParser(std::ifstream& fin, std::string& stack) const;
|
/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | work_scheduler_service.cpp | 293 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 D | importer.cpp | 128 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 D | ability_manager_service.cpp | 11575 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()
|