Home
last modified time | relevance | path

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

12

/base/hiviewdfx/hilog/services/hilogd/
Dlog_buffer.cpp220 auto reader = GetReader(id); in Query() local
221 if (!reader) { in Query()
228 if (reader->m_msgList != &hilogDataList) { in Query()
229 reader->m_msgList = &hilogDataList; in Query()
231 reader->m_pos = hilogDataList.begin(); in Query()
233 reader->m_pos = hilogDataList.end(); in Query()
234 reader->m_pos--; in Query()
236 for (int i = 0; (i < tailCount) && (reader->m_pos != hilogDataList.begin());) { in Query()
237 if (LogMatchFilter(filter, (*reader->m_pos))) { in Query()
240 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/telephony/telephony_data/common/src/
Dparser_util.cpp116 Json::CharReader *reader(builder.newCharReader()); in ParserPdpProfileJson() local
117 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserPdpProfileJson()
119 delete reader; in ParserPdpProfileJson()
122 delete reader; in ParserPdpProfileJson()
123 reader = nullptr; in ParserPdpProfileJson()
240 Json::CharReader *reader(builder.newCharReader()); in ParserOpKeyJson() local
241 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserOpKeyJson()
243 delete reader; in ParserOpKeyJson()
246 delete reader; in ParserOpKeyJson()
247 reader = nullptr; in ParserOpKeyJson()
[all …]
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_event_test.cpp147 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); variable
149 …auto parseResult = reader->parse(deviceStr.c_str(), deviceStr.c_str() + deviceStr.length(), &devic…
201 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); variable
203 …auto parseResult = reader->parse(deviceStr.c_str(), deviceStr.c_str() + deviceStr.length(), &devic…
237 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); variable
239 …auto parseResult = reader->parse(portStr.c_str(), portStr.c_str() + portStr.length(), &portJson, &…
271 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); variable
273 …auto parseResult = reader->parse(portStr.c_str(), portStr.c_str() + portStr.length(), &portJson, &…
/base/hiviewdfx/hiview/base/event_store/utility/
DBUILD.gn25 "reader/include",
34 "reader/event_entry_creator.cpp",
35 "reader/sys_event_doc_reader.cpp",
/base/telephony/core_service/services/network_search/src/
Doperator_name_utils.cpp95 Json::CharReader *reader(builder.newCharReader()); in ParserOperatorNameCustJson() local
96 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserOperatorNameCustJson()
98 delete reader; in ParserOperatorNameCustJson()
101 delete reader; in ParserOperatorNameCustJson()
102 reader = nullptr; in ParserOperatorNameCustJson()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dsa_dumper.cpp172 PipeReader reader(id, result_); in GetData() local
173 reader.Run(); in GetData()
174 if (sa->Dump(reader.GetWritePipe(), args_) != ERR_OK) { in GetData()
177 reader.Stop(); in GetData()
/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/usb/usb_manager/test/native/mock/src/
Dusb_event_mock_test.cpp190 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); variable
192 …auto parseResult = reader->parse(deviceStr.c_str(), deviceStr.c_str() + deviceStr.length(), &devic…
247 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); variable
249 …auto parseResult = reader->parse(deviceStr.c_str(), deviceStr.c_str() + deviceStr.length(), &devic…
283 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); variable
285 …auto parseResult = reader->parse(portStr.c_str(), portStr.c_str() + portStr.length(), &portJson, &…
317 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); variable
319 …auto parseResult = reader->parse(portStr.c_str(), portStr.c_str() + portStr.length(), &portJson, &…
/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/telephony/core_service/services/sim/src/
Doperator_file_parser.cpp136 Json::CharReader *reader(builder.newCharReader()); in ParseOperatorConfigFromFile() local
137 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &opcJson, &err)) { in ParseOperatorConfigFromFile()
139 delete reader; in ParseOperatorConfigFromFile()
142 delete reader; in ParseOperatorConfigFromFile()
143 reader = nullptr; in ParseOperatorConfigFromFile()
/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/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/
Ddfx_json_formatter.cpp78 Json::Reader reader; in FormatJsonStack() local
80 if (!(reader.parse(jsonStack, threads))) { in FormatJsonStack()
/base/hiviewdfx/hiview/base/event_store/utility/writer/
Dsys_event_doc_writer.cpp75 SysEventDocReader reader(docPath_); in Write() local
76 int fileSize = reader.ReadFileSize(); in Write()
92 if (int ret = reader.ReadPageSize(pageSize); ret != DOC_STORE_SUCCESS) { in Write()
/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/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/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd.h52 WatcherHandle reader; // watch read pty member
/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/base/event_publish/
Devent_publish.cpp138 Json::Reader reader; in PushEvent() local
139 if (!reader.parse(paramJson, params)) { in PushEvent()
/base/customization/enterprise_device_management/services/edm_plugin/src/
Dpower_policy_plugin.cpp102 Json::Reader reader; in DealPowerSuspendPolicy() local
104 if (!reader.parse(powerSuspend.data(), powerSuspend.data() + powerSuspend.size(), root)) { in DealPowerSuspendPolicy()
/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()

12