/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundleinfo_fuzzer/ |
H A D | bundleinfo_fuzzer.cpp | 27 BundleInfo oldBundleInfo; in fuzzabundleinfounmarshalling() local 28 if (!oldBundleInfo.Marshalling(dataMessageParcel)) { in fuzzabundleinfounmarshalling()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_installer.cpp | 406 BundleInfo *oldBundleInfo = ManagerService::GetInstance().QueryBundleInfo(bundleInfo->bundleName); in UpdateBundleInfo() local 407 if (oldBundleInfo == nullptr) { in UpdateBundleInfo() 411 bundleInfo->isSystemApp = oldBundleInfo->isSystemApp; in UpdateBundleInfo() 707 BundleInfo *oldBundleInfo = ManagerService::GetInstance().QueryBundleInfo(bundleName); in CheckVersionAndSignature() local 708 if (oldBundleInfo != nullptr) { in CheckVersionAndSignature() 709 if (oldBundleInfo->versionCode > bundleInfo->versionCode) { in CheckVersionAndSignature() 712 if (oldBundleInfo->appId == nullptr || bundleInfo->appId == nullptr) { in CheckVersionAndSignature() 716 if (strcmp(oldBundleInfo->appId, bundleInfo->appId) != 0) { in CheckVersionAndSignature() 720 if (!BundleInfoUtils::SetBundleInfoCodePath(bundleInfo, oldBundleInfo->codePath) || in CheckVersionAndSignature() 721 !BundleInfoUtils::SetBundleInfoDataPath(bundleInfo, oldBundleInfo in CheckVersionAndSignature() [all...] |
H A D | gt_bundle_installer.cpp | 545 BundleInfo *oldBundleInfo = GtManagerService::GetInstance().QueryBundleInfo(bundleInfo->bundleName); in UpdateBundleInfo() local 546 if (oldBundleInfo == nullptr) { in UpdateBundleInfo() 549 bundleInfo->isSystemApp = oldBundleInfo->isSystemApp; in UpdateBundleInfo() 793 BundleInfo *oldBundleInfo = GtManagerService::GetInstance().QueryBundleInfo(bundleName); in CheckVersionAndSignature() local 794 if (oldBundleInfo != nullptr) { in CheckVersionAndSignature() 795 if (oldBundleInfo->versionCode > bundleInfo->versionCode) { in CheckVersionAndSignature()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/ |
H A D | bms_bundle_installer_test.cpp | 3598 BundleInfo oldBundleInfo; in HWTEST_F() local 3599 oldBundleInfo.versionCode = 101; in HWTEST_F() 3600 oldInnerBundleInfo.SetBaseBundleInfo(oldBundleInfo); in HWTEST_F() 3621 BundleInfo oldBundleInfo; in HWTEST_F() local 3622 oldBundleInfo.versionCode = 100; in HWTEST_F() 3623 oldInnerBundleInfo.SetBaseBundleInfo(oldBundleInfo); in HWTEST_F() 3644 BundleInfo oldBundleInfo; in HWTEST_F() local 3645 oldBundleInfo.versionCode = 100; in HWTEST_F() 3646 oldInnerBundleInfo.SetBaseBundleInfo(oldBundleInfo); in HWTEST_F() 3673 BundleInfo oldBundleInfo; in HWTEST_F() local 5265 BundleInfo oldBundleInfo; HWTEST_F() local 5287 BundleInfo oldBundleInfo; HWTEST_F() local 5311 BundleInfo oldBundleInfo; HWTEST_F() local 5338 BundleInfo oldBundleInfo; HWTEST_F() local 5363 BundleInfo oldBundleInfo; HWTEST_F() local 5644 BundleInfo oldBundleInfo; HWTEST_F() local 6989 InnerBundleInfo oldBundleInfo; HWTEST_F() local 7010 InnerBundleInfo oldBundleInfo; HWTEST_F() local 7033 InnerBundleInfo oldBundleInfo; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | hmp_bundle_installer.cpp | 284 InnerBundleInfo oldBundleInfo; in UpdateInnerBundleInfo() local 285 bool hasInstalled = dataMgr_->FetchInnerBundleInfo(bundleName, oldBundleInfo); in UpdateInnerBundleInfo() 290 auto innerModuleInfos = oldBundleInfo.GetInnerModuleInfos(); in UpdateInnerBundleInfo()
|
H A D | bundle_mgr_service_event_handler.cpp | 1872 bool BMSEventHandler::UpdateModuleByHash(const BundleInfo &oldBundleInfo, const InnerBundleInfo &newInfo) const in UpdateModuleByHash() argument 1876 for (auto hapInfo : oldBundleInfo.hapModuleInfos) { in UpdateModuleByHash() 1923 InnerBundleInfo oldBundleInfo; in InnerProcessRebootSharedBundleInstall() local 1924 bool hasInstalled = dataMgr->FetchInnerBundleInfo(bundleName, oldBundleInfo); in InnerProcessRebootSharedBundleInstall() 1930 if (oldBundleInfo.GetVersionCode() > versionCode) { in InnerProcessRebootSharedBundleInstall() 1934 if (oldBundleInfo.GetVersionCode() == versionCode) { in InnerProcessRebootSharedBundleInstall() 1935 if (!IsNeedToUpdateSharedAppByHash(oldBundleInfo, infos.begin()->second)) { in InnerProcessRebootSharedBundleInstall() 1976 InnerBundleInfo oldBundleInfo; in InnerProcessRebootSystemHspInstall() local 1977 bool hasInstalled = dataMgr->FetchInnerBundleInfo(bundleName, oldBundleInfo); in InnerProcessRebootSystemHspInstall() 1982 if (oldBundleInfo in InnerProcessRebootSystemHspInstall() [all...] |
H A D | base_bundle_installer.cpp | 6215 const InnerBundleInfo &oldBundleInfo, bool isPreInstallApp) in SetDisposedRuleWhenBundleUpdateStart() 6222 oldBundleInfo.GetModuleNames(oldModuleNames); in SetDisposedRuleWhenBundleUpdateStart() 6243 appControlMgr->SetDisposedRuleOnlyForBms(oldBundleInfo.GetAppId()); in SetDisposedRuleWhenBundleUpdateStart() 6249 bool BaseBundleInstaller::DeleteDisposedRuleWhenBundleUpdateEnd(const InnerBundleInfo &oldBundleInfo) in DeleteDisposedRuleWhenBundleUpdateEnd() argument 6262 appControlMgr->DeleteDisposedRuleOnlyForBms(oldBundleInfo.GetAppId()); in DeleteDisposedRuleWhenBundleUpdateEnd() 6213 SetDisposedRuleWhenBundleUpdateStart( const std::unordered_map<std::string, InnerBundleInfo> &infos, const InnerBundleInfo &oldBundleInfo, bool isPreInstallApp) SetDisposedRuleWhenBundleUpdateStart() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/ |
H A D | bms_event_handler_test.cpp | 556 BundleInfo oldBundleInfo; in HWTEST_F() local 559 oldBundleInfo.hapModuleInfos.emplace_back(oldModuleInfo); in HWTEST_F() 568 auto res = handler->UpdateModuleByHash(oldBundleInfo, newInnerBundleInfo); in HWTEST_F() 579 BundleInfo oldBundleInfo; in HWTEST_F() local 583 oldBundleInfo.hapModuleInfos.emplace_back(oldModuleInfo); in HWTEST_F() 596 auto res = handler->UpdateModuleByHash(oldBundleInfo, newInnerBundleInfo); in HWTEST_F() 607 BundleInfo oldBundleInfo; in HWTEST_F() local 611 oldBundleInfo.hapModuleInfos.emplace_back(oldModuleInfo); in HWTEST_F() 619 auto res = handler->UpdateModuleByHash(oldBundleInfo, newInnerBundleInfo); in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | base_bundle_installer.h | 749 const InnerBundleInfo &oldBundleInfo, bool isPreInstallApp); 751 bool DeleteDisposedRuleWhenBundleUpdateEnd(const InnerBundleInfo &oldBundleInfo);
|
H A D | bundle_mgr_service_event_handler.h | 621 bool UpdateModuleByHash(const BundleInfo &oldBundleInfo, const InnerBundleInfo &newInfo) const;
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_overlay_test/ |
H A D | bms_bundle_overlay_checker_test.cpp | 489 BundleInfo oldBundleInfo;
in HWTEST_F() local 490 oldBundleInfo.versionCode = TEST_VERSION_CODE;
in HWTEST_F() 491 oldInfo.SetBaseBundleInfo(oldBundleInfo);
in HWTEST_F() 542 BundleInfo oldBundleInfo;
in HWTEST_F() local 543 oldBundleInfo.versionCode = TEST_VERSION_CODE;
in HWTEST_F() 544 oldInfo.SetBaseBundleInfo(oldBundleInfo);
in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | bundle_mgr_service_event_handler.cpp | 469 bool BMSEventHandler::UpdateModuleByHash(const BundleInfo& oldBundleInfo, const InnerBundleInfo& newInfo) const in UpdateModuleByHash() argument
|