/foundation/bundlemanager/bundle_tool/test/mock/ |
H A D | mock_bundle_installer_host.cpp | 32 const std::string &bundleFilePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in Install() 39 statusReceiver->OnFinished(OHOS::ERR_OK, MSG_SUCCESS); in Install() 45 const sptr<IStatusReceiver> &statusReceiver) in Install() 54 statusReceiver->OnFinished(OHOS::ERR_OK, MSG_SUCCESS); in Install() 60 const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in Uninstall() 67 statusReceiver->OnFinished(OHOS::ERR_OK, MSG_SUCCESS); in Uninstall() 73 const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in Uninstall() 81 statusReceiver->OnFinished(OHOS::ERR_OK, MSG_SUCCESS); in Uninstall() 87 const sptr<IStatusReceiver> &statusReceiver) in Recover() 92 statusReceiver in Recover() 31 Install( const std::string &bundleFilePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Install() argument 44 Install(const std::vector<std::string> &bundleFilePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Install() argument 59 Uninstall( const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 72 Uninstall(const std::string &bundleName, const std::string &modulePackage, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 86 Recover(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Recover() argument 96 StreamInstall(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) StreamInstall() argument 115 CreateStreamInstaller(const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateStreamInstaller() argument 126 Uninstall(const UninstallParam &uninstallParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument [all...] |
H A D | mock_bundle_installer_host.h | 55 const sptr<IStatusReceiver> &statusReceiver); 57 const sptr<IStatusReceiver> &statusReceiver); 59 const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver); 62 const sptr<IStatusReceiver> &statusReceiver); 64 bool Uninstall(const UninstallParam &uninstallParam, const sptr<IStatusReceiver> &statusReceiver); 67 const sptr<IStatusReceiver> &statusReceiver); 70 const sptr<IStatusReceiver> &statusReceiver); 78 const sptr<IStatusReceiver> &statusReceiver);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_installer_host.cpp | 127 sptr<IStatusReceiver> statusReceiver = iface_cast<IStatusReceiver>(object); in HandleInstallMessage() local 129 Install(bundlePath, *installParam, statusReceiver); in HandleInstallMessage() 147 sptr<IStatusReceiver> statusReceiver = iface_cast<IStatusReceiver>(object); in HandleRecoverMessage() local 150 Recover(bundleName, *installParam, statusReceiver); in HandleRecoverMessage() 180 sptr<IStatusReceiver> statusReceiver = iface_cast<IStatusReceiver>(object); in HandleInstallMultipleHapsMessage() local 182 Install(pathVec, *installParam, statusReceiver); in HandleInstallMultipleHapsMessage() 200 sptr<IStatusReceiver> statusReceiver = iface_cast<IStatusReceiver>(object); in HandleUninstallMessage() local 202 Uninstall(bundleName, *installParam, statusReceiver); in HandleUninstallMessage() 221 sptr<IStatusReceiver> statusReceiver = iface_cast<IStatusReceiver>(object); in HandleUninstallModuleMessage() local 222 Uninstall(bundleName, modulePackage, *installParam, statusReceiver); in HandleUninstallModuleMessage() 238 sptr<IStatusReceiver> statusReceiver = iface_cast<IStatusReceiver>(object); HandleUninstallByUninstallParam() local 286 sptr<IStatusReceiver> statusReceiver = iface_cast<IStatusReceiver>(object); HandleCreateStreamInstaller() local 340 sptr<IStatusReceiver> statusReceiver = iface_cast<IStatusReceiver>(object); HandleUninstallAndRecoverMessage() local 346 Install( const std::string &bundleFilePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Install() argument 377 Install(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Install() argument 408 Recover( const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Recover() argument 430 Uninstall( const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 452 Uninstall(const std::string &bundleName, const std::string &modulePackage, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 475 Uninstall(const UninstallParam &uninstallParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 496 InstallByBundleName(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) InstallByBundleName() argument 586 StreamInstall(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) StreamInstall() argument 592 CreateStreamInstaller(const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateStreamInstaller() argument 715 UpdateBundleForSelf(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) UpdateBundleForSelf() argument 737 UninstallAndRecover(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) UninstallAndRecover() argument [all...] |
H A D | bundle_installer_manager.cpp | 48 const std::string &bundleFilePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in CreateInstallTask() 50 auto installer = CreateInstaller(statusReceiver); in CreateInstallTask() 65 const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in CreateRecoverTask() 67 auto installer = CreateInstaller(statusReceiver); in CreateRecoverTask() 82 const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in CreateInstallTask() 84 auto installer = CreateInstaller(statusReceiver); in CreateInstallTask() 103 const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in CreateInstallByBundleNameTask() 105 auto installer = CreateInstaller(statusReceiver); in CreateInstallByBundleNameTask() 121 const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in CreateUninstallTask() 123 auto installer = CreateInstaller(statusReceiver); in CreateUninstallTask() 47 CreateInstallTask( const std::string &bundleFilePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateInstallTask() argument 64 CreateRecoverTask( const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateRecoverTask() argument 81 CreateInstallTask(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateInstallTask() argument 102 CreateInstallByBundleNameTask(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateInstallByBundleNameTask() argument 120 CreateUninstallTask( const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateUninstallTask() argument 137 CreateUninstallTask(const std::string &bundleName, const std::string &modulePackage, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateUninstallTask() argument 171 CreateUninstallAndRecoverTask(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateUninstallAndRecoverTask() argument 188 CreateInstaller(const sptr<IStatusReceiver> &statusReceiver) CreateInstaller() argument [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundleinstallerhost_fuzzer/ |
H A D | bundleinstallerhost_fuzzer.cpp | 65 sptr<IStatusReceiver> statusReceiver; in DoSomethingInterestingWithMyAPI() local 67 bundleInstallerHost->Install(bundleFilePath, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 68 bundleInstallerHost->Recover(bundleName, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 69 bundleInstallerHost->Install(bundleFilePaths, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 70 bundleInstallerHost->Uninstall(bundleName, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 71 bundleInstallerHost->Uninstall(bundleName, modulePackage, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 72 bundleInstallerHost->Uninstall(uninstallParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 73 bundleInstallerHost->InstallByBundleName(bundleName, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 76 bundleInstallerHost->CreateStreamInstaller(installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 78 bundleInstallerHost->StreamInstall(bundleFilePaths, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/ |
H A D | bundle_installer_interface.h | 31 * @brief Installs an application, the final result will be notified from the statusReceiver object. 36 * @param statusReceiver Indicates the callback object that using for notifing the install result. 40 const sptr<IStatusReceiver> &statusReceiver) = 0; 42 * @brief Installs an application by bundleName, the final result will be notified from the statusReceiver object. 45 * @param statusReceiver Indicates the callback object that using for notifing the install result. 49 const sptr<IStatusReceiver> &statusReceiver) = 0; 52 * @brief Installs multiple haps, the final result will be notified from the statusReceiver object. 57 * @param statusReceiver Indicates the callback object that using for notifing the install result. 61 const sptr<IStatusReceiver> &statusReceiver) = 0; 64 * @brief Uninstalls an application, the result will be notified from the statusReceiver objec 92 InstallByBundleName(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) InstallByBundleName() argument 124 UpdateBundleForSelf(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) UpdateBundleForSelf() argument 130 UninstallAndRecover(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) UninstallAndRecover() argument [all...] |
H A D | bundle_installer_proxy.h | 37 * @param statusReceiver Indicates the callback object that using for notifing the install result. 41 const sptr<IStatusReceiver> &statusReceiver) override; 43 * @brief Installs an application by bundleName, the final result will be notified from the statusReceiver object. 46 * @param statusReceiver Indicates the callback object that using for notifing the install result. 50 const sptr<IStatusReceiver> &statusReceiver) override; 52 * @brief Installs multiple haps, the final result will be notified from the statusReceiver object. 57 * @param statusReceiver Indicates the callback object that using for notifing the install result. 61 const sptr<IStatusReceiver> &statusReceiver) override; 66 * @param statusReceiver Indicates the callback object that using for notifing the uninstall result. 70 const sptr<IStatusReceiver> &statusReceiver) overrid [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_installer_manager.h | 41 * @param statusReceiver Indicates the callback object that using for notifing the install result. 45 const sptr<IStatusReceiver> &statusReceiver); 50 * @param statusReceiver Indicates the callback object that using for notifing the install result. 54 const sptr<IStatusReceiver> &statusReceiver); 59 * @param statusReceiver Indicates the callback object that using for notifing the install result. 63 const sptr<IStatusReceiver> &statusReceiver); 68 * @param statusReceiver Indicates the callback object that using for notifing the install result. 72 const sptr<IStatusReceiver> &statusReceiver); 77 * @param statusReceiver Indicates the callback object that using for notifing the uninstall result. 81 const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver); [all...] |
H A D | bundle_installer_host.h | 41 * @brief Installs an application, the final result will be notified from the statusReceiver object. 46 * @param statusReceiver Indicates the callback object that using for notifing the install result. 50 const sptr<IStatusReceiver> &statusReceiver) override; 52 * @brief Installs an application by bundleName, the final result will be notified from the statusReceiver object. 55 * @param statusReceiver Indicates the callback object that using for notifing the install result. 59 const sptr<IStatusReceiver> &statusReceiver) override; 61 * @brief Installs multiple haps, the final result will be notified from the statusReceiver object. 66 * @param statusReceiver Indicates the callback object that using for notifing the install result. 70 const sptr<IStatusReceiver> &statusReceiver) override; 72 * @brief Uninstalls an application, the result will be notified from the statusReceiver objec [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundleinstallerproxy_fuzzer/ |
H A D | bundleinstallerproxy_fuzzer.cpp | 31 sptr<IStatusReceiver> statusReceiver; in DoSomethingInterestingWithMyAPI() local 32 bundleinstallerProxy.Install(bundleFilePath, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 35 bundleinstallerProxy.Recover(bundleName, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 39 bundleinstallerProxy.Install(bundleFilePaths, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 41 bundleinstallerProxy.Uninstall(bundleName, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 43 bundleinstallerProxy.Uninstall(bundleFilePath, modulePackage, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 49 bundleinstallerProxy.CreateStreamInstaller(installParam, statusReceiver); in DoSomethingInterestingWithMyAPI() 51 bundleinstallerProxy.StreamInstall(bundleFilePaths, installParam, statusReceiver); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_proxy_test/ |
H A D | bms_bundle_installer_proxy_test.cpp | 61 * @tc.desc: 1. statusReceiver is nullptr 72 sptr<IStatusReceiver> statusReceiver = nullptr; in HWTEST_F() local 73 auto res = bundleInstallerProxy.Install(bundlePath, installParam, statusReceiver); in HWTEST_F() 91 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); in HWTEST_F() local 92 ASSERT_NE(statusReceiver, nullptr); in HWTEST_F() 93 auto res = bundleInstallerProxy.Install(bundlePath, installParam, statusReceiver); in HWTEST_F() 100 * @tc.desc: 1. statusReceiver is nullptr 113 sptr<IStatusReceiver> statusReceiver = nullptr; in HWTEST_F() local 114 auto res = bundleInstallerProxy.Install(bundleFilePaths, installParam, statusReceiver); in HWTEST_F() 134 sptr<IStatusReceiver> statusReceiver in HWTEST_F() local 154 sptr<IStatusReceiver> statusReceiver = nullptr; HWTEST_F() local 173 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 192 sptr<IStatusReceiver> statusReceiver = nullptr; HWTEST_F() local 211 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 230 sptr<IStatusReceiver> statusReceiver = nullptr; HWTEST_F() local 250 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 267 sptr<IStatusReceiver> statusReceiver = nullptr; HWTEST_F() local 283 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 336 sptr<IStatusReceiver> statusReceiver = nullptr; HWTEST_F() local 354 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 388 const sptr<IStatusReceiver> statusReceiver = nullptr; HWTEST_F() local 407 const sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 428 const sptr<IStatusReceiver> statusReceiver = nullptr; HWTEST_F() local 449 const sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver();; HWTEST_F() local 469 const sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver();; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_multiuser_install_test/ |
H A D | bms_bundle_multiuser_install_ipc_test.cpp | 116 const sptr<IStatusReceiver> &statusReceiver) in Install() 121 const sptr<IStatusReceiver> &statusReceiver) in Recover() 126 const sptr<IStatusReceiver> &statusReceiver) in Install() 131 const sptr<IStatusReceiver> &statusReceiver) in Uninstall() 136 const sptr<IStatusReceiver> &statusReceiver) in Uninstall() 141 const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in Uninstall() 146 const sptr<IStatusReceiver> &statusReceiver) in InstallByBundleName() 160 const sptr<IStatusReceiver> &statusReceiver) in CreateStreamInstaller() 169 const sptr<IStatusReceiver> &statusReceiver) in StreamInstall() 115 Install(const std::string &bundleFilePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Install() argument 120 Recover(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Recover() argument 125 Install(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Install() argument 130 Uninstall(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 135 Uninstall(const UninstallParam &uninstallParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 140 Uninstall(const std::string &bundleName, const std::string &modulePackage, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 145 InstallByBundleName(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) InstallByBundleName() argument 159 CreateStreamInstaller(const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateStreamInstaller() argument 168 StreamInstall(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) StreamInstall() argument
|
/foundation/bundlemanager/bundle_framework/test/benchmarktest/installer_proxy_test/ |
H A D | installer_proxy_test.cpp | 95 sptr<InstallerProxyTest> statusReceiver(new (std::nothrow) InstallerProxyTest()); in BenchmarkTestInstallerProxyInfo() 98 installerProxy->Install(bundleFilePath, installParam, statusReceiver); in BenchmarkTestInstallerProxyInfo() 117 sptr<InstallerProxyTest> statusReceiver(new (std::nothrow) InstallerProxyTest()); in BenchmarkTestMultipleInstallerProxyInfo() 120 installerProxy->Install(bundleFilePaths, installParam, statusReceiver); in BenchmarkTestMultipleInstallerProxyInfo() 137 sptr<InstallerProxyTest> statusReceiver = (new (std::nothrow) InstallerProxyTest()); in BenchmarkTestUninstallerApplication() local 140 installerProxy->Install(bundleFilePath, installParam, statusReceiver); in BenchmarkTestUninstallerApplication() 143 installerProxy->Uninstall(bundleName, installParam, statusReceiver); in BenchmarkTestUninstallerApplication()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/ |
H A D | bundle_installer_proxy.cpp | 51 const std::string &bundlePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in Install() 62 if (statusReceiver == nullptr) { in Install() 63 LOG_E(BMS_TAG_INSTALLER, "fail to install, for statusReceiver is nullptr"); in Install() 66 if (!data.WriteRemoteObject(statusReceiver->AsObject())) { in Install() 75 const sptr<IStatusReceiver> &statusReceiver) in Install() 90 if (statusReceiver == nullptr) { in Install() 91 LOG_E(BMS_TAG_INSTALLER, "fail to install, for statusReceiver is nullptr"); in Install() 94 if (!data.WriteRemoteObject(statusReceiver->AsObject())) { in Install() 104 const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) in Recover() 114 if (statusReceiver in Recover() 50 Install( const std::string &bundlePath, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Install() argument 74 Install(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Install() argument 103 Recover(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Recover() argument 127 Uninstall( const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 150 Uninstall(const std::string &bundleName, const std::string &modulePackage, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 174 Uninstall(const UninstallParam &uninstallParam, const sptr<IStatusReceiver> &statusReceiver) Uninstall() argument 265 CreateStreamInstaller(const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) CreateStreamInstaller() argument 341 UninstallAndRecover(const std::string &bundleName, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) UninstallAndRecover() argument 364 StreamInstall(const std::vector<std::string> &bundleFilePaths, const InstallParam &installParam, const sptr<IStatusReceiver> &statusReceiver) StreamInstall() argument [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/ |
H A D | bms_bundle_permission_false_test.cpp | 1357 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); in HWTEST_F() local 1358 EXPECT_NE(statusReceiver, nullptr); in HWTEST_F() 1360 bool ret = bundleInstallerHost_->Install(HAP_FILE_PATH, installParam, statusReceiver); in HWTEST_F() 1373 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); in HWTEST_F() local 1374 EXPECT_NE(statusReceiver, nullptr); in HWTEST_F() 1378 bool ret = bundleInstallerHost_->Install(bundleFilePaths, installParam, statusReceiver); in HWTEST_F() 1391 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); in HWTEST_F() local 1392 EXPECT_NE(statusReceiver, nullptr); in HWTEST_F() 1394 bool ret = bundleInstallerHost_->Recover(BUNDLE_NAME, installParam, statusReceiver); in HWTEST_F() 1407 sptr<IStatusReceiver> statusReceiver in HWTEST_F() local 1423 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1439 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1455 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1471 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1487 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1714 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local [all...] |
H A D | bms_bundle_permission_system_app_test.cpp | 992 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); in HWTEST_F() local 993 EXPECT_NE(statusReceiver, nullptr); in HWTEST_F() 995 bool ret = bundleInstallerHost_->Install(HAP_FILE_PATH, installParam, statusReceiver); in HWTEST_F() 1008 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); in HWTEST_F() local 1009 EXPECT_NE(statusReceiver, nullptr); in HWTEST_F() 1013 bool ret = bundleInstallerHost_->Install(bundleFilePaths, installParam, statusReceiver); in HWTEST_F() 1026 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); in HWTEST_F() local 1027 EXPECT_NE(statusReceiver, nullptr); in HWTEST_F() 1029 bool ret = bundleInstallerHost_->Recover(BUNDLE_NAME, installParam, statusReceiver); in HWTEST_F() 1042 sptr<IStatusReceiver> statusReceiver in HWTEST_F() local 1058 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1074 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1090 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1106 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local 1360 sptr<IStatusReceiver> statusReceiver = new (std::nothrow) MockStatusReceiver(); HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundlemgr/ |
H A D | bundle_death_recipient.cpp | 27 BundleDeathRecipient::BundleDeathRecipient(const sptr<StatusReceiverHost> &statusReceiver, in BundleDeathRecipient() argument 28 const sptr<QuickFixStatusCallbackHost> &callback) : statusReceiver_(statusReceiver), quickFixCallback_(callback) in BundleDeathRecipient()
|
H A D | bundle_death_recipient.h | 29 explicit BundleDeathRecipient(const sptr<StatusReceiverHost> &statusReceiver,
|
/foundation/bundlemanager/bundle_tool/frameworks/src/ |
H A D | quick_fix_command.cpp | 74 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl()); in ApplyQuickFix() 75 if (statusReceiver == nullptr) { in ApplyQuickFix() 83 auto applyMonitor = std::make_shared<ApplyQuickFixMonitor>(subscribeInfo, statusReceiver); in ApplyQuickFix() 89 result = statusReceiver->GetResultCode(); in ApplyQuickFix()
|
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_install_system_test/ |
H A D | bms_install_external_hsp_so_test.cpp | 179 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl());
in UninstallBundle() 180 EXPECT_NE(statusReceiver, nullptr);
in UninstallBundle() 184 bool uninstallResult = installerProxy->Uninstall(uninstallParam, statusReceiver);
in UninstallBundle() 186 return statusReceiver->GetResultMsg();
in UninstallBundle() 198 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl());
in InstallPathBundle() 199 EXPECT_NE(statusReceiver, nullptr);
in InstallPathBundle() 201 auto installResult = installerProxy->StreamInstall(pathVec, installParam, statusReceiver);
in InstallPathBundle() 203 return statusReceiver->GetResultMsg();
in InstallPathBundle() 226 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl());
in UpdateInstallPath() 227 EXPECT_NE(statusReceiver, nullpt in UpdateInstallPath() [all...] |
H A D | bms_install_system_test.cpp | 209 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl()); in InstallBundle() 210 EXPECT_NE(statusReceiver, nullptr); in InstallBundle() 211 bool installResult = installerProxy->Install(bundleFilePath, installParam, statusReceiver); in InstallBundle() 213 installMsg = statusReceiver->GetResultMsg(); in InstallBundle() 229 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl()); in InstallByBundleName() 230 EXPECT_NE(statusReceiver, nullptr); in InstallByBundleName() 231 bool installResult = installerProxy->InstallByBundleName(bundleFilePath, installParam, statusReceiver); in InstallByBundleName() 233 installMsg = statusReceiver->GetResultMsg(); in InstallByBundleName() 249 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl()); in InstallErrUid() 250 EXPECT_NE(statusReceiver, nullpt in InstallErrUid() [all...] |
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_code_signature_test/ |
H A D | bundle_mgr_code_signature_system_test.cpp | 185 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl());
in InstallBundle() 186 EXPECT_NE(statusReceiver, nullptr);
in InstallBundle() 187 auto installResult = installerProxy->StreamInstall(bundleFilePaths, installParam, statusReceiver);
in InstallBundle() 189 installResult = statusReceiver->GetResultCode();
in InstallBundle() 200 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl());
in UninstallBundle() 201 EXPECT_NE(statusReceiver, nullptr);
in UninstallBundle() 206 bool uninstallResult = installerProxy->Uninstall(bundleName, installParam, statusReceiver);
in UninstallBundle() 209 return statusReceiver->GetResultCode();
in UninstallBundle()
|
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_permission_grant_system_test/ |
H A D | bms_permission_grant_system_test.cpp | 192 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl()); in InstallBundle() 193 EXPECT_NE(statusReceiver, nullptr); in InstallBundle() 194 bool installResult = installerProxy->Install(bundleFilePath, installParam, statusReceiver); in InstallBundle() 196 installMsg = statusReceiver->GetResultMsg(); in InstallBundle() 209 sptr<StatusReceiverImpl> statusReceiver(new (std::nothrow) StatusReceiverImpl()); in UninstallBundle() 210 EXPECT_NE(statusReceiver, nullptr); in UninstallBundle() 214 bool uninstallResult = installerProxy->Uninstall(bundleName, installParam, statusReceiver); in UninstallBundle() 216 uninstallMsg = statusReceiver->GetResultMsg(); in UninstallBundle()
|
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_compatible_system_test/ |
H A D | bms_compatible_system_test.cpp | 131 sptr<StatusReceiverImpl> statusReceiver = (new (std::nothrow) StatusReceiverImpl()); in Install() local 132 EXPECT_NE(statusReceiver, nullptr); in Install() 133 installerProxy->Install(bundleFilePath, installParam, statusReceiver); in Install() 134 installMessage = statusReceiver->GetResultMsg(); in Install() 149 sptr<StatusReceiverImpl> statusReceiver = (new (std::nothrow) StatusReceiverImpl()); in Install() local 150 EXPECT_NE(statusReceiver, nullptr); in Install() 151 installerProxy->Install(bundleFilePaths, installParam, statusReceiver); in Install() 152 installMessage = statusReceiver->GetResultMsg(); in Install() 170 sptr<StatusReceiverImpl> statusReceiver = (new (std::nothrow) StatusReceiverImpl()); in Uninstall() local 171 EXPECT_NE(statusReceiver, nullpt in Uninstall() [all...] |
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_uninstall_system_test/ |
H A D | bms_uninstall_system_test.cpp | 286 sptr<StatusReceiverImpl> statusReceiver = (new (std::nothrow) StatusReceiverImpl()); in Install() local 287 EXPECT_NE(statusReceiver, nullptr); in Install() 288 installerProxy->Install(bundleFilePath, installParam, statusReceiver); in Install() 289 resvec.push_back(statusReceiver->GetResultMsg()); in Install() 304 sptr<StatusReceiverImpl> statusReceiver = (new (std::nothrow) StatusReceiverImpl()); in StreamInstall() local 305 EXPECT_NE(statusReceiver, nullptr); in StreamInstall() 306 installerProxy->StreamInstall(bundleFilePaths, installParam, statusReceiver); in StreamInstall() 307 resvec.push_back(statusReceiver->GetResultMsg()); in StreamInstall() 325 sptr<StatusReceiverImpl> statusReceiver = (new (std::nothrow) StatusReceiverImpl()); in Uninstall() local 326 EXPECT_NE(statusReceiver, nullpt in Uninstall() 348 sptr<StatusReceiverImpl> statusReceiver = (new (std::nothrow) StatusReceiverImpl()); HapUninstall() local 370 sptr<StatusReceiverImpl> statusReceiver = (new (std::nothrow) StatusReceiverImpl()); UninstallWithoutResvec() local [all...] |