Home
last modified time | relevance | path

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

12

/base/hiviewdfx/hilog/services/hilogd/
Dlog_buffer.cpp216 auto reader = GetReader(id); in Query() local
217 if (!reader) { in Query()
226 if (reader->m_msgList != &msgList) { in Query()
227 reader->m_msgList = &msgList; in Query()
229 reader->m_pos = msgList.begin(); in Query()
231 reader->m_pos = msgList.end(); in Query()
232 reader->m_pos--; in Query()
234 for (int i = 0; (i < tailCount) && (reader->m_pos != msgList.begin());) { in Query()
235 if (LogMatchFilter(filter, (*reader->m_pos))) { in Query()
238 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/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/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/hidumper/frameworks/native/src/executor/
Dsa_dumper.cpp171 PipeReader reader(id, result_); in GetData() local
172 reader.Run(); in GetData()
173 if (sa->Dump(reader.GetWritePipe(), args_) != ERR_OK) { in GetData()
176 reader.Stop(); in GetData()
/base/telephony/telephony_data/common/src/
Dparser_util.cpp93 Json::CharReader *reader(builder.newCharReader()); in ParserPdpProfileJson() local
94 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserPdpProfileJson()
98 delete reader; in ParserPdpProfileJson()
99 reader = nullptr; in ParserPdpProfileJson()
196 Json::CharReader *reader(builder.newCharReader()); in ParserOpKeyJson() local
197 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserOpKeyJson()
201 delete reader; in ParserOpKeyJson()
202 reader = nullptr; in ParserOpKeyJson()
/base/hiviewdfx/hisysevent/frameworks/native/
Dhisysevent_json_decorator.cpp57 Json::Reader reader(Json::Features::strictMode()); in HiSysEventJsonDecorator()
58 if (!reader.parse(fin, root)) { in HiSysEventJsonDecorator()
168 std::unique_ptr<Json::CharReader> const reader(jsonRBuilder.newCharReader()); in HiSysEventJsonDecorator() local
170 if (!reader->parse(origin.data(), origin.data() + origin.size(), &eventJson, &errs)) { in HiSysEventJsonDecorator()
172 Json::Reader reader(Json::Features::strictMode()); in HiSysEventJsonDecorator()
173 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/hiviewdfx/hiview/base/event_store/utility/
DBUILD.gn25 "reader/include",
35 "reader/sys_event_doc_reader.cpp",
/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()
Dextract_rule.cpp37 Json::Reader reader(Json::Features::strictMode()); in ParseExtractRule() local
48 if (!reader.parse(fin, root)) { in ParseExtractRule()
/base/telephony/core_service/services/sim/src/
Doperator_file_parser.cpp124 Json::CharReader *reader(builder.newCharReader()); in ParseOperatorConfigFromFile() local
125 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &opcJson, &err)) { in ParseOperatorConfigFromFile()
129 delete reader; in ParseOperatorConfigFromFile()
130 reader = nullptr; in ParseOperatorConfigFromFile()
/base/hiviewdfx/hiview/base/event_store/utility/writer/
Dsys_event_doc_writer.cpp68 SysEventDocReader reader(docPath_); in Write() local
69 int fileSize = reader.ReadFileSize(); in Write()
85 if (int ret = reader.ReadPageSize(pageSize); ret != DOC_STORE_SUCCESS) { in Write()
/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/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/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/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/
Dipolicy_serializer.h119 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize()
120 if (!reader->parse(jsonString.c_str(), jsonString.c_str() + rawJsonLength, &root, &err)) { in Deserialize()
/base/hiviewdfx/hiview/base/
Ddispatch_config.cpp42 Json::Reader reader(Json::Features::strictMode()); in HiviewRuleParser()
43 if (!reader.parse(fin, root)) { in HiviewRuleParser()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
Dhisysevent_record.cpp338 std::unique_ptr<Json::CharReader> const reader(jsonRBuilder.newCharReader()); in ParseJsonStr() local
340 if (!reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &jsonVal_, &errs)) { in ParseJsonStr()
342 Json::Reader reader(Json::Features::strictMode()); in ParseJsonStr()
343 if (!reader.parse(jsonStr, jsonVal_)) { in ParseJsonStr()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DUtils.java244 … try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(src), in generateTypesFile() argument
250 while ((line = reader.readLine()) != null) { in generateTypesFile()
347 …try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(src), "u… in generateI18nPatternFile() argument
351 while ((line = reader.readLine()) != null) { in generateI18nPatternFile()

12