/base/hiviewdfx/hilog/services/hilogd/ |
D | log_buffer.cpp | 216 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/ |
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/usb/usb_manager/test/native/service_unittest/src/ |
D | usb_event_test.cpp | 147 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/ |
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/hidumper/frameworks/native/src/executor/ |
D | sa_dumper.cpp | 171 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/ |
D | parser_util.cpp | 93 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/ |
D | hisysevent_json_decorator.cpp | 57 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/ |
D | usb_event_mock_test.cpp | 190 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/ |
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/ |
D | BUILD.gn | 25 "reader/include", 35 "reader/sys_event_doc_reader.cpp",
|
/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()
|
D | extract_rule.cpp | 37 Json::Reader reader(Json::Features::strictMode()); in ParseExtractRule() local 48 if (!reader.parse(fin, root)) { in ParseExtractRule()
|
/base/telephony/core_service/services/sim/src/ |
D | operator_file_parser.cpp | 124 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/ |
D | sys_event_doc_writer.cpp | 68 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/ |
D | control_fd.h | 52 WatcherHandle reader; // watch read pty member
|
/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/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/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/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/ |
D | ipolicy_serializer.h | 119 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/ |
D | dispatch_config.cpp | 42 Json::Reader reader(Json::Features::strictMode()); in HiviewRuleParser() 43 if (!reader.parse(fin, root)) { in HiviewRuleParser()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/ |
D | hisysevent_record.cpp | 338 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/ |
D | Utils.java | 244 … 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()
|