Home
last modified time | relevance | path

Searched refs:jsonBuff (Results 1 - 5 of 5) sorted by relevance

/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresparser_fuzzer/
H A Dbundleresparser_fuzzer.cpp68 std::string jsonBuff(layeredImagedJson.dump()); in DoSomethingInterestingWithMyAPI()
69 parser.ParseForegroundAndBackgroundResource(resourceManager, jsonBuff, 0, resourceInfo); in DoSomethingInterestingWithMyAPI()
72 parser.ParseIconIdFromJson(jsonBuff, foregroundId, backgroundId); in DoSomethingInterestingWithMyAPI()
/foundation/multimodalinput/input/tools/event_inject/test/
H A Dprocessing_touch_screen_device_test.cpp83 std::string jsonBuff = ReadJsonFile(path); in HWTEST_F() local
84 if (jsonBuff.empty()) { in HWTEST_F()
88 auto ret = manageInjectDevice.TransformJsonData(DataInit(jsonBuff, false)); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/bundle_resource/
H A Dbundle_resource_parser.h64 const std::string &jsonBuff, const int32_t density, ResourceInfo &resourceInfo);
66 bool ParseIconIdFromJson(const std::string &jsonBuff, uint32_t &foregroundId, uint32_t &backgroundId);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_parser.cpp384 const std::string &jsonBuff, uint32_t &foregroundId, uint32_t &backgroundId) in ParseIconIdFromJson()
386 nlohmann::json jsonObject = nlohmann::json::parse(jsonBuff, nullptr, false); in ParseIconIdFromJson()
388 APP_LOGE("failed to parse jsonBuff %{public}s", jsonBuff.c_str()); in ParseIconIdFromJson()
393 APP_LOGE("not object, failed to parse jsonBuff %{public}s", jsonBuff.c_str()); in ParseIconIdFromJson()
398 APP_LOGE("foreground background empty, buffer %{public}s", jsonBuff.c_str()); in ParseIconIdFromJson()
442 const std::string &jsonBuff, in ParseForegroundAndBackgroundResource()
453 if (!ParseIconIdFromJson(jsonBuff, foregroundId, backgroundId)) { in ParseForegroundAndBackgroundResource()
454 APP_LOGE("parse from json failed, iconId:%{public}d,buffer:%{public}s", resourceInfo.iconId_, jsonBuff in ParseForegroundAndBackgroundResource()
383 ParseIconIdFromJson( const std::string &jsonBuff, uint32_t &foregroundId, uint32_t &backgroundId) ParseIconIdFromJson() argument
440 ParseForegroundAndBackgroundResource( const std::shared_ptr<Global::Resource::ResourceManager> resourceManager, const std::string &jsonBuff, const int32_t density, ResourceInfo &resourceInfo) ParseForegroundAndBackgroundResource() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_resource_test/
H A Dbms_bundle_resource_test.cpp2903 std::string jsonBuff(layeredImagedJson.dump()); in HWTEST_F()
2907 bool ans = parser.ParseIconIdFromJson(jsonBuff, foregroundId, backgroundId); in HWTEST_F()
2927 std::string jsonBuff(layeredImagedJson.dump()); in HWTEST_F()
2931 bool ans = parser.ParseIconIdFromJson(jsonBuff, foregroundId, backgroundId); in HWTEST_F()
2954 std::string jsonBuff(layeredImagedJson.dump()); in HWTEST_F()
2958 bool ans = parser.ParseIconIdFromJson(jsonBuff, foregroundId, backgroundId); in HWTEST_F()
2981 std::string jsonBuff(layeredImagedJson.dump()); in HWTEST_F()
2985 bool ans = parser.ParseIconIdFromJson(jsonBuff, foregroundId, backgroundId); in HWTEST_F()
3007 std::string jsonBuff(layeredImagedJson.dump()); in HWTEST_F()
3011 bool ans = parser.ParseIconIdFromJson(jsonBuff, foregroundI in HWTEST_F()
3610 std::string jsonBuff; HWTEST_F() local
[all...]

Completed in 7 milliseconds