Searched refs:infile (Results 1 – 5 of 5) sorted by relevance
/base/global/i18n_lite/frameworks/i18n/src/ |
D | data_resource.cpp | 148 int32_t infile = open(g_DataResourcePath, O_RDONLY); in Init() local 149 if (infile < 0) { in Init() 152 bool ret = ReadHeader(infile); in Init() 154 close(infile); in Init() 158 close(infile); in Init() 161 ret = PrepareData(infile); in Init() 162 close(infile); in Init() 166 bool DataResource::ReadHeader(int32_t infile) in ReadHeader() argument 168 int32_t seekSize = lseek(infile, GLOBAL_RESOURCE_HEADER_SKIP, SEEK_SET); in ReadHeader() 173 int32_t readSize = read(infile, cache, GLOBAL_RESOURCE_HEADER_LEFT); in ReadHeader() [all …]
|
/base/update/updateservice/services/firmware/upgrade/status/src/ |
D | firmware_result_process.cpp | 50 std::ifstream infile; in GetUpdaterResult() local 51 infile.open(UPDATER_RESULT_FILE, std::ios_base::in); in GetUpdaterResult() 52 if (!infile.is_open()) { in GetUpdaterResult() 57 while (!infile.eof()) { in GetUpdaterResult() 58 getline(infile, buffer); in GetUpdaterResult() 61 infile.close(); in GetUpdaterResult()
|
/base/global/i18n_lite/frameworks/i18n/include/ |
D | data_resource.h | 108 bool ReadHeader(int32_t infile); 109 bool PrepareData(int32_t infile); 111 …bool GetStringFromStringPool(char *configs, const uint32_t configsSize, int32_t infile, LocaleData… 123 …bool Retrieve(char *configs, const uint32_t configsSize, int32_t infile, const uint32_t originalCo… 125 …bool PrepareLocaleData(int32_t infile, uint32_t configOffset, uint32_t count, LocaleDataType type);
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | service_controller.cpp | 917 FILE* infile = fopen((LOG_PERSISTER_DIR + pPath).c_str(), "r"); in RestorePersistJobs() local 918 if (infile == nullptr) { in RestorePersistJobs() 923 fread(&info, sizeof(PersistRecoveryInfo), 1, infile); in RestorePersistJobs() 925 fread(&hashSum, sizeof(hashSum), 1, infile); in RestorePersistJobs() 926 fclose(infile); in RestorePersistJobs()
|
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_aes_cipher_test.cpp | 187 ifstream infile; in AesMultiBlockEncrypt() local 189 infile.open("/data/test_aes.txt", ios::in|ios::binary); in AesMultiBlockEncrypt() 190 infile.seekg (0, infile.end); in AesMultiBlockEncrypt() 191 uint32_t length = infile.tellg(); in AesMultiBlockEncrypt() 192 infile.seekg (0, infile.beg); in AesMultiBlockEncrypt() 204 infile.read(reinterpret_cast<char *>(buffer), FILE_BLOCK_SIZE); in AesMultiBlockEncrypt() 233 infile.close(); in AesMultiBlockEncrypt() 241 ifstream infile; in AesMultiBlockDecrypt() local 243 infile.open("/data/test_aes_enc.txt", ios::in|ios::binary); in AesMultiBlockDecrypt() 244 infile.seekg (0, infile.end); in AesMultiBlockDecrypt() [all …]
|