Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_parser.cpp93 if (jsonBuf.is_discarded()) { in ReadFileIntoJson()
224 nlohmann::json jsonBuf; in ParsePreInstallConfig() local
225 if (!ReadFileIntoJson(configFile, jsonBuf)) { in ParsePreInstallConfig()
238 nlohmann::json jsonBuf; in ParsePreUnInstallConfig() local
239 if (!ReadFileIntoJson(configFile, jsonBuf)) { in ParsePreUnInstallConfig()
251 nlohmann::json jsonBuf; in ParsePreInstallAbilityConfig() local
252 if (!ReadFileIntoJson(configFile, jsonBuf)) { in ParsePreInstallAbilityConfig()
264 nlohmann::json jsonBuf; in ParseDefaultPermission() local
276 nlohmann::json jsonBuf; in ParseExtTypeConfig() local
314 if (jsonBuf.is_discarded()) { in ParseRouterArray()
[all …]
H A Dpre_bundle_profile.cpp56 const nlohmann::json &jsonBuf, in TransformTo() argument
60 if (jsonBuf.is_discarded()) { in TransformTo()
65 if (jsonBuf.find(INSTALL_LIST) == jsonBuf.end()) { in TransformTo()
69 auto arrays = jsonBuf.at(INSTALL_LIST); in TransformTo()
129 const nlohmann::json &jsonBuf, in TransformTo() argument
133 if (jsonBuf.is_discarded()) { in TransformTo()
172 const nlohmann::json &jsonBuf, in TransformTo() argument
176 if (jsonBuf.is_discarded()) { in TransformTo()
181 if (jsonBuf.find(INSTALL_LIST) == jsonBuf.end()) { in TransformTo()
412 if (jsonBuf.is_discarded()) { in TransformJsonToExtensionTypeList()
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/rdb/
H A Dparser_util.cpp58 nlohmann::json jsonBuf; in ParsePreInstallAbilityConfig() local
59 if (!ReadFileIntoJson(filePath, jsonBuf)) { in ParsePreInstallAbilityConfig()
63 if (jsonBuf.is_discarded()) { in ParsePreInstallAbilityConfig()
67 FilterInfoFromJson(jsonBuf, list); in ParsePreInstallAbilityConfig()
71 nlohmann::json &jsonBuf, std::vector<std::tuple<std::string, std::string, std::string>> &list) in FilterInfoFromJson() argument
73 if (jsonBuf.is_discarded()) { in FilterInfoFromJson()
78 if (jsonBuf.find(INSTALL_LIST) == jsonBuf.end()) { in FilterInfoFromJson()
83 auto arrays = jsonBuf.at(INSTALL_LIST); in FilterInfoFromJson()
147 bool ParserUtil::ReadFileIntoJson(const std::string &filePath, nlohmann::json &jsonBuf) in ReadFileIntoJson() argument
180 jsonBuf = nlohmann::json::parse(fin, nullptr, false); in ReadFileIntoJson()
[all …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
H A Ddrawable_descriptor.h96 LayeredDrawableDescriptor(std::unique_ptr<uint8_t[]> jsonBuf, size_t len, in LayeredDrawableDescriptor() argument
98 : jsonBuf_(std::move(jsonBuf)), len_(len) in LayeredDrawableDescriptor()
103 LayeredDrawableDescriptor(std::unique_ptr<uint8_t[]> jsonBuf, size_t len, in LayeredDrawableDescriptor() argument
111 LayeredDrawableDescriptor(std::unique_ptr<uint8_t[]> jsonBuf, size_t len, in LayeredDrawableDescriptor() argument
238 std::unique_ptr<uint8_t[]> jsonBuf; in Create() local
256 return std::make_unique<DrawableDescriptor>(std::move(jsonBuf), len); in Create()
269 std::unique_ptr<uint8_t[]> jsonBuf; in Create() local
300 std::unique_ptr<uint8_t[]> jsonBuf; in Create() local
336 std::unique_ptr<uint8_t[]> jsonBuf; in Create() local
351 std::move(jsonBuf), len, resourceMgr, path, iconType, density); in Create()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/interfaces/
H A Ddrawable_descriptor_test.cpp70 std::unique_ptr<uint8_t[]> jsonBuf; variable
138 std::unique_ptr<uint8_t[]> jsonBuf; variable
164 std::unique_ptr<uint8_t[]> jsonBuf; variable
201 std::unique_ptr<uint8_t[]> jsonBuf; variable
229 std::unique_ptr<uint8_t[]> jsonBuf; variable
279 std::unique_ptr<uint8_t[]> jsonBuf; variable
586 const char* jsonBuf = "{\"background\":\"background\"}"; variable
587 drawable.len_ = strlen(jsonBuf) + 1;
589 memcpy_s(drawable.jsonBuf_.get(), strlen(jsonBuf), jsonBuf, strlen(jsonBuf));
603 drawable.len_ = strlen(jsonBuf) + 1;
[all …]
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/test/
H A Dprocessing_keyboard_device_test.cpp52 std::string jsonBuf = ReadJsonFile(path); variable
53 if (jsonBuf.empty()) {
57 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
83 std::string jsonBuf = ReadJsonFile(path); variable
84 if (jsonBuf.empty()) {
88 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
H A Dprocessing_game_pad_device_test.cpp41 std::string jsonBuf = ReadJsonFile(path); in CheckGamePadJson() local
42 if (jsonBuf.empty()) { in CheckGamePadJson()
46 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false)); in CheckGamePadJson()
74 std::string jsonBuf = ReadJsonFile(path); variable
75 if (jsonBuf.empty()) {
79 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
H A Dprocessing_pen_device_test.cpp42 std::string jsonBuf = ReadJsonFile(path); in CheckJsonData() local
43 if (jsonBuf.empty()) { in CheckJsonData()
47 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false)); in CheckJsonData()
75 std::string jsonBuf = ReadJsonFile(path); variable
76 if (jsonBuf.empty()) {
80 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
H A Dprocessing_joystick_device_test.cpp43 std::string jsonBuf = ReadJsonFile(path); in CheckTransformJson() local
44 if (jsonBuf.empty()) { in CheckTransformJson()
48 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false)); in CheckTransformJson()
66 std::string jsonBuf = ReadJsonFile(path); in CheckJoyStickJson() local
67 if (jsonBuf.empty()) { in CheckJoyStickJson()
71 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false)); in CheckJoyStickJson()
H A Dprocessing_mouse_device_test.cpp52 std::string jsonBuf = ReadJsonFile(path); variable
53 if (jsonBuf.empty()) {
57 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
H A Dprocessing_pad_device_test.cpp51 std::string jsonBuf = ReadJsonFile(path); variable
52 if (jsonBuf.empty()) {
56 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
H A Dget_device_object_test.cpp52 std::string jsonBuf = ReadJsonFile(path); variable
53 if (jsonBuf.empty()) {
57 auto ret = openInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
H A Dmanage_inject_device_test.cpp95 std::string jsonBuf = ReadJsonFile(filePath); variable
96 if (jsonBuf.empty()) {
100 auto ret = openInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/bundlemgr_extension/src/
H A Dbms_extension_profile.cpp39 nlohmann::json jsonBuf; in ParseBmsExtension() local
40 if (!ReadFileIntoJson(jsonPath, jsonBuf)) { in ParseBmsExtension()
44 return TransformTo(jsonBuf, bmsExtension); in ParseBmsExtension()
47 bool BmsExtensionProfile::ReadFileIntoJson(const std::string &filePath, nlohmann::json &jsonBuf) co… in ReadFileIntoJson()
73 jsonBuf = nlohmann::json::parse(in, nullptr, false); in ReadFileIntoJson()
75 if (jsonBuf.is_discarded()) { in ReadFileIntoJson()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dpre_bundle_profile.h36 const nlohmann::json &jsonBuf,
45 const nlohmann::json &jsonBuf,
54 const nlohmann::json &jsonBuf,
63 const nlohmann::json &jsonBuf, std::set<std::string> &extensionTypeList) const;
/ohos5.0/foundation/ability/ability_runtime/services/common/src/
H A Djson_utils.cpp27 bool JsonUtils::LoadConfiguration(const std::string& path, nlohmann::json& jsonBuf, in LoadConfiguration() argument
32 if (!ReadFileInfoJson(configPath, jsonBuf)) { in LoadConfiguration()
48 bool JsonUtils::ReadFileInfoJson(const std::string &filePath, nlohmann::json &jsonBuf) in ReadFileInfoJson() argument
85 jsonBuf = nlohmann::json::parse(in, nullptr, false); in ReadFileInfoJson()
87 if (jsonBuf.is_discarded()) { in ReadFileInfoJson()
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dresource_manager_test_common.cpp285 std::unique_ptr<uint8_t[]> jsonBuf; in TestGetDrawableInfoById() local
286 RState state = rm->GetDrawableInfoById(id, type, len, jsonBuf); in TestGetDrawableInfoById()
288 EXPECT_TRUE(jsonBuf != nullptr); in TestGetDrawableInfoById()
310 std::unique_ptr<uint8_t[]> jsonBuf; in TestGetDrawableInfoWithDensityById() local
311 RState state = rm->GetDrawableInfoById(id, type, len, jsonBuf, density); in TestGetDrawableInfoWithDensityById()
313 EXPECT_TRUE(jsonBuf != nullptr); in TestGetDrawableInfoWithDensityById()
326 std::unique_ptr<uint8_t[]> jsonBuf; in TestGetDrawableInfoByName() local
327 RState state = rm->GetDrawableInfoByName("icon1", type, len, jsonBuf); in TestGetDrawableInfoByName()
329 EXPECT_TRUE(jsonBuf != nullptr); in TestGetDrawableInfoByName()
349 std::unique_ptr<uint8_t[]> jsonBuf; in TestGetDrawableInfoWithDensityByName() local
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dextension_config.cpp53 nlohmann::json jsonBuf; in LoadExtensionConfiguration() local
54 if (!ReadFileInfoJson(GetExtensionConfigPath().c_str(), jsonBuf)) { in LoadExtensionConfiguration()
59 LoadExtensionConfig(jsonBuf); in LoadExtensionConfiguration()
179 bool ExtensionConfig::ReadFileInfoJson(const std::string &filePath, nlohmann::json &jsonBuf) in ReadFileInfoJson() argument
205 jsonBuf = nlohmann::json::parse(in, nullptr, false); in ReadFileInfoJson()
207 if (jsonBuf.is_discarded()) { in ReadFileInfoJson()
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/abilitymgrrdbparserutil_fuzzer/
H A Dabilitymgrrdbparserutil_fuzzer.cpp75 nlohmann::json jsonBuf; in DoSomethingInterestingWithMyAPI() local
76 instance.ReadFileIntoJson(jsonStr, jsonBuf); in DoSomethingInterestingWithMyAPI()
77 instance.FilterInfoFromJson(jsonBuf, list); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/deeplink_reserve/
H A Ddeeplink_reserve_config.cpp62 nlohmann::json jsonBuf; in LoadConfiguration() local
63 if (!ReadFileInfoJson(configPath, jsonBuf)) { in LoadConfiguration()
66 if (!LoadReservedUriList(jsonBuf)) { in LoadConfiguration()
252 bool DeepLinkReserveConfig::ReadFileInfoJson(const std::string &filePath, nlohmann::json &jsonBuf) in ReadFileInfoJson() argument
289 jsonBuf = nlohmann::json::parse(in, nullptr, false); in ReadFileInfoJson()
291 if (jsonBuf.is_discarded()) { in ReadFileInfoJson()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_parser.cpp343 std::unique_ptr<uint8_t[]> jsonBuf; in ParseIconResourceByResourceManager() local
344 …::RState state = resourceManager->GetDrawableInfoById(resourceInfo.iconId_, type, len, jsonBuf, 0); in ParseIconResourceByResourceManager()
354 resourceInfo.foreground_[index] = jsonBuf[index]; in ParseIconResourceByResourceManager()
358 return bundleResourceImageInfo.ConvertToBase64(std::move(jsonBuf), len, resourceInfo.icon_); in ParseIconResourceByResourceManager()
368 std::string(reinterpret_cast<char*>(jsonBuf.get()), len), 0, resourceInfo); in ParseIconResourceByResourceManager()
372 resourceInfo.foreground_[index] = jsonBuf[index]; in ParseIconResourceByResourceManager()
422 std::unique_ptr<uint8_t[]> jsonBuf; in GetMediaDataById() local
423 …Resource::RState state = resourceManager->GetDrawableInfoById(iconId, type, len, jsonBuf, density); in GetMediaDataById()
430 data[index] = jsonBuf[index]; in GetMediaDataById()
/ohos5.0/foundation/ability/ability_runtime/services/common/include/
H A Djson_utils.h35 …bool LoadConfiguration(const std::string& path, nlohmann::json& jsonBuf, const std::string& defaul…
39 bool ReadFileInfoJson(const std::string &filePath, nlohmann::json &jsonBuf);
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/include/rdb/
H A Dparser_util.h35 bool ReadFileIntoJson(const std::string &filePath, nlohmann::json &jsonBuf);
37 … nlohmann::json &jsonBuf, std::vector<std::tuple<std::string, std::string, std::string>> &list);
/ohos5.0/base/msdp/device_status/libs/src/
H A Ddevicestatus_data_parse.cpp71 std::string jsonBuf = ReadJsonFile(MSDP_DATA_PATH.c_str()); in ParseDeviceStatusData() local
72 if (jsonBuf.empty()) { in ParseDeviceStatusData()
78 return DeviceStatusDataInit(jsonBuf, true, type, data); in ParseDeviceStatusData()
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/src/
H A Dinjection_event_dispatch.cpp79 std::string jsonBuf = ReadJsonFile(injectArgvs_.at(JSON_FILE_PATH_INDEX)); in OnJson() local
80 if (jsonBuf.empty()) { in OnJson()
90 return manageInjectDevice_.TransformJsonData(DataInit(jsonBuf, logStatus)); in OnJson()

12