Home
last modified time | relevance | path

Searched refs:installResult (Results 1 – 25 of 42) sorted by relevance

12

/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_hsp_test/
Dbms_bundle_hsp_test.cpp223 ErrCode installResult = InstallBundle(MODULE_FILE_PATH + HSP_NAME_C); variable
224 EXPECT_EQ(installResult, ERR_OK);
236 ErrCode installResult = InstallBundle(MODULE_FILE_PATH + HAP_NAME_ENTRY); variable
237 EXPECT_NE(installResult, ERR_OK);
238 installResult = InstallBundle(MODULE_FILE_PATH + HSP_NAME_A);
239 EXPECT_NE(installResult, ERR_OK);
240 installResult = InstallBundle(MODULE_FILE_PATH + HSP_NAME_B);
241 EXPECT_NE(installResult, ERR_OK);
252 ErrCode installResult = InstallBundle(MODULE_FILE_PATH + HSP_NAME_C); variable
253 EXPECT_EQ(installResult, ERR_OK);
[all …]
Dbms_bundle_shared_library_install_test.cpp235 ErrCode installResult = InstallBundle(bundleFilePaths, sharedBundlePaths); variable
236 EXPECT_EQ(installResult, ERR_OK);
250 ErrCode installResult = InstallBundle(bundleFilePaths, sharedBundlePaths); variable
251 EXPECT_EQ(installResult, ERR_APPEXECFWK_INSTALL_SHARE_APP_LIBRARY_NOT_ALLOWED);
263 ErrCode installResult = InstallBundle(bundleFilePaths, sharedBundlePaths); variable
264 EXPECT_EQ(installResult, ERR_OK);
267 installResult = InstallBundle(bundleFilePaths, sharedBundlePaths);
268 EXPECT_EQ(installResult, ERR_APPEXECFWK_INSTALL_FILE_PATH_INVALID);
283 ErrCode installResult = InstallBundle(bundleFilePaths, sharedBundlePaths); variable
284 EXPECT_EQ(installResult, ERR_OK);
[all …]
Dbms_bundle_shared_library_uninstall_test.cpp197 ErrCode installResult = InstallBundle(bundleFilePaths, sharedBundleDirPaths); variable
198 EXPECT_EQ(installResult, ERR_OK);
216 ErrCode installResult = InstallBundle(bundleFilePaths, sharedBundlePaths); variable
217 EXPECT_EQ(installResult, ERR_OK);
219 installResult = InstallBundle(bundleFilePaths, sharedBundlePaths);
220 EXPECT_EQ(installResult, ERR_OK);
237 ErrCode installResult = InstallBundle(bundleFilePaths, sharedBundlePaths); variable
238 EXPECT_EQ(installResult, ERR_OK);
241 installResult = InstallBundle(bundleFilePaths, sharedBundlePaths);
242 EXPECT_EQ(installResult, ERR_OK);
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
Dbundle_common_event_mgr.cpp56 void BundleCommonEventMgr::NotifyBundleStatus(const NotifyBundleEvents &installResult, in NotifyBundleStatus() argument
60 …static_cast<int32_t>(installResult.type), installResult.resultCode, installResult.modulePackage.c_… in NotifyBundleStatus()
61 installResult.abilityName.c_str(), installResult.bundleName.c_str()); in NotifyBundleStatus()
63 std::string eventData = GetCommonEventData(installResult.type); in NotifyBundleStatus()
68 element.SetBundleName(installResult.bundleName); in NotifyBundleStatus()
69 element.SetModuleName(installResult.modulePackage); in NotifyBundleStatus()
70 element.SetAbilityName(installResult.abilityName); in NotifyBundleStatus()
72 want.SetParam(Constants::UID, installResult.uid); in NotifyBundleStatus()
73 want.SetParam(Constants::USER_ID, BundleUtil::GetUserIdByUid(installResult.uid)); in NotifyBundleStatus()
74 want.SetParam(Constants::ABILITY_NAME, installResult.abilityName); in NotifyBundleStatus()
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_updater_test/
Dbms_bundle_updater_test.cpp286 ErrCode installResult = InstallBundle(BUNDLE_FILE_DIR + V1_BUNDLE); variable
287 EXPECT_EQ(installResult, ERR_OK);
298 installResult = UninstallBundle(BUNDLE_NAME);
299 EXPECT_EQ(installResult, ERR_OK);
310 ErrCode installResult = InstallBundle(BUNDLE_FILE_DIR + V2_BUNDLE); variable
311 EXPECT_EQ(installResult, ERR_OK);
320 installResult = UninstallBundle(BUNDLE_NAME);
321 EXPECT_EQ(installResult, ERR_OK);
332 ErrCode installResult = InstallBundle(BUNDLE_FILE_DIR + V1_BUNDLE); variable
333 EXPECT_EQ(installResult, ERR_OK);
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_accesstokenid_test/
Dbms_bundle_accesstokenid_test.cpp241 ErrCode installResult = InstallBundle(HAP_FILE_PATH1); variable
242 EXPECT_EQ(installResult, ERR_OK);
263 ErrCode installResult = InstallBundle(WRONG_HAP_FILE_PATH); variable
264 EXPECT_NE(installResult, ERR_OK);
300 ErrCode installResult = InstallBundle(HAP_FILE_PATH1); // system app variable
301 EXPECT_EQ(installResult, ERR_OK);
328 ErrCode installResult = InstallBundle(HAP_FILE_PATH1); variable
329 EXPECT_EQ(installResult, ERR_OK);
335 installResult = InstallBundle(HAP_FILE_PATH3);
336 EXPECT_EQ(installResult, ERR_OK);
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_dependencies_test/
Dbms_bundle_dependencies_test.cpp221 ErrCode installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_ENTRY_C); variable
222 EXPECT_EQ(installResult, ERR_OK);
243 ErrCode installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_ENTRY_C); variable
244 EXPECT_EQ(installResult, ERR_OK);
245 installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_ENTRY_A);
246 EXPECT_EQ(installResult, ERR_OK);
270 ErrCode installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_ENTRY_C); variable
271 EXPECT_EQ(installResult, ERR_OK);
272 installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_ENTRY_A);
273 EXPECT_EQ(installResult, ERR_OK);
[all …]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/free_install/
Dinstall_result.cpp112 void to_json(nlohmann::json &jsonObject, const InstallResult &installResult) in to_json() argument
115 {JSON_KEY_INSTALLRESULT_VERSION, installResult.version}, in to_json()
116 {JSON_KEY_INSTALLRESULT_RESULT, installResult.result}, in to_json()
117 {JSON_KEY_INSTALLRESULT_PROGRESS, installResult.progress} in to_json()
121 void from_json(const nlohmann::json &jsonObject, InstallResult &installResult) in from_json() argument
128 installResult.version, in from_json()
136 installResult.result, in from_json()
144 installResult.progress, in from_json()
239 InstallResult *installResult = new (std::nothrow) InstallResult(); in Unmarshalling() local
240 if (installResult && !installResult->ReadFromParcel(parcel)) { in Unmarshalling()
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_free_install_test/
Dbms_bundle_free_install_base_test.cpp137 Result installResult; variable
138 installResult.transactId = TRANSACT_ID;
139 installResult.resultMsg = RESULT_MSG;
140 installResult.retCode = VERSIONID;
145 to_json(jsonObj, installResult);
158 InstallResult installResult; variable
159 installResult.version = VERSION;
164 to_json(jsonObj, installResult);
177 Result installResult; variable
178 installResult.transactId = TRANSACT_ID;
[all …]
Dbms_bundle_free_install_test.cpp781 std::string installResult = "{\"version\":\"1.0.0\", \"result\":{\"transactId\":\"1\"," variable
783 connectAbilityMgr->OnServiceCenterCall(installResult);
784 EXPECT_NE(installResult, "");
801 std::string installResult = "{\"version\":\"1.0.0\", \"result\":{\"transactId\":\"1\"," variable
803 connectAbilityMgr->OnServiceCenterCall(installResult);
807 EXPECT_NE(installResult, "");
822 std::string installResult = "{\"version\":\"1.0.0\", \"result\":{\"transactId\":\"1\"," variable
824 connectAbilityMgr->OnServiceCenterCall(installResult);
825 EXPECT_NE(installResult, "");
911 bool installResult = connectAbilityMgr->ProcessPreloadCheck(targetAbilityInfo); variable
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/
Dbms_bundle_permission_grant_test.cpp169 ErrCode installResult = InstallBundle(HAP_FILE_PATH + "bmsGrantPermission1.hap"); variable
170 EXPECT_EQ(installResult, ERR_OK);
185 ErrCode installResult = InstallBundle(HAP_FILE_PATH + "bmsGrantPermission3.hap"); variable
186 EXPECT_EQ(installResult, ERR_OK);
201 ErrCode installResult = InstallBundle(HAP_FILE_PATH + "bmsGrantPermission4.hap"); variable
202 EXPECT_EQ(installResult, ERR_OK);
217 ErrCode installResult = InstallBundle(HAP_FILE_PATH + "bmsGrantPermission6.hap"); variable
218 EXPECT_EQ(installResult, ERR_OK);
233 ErrCode installResult = InstallBundle(HAP_FILE_PATH + "bmsGrantPermission7.hap"); variable
234 EXPECT_EQ(installResult, ERR_OK);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_crowdtesting_test/
Dbms_bundle_crowdtesting_test.cpp208 ErrCode installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_ENTRY_C); variable
209 EXPECT_EQ(installResult, ERR_OK);
231 ErrCode installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_FIRST_RIGHT); variable
232 EXPECT_EQ(installResult, ERR_OK);
254 ErrCode installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_FIRST_RIGHT, CROWDTEST_DEADLINE); variable
255 EXPECT_EQ(installResult, ERR_OK);
278 ErrCode installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_ENTRY_C, CROWDTEST_DEADLINE); variable
279 EXPECT_EQ(installResult, ERR_OK);
302 ErrCode installResult = InstallBundle(HAP_FILE_PATH + HAP_NAME_ENTRY_C, CROWDTEST_DEADLINE); variable
303 EXPECT_EQ(installResult, ERR_OK);
[all …]
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_uninstall_system_test/
Dbms_uninstall_system_test.cpp393 std::string installResult = commonTool.VectorToStr(resvec); variable
394 EXPECT_EQ(installResult, "Success") << "install fail!";
431 std::string installResult = commonTool.VectorToStr(resvec); variable
432 EXPECT_EQ(installResult, "Success") << "install fail!";
470 std::string installResult = commonTool.VectorToStr(resvec); variable
471 EXPECT_EQ(installResult, "Success") << "install fail!";
511 std::string installResult = commonTool.VectorToStr(resvec); variable
512 EXPECT_EQ(installResult, "Success") << "install fail!";
545 std::string installResult = commonTool.VectorToStr(resvec); variable
546 EXPECT_EQ(installResult, "Success") << "install fail!";
[all …]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/installer/
Dinstaller.cpp390 static void ConvertInstallResult(InstallResult &installResult) in ConvertInstallResult() argument
392 …APP_LOGD("ConvertInstallResult msg %{public}s, errCode is %{public}d.", installResult.resultMsg.c_… in ConvertInstallResult()
393 installResult.resultCode); in ConvertInstallResult()
396 auto iter = errCodeMap.find(installResult.resultCode); in ConvertInstallResult()
398 installResult.resultCode = iter->second; in ConvertInstallResult()
401 installResult.resultCode = ERROR_BUNDLE_SERVICE_EXCEPTION; in ConvertInstallResult()
815 InstallResult &installResult = asyncCallbackInfo->installResult; in InstallExecuter() local
817installResult.resultCode = static_cast<int32_t>(IStatusReceiver::ERR_INSTALL_FILE_PATH_INVALID); in InstallExecuter()
823installResult.resultCode = static_cast<int32_t>(IStatusReceiver::ERR_INSTALL_INTERNAL_ERROR); in InstallExecuter()
831installResult.resultCode = static_cast<int32_t>(IStatusReceiver::ERR_INSTALL_INTERNAL_ERROR); in InstallExecuter()
[all …]
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/acts_bms_kit_system_test/
Dacts_bms_kit_system_test.cpp508 std::string installResult = commonTool.VectorToStr(resvec); variable
509 EXPECT_EQ(installResult, "Success") << "install fail!";
542 std::string installResult = commonTool.VectorToStr(resvec); variable
543 EXPECT_EQ(installResult, "Success") << "install fail!";
577 std::string installResult = commonTool.VectorToStr(resvec); variable
578 EXPECT_EQ(installResult, "Failure[ERR_INSTALL_INVALID_HAP_NAME]");
618 std::string installResult = commonTool.VectorToStr(resvec); variable
619 EXPECT_EQ(installResult, "Success") << "install fail!";
697 std::string installResult = commonTool.VectorToStr(resvec); variable
698 EXPECT_EQ(installResult, "Success") << "install fail!";
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/free_install/
Dservice_center_status_callback.cpp26 int32_t ServiceCenterStatusCallback::OnInstallFinished(std::string installResult) in OnInstallFinished() argument
34 server->OnServiceCenterCall(installResult); in OnInstallFinished()
Dbundle_connect_ability_mgr.cpp566 InstallResult installResult; in OnServiceCenterCall() local
567 if (!ParseInfoFromJsonStr(installResultStr.c_str(), installResult)) { in OnServiceCenterCall()
571 APP_LOGI("OnServiceCenterCall, retCode = %{public}d", installResult.result.retCode); in OnServiceCenterCall()
574 auto node = freeInstallParamsMap_.find(installResult.result.transactId); in OnServiceCenterCall()
579 serialQueue_->CancelDelayTask(installResult.result.transactId); in OnServiceCenterCall()
582 if (installResult.result.retCode == ServiceCenterResultCode::FREE_INSTALL_DOWNLOADING) { in OnServiceCenterCall()
584 installResult.progress.downloadSize, installResult.progress.totalSize); in OnServiceCenterCall()
589 installResult.result.retCode != ServiceCenterResultCode::FREE_INSTALL_OK) { in OnServiceCenterCall()
591 installResult.result.retCode = ServiceCenterResultCode::FREE_INSTALL_OK; in OnServiceCenterCall()
593 SendCallBack(installResult.result.retCode, freeInstallParams.want, freeInstallParams.userId, in OnServiceCenterCall()
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/
Dbms_bundle_manager_test.cpp479 ErrCode installResult = InstallThirdPartyBundle(bundlePath); variable
480 EXPECT_EQ(installResult, ERR_OK);
509 ErrCode installResult = InstallThirdPartyBundle(bundlePath); variable
510 EXPECT_EQ(installResult, ERR_OK);
531 ErrCode installResult = InstallThirdPartyBundle(bundlePath); variable
532 EXPECT_EQ(installResult, ERR_OK);
555 ErrCode installResult = InstallThirdPartyBundle(bundlePath); variable
556 EXPECT_EQ(installResult, ERR_OK);
579 ErrCode installResult = InstallThirdPartyBundle(bundlePath); variable
580 EXPECT_EQ(installResult, ERR_OK);
[all …]
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_search_system_test/
Dbms_search_system_test.cpp199 std::string installResult = commonTool.VectorToStr(resvec); in SetUpTestCase() local
200 EXPECT_EQ(installResult, "Success") << "install bmsThirdBundle1.hap fail!"; in SetUpTestCase()
698 std::string installResult = commonTool.VectorToStr(resvec); variable
699 EXPECT_EQ(installResult, "Success");
705 installResult = commonTool.VectorToStr(resvec);
706 EXPECT_EQ(installResult, "Success");
739 std::string installResult; variable
744 installResult = commonTool.VectorToStr(resvec);
745 EXPECT_EQ(installResult, "Success") << "install fail!";
816 std::string installResult; variable
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_app_provision_info_test/
Dbms_bundle_app_provision_info_test.cpp244 ErrCode installResult = InstallBundle(HAP_FILE_PATH1); variable
245 EXPECT_EQ(installResult, ERR_OK);
271 ErrCode installResult = InstallBundle(HAP_FILE_PATH1); variable
272 EXPECT_EQ(installResult, ERR_OK);
294 ErrCode installResult = InstallBundle(HAP_FILE_PATH1); variable
295 EXPECT_EQ(installResult, ERR_OK);
1089 ErrCode installResult = InstallBundle(HAP_FILE_PATH1); variable
1090 EXPECT_EQ(installResult, ERR_OK);
1125 ErrCode installResult = InstallBundle(HAP_FILE_PATH1); variable
1126 EXPECT_EQ(installResult, ERR_OK);
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/free_install/
Di_service_center_status_callback.h35 virtual int32_t OnInstallFinished(std::string installResult) = 0;
Dservice_center_status_callback.h39 int32_t OnInstallFinished(std::string installResult);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/distributed_manager/
Dbundle_manager_callback_proxy.cpp29 int32_t BundleManagerCallbackProxy::OnQueryRpcIdFinished(const std::string &installResult) in OnQueryRpcIdFinished() argument
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/
Dbms_bundle_installer_test.cpp469 bool installResult = InstallSystemBundle(bundleFile); variable
470 EXPECT_TRUE(installResult);
491 bool installResult = InstallSystemBundle(wrongBundleName); variable
492 EXPECT_FALSE(installResult);
534 bool installResult = InstallSystemBundle(bundleFile); variable
535 EXPECT_FALSE(installResult);
612 ErrCode installResult = InstallThirdPartyBundle(bundleFile); variable
613 EXPECT_EQ(installResult, ERR_OK);
683 ErrCode installResult = InstallThirdPartyBundle(bundlePath); variable
684 EXPECT_EQ(installResult, ERR_OK);
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
Dbundle_common_event_mgr.h62 void NotifyBundleStatus(const NotifyBundleEvents &installResult,

12