/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_overlay_test/ |
H A D | bms_bundle_overlay_info_test.cpp | 123 OverlayBundleInfo overlayBundleInfo; variable 124 overlayBundleInfo.ReadFromParcel(parcel); 125 CheckOverlayBundleInfo(overlayBundleInfo); 137 OverlayBundleInfo overlayBundleInfo; variable 144 overlayBundleInfo.Marshalling(parcel); 166 OverlayBundleInfo overlayBundleInfo; variable 181 OverlayBundleInfo overlayBundleInfo; variable 188 to_json(jsonObject, overlayBundleInfo); 203 OverlayBundleInfo overlayBundleInfo; variable 204 from_json(OVERLAY_BUNDLE_INFO_JSON, overlayBundleInfo); [all …]
|
H A D | bms_bundle_overlay_ipc_test.cpp | 118 overlayBundleInfo.emplace_back(bundleInfo); in GetOverlayBundleInfoForTarget() 156 OverlayBundleInfo overlayBundleInfo; in CreateOverlayBundleInfo() local 157 overlayBundleInfo.bundleName = TEST_BUNDLE_NAME; in CreateOverlayBundleInfo() 158 overlayBundleInfo.bundleDir = TEST_BUNDLE_DIR; in CreateOverlayBundleInfo() 159 overlayBundleInfo.state = TEST_STATE; in CreateOverlayBundleInfo() 160 overlayBundleInfo.priority = TEST_PRIORITY; in CreateOverlayBundleInfo() 161 return overlayBundleInfo; in CreateOverlayBundleInfo() 234 EXPECT_EQ(overlayBundleInfo.bundleDir, TEST_BUNDLE_DIR); in CheckOverlayBundleInfo() 235 EXPECT_EQ(overlayBundleInfo.state, TEST_STATE); in CheckOverlayBundleInfo() 236 EXPECT_EQ(overlayBundleInfo.priority, TEST_PRIORITY); in CheckOverlayBundleInfo() [all …]
|
H A D | bms_bundle_get_overlay_module_info_test.cpp | 466 std::vector<OverlayBundleInfo> overlayBundleInfo; variable 467 auto res = hostImpl->GetOverlayBundleInfoForTarget(TEST_BUNDLE_NAME, overlayBundleInfo, USERID); 486 std::vector<OverlayBundleInfo> overlayBundleInfo; variable 487 …auto res = hostImpl->GetOverlayBundleInfoForTarget(TEST_TARGET_BUNDLE_NAME, overlayBundleInfo, TES… 507 std::vector<OverlayBundleInfo> overlayBundleInfo; variable 508 …auto res = hostImpl->GetOverlayBundleInfoForTarget(TEST_TARGET_BUNDLE_NAME, overlayBundleInfo, USE… 511 EXPECT_EQ(overlayBundleInfo.size(), OVERLAY_MODULE_INFO_SIZE); 512 CheckOverlayBundleInfo(overlayBundleInfo[0]); 531 std::vector<OverlayBundleInfo> overlayBundleInfo; variable 532 auto res = hostImpl->GetOverlayBundleInfoForTarget(TEST_BUNDLE_NAME, overlayBundleInfo, USERID); [all …]
|
H A D | bms_bundle_overlay_checker_test.cpp | 591 std::vector<OverlayBundleInfo> overlayBundleInfo; variable 1164 std::vector<OverlayBundleInfo> overlayBundleInfo; variable 1174 EXPECT_EQ(overlayBundleInfo.size(), DEFAULT_OVERLAY_BUNDLE_INFO); 1177 TEST_BUNDLE_NAME, overlayBundleInfo, Constants::INVALID_USERID); 2106 std::vector<OverlayBundleInfo> overlayBundleInfo; variable 2108 "", overlayBundleInfo, USERID); 2112 "targetBundleName", overlayBundleInfo, Constants::UNSPECIFIED_USERID); 2182 std::vector<OverlayBundleInfo> overlayBundleInfo; variable 2184 overlayBundleInfo, Constants::INVALID_USERID); 2574 std::vector<OverlayBundleInfo> overlayBundleInfo; variable [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/overlay/ |
H A D | overlay_bundle_info.cpp | 62 void to_json(nlohmann::json &jsonObject, const OverlayBundleInfo &overlayBundleInfo) in to_json() argument 65 {BUNDLE_OVERLAY_BUNDLE_NAME, overlayBundleInfo.bundleName}, in to_json() 66 {BUNDLE_OVERLAY_BUNDLE_DIR, overlayBundleInfo.bundleDir}, in to_json() 67 {BUNDLE_OVERLAY_BUNDLE_STATE, overlayBundleInfo.state}, in to_json() 68 {BUNDLE_OVERLAY_BUNDLE_PRIORITY, overlayBundleInfo.priority} in to_json() 72 void from_json(const nlohmann::json &jsonObject, OverlayBundleInfo &overlayBundleInfo) in from_json() argument 79 overlayBundleInfo.bundleName, in from_json() 87 overlayBundleInfo.bundleDir, in from_json() 95 overlayBundleInfo.state, in from_json() 103 overlayBundleInfo.priority, in from_json()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/overlay/ |
H A D | bundle_overlay_data_manager.cpp | 126 OverlayBundleInfo overlayBundleInfo; in UpdateExternalOverlayInfo() local 127 overlayBundleInfo.bundleName = newInfo.GetBundleName(); in UpdateExternalOverlayInfo() 128 overlayBundleInfo.bundleDir = bundleDir; in UpdateExternalOverlayInfo() 129 overlayBundleInfo.state = newInfo.GetOverlayState(); in UpdateExternalOverlayInfo() 130 overlayBundleInfo.priority = newInfo.GetTargetPriority(); in UpdateExternalOverlayInfo() 131 targetInnerBundleInfo.AddOverlayBundleInfo(overlayBundleInfo); in UpdateExternalOverlayInfo() 508 std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId) in GetOverlayBundleInfoForTarget() argument 525 overlayBundleInfo = targetInnerBundleInfo.GetOverlayBundleInfo(); in GetOverlayBundleInfoForTarget() 526 if (overlayBundleInfo.empty()) { in GetOverlayBundleInfoForTarget()
|
H A D | bundle_overlay_manager.cpp | 67 std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId) in GetOverlayBundleInfoForTarget() argument 75 …DataMgr::GetInstance()->GetOverlayBundleInfoForTarget(targetBundleName, overlayBundleInfo, userId); in GetOverlayBundleInfoForTarget()
|
H A D | bundle_overlay_manager_host_impl.cpp | 186 std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId) in GetOverlayBundleInfoForTarget() argument 205 GetOverlayBundleInfoForTarget(targetBundleName, overlayBundleInfo, userId); in GetOverlayBundleInfoForTarget()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/overlay/ |
H A D | overlay_manager_host.cpp | 205 std::vector<OverlayBundleInfo> overlayBundleInfo; in HandleGetOverlayBundleInfoForTarget() local 206 auto res = GetOverlayBundleInfoForTarget(targetBundleName, overlayBundleInfo, userId); in HandleGetOverlayBundleInfoForTarget() 213 if (!WriteParcelableVector(overlayBundleInfo, reply)) { in HandleGetOverlayBundleInfoForTarget()
|
H A D | overlay_manager_proxy.cpp | 309 std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId) in GetOverlayBundleInfoForTarget() argument 335 OverlayManagerInterfaceCode::GET_OVERLAY_BUNDLE_INFO_FOR_TARGET, data, overlayBundleInfo); in GetOverlayBundleInfoForTarget()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/overlay/ |
H A D | bundle_overlay_manager.h | 39 std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId);
|
H A D | bundle_overlay_manager_host_impl.h | 41 …std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId = Constants::UNSPECIFIED_USERID)…
|
H A D | bundle_overlay_data_manager.h | 70 std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/overlay/ |
H A D | overlay_manager_interface.h | 63 … std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId = Constants::UNSPECIFIED_USERID)
|
H A D | overlay_manager_proxy.h | 46 …std::vector<OverlayBundleInfo> &overlayBundleInfo, int32_t userId = Constants::UNSPECIFIED_USERID)…
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | json_serializer.h | 137 void to_json(nlohmann::json &jsonObject, const OverlayBundleInfo &overlayBundleInfo); 138 void from_json(const nlohmann::json &jsonObject, OverlayBundleInfo &overlayBundleInfo);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | bundle_info.cpp | 344 … std::unique_ptr<OverlayBundleInfo> overlayBundleInfo(parcel.ReadParcelable<OverlayBundleInfo>()); in ReadFromParcel() local 345 if (!overlayBundleInfo) { in ReadFromParcel() 349 overlayBundleInfos.emplace_back(*overlayBundleInfo); in ReadFromParcel() 476 for (auto &overlayBundleInfo : overlayBundleInfos) { in Marshalling() local 477 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Parcelable, parcel, &overlayBundleInfo); in Marshalling()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | inner_bundle_info.h | 1715 void AddOverlayBundleInfo(const OverlayBundleInfo &overlayBundleInfo) in AddOverlayBundleInfo() argument 1718 [&overlayBundleInfo](const auto &overlayInfo) { in AddOverlayBundleInfo() 1719 return overlayInfo.bundleName == overlayBundleInfo.bundleName; in AddOverlayBundleInfo() 1724 overlayBundleInfo_.emplace_back(overlayBundleInfo); in AddOverlayBundleInfo() 2326 void from_json(const nlohmann::json &jsonObject, OverlayBundleInfo &overlayBundleInfo);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_data_mgr.cpp | 7836 OverlayBundleInfo overlayBundleInfo; in BuildExternalOverlayConnection() local 7837 overlayBundleInfo.bundleName = info.second.GetBundleName(); in BuildExternalOverlayConnection() 7838 overlayBundleInfo.bundleDir = bundleDir; in BuildExternalOverlayConnection() 7839 overlayBundleInfo.state = info.second.GetOverlayState(); in BuildExternalOverlayConnection() 7840 overlayBundleInfo.priority = info.second.GetTargetPriority(); in BuildExternalOverlayConnection() 7841 oldInfo.AddOverlayBundleInfo(overlayBundleInfo); in BuildExternalOverlayConnection()
|