/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/ |
H A D | container_modal_utils.cpp | 38 std::ifstream readFile(filePath, std::ifstream::binary); in ExecuteCustomTitleAbc() local 39 if (!readFile.is_open()) { in ExecuteCustomTitleAbc() 43 readFile.seekg(0, std::ios::end); in ExecuteCustomTitleAbc() 44 binarySize = static_cast<int32_t>(readFile.tellg()); in ExecuteCustomTitleAbc() 45 readFile.seekg(0, std::ios::beg); in ExecuteCustomTitleAbc() 47 if (!readFile.read((char*)buffer.data(), binarySize)) { in ExecuteCustomTitleAbc() 49 readFile.close(); in ExecuteCustomTitleAbc() 53 readFile.close(); in ExecuteCustomTitleAbc()
|
/ohos5.0/base/update/updateservice/services/core/ability/adapter/src/ |
H A D | config_parse.cpp | 50 std::ifstream readFile; in LoadConfigInfo() local 51 readFile.open(Constant::DUPDATE_ENGINE_CONFIG_PATH); in LoadConfigInfo() 52 if (readFile.fail()) { in LoadConfigInfo() 57 streambuffer << readFile.rdbuf(); in LoadConfigInfo() 59 readFile.close(); in LoadConfigInfo()
|
/ohos5.0/base/update/updateservice/services/core/ability/utils/src/ |
H A D | file_utils.cpp | 212 std::ifstream readFile; in ReadDataFromFile() local 213 readFile.open(dealPath); in ReadDataFromFile() 214 if (readFile.fail()) { in ReadDataFromFile() 219 streamBuffer << readFile.rdbuf(); in ReadDataFromFile() 221 readFile.close(); in ReadDataFromFile()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/utils/ |
H A D | dfx_test_util.cpp | 115 std::ifstream readFile; in CountLines() local 116 readFile.open(fileName.c_str(), std::ios::in); in CountLines() 117 if (readFile.fail()) { in CountLines() 122 while (getline(readFile, tmpuseValue, '\n')) { in CountLines() 125 readFile.close(); in CountLines()
|
/ohos5.0/docs/zh-cn/design/ |
H A D | OpenHarmony-API-quality.md | 253 比如,可选参数应该放到必选参数的后面,回调函数作为参数应该放到最后等。以`fs.readFile` 方法为例,路径参数是必填的,`encoding` 和 `flag` 是有默认值的。 256 fs.readFile(path[, options], callback) 260 fs.readFile('/etc/passwd', (err, data) => { 265 fs.readFile('/etc/passwd', {
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/interfaces/ |
H A D | hap_verify.cpp | 87 int32_t HapVerify(const std::string& filePath, HapVerifyResult& hapVerifyResult, bool readFile) in HapVerify() argument 93 return hapVerifyV2.Verify(filePath, hapVerifyResult, readFile); in HapVerify()
|
/ohos5.0/base/account/os_account/tools/acm/src/ |
H A D | account_command.cpp | 711 std::ifstream readFile; in GetDisallowedListByPath() local 712 readFile.open(path.c_str(), std::ios::in); in GetDisallowedListByPath() 713 if (!readFile.is_open()) { in GetDisallowedListByPath() 718 while (getline(readFile, str)) { in GetDisallowedListByPath() 722 readFile.close(); in GetDisallowedListByPath()
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | adaptor_file.c | 35 if (fileOperator->readFile == NULL) { in IsFileOperatorValid()
|
H A D | file_operator.c | 146 .readFile = ReadFile, in GetDefaultFileOperator()
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
H A D | adaptor_file.c | 35 if (fileOperator->readFile == NULL) { in IsFileOperatorValid()
|
H A D | file_operator.c | 137 .readFile = ReadFile, in GetDefaultFileOperator()
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/inc/ |
H A D | adaptor_file.h | 33 int32_t (*readFile)(const char *fileName, uint8_t *buf, uint32_t len); member
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/ |
H A D | adaptor_file.h | 33 int32_t (*readFile)(const char *fileName, uint8_t *buf, uint32_t len); member
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/common/ |
H A D | random_access_file.cpp | 46 bool RandomAccessFile::Init(const std::string& filePath, bool readFile) in Init() argument 63 readFile_ = readFile; in Init()
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/interfaces/ |
H A D | hap_verify.h | 29 …_t HapVerify(const std::string& filePath, HapVerifyResult& hapVerifyResult, bool readFile = false);
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/common/ |
H A D | random_access_file.h | 36 DLL_EXPORT bool Init(const std::string& filePath, bool readFile = false);
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/verify/ |
H A D | hap_verify_v2.h | 32 …int32_t Verify(const std::string& filePath, HapVerifyResult& hapVerifyV1Result, bool readFile = fa…
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db_ops.c | 130 ret = (ResultCode)fileOp->readFile(PIN_INDEX_NAME, *data, *dataLen); in ReadPinDbData()
|
H A D | pin_db_ops_base.c | 120 ret = (ResultCode)fileOp->readFile(fileName, data, dataLen); in ReadPinFile()
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/verify/ |
H A D | hap_verify_v2.cpp | 44 …HapVerifyV2::Verify(const std::string& filePath, HapVerifyResult& hapVerifyV1Result, bool readFile) in Verify() argument 53 if (!hapFile.Init(standardFilePath, readFile)) { in Verify()
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/database/src/ |
H A D | idm_file_manager.c | 469 if (fileOperator->readFile(IDM_USER_INFO, parcel->buf, parcel->maxSize) != RESULT_SUCCESS) { in ReadFileInfo() 567 … if (fileOperator->readFile(GLOBAL_CONFIG_INFO, parcel->buf, parcel->maxSize) != RESULT_SUCCESS) { in ReadGlobalConfigFile()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_install_checker.h | 72 std::vector<Security::Verify::HapVerifyResult> &hapVerifyRes, bool readFile = false);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_install_checker.cpp | 179 std::vector<Security::Verify::HapVerifyResult>& hapVerifyRes, bool readFile) in CheckMultipleHapsSignInfo() argument 189 if (readFile) { in CheckMultipleHapsSignInfo() 197 … return readFile ? ERR_APPEXECFWK_INSTALL_FAILED_BUNDLE_SIGNATURE_VERIFICATION_FAILURE : verifyRes; in CheckMultipleHapsSignInfo()
|
/ohos5.0/docs/en/design/ |
H A D | OpenHarmony-API-quality.md | 250 …ters, and place callback functions at the end. For example, in the **fs.readFile** API, the **path… 253 fs.readFile(path[, options], callback) 257 fs.readFile('/etc/passwd', (err, data) => { 262 fs.readFile('/etc/passwd', {
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/services/dialog/PasteboardDialog/hvigor/ |
H A D | hvigor-wrapper.js | 15 …readFile;e.readFile=function(e,n,r){"function"==typeof n&&(r=n,n=null);return function e(n,r,u,o){… property in Ha
|