/foundation/ability/ability_base/test/unittest/want/ |
H A D | extra_params_test.cpp | 57 string targetBundleName;
in HWTEST_F() local 59 extraParams.SetTargetBundleName(targetBundleName);
in HWTEST_F() 61 EXPECT_EQ(result, targetBundleName);
in HWTEST_F() 102 string targetBundleName;
in HWTEST_F() local 103 extraParams.SetTargetBundleName(targetBundleName);
in HWTEST_F() 125 string targetBundleName = "TargetBundleName";
in HWTEST_F() local 128 ExtraParams extraParams(devType, targetBundleName, description, jsonParams);
in HWTEST_F() 132 EXPECT_EQ(result, targetBundleName);
in HWTEST_F()
|
/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/ |
H A D | uri_permission_impl_test.cpp | 74 std::string targetBundleName = "name2";
in HWTEST_F() local 75 upms->GrantUriPermission(uri, flag, targetBundleName);
in HWTEST_F() 92 std::string targetBundleName = "name2";
in HWTEST_F() local 93 upms->GrantUriPermission(uri, flag, targetBundleName);
in HWTEST_F() 111 std::string targetBundleName = "name2";
in HWTEST_F() local 112 upms->GrantUriPermission(uri, flag, targetBundleName);
in HWTEST_F() 130 std::string targetBundleName = "name2";
in HWTEST_F() local 133 upms->GrantUriPermission(uri, flag, targetBundleName);
in HWTEST_F() 152 std::string targetBundleName = "name2";
in HWTEST_F() local 160 upms->GrantUriPermission(uri, tmpFlag, targetBundleName);
in HWTEST_F() 178 std::string targetBundleName = "name2"; HWTEST_F() local 205 std::string targetBundleName = "name2"; HWTEST_F() local 232 std::string targetBundleName = "name1001"; HWTEST_F() local 295 std::string targetBundleName = "com.example.testB1002"; HWTEST_F() local 326 std::string targetBundleName = "com.example.testB1003"; HWTEST_F() local 353 std::string targetBundleName = "com.example.testB1003"; HWTEST_F() local 705 std::string targetBundleName = "com.example.app1002"; HWTEST_F() local 728 std::string targetBundleName = "com.example.app1002"; HWTEST_F() local 752 std::string targetBundleName = "com.example.invalid"; HWTEST_F() local 776 std::string targetBundleName = "com.example.app1002"; HWTEST_F() local 800 std::string targetBundleName = "com.example.app1002"; HWTEST_F() local 826 std::string targetBundleName = "com.example.app1002"; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/ |
H A D | bundle_resource_callback.cpp | 152 std::string targetBundleName = bundleName; in OnOverlayStatusChanged() local 153 manager->GetTargetBundleName(bundleName, targetBundleName); in OnOverlayStatusChanged() 154 APP_LOGI("bundleName:%{public}s, targetBundleName:%{public}s overlay changed", bundleName.c_str(), in OnOverlayStatusChanged() 155 targetBundleName.c_str()); in OnOverlayStatusChanged() 156 if (!manager->DeleteResourceInfo(targetBundleName)) { in OnOverlayStatusChanged() 157 APP_LOGW("delete resource failed %{public}s", targetBundleName.c_str()); in OnOverlayStatusChanged() 160 if (!manager->AddResourceInfoByBundleName(targetBundleName, userId)) { in OnOverlayStatusChanged() 161 APP_LOGE("add resource failed %{public}s", targetBundleName.c_str()); in OnOverlayStatusChanged() 164 APP_LOGI("end, targetBundleName:%{public}s, isEnabled:%{public}d, userId:%{public}d", in OnOverlayStatusChanged() 165 targetBundleName in OnOverlayStatusChanged() [all...] |
/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | extra_params.cpp | 79 * {@code targetBundleName}, and {@code description}. 85 * @param targetBundleName Indicates the bundle name of the target application where the ability will be migrated. 93 ExtraParams::ExtraParams(const std::vector<string> &devType, const string &targetBundleName, const string &description, in ExtraParams() argument 97 targetBundleName_ = targetBundleName; in ExtraParams() 138 * @param targetBundleName Indicates the bundle name of the target application to set. 142 void ExtraParams::SetTargetBundleName(const string &targetBundleName) in SetTargetBundleName() argument 144 targetBundleName_ = targetBundleName; in SetTargetBundleName() 216 // targetBundleName in Marshalling() 241 // targetBundleName in Unmarshalling() 242 string targetBundleName in Unmarshalling() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/overlay/ |
H A D | bundle_overlay_manager.cpp | 66 ErrCode BundleOverlayManager::GetOverlayBundleInfoForTarget(const std::string &targetBundleName,
in GetOverlayBundleInfoForTarget() argument 70 if (targetBundleName.empty() || userId == Constants::INVALID_USERID) {
in GetOverlayBundleInfoForTarget() 75 return OverlayDataMgr::GetInstance()->GetOverlayBundleInfoForTarget(targetBundleName, overlayBundleInfo, userId);
in GetOverlayBundleInfoForTarget() 78 ErrCode BundleOverlayManager::GetOverlayModuleInfoForTarget(const std::string &targetBundleName,
in GetOverlayModuleInfoForTarget() argument 82 if (targetBundleName.empty() || userId == Constants::INVALID_USERID) {
in GetOverlayModuleInfoForTarget() 87 return OverlayDataMgr::GetInstance()->GetOverlayModuleInfoForTarget(targetBundleName, targetModuleName,
in GetOverlayModuleInfoForTarget()
|
H A D | bundle_overlay_manager_host_impl.cpp | 64 APP_LOGE("no permission to query overlay info of targetBundleName %{public}s", bundleName.c_str());
in GetAllOverlayModuleInfo() 87 APP_LOGE("no permission to query overlay info of targetBundleName %{public}s", bundleName.c_str());
in GetOverlayModuleInfo() 185 ErrCode OverlayManagerHostImpl::GetOverlayBundleInfoForTarget(const std::string &targetBundleName,
in GetOverlayBundleInfoForTarget() argument 188 APP_LOGD("start to get target overlay bundleInfo of bundle %{public}s", targetBundleName.c_str());
in GetOverlayBundleInfoForTarget() 191 if (targetBundleName.empty()) {
in GetOverlayBundleInfoForTarget() 201 APP_LOGE("no permission to query overlay info of targetBundleName %{public}s", targetBundleName.c_str());
in GetOverlayBundleInfoForTarget() 205 GetOverlayBundleInfoForTarget(targetBundleName, overlayBundleInfo, userId);
in GetOverlayBundleInfoForTarget() 208 ErrCode OverlayManagerHostImpl::GetOverlayModuleInfoForTarget(const std::string &targetBundleName,
in GetOverlayModuleInfoForTarget() argument 212 targetBundleName in GetOverlayModuleInfoForTarget() [all...] |
H A D | bundle_overlay_data_manager.cpp | 236 const auto &targetBundleName = oldInfo.GetTargetBundleName();
in RemoveOverlayModuleConnection() local 237 if (!dataMgr_->QueryOverlayInnerBundleInfo(targetBundleName, targetInnerBundleInfo)) {
in RemoveOverlayModuleConnection() 238 APP_LOGW("no bundle with bundleName %{public}s installed", targetBundleName.c_str());
in RemoveOverlayModuleConnection() 251 dataMgr_->SaveOverlayInfo(targetBundleName, targetInnerBundleInfo);
in RemoveOverlayModuleConnection() 507 ErrCode OverlayDataMgr::GetOverlayBundleInfoForTarget(const std::string &targetBundleName,
in GetOverlayBundleInfoForTarget() argument 515 if (!dataMgr_->QueryOverlayInnerBundleInfo(targetBundleName, targetInnerBundleInfo)) {
in GetOverlayBundleInfoForTarget() 516 APP_LOGW("target bundle is not existed %{public}s", targetBundleName.c_str());
in GetOverlayBundleInfoForTarget() 521 APP_LOGW("the bundle %{public}s is not installed at user %{public}d", targetBundleName.c_str(), userId);
in GetOverlayBundleInfoForTarget() 532 ErrCode OverlayDataMgr::GetOverlayModuleInfoForTarget(const std::string &targetBundleName,
in GetOverlayModuleInfoForTarget() argument 540 if (!dataMgr_->QueryOverlayInnerBundleInfo(targetBundleName, targetInnerBundleInf in GetOverlayModuleInfoForTarget() 776 std::string targetBundleName = innerBundleInfo.GetTargetBundleName(); AddOverlayModuleStates() local [all...] |
/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/ |
H A D | extension_connection_observer.cpp | 57 data.callerName.c_str(), data.callerPid, data.callerUid, data.targetBundleName.c_str(), in OnDlpAbilityOpened() 66 request.bundleName = data.targetBundleName; in OnDlpAbilityOpened() 70 {data.targetPid, data.targetUid, data.targetBundleName}, in OnDlpAbilityOpened() 77 data.callerName.c_str(), data.callerPid, data.callerUid, data.targetBundleName.c_str(), in OnDlpAbilityClosed() 86 request.bundleName = data.targetBundleName; in OnDlpAbilityClosed() 90 {data.targetPid, data.targetUid, data.targetBundleName}, in OnDlpAbilityClosed()
|
/foundation/ability/ability_runtime/interfaces/inner_api/uri_permission/src/ |
H A D | uri_permission_manager_client.cpp | 38 const std::string targetBundleName, int32_t appIndex, uint32_t initiatorTokenId, int32_t abilityId) in GrantUriPermission() 40 TAG_LOGD(AAFwkTag::URIPERMMGR, "targetBundleName:%{public}s", targetBundleName.c_str()); in GrantUriPermission() 43 return uriPermMgr->GrantUriPermission(uri, flag, targetBundleName, appIndex, initiatorTokenId, abilityId); in GrantUriPermission() 49 const std::string targetBundleName, int32_t appIndex, uint32_t initiatorTokenId, int32_t abilityId) in GrantUriPermission() 51 TAG_LOGD(AAFwkTag::URIPERMMGR, "targetBundleName:%{public}s, uriVecSize:%{public}zu", targetBundleName.c_str(), in GrantUriPermission() 59 return uriPermMgr->GrantUriPermission(uriVec, flag, targetBundleName, appIndex, initiatorTokenId, abilityId); in GrantUriPermission() 65 const std::string &targetBundleName, int32_t appIndex, uint32_t initiatorTokenId, int32_t abilityId) in GrantUriPermissionPrivileged() 67 TAG_LOGD(AAFwkTag::URIPERMMGR, "targetBundleName in GrantUriPermissionPrivileged() 37 GrantUriPermission(const Uri &uri, unsigned int flag, const std::string targetBundleName, int32_t appIndex, uint32_t initiatorTokenId, int32_t abilityId) GrantUriPermission() argument 48 GrantUriPermission(const std::vector<Uri> &uriVec, unsigned int flag, const std::string targetBundleName, int32_t appIndex, uint32_t initiatorTokenId, int32_t abilityId) GrantUriPermission() argument 64 GrantUriPermissionPrivileged(const std::vector<Uri> &uriVec, uint32_t flag, const std::string &targetBundleName, int32_t appIndex, uint32_t initiatorTokenId, int32_t abilityId) GrantUriPermissionPrivileged() argument [all...] |
H A D | uri_permission_manager_stub.cpp | 89 auto targetBundleName = data.ReadString(); in HandleGrantUriPermission() local 93 int result = GrantUriPermission(*uri, flag, targetBundleName, appIndex, initiatorTokenId, abilityId); in HandleGrantUriPermission() 115 auto targetBundleName = data.ReadString(); in HandleBatchGrantUriPermission() local 119 int result = GrantUriPermission(uriVec, flag, targetBundleName, appIndex, initiatorTokenId, abilityId); in HandleBatchGrantUriPermission() 141 auto targetBundleName = data.ReadString(); in HandleGrantUriPermissionPrivileged() local 145 int32_t result = GrantUriPermissionPrivileged(uriVec, flag, targetBundleName, appIndex, in HandleGrantUriPermissionPrivileged()
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | page_url_checker_ohos.cpp | 269 std::string targetBundleName; in NotifyPageShow() local 271 GetTargetPageInfo(pageName, targetBundleName, targetModuleName); in NotifyPageShow() 277 pageStateData.targetBundleName = targetBundleName; in NotifyPageShow() 285 std::string targetBundleName; in NotifyPageHide() local 287 GetTargetPageInfo(pageName, targetBundleName, targetModuleName); in NotifyPageHide() 293 pageStateData.targetBundleName = targetBundleName; in NotifyPageHide() 299 void PageUrlCheckerOhos::GetTargetPageInfo(const std::string& pageName, std::string& targetBundleName, in GetTargetPageInfo() argument 304 targetBundleName in GetTargetPageInfo() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/app_control/ |
H A D | app_jump_interceptor_manager_db_interface.h | 34 virtual ErrCode ConfirmAppJumpControlRule(const std::string &callerBundleName, const std::string &targetBundleName, 39 virtual ErrCode DeleteRuleByTargetBundleName(const std::string &targetBundleName, int32_t userId) = 0; 40 virtual ErrCode GetAppJumpControlRule(const std::string &callerBundleName, const std::string &targetBundleName,
|
H A D | app_jump_interceptor_manager_rdb.h | 33 const std::string &targetBundleName, int32_t userId) override; 38 virtual ErrCode DeleteRuleByTargetBundleName(const std::string &targetBundleName, int32_t userId) override; 39 virtual ErrCode GetAppJumpControlRule(const std::string &callerBundleName, const std::string &targetBundleName,
|
/foundation/ability/ability_runtime/interfaces/inner_api/uri_permission/include/ |
H A D | uri_permission_manager_interface.h | 30 * @brief Authorize the uri permission to targetBundleName. 34 * @param targetBundleName The user of uri. 37 virtual int GrantUriPermission(const Uri &uri, unsigned int flag, const std::string targetBundleName, 41 * @brief Authorize the uri permission to targetBundleName. 45 * @param targetBundleName The user of uri. 49 const std::string targetBundleName, int32_t appIndex = 0, uint32_t initiatorTokenId = 0, 53 * @brief Authorize the uri permission to targetBundleName. 57 * @param targetBundleName The user of uri. 62 const std::string &targetBundleName, int32_t appIndex, uint32_t initiatorTokenId,
|
H A D | uri_permission_manager_client.h | 33 * @brief Authorize the uri permission of to targetBundleName. 37 * @param targetBundleName The user of uri. 39 int GrantUriPermission(const Uri &uri, unsigned int flag, const std::string targetBundleName, int32_t appIndex = 0, 43 * @brief Authorize the uri permission of to targetBundleName. 47 * @param targetBundleName The user of uri. 49 int GrantUriPermission(const std::vector<Uri> &uriVec, unsigned int flag, const std::string targetBundleName, 53 * @brief Authorize the uri permission to targetBundleName. 57 * @param targetBundleName The user of uri. 62 const std::string &targetBundleName, int32_t appIndex = 0, uint32_t initiatorTokenId = 0,
|
H A D | uri_permission_manager_proxy.h | 31 const std::string targetBundleName, int32_t appIndex = 0, uint32_t initiatorTokenId = 0, 35 const std::string targetBundleName, int32_t appIndex = 0, uint32_t initiatorTokenId = 0, 39 const std::string &targetBundleName, int32_t appIndex, uint32_t initiatorTokenId,
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_control/ |
H A D | app_jump_interceptor_manager_rdb.cpp | 74 const std::string &targetBundleName, int32_t userId) in ConfirmAppJumpControlRule() 79 rule.targetPkg = targetBundleName; in ConfirmAppJumpControlRule() 145 ErrCode AppJumpInterceptorManagerRdb::DeleteRuleByTargetBundleName(const std::string &targetBundleName, int32_t userId) in DeleteRuleByTargetBundleName() argument 148 absRdbPredicates.EqualTo(TARGET_PKG, targetBundleName); in DeleteRuleByTargetBundleName() 152 LOG_E(BMS_TAG_DEFAULT, "DeleteRuleByTargetBundleName targetBundleName:%{public}s, failed", in DeleteRuleByTargetBundleName() 153 targetBundleName.c_str()); in DeleteRuleByTargetBundleName() 160 const std::string &targetBundleName, int32_t userId, AppJumpControlRule &controlRule) in GetAppJumpControlRule() 164 absRdbPredicates.EqualTo(TARGET_PKG, targetBundleName); in GetAppJumpControlRule() 73 ConfirmAppJumpControlRule(const std::string &callerBundleName, const std::string &targetBundleName, int32_t userId) ConfirmAppJumpControlRule() argument 159 GetAppJumpControlRule(const std::string &callerBundleName, const std::string &targetBundleName, int32_t userId, AppJumpControlRule &controlRule) GetAppJumpControlRule() argument
|
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/ipc/ |
H A D | cloud_sync_service.cpp | 344 static int32_t GetTargetBundleName(string &targetBundleName, string &callerBundleName) in GetTargetBundleName() argument 349 if (targetBundleName == "") { in GetTargetBundleName() 350 targetBundleName = callerBundleName; in GetTargetBundleName() 352 if (targetBundleName != callerBundleName && in GetTargetBundleName() 362 string targetBundleName = bundleName; in UnRegisterCallbackInner() local 364 int32_t ret = GetTargetBundleName(targetBundleName, callerBundleName); in UnRegisterCallbackInner() 369 dataSyncManager_->UnRegisterCloudSyncCallback(targetBundleName, callerBundleName); in UnRegisterCallbackInner() 380 string targetBundleName = bundleName; in RegisterCallbackInner() local 382 int32_t ret = GetTargetBundleName(targetBundleName, callerBundleName); in RegisterCallbackInner() 390 dataSyncManager_->RegisterCloudSyncCallback(targetBundleName, callerBundleNam in RegisterCallbackInner() 396 string targetBundleName = bundleName; StartSyncInner() local 420 string targetBundleName = bundleName; StopSyncInner() local 433 string targetBundleName = bundleName; ResetCursor() local 446 string targetBundleName = bundleName; GetSyncTimeInner() local [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/deleterulebytargetbundlename_fuzzer/ |
H A D | deleterulebytargetbundlename_fuzzer.cpp | 29 std::string targetBundleName; in DoSomethingInterestingWithMyAPI() local 30 appControl.DeleteRuleByTargetBundleName(targetBundleName, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/getappjumpcontrolrule_fuzzer/ |
H A D | getappjumpcontrolrule_fuzzer.cpp | 30 std::string targetBundleName; in DoSomethingInterestingWithMyAPI() local 33 callerBundleName, targetBundleName, reinterpret_cast<uintptr_t>(data), controlRules); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/overlaymgrhostimpl_fuzzer/ |
H A D | overlaymgrhostimpl_fuzzer.cpp | 42 std::string targetBundleName(data, size); in DoSomethingInterestingWithMyAPI() 44 overlayManagerHostImpl.GetOverlayBundleInfoForTarget(targetBundleName, overlayBundleInfos, USERID); in DoSomethingInterestingWithMyAPI() 45 overlayManagerHostImpl.GetOverlayModuleInfoForTarget(targetBundleName, in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleoverlaymgr_fuzzer/ |
H A D | bundleoverlaymgr_fuzzer.cpp | 41 std::string targetBundleName(data, size); in DoSomethingInterestingWithMyAPI() 43 manager.GetOverlayBundleInfoForTarget(targetBundleName, overlayBundleInfos, USERID); in DoSomethingInterestingWithMyAPI() 45 manager.GetOverlayModuleInfoForTarget(targetBundleName, targetModuleName, overlayModuleInfos, USERID); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/ |
H A D | page_state_data.cpp | 29 targetBundleName = parcel.ReadString(); in ReadFromParcel() 41 parcel.WriteString(targetBundleName) && in Marshalling()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/overlay/ |
H A D | bundle_overlay_manager.h | 38 ErrCode GetOverlayBundleInfoForTarget(const std::string &targetBundleName,
41 ErrCode GetOverlayModuleInfoForTarget(const std::string &targetBundleName, const std::string &targetModuleName,
|
/foundation/ability/ability_runtime/services/uripermmgr/src/ |
H A D | uri_permission_utils.cpp | 51 std::string targetBundleName; in SendShareUnPrivilegeUriEvent() local 52 if (!GetBundleNameByTokenId(targetTokenId, targetBundleName)) { in SendShareUnPrivilegeUriEvent() 57 eventInfo.bundleName = targetBundleName; in SendShareUnPrivilegeUriEvent() 92 std::string targetBundleName; in CheckAndCreateEventInfo() local 93 if (!GetBundleNameByTokenId(targetTokenId, targetBundleName)) { in CheckAndCreateEventInfo() 94 TAG_LOGD(AAFwkTag::URIPERMMGR, "get targetBundleName failed"); in CheckAndCreateEventInfo() 97 if (CheckIsSystemAppByBundleName(targetBundleName)) { in CheckAndCreateEventInfo() 102 eventInfo.bundleName = targetBundleName; in CheckAndCreateEventInfo()
|