/base/security/huks/utils/file_iterative_reader/src/ |
H A D | hks_iterative_reader.c | 166 int32_t HksInitFileIterativeReader(struct HksIterativeReader *reader, char *path) in HksInitFileIterativeReader() argument 168 reader->fileLists = HksInitFileInfoList(); in HksInitFileIterativeReader() 169 if (reader->fileLists == NULL) { in HksInitFileIterativeReader() 172 reader->curIndex = 0; in HksInitFileIterativeReader() 173 int32_t ret = HksGetOldStoreFileInfo(path, reader->fileLists); in HksInitFileIterativeReader() 175 HksFreeFileInfoList(&reader->fileLists); in HksInitFileIterativeReader() 180 void HksDestroyFileIterativeReader(struct HksIterativeReader *reader) in HksDestroyFileIterativeReader() argument 182 HksFreeFileInfoList(&reader->fileLists); in HksDestroyFileIterativeReader() 185 int32_t HksReadFileWithIterativeReader(struct HksIterativeReader *reader, struct HksBlob *fileContent, in HksReadFileWithIterativeReader() argument 188 if (reader in HksReadFileWithIterativeReader() [all...] |
/base/hiviewdfx/hiview/base/event_store/test/unittest/common/ |
H A D | sys_event_store_utility_test.cpp | 82 SysEventDocReader reader(path); in TestFileSizeOfDocReader() 83 ASSERT_GT(reader.ReadFileSize(), 0); in TestFileSizeOfDocReader() 88 SysEventDocReader reader(path); in TestPageSizeOfDocReader() 90 ASSERT_EQ(reader.ReadPageSize(pageSize), DOC_STORE_SUCCESS); in TestPageSizeOfDocReader() 96 SysEventDocReader reader(path); in TestHeaderOfDocReader() 98 ASSERT_EQ(reader.ReadHeader(header), DOC_STORE_SUCCESS); in TestHeaderOfDocReader() 107 SysEventDocReader reader(path); in TestSystemVersionOfDocReader() 110 ASSERT_EQ(reader.ReadHeader(header, sysVersion), DOC_STORE_SUCCESS); in TestSystemVersionOfDocReader() 143 SysEventDocReader reader(path); in TestEventsOfDocReader() 147 ASSERT_EQ(reader in TestEventsOfDocReader() 184 std::shared_ptr<ContentReader> reader = std::make_shared<ContentReaderVersionTest>(); HWTEST_F() local 205 std::shared_ptr<ContentReader> reader = ContentReaderFactory::GetInstance().Get(version); HWTEST_F() local 240 auto reader = ContentReaderFactory::GetInstance().Get(version); HWTEST_F() local [all...] |
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_buffer.cpp | 225 auto reader = GetReader(id); in Query() local 226 if (!reader) { in Query() 233 if (reader->m_msgList != &hilogDataList) { in Query() 234 reader->m_msgList = &hilogDataList; in Query() 236 reader->m_pos = hilogDataList.begin(); in Query() 238 reader->m_pos = hilogDataList.end(); in Query() 239 reader->m_pos--; in Query() 241 for (int i = 0; (i < tailCount) && (reader->m_pos != hilogDataList.begin());) { in Query() 242 if (LogMatchFilter(filter, (*reader->m_pos))) { in Query() 245 reader in Query() 301 auto reader = std::make_shared<BufferReader>(); CreateBufReader() local [all...] |
/base/hiviewdfx/hiview/base/event_store/utility/reader/include/ |
H A 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/code_signature/utils/src/ |
H A 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/ |
H A 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()
|
H A D | sys_event_doc_reader.cpp | 157 auto reader = ContentReaderFactory::GetInstance().Get(dataFmtVersion_);
in ReadHeader() local 158 if (reader == nullptr) {
in ReadHeader() 159 HIVIEW_LOGE("reader is nullptr, version:%{public}d", dataFmtVersion_);
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() 258 HIVIEW_LOGE("reader nullptr, version:%{public}d", dataFmtVersion_);
in IsValidHeader() 261 if (!reader->IsValidMagicNum(header.magicNum)) {
in IsValidHeader() 284 auto reader = ContentReaderFactory::GetInstance().Get(dataFmtVersion_);
in BuildRawData() local 285 if (reader in BuildRawData() [all...] |
/base/security/huks/utils/file_iterative_reader/include/ |
H A D | hks_iterative_reader.h | 41 int32_t HksInitFileIterativeReader(struct HksIterativeReader *reader, char *path); 43 int32_t HksReadFileWithIterativeReader(struct HksIterativeReader *reader, struct HksBlob *fileContent,
|
/base/request/request/pre_download/native/src/cache/ |
H A D | data.rs | 45 pub(crate) fn reader(&self) -> CacheReader { 102 io::copy(&mut self.reader(), &mut file); 177 cache.reader().read_to_string(&mut buf); in ut_cache_write_read() 181 cache.reader().read_to_string(&mut buf); in ut_cache_write_read() 188 new_cache.reader().read_to_string(&mut buf).unwrap(); in ut_cache_write_read()
|
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
H A D | json_serializer.cpp | 26 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize() 27 if (!reader->parse(jsonString.c_str(), jsonString.c_str() + rawJsonLength, &dataObj, &err)) { in Deserialize()
|
H A D | map_string_serializer.cpp | 30 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize() 31 if (!reader->parse(jsonString.c_str(), jsonString.c_str() + rawJsonLength, &root, &err)) { in Deserialize()
|
/base/hiviewdfx/hisysevent/frameworks/native/ |
H A D | hisysevent_json_decorator.cpp | 62 Json::Reader reader(Json::Features::strictMode()); in HiSysEventJsonDecorator() 63 if (!reader.parse(fin, jsonRoot_)) { in HiSysEventJsonDecorator() 173 std::unique_ptr<Json::CharReader> const reader(jsonRBuilder.newCharReader()); in HiSysEventJsonDecorator() 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/security/code_signature/utils/include/ |
H A 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/ |
H A D | sys_event_doc_writer.cpp | 56 SysEventDocReader reader(docPath_);
in Write() 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/utility/smart_parser/rule/ |
H A D | compose_rule.cpp | 38 Json::Reader reader(Json::Features::strictMode()); in ParseComposeRule() 50 if (!reader.parse(fin, root) || !root.isMember(type)) { in ParseComposeRule()
|
/base/powermgr/power_manager/services/native/src/wakeup_action/ |
H A D | wakeup_action_source_parser.cpp | 23 #include "json/reader.h" 82 Json::Reader reader; in ParseSources() local 84 if (!reader.parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), root)) { in ParseSources()
|
/base/powermgr/power_manager/utils/vibrator/src/ |
H A D | vibrator_source_parser.cpp | 23 #include "json/reader.h"
74 Json::Reader reader;
in ParseSources() local 76 if (!reader.parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), root)) {
in ParseSources()
|
/base/startup/init/interfaces/innerkits/control_fd/ |
H A D | control_fd.h | 52 WatcherHandle reader; // watch read pty member
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
H A D | json_parser.cpp | 43 std::unique_ptr<Json::CharReader> const reader(jsonRBuilder.newCharReader());
in ParseJsonString() 45 return reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &eventJson, &err);
in ParseJsonString()
|
/base/powermgr/power_manager/services/native/src/wakeup/ |
H A D | wakeup_source_parser.cpp | 23 #include "json/reader.h" 96 Json::Reader reader; in ParseSources() local 99 if (!reader.parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), root)) { in ParseSources()
|
H A D | wakeup_controller.cpp | 194 Json::Reader reader; in ChangeWakeupSourceConfig() local 195 if (!reader.parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), root)) { in ChangeWakeupSourceConfig() 303 Json::Reader reader; in ChangePickupWakeupSourceConfig() local 304 reader.parse(jsonStr, root); in ChangePickupWakeupSourceConfig() 305 if (!reader.parse(jsonStr, root)) { in ChangePickupWakeupSourceConfig() 338 Json::Reader reader; in ChangeLidWakeupSourceConfig() local 339 reader.parse(jsonStr, root); in ChangeLidWakeupSourceConfig() 340 if (!reader.parse(jsonStr, root)) { in ChangeLidWakeupSourceConfig()
|
/base/powermgr/battery_statistics/services/native/src/ |
H A D | battery_stats_parser.cpp | 21 #include "json/reader.h"
73 Json::CharReaderBuilder reader;
in LoadAveragePowerFromFile() local 81 if (!parseFromStream(reader, ifs, &root, &errors)) {
in LoadAveragePowerFromFile()
|
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | power_policy_plugin.cpp | 120 Json::Reader reader; in DealPowerSuspendPolicy() local 122 if (!reader.parse(powerSuspend.data(), powerSuspend.data() + powerSuspend.size(), root)) { in DealPowerSuspendPolicy()
|
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/ |
H A D | array_usb_device_id_serializer.cpp | 73 Json::Reader reader; in Deserialize() local 74 if (!reader.parse(valueJsonString.data(), valueJsonString.data() + valueJsonString.length(), item)) { in Deserialize() 75 EDMLOGE("ArrayUsbDeviceIdSerializer Deserialize reader can not parse, i = %{public}u", i); in Deserialize()
|
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/ |
H A D | ipolicy_serializer.h | 123 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize() 124 if (!reader->parse(jsonString.c_str(), jsonString.c_str() + rawJsonLength, &root, &err)) { in Deserialize()
|