/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_parser.cpp | 93 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 D | pre_bundle_profile.cpp | 56 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 D | parser_util.cpp | 58 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 D | drawable_descriptor.h | 96 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 D | drawable_descriptor_test.cpp | 70 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 D | processing_keyboard_device_test.cpp | 52 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 D | processing_game_pad_device_test.cpp | 41 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 D | processing_pen_device_test.cpp | 42 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 D | processing_joystick_device_test.cpp | 43 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 D | processing_mouse_device_test.cpp | 52 std::string jsonBuf = ReadJsonFile(path); variable 53 if (jsonBuf.empty()) { 57 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
|
H A D | processing_pad_device_test.cpp | 51 std::string jsonBuf = ReadJsonFile(path); variable 52 if (jsonBuf.empty()) { 56 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
|
H A D | get_device_object_test.cpp | 52 std::string jsonBuf = ReadJsonFile(path); variable 53 if (jsonBuf.empty()) { 57 auto ret = openInjectDevice.TransformJsonData(DataInit(jsonBuf, false));
|
H A D | manage_inject_device_test.cpp | 95 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 D | bms_extension_profile.cpp | 39 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 D | pre_bundle_profile.h | 36 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 D | json_utils.cpp | 27 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 D | resource_manager_test_common.cpp | 285 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 D | extension_config.cpp | 53 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 D | abilitymgrrdbparserutil_fuzzer.cpp | 75 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 D | deeplink_reserve_config.cpp | 62 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 D | bundle_resource_parser.cpp | 343 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 D | json_utils.h | 35 …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 D | parser_util.h | 35 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 D | devicestatus_data_parse.cpp | 71 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 D | injection_event_dispatch.cpp | 79 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()
|