Home
last modified time | relevance | path

Searched refs:targetPkg (Results 1 - 10 of 10) sorted by relevance

/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/
H A Dability_jump_interceptor.cpp69 controlRule.callerPkg.c_str(), controlRule.targetPkg.c_str()); in DoProcess()
96 controlRule.targetPkg = targetBundleName; in CheckControl()
101 if (controlRule.callerPkg.empty() || controlRule.targetPkg.empty()) { in CheckControl()
105 if (controlRule.callerPkg == controlRule.targetPkg) { in CheckControl()
136 if (CheckIfExemptByBundleName(controlRule.targetPkg, in CheckIfJumpExempt()
176 StartAbilityUtils::GetApplicationInfo(controlRule.targetPkg, userId, callerAppInfo); in LoadAppLabelInfo()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_control/
H A Dapp_jump_interceptor_manager_rdb.cpp79 rule.targetPkg = targetBundleName; in ConfirmAppJumpControlRule()
93 valuesBucket.PutString(TARGET_PKG, controlRule.targetPkg); in AddAppJumpControlRule()
119 absRdbPredicates.EqualTo(TARGET_PKG, rule.targetPkg); in DeleteAppJumpControlRule()
124 rule.callerPkg.c_str(), rule.targetPkg.c_str(), userId); in DeleteAppJumpControlRule()
193 std::string targetPkg; in GetAppJumpControlRule() local
194 ret = absSharedResultSet->GetString(TARGET_PKG_INDEX, targetPkg); in GetAppJumpControlRule()
196 LOG_W(BMS_TAG_DEFAULT, "GetString targetPkg failed, ret: %{public}d", ret); in GetAppJumpControlRule()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dapp_jump_control_rule.cpp27 targetPkg = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
36 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(targetPkg)); in Marshalling()
/foundation/ability/ability_runtime/services/abilitymgr/include/utils/
H A Dability_util.h191 std::string &targetPkg) in CheckJumpInterceptorWant()
198 targetPkg = targetWant.GetElement().GetBundleName(); in CheckJumpInterceptorWant()
199 return !callerPkg.empty() && !targetPkg.empty(); in CheckJumpInterceptorWant()
202 [[maybe_unused]] static bool AddAbilityJumpRuleToBms(const std::string &callerPkg, const std::string &targetPkg, in AddAbilityJumpRuleToBms() argument
205 if (callerPkg.empty() || targetPkg.empty()) { in AddAbilityJumpRuleToBms()
219 int ret = IN_PROCESS_CALL(appControlMgr->ConfirmAppJumpControlRule(callerPkg, targetPkg, userId)); in AddAbilityJumpRuleToBms()
190 CheckJumpInterceptorWant(const Want &targetWant, std::string &callerPkg, std::string &targetPkg) CheckJumpInterceptorWant() argument
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dapp_jump_control_rule.h33 std::string targetPkg; member
/foundation/ability/ability_runtime/services/abilitymgr/include/
H A Dability_record.h1173 bool GrantPermissionToShell(const std::vector<std::string> &uriVec, uint32_t flag, std::string targetPkg);
/foundation/ability/ability_runtime/test/unittest/ability_interceptor_test/
H A Dability_interceptor_test.cpp691 controlRule.targetPkg = "interceptor_callerBundleName"; in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_app_control_test/
H A Dbms_bundle_app_control_test.cpp1329 controlRule.targetPkg = TARGET_BUNDLE_NAME; in HWTEST_F()
1349 controlRule.targetPkg = TARGET_BUNDLE_NAME; in HWTEST_F()
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dability_record.cpp3330 std::string targetPkg) in GrantPermissionToShell()
3345 auto ret = IN_PROCESS_CALL(UriPermissionManagerClient::GetInstance().GrantUriPermission(uri, flag, targetPkg, in GrantPermissionToShell()
3329 GrantPermissionToShell(const std::vector<std::string> &strUriVec, uint32_t flag, std::string targetPkg) GrantPermissionToShell() argument
H A Dability_manager_service.cpp791 std::string targetPkg; in StartAbilityAsCallerDetails() local
792 if (AbilityUtil::CheckJumpInterceptorWant(newWant, callerPkg, targetPkg)) { in StartAbilityAsCallerDetails()
794 "call from interceptor dialog, callerPkg:%{public}s, targetPkg:%{public}s", in StartAbilityAsCallerDetails()
795 callerPkg.c_str(), targetPkg.c_str()); in StartAbilityAsCallerDetails()
796 AbilityUtil::AddAbilityJumpRuleToBms(callerPkg, targetPkg, GetUserId()); in StartAbilityAsCallerDetails()

Completed in 34 milliseconds