Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 25 of 49) sorted by relevance

12

/base/security/huks/utils/file_iterative_reader/src/
Dhks_iterative_reader.c167 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/
Dsys_event_store_utility_test.cpp82 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/
DBUILD.gn25 "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/
Dlog_buffer.cpp227 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/
Dfsverity_utils_helper.cpp79 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/
Dcontent_reader_factory.h28 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/
Dhks_iterative_reader.h41 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/
Dsys_event_doc_reader.cpp157 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()
Dcontent_reader_factory.cpp20 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/
Djson_serializer.cpp26 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()
Dmap_string_serializer.cpp30 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/
Dhisysevent_json_decorator.cpp62 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/
Dsa_dumper.cpp173 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/
Dfsverity_utils_helper.h91 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/
Dsys_event_doc_writer.cpp56 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/
Dhiview_log_config_manager.cpp41 Json::Reader reader(Json::Features::strictMode()); in ParseJsonFile()
42 if (!reader.parse(fin, jsonRoot)) { in ParseJsonFile()
/base/hiviewdfx/hiview/utility/smart_parser/rule/
Dcompose_rule.cpp38 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/
Dvibrator_source_parser.cpp74 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/
Ddfx_json_formatter.cpp76 Json::Reader reader; in FormatJsonStack() local
78 if (!(reader.parse(jsonStack, threads))) { in FormatJsonStack()
/base/powermgr/power_manager/services/native/src/wakeup_action/
Dwakeup_action_source_parser.cpp82 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/
Dwakeup_source_parser.cpp93 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/
Dsuspend_source_parser.cpp92 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/
Djson_parser.cpp44 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/
Dbattery_stats_parser.cpp69 Json::CharReaderBuilder reader; in LoadAveragePowerFromFile() local
77 if (!parseFromStream(reader, ifs, &root, &errors)) { in LoadAveragePowerFromFile()
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd.h52 WatcherHandle reader; // watch read pty member

12