/base/security/huks/utils/file_iterative_reader/src/ |
D | hks_iterative_reader.c | 167 int32_t HksInitFileIterativeReader(struct HksIterativeReader *reader, char *path) in HksInitFileIterativeReader() argument 169 reader->fileLists = HksInitFileInfoList(); in HksInitFileIterativeReader() 170 if (reader->fileLists == NULL) { in HksInitFileIterativeReader() 173 reader->curIndex = 0; in HksInitFileIterativeReader() 174 int32_t ret = HksGetOldStoreFileInfo(path, reader->fileLists); in HksInitFileIterativeReader() 176 HksFreeFileInfoList(&reader->fileLists); in HksInitFileIterativeReader() 181 void HksDestroyFileIterativeReader(struct HksIterativeReader *reader) in HksDestroyFileIterativeReader() argument 183 HksFreeFileInfoList(&reader->fileLists); in HksDestroyFileIterativeReader() 186 int32_t HksReadFileWithIterativeReader(struct HksIterativeReader *reader, struct HksBlob *fileConte… in HksReadFileWithIterativeReader() argument 189 if (reader->curIndex == reader->fileLists->occu) { in HksReadFileWithIterativeReader() [all …]
|
/base/hiviewdfx/hiview/base/event_store/test/unittest/common/ |
D | sys_event_store_utility_test.cpp | 82 SysEventDocReader reader(path); in TestFileSizeOfDocReader() local 83 ASSERT_GT(reader.ReadFileSize(), 0); in TestFileSizeOfDocReader() 88 SysEventDocReader reader(path); in TestPageSizeOfDocReader() local 90 ASSERT_EQ(reader.ReadPageSize(pageSize), DOC_STORE_SUCCESS); in TestPageSizeOfDocReader() 96 SysEventDocReader reader(path); in TestHeaderOfDocReader() local 98 ASSERT_EQ(reader.ReadHeader(header), DOC_STORE_SUCCESS); in TestHeaderOfDocReader() 107 SysEventDocReader reader(path); in TestSystemVersionOfDocReader() local 110 ASSERT_EQ(reader.ReadHeader(header, sysVersion), DOC_STORE_SUCCESS); in TestSystemVersionOfDocReader() 143 SysEventDocReader reader(path); in TestEventsOfDocReader() local 147 ASSERT_EQ(reader.Read(query, entries, num), DOC_STORE_SUCCESS); in TestEventsOfDocReader() [all …]
|
/base/hiviewdfx/hiview/base/event_store/utility/ |
D | BUILD.gn | 25 "reader/include", 34 "reader/content_reader.cpp", 35 "reader/content_reader_factory.cpp", 36 "reader/content_reader_version_1.cpp", 37 "reader/content_reader_version_2.cpp", 38 "reader/content_reader_version_3.cpp", 39 "reader/sys_event_doc_reader.cpp",
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | log_buffer.cpp | 227 auto reader = GetReader(id); in Query() local 228 if (!reader) { in Query() 235 if (reader->m_msgList != &hilogDataList) { in Query() 236 reader->m_msgList = &hilogDataList; in Query() 238 reader->m_pos = hilogDataList.begin(); in Query() 240 reader->m_pos = hilogDataList.end(); in Query() 241 reader->m_pos--; in Query() 243 for (int i = 0; (i < tailCount) && (reader->m_pos != hilogDataList.begin());) { in Query() 244 if (LogMatchFilter(filter, (*reader->m_pos))) { in Query() 247 reader->m_pos--; in Query() [all …]
|
/base/security/code_signature/utils/src/ |
D | fsverity_utils_helper.cpp | 79 FileReader reader; in ComputeDigest() local 80 if (!reader.Open(path)) { in ComputeDigest() 83 if (!reader.GetFileSize(&tree_params.file_size)) { in ComputeDigest() 87 if (libfsverity_compute_digest(&reader, FileReader::ReadFileCallback, &tree_params, digest)) { in ComputeDigest()
|
/base/hiviewdfx/hiview/base/event_store/utility/reader/include/ |
D | content_reader_factory.h | 28 void Register(int8_t version, std::shared_ptr<ContentReader> reader); 37 ReaderRegister(int8_t version, std::shared_ptr<ContentReader> reader) in ReaderRegister() argument 39 ContentReaderFactory::GetInstance().Register(version, reader); in ReaderRegister()
|
/base/security/huks/utils/file_iterative_reader/include/ |
D | hks_iterative_reader.h | 41 int32_t HksInitFileIterativeReader(struct HksIterativeReader *reader, char *path); 43 int32_t HksReadFileWithIterativeReader(struct HksIterativeReader *reader, struct HksBlob *fileConte…
|
/base/hiviewdfx/hiview/base/event_store/utility/reader/ |
D | sys_event_doc_reader.cpp | 157 auto reader = ContentReaderFactory::GetInstance().Get(dataFmtVersion_); in ReadHeader() local 158 if (reader == nullptr) { in ReadHeader() 162 return reader->ReadDocDetails(in_, header, docHeaderSize_, sysVersion_); in ReadHeader() 256 auto reader = ContentReaderFactory::GetInstance().Get(dataFmtVersion_); in IsValidHeader() local 257 if (reader == nullptr) { in IsValidHeader() 261 if (!reader->IsValidMagicNum(header.magicNum)) { in IsValidHeader() 284 auto reader = ContentReaderFactory::GetInstance().Get(dataFmtVersion_); in BuildRawData() local 285 if (reader == nullptr) { in BuildRawData() 289 return reader->ReadRawData(info_, content, contentSize); in BuildRawData()
|
D | content_reader_factory.cpp | 20 void ContentReaderFactory::Register(int8_t version, std::shared_ptr<ContentReader> reader) in Register() argument 22 readerMap_.insert(std::pair<int8_t, std::shared_ptr<ContentReader>>(version, reader)); in Register()
|
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
D | json_serializer.cpp | 26 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize() local 27 if (!reader->parse(jsonString.c_str(), jsonString.c_str() + rawJsonLength, &dataObj, &err)) { in Deserialize()
|
D | map_string_serializer.cpp | 30 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize() local 31 if (!reader->parse(jsonString.c_str(), jsonString.c_str() + rawJsonLength, &root, &err)) { in Deserialize()
|
/base/hiviewdfx/hisysevent/frameworks/native/ |
D | hisysevent_json_decorator.cpp | 62 Json::Reader reader(Json::Features::strictMode()); in HiSysEventJsonDecorator() 63 if (!reader.parse(fin, root)) { in HiSysEventJsonDecorator() 173 std::unique_ptr<Json::CharReader> const reader(jsonRBuilder.newCharReader()); in HiSysEventJsonDecorator() local 175 if (!reader->parse(origin.data(), origin.data() + origin.size(), &eventJson, &errs)) { in HiSysEventJsonDecorator() 177 Json::Reader reader(Json::Features::strictMode()); in HiSysEventJsonDecorator() 178 if (!reader.parse(origin, eventJson)) { in HiSysEventJsonDecorator()
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | sa_dumper.cpp | 173 PipeReader reader(id, result_); in GetData() local 174 reader.Run(); in GetData() 175 if (sa->Dump(reader.GetWritePipe(), args_) != ERR_OK) { in GetData() 178 reader.Stop(); in GetData()
|
/base/security/code_signature/utils/include/ |
D | fsverity_utils_helper.h | 91 FileReader *reader = static_cast<FileReader *>(f); in ReadFileCallback() local 92 return reader->ReadBytes(static_cast<uint8_t *>(buf), count); in ReadFileCallback()
|
/base/hiviewdfx/hiview/base/event_store/utility/writer/ |
D | sys_event_doc_writer.cpp | 56 SysEventDocReader reader(docPath_); in Write() local 57 int fileSize = reader.ReadFileSize(); in Write() 73 reader.ReadHeader(header, sysVersion); in Write() 82 if (int ret = reader.ReadPageSize(pageSize); ret != DOC_STORE_SUCCESS) { in Write()
|
/base/hiviewdfx/hiview/adapter/service/idl/src/ |
D | hiview_log_config_manager.cpp | 41 Json::Reader reader(Json::Features::strictMode()); in ParseJsonFile() 42 if (!reader.parse(fin, jsonRoot)) { in ParseJsonFile()
|
/base/hiviewdfx/hiview/utility/smart_parser/rule/ |
D | compose_rule.cpp | 38 Json::Reader reader(Json::Features::strictMode()); in ParseComposeRule() local 50 if (!reader.parse(fin, root) || !root.isMember(type)) { in ParseComposeRule()
|
/base/powermgr/power_manager/utils/vibrator/src/ |
D | vibrator_source_parser.cpp | 74 Json::Reader reader; in ParseSources() local 76 if (!reader.parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), root)) { in ParseSources()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/formatter/ |
D | dfx_json_formatter.cpp | 76 Json::Reader reader; in FormatJsonStack() local 78 if (!(reader.parse(jsonStack, threads))) { in FormatJsonStack()
|
/base/powermgr/power_manager/services/native/src/wakeup_action/ |
D | wakeup_action_source_parser.cpp | 82 Json::Reader reader; in ParseSources() local 84 if (!reader.parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), root)) { in ParseSources()
|
/base/powermgr/power_manager/services/native/src/wakeup/ |
D | wakeup_source_parser.cpp | 93 Json::Reader reader; in ParseSources() local 96 if (!reader.parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), root)) { in ParseSources()
|
/base/powermgr/power_manager/services/native/src/suspend/ |
D | suspend_source_parser.cpp | 92 Json::Reader reader; in ParseSources() local 95 if (!reader.parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), root)) { in ParseSources()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
D | json_parser.cpp | 44 std::unique_ptr<Json::CharReader> const reader(jsonRBuilder.newCharReader()); in ParseJsonString() local 46 return reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &eventJson, &err); in ParseJsonString()
|
/base/powermgr/battery_statistics/services/native/src/ |
D | battery_stats_parser.cpp | 69 Json::CharReaderBuilder reader; in LoadAveragePowerFromFile() local 77 if (!parseFromStream(reader, ifs, &root, &errors)) { in LoadAveragePowerFromFile()
|
/base/startup/init/interfaces/innerkits/control_fd/ |
D | control_fd.h | 52 WatcherHandle reader; // watch read pty member
|