/foundation/window/window_manager/window_scene/common/src/ |
H A D | session_permission.cpp | 211 std::string callingBundleName; in IsSameBundleNameAsCalling() local 212 bundleManagerServiceProxy_->GetNameForUid(uid, callingBundleName); in IsSameBundleNameAsCalling() 214 if (callingBundleName == bundleName) { in IsSameBundleNameAsCalling() 219 callingBundleName.c_str(), bundleName.c_str()); in IsSameBundleNameAsCalling() 237 std::string callingBundleName; in IsSameAppAsCalling() local 238 bundleManagerServiceProxy->GetNameForUid(uid, callingBundleName); in IsSameAppAsCalling() 239 if (callingBundleName != bundleName) { in IsSameAppAsCalling() 240 TLOGE(WmsLogTag::DEFAULT, "verify app failed, callingBundleName %{public}s, bundleName %{public}s.", in IsSameAppAsCalling() 241 callingBundleName.c_str(), bundleName.c_str()); in IsSameAppAsCalling() 248 callingBundleName, static_cas in IsSameAppAsCalling() 342 std::string callingBundleName; GetCallingBundleName() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/overlay/ |
H A D | bundle_overlay_manager_host_impl.cpp | 109 std::string callingBundleName = OverlayDataMgr::GetInstance()->GetCallingBundleName();
in GetOverlayModuleInfo() local 110 if (callingBundleName.empty()) {
in GetOverlayModuleInfo() 114 APP_LOGD("get overlay moduleInfo of bundle %{public}s", callingBundleName.c_str());
in GetOverlayModuleInfo() 115 return BundleOverlayManager::GetInstance()->GetOverlayModuleInfo(callingBundleName, moduleName, overlayModuleInfo,
in GetOverlayModuleInfo() 134 std::string callingBundleName = OverlayDataMgr::GetInstance()->GetCallingBundleName();
in GetTargetOverlayModuleInfo() local 135 if (callingBundleName.empty()) {
in GetTargetOverlayModuleInfo() 139 APP_LOGD("get target overlay moduleInfo of bundle %{public}s", callingBundleName.c_str());
in GetTargetOverlayModuleInfo() 140 return BundleOverlayManager::GetInstance()->GetOverlayModuleInfoForTarget(callingBundleName, targetModuleName,
in GetTargetOverlayModuleInfo() 251 std::string callingBundleName = OverlayDataMgr::GetInstance()->GetCallingBundleName();
in SetOverlayEnabledForSelf() local 252 if (callingBundleName in SetOverlayEnabledForSelf() [all...] |
H A D | bundle_overlay_data_manager.cpp | 721 std::string callingBundleName;
in GetCallingBundleName() local 723 return callingBundleName;
in GetCallingBundleName() 725 bool ret = dataMgr_->GetBundleNameForUid(IPCSkeleton::GetCallingUid(), callingBundleName);
in GetCallingBundleName() 726 if (!ret || callingBundleName.empty()) {
in GetCallingBundleName() 729 return callingBundleName;
in GetCallingBundleName()
|
/foundation/window/window_manager/utils/src/ |
H A D | permission.cpp | 170 std::string callingBundleName;
in CheckIsCallingBundleName() local 171 bundleManagerServiceProxy_->GetNameForUid(uid, callingBundleName);
in CheckIsCallingBundleName() 172 WLOGFI("get the bundle name:%{public}s", callingBundleName.c_str());
in CheckIsCallingBundleName() 174 std::string::size_type idx = callingBundleName.find(name);
in CheckIsCallingBundleName()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/shared/ |
H A D | shared_bundle_installer.cpp | 191 APP_LOGD("GetCallingEventInfo start, bundleName:%{public}s", eventInfo.callingBundleName.c_str()); in GetCallingEventInfo() 197 if (!dataMgr->GetBundleNameForUid(eventInfo.callingUid, eventInfo.callingBundleName)) { in GetCallingEventInfo() 199 eventInfo.callingBundleName = Constants::EMPTY_STRING; in GetCallingEventInfo() 204 if (!dataMgr->GetBundleInfo(eventInfo.callingBundleName, BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, in GetCallingEventInfo() 206 APP_LOGE("GetBundleInfo failed, bundleName: %{public}s", eventInfo.callingBundleName.c_str()); in GetCallingEventInfo()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_permission_mgr.cpp | 527 std::string callingBundleName; in VerifyPreload() local 534 auto ret = dataMgr->GetBundleNameForUid(uid, callingBundleName); in VerifyPreload() 539 return bundleName == callingBundleName || callingBundleName == SCENEBOARD_BUNDLE_NAME; in VerifyPreload() 607 std::string callingBundleName; in IsBundleSelfCalling() local 608 if (dataMgr->GetNameForUid(callingUid, callingBundleName) != ERR_OK) { in IsBundleSelfCalling() 611 LOG_D(BMS_TAG_DEFAULT, "bundleName :%{public}s, callingBundleName : %{public}s", in IsBundleSelfCalling() 612 bundleName.c_str(), callingBundleName.c_str()); in IsBundleSelfCalling() 613 if (bundleName != callingBundleName) { in IsBundleSelfCalling() 630 std::string callingBundleName; in VerifyCallingBundleSdkVersion() local [all...] |
H A D | inner_event_report.cpp | 413 EVENT_PARAM_CALLING_BUNDLE_NAME, eventInfo.callingBundleName, in InnerSendBundleInstallEvent() 434 EVENT_PARAM_CALLING_BUNDLE_NAME, eventInfo.callingBundleName, in InnerSendBundleUninstallEvent() 452 EVENT_PARAM_CALLING_BUNDLE_NAME, eventInfo.callingBundleName, in InnerSendBundleUpdateEvent() 474 EVENT_PARAM_CALLING_BUNDLE_NAME, eventInfo.callingBundleName, in InnerSendPreBundleRecoverEvent()
|
H A D | bundle_mgr_host_impl.cpp | 3448 std::string callingBundleName; in VerifyDependency() local 3449 bool ret = dataMgr->GetBundleNameForUid(IPCSkeleton::GetCallingUid(), callingBundleName); in VerifyDependency() 3456 if (!dataMgr->FetchInnerBundleInfo(callingBundleName, callingBundleInfo)) { in VerifyDependency() 3457 APP_LOGE("get %{public}s failed", callingBundleName.c_str()); in VerifyDependency() 3461 // check whether callingBundleName is dependent on sharedBundleName in VerifyDependency() 3467 APP_LOGE("%{public}s is not dependent on %{public}s", callingBundleName.c_str(), sharedBundleName.c_str()); in VerifyDependency() 3741 std::string callingBundleName; in ResetAOTCompileStatus() local 3742 ErrCode ret = dataMgr->GetNameForUid(IPCSkeleton::GetCallingUid(), callingBundleName); in ResetAOTCompileStatus() 3743 if (ret != ERR_OK || bundleName != callingBundleName) { in ResetAOTCompileStatus() 3791 std::string callingBundleName; in SetAdditionalInfo() local [all...] |
H A D | base_bundle_installer.cpp | 3937 std::string callingBundleName; in GetInstallSource() local 3938 ErrCode ret = dataMgr->GetNameForUid(sysEventInfo_.callingUid, callingBundleName); in GetInstallSource() 3943 return callingBundleName; in GetInstallSource() 4944 LOG_D(BMS_TAG_INSTALLER, "GetCallingEventInfo start, bundleName:%{public}s", eventInfo.callingBundleName.c_str()); in GetCallingEventInfo() 4949 if (!dataMgr_->GetBundleNameForUid(eventInfo.callingUid, eventInfo.callingBundleName)) { in GetCallingEventInfo() 4951 eventInfo.callingBundleName = Constants::EMPTY_STRING; in GetCallingEventInfo() 4955 if (!dataMgr_->GetBundleInfo(eventInfo.callingBundleName, BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, in GetCallingEventInfo() 4957 LOG_E(BMS_TAG_INSTALLER, "GetBundleInfo failed, bundleName: %{public}s", eventInfo.callingBundleName.c_str()); in GetCallingEventInfo()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | event_report.h | 104 std::string callingBundleName; member 174 callingBundleName.clear(); in Reset()
|
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_ability_common/ |
H A D | feature_ability_common.h | 116 std::string callingBundleName; member
|
H A D | napi_context.cpp | 1958 callingBundleCB->callingBundleName = callingBundleCB->cbBase.ability->GetCallingBundle(); in GetCallingBundleExecuteCB() 1970 NAPI_CALL(env, napi_create_string_utf8(env, callingBundleCB->callingBundleName.c_str(), NAPI_AUTO_LENGTH, &result)); in WrapCallingBundle() 3545 std::shared_ptr<JsCallingBundleName> callingBundleName = std::make_shared<JsCallingBundleName>(); in OnGetCallingBundle() local 3546 auto execute = [obj = this, name = callingBundleName, value = errorVal] () { in OnGetCallingBundle() 3559 auto complete = [obj = this, name = callingBundleName, value = errorVal] in OnGetCallingBundle()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/ |
H A D | default_app_mgr.cpp | 164 std::string callingBundleName; in IsDefaultApplicationInternal() local 165 ret = dataMgr->GetBundleNameForUid(IPCSkeleton::GetCallingUid(), callingBundleName); in IsDefaultApplicationInternal() 171 LOG_I(BMS_TAG_DEFAULT, "callingBundleName:%{public}s", callingBundleName.c_str()); in IsDefaultApplicationInternal() 172 isDefaultApp = element.bundleName == callingBundleName; in IsDefaultApplicationInternal()
|
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
H A D | bundle_active_service.cpp | 277 std::string callingBundleName = ""; in IsBundleIdle() local 278 BundleActiveBundleMgrHelper::GetInstance()->GetNameForUid(callingUid, callingBundleName); in IsBundleIdle() 279 BUNDLE_ACTIVE_LOGI("UID is %{public}d, bundle name is %{public}s", callingUid, callingBundleName.c_str()); in IsBundleIdle() 289 if (callingBundleName == bundleName) { in IsBundleIdle()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/free_install/ |
H A D | target_ability_info.cpp | 290 for (auto &callingBundleName : callingBundleNames) { in Marshalling() 291 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(callingBundleName)); in Marshalling()
|
/foundation/ability/dmsfwk/services/dtbschedmgr/src/ |
H A D | distributed_sched_service.cpp | 1484 std::string callingBundleName; in GetCurSrcCollaborateEvent() local 1485 if (!BundleManagerInternal::GetSpecifyBundleNameFromBms(callerInfo.uid, callingBundleName)) { in GetCurSrcCollaborateEvent() 1492 event.srcBundleName_ = callingBundleName; in GetCurSrcCollaborateEvent() 3056 std::string callingBundleName; in GetCollaborateEventInfo() local 3057 if (!BundleManagerInternal::GetSpecifyBundleNameFromBms(callingUid, callingBundleName)) { in GetCollaborateEventInfo() 3061 GetCollaborateEventsByCallers(callingUid, callingBundleName, events); in GetCollaborateEventInfo() 3062 GetCollaborateEventsByCallees(callingUid, callingBundleName, events); in GetCollaborateEventInfo() 3065 void DistributedSchedService::GetCollaborateEventsByCallers(int32_t callingUid, const std::string &callingBundleName, in GetCollaborateEventsByCallers() argument 3073 std::count(bundleNames.begin(), bundleNames.end(), callingBundleName) == 0) { in GetCollaborateEventsByCallers() 3076 callingUid, callingBundleName in GetCollaborateEventsByCallers() 3089 GetCollaborateEventsByCallees(int32_t callingUid, const std::string &callingBundleName, std::vector<EventNotify> &events) GetCollaborateEventsByCallees() argument [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/include/ |
H A D | distributed_sched_service.h | 304 void GetCollaborateEventsByCallers(int32_t callingUid, const std::string &callingBundleName, 306 void GetCollaborateEventsByCallees(int32_t callingUid, const std::string &callingBundleName,
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/ |
H A D | bms_bundle_install_checker_test.cpp | 683 EXPECT_EQ(eventInfo.callingBundleName, Constants::EMPTY_STRING);
in HWTEST_F() 697 EXPECT_EQ(eventInfo.callingBundleName, Constants::EMPTY_STRING);
in HWTEST_F() 734 EXPECT_EQ(eventInfo.callingBundleName, BUNDLE_NAME);
in HWTEST_F()
|
H A D | bms_bundle_installer_test.cpp | 5255 EXPECT_EQ(eventInfo.callingBundleName, EMPTY_STRING); in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/ |
H A D | common_func.cpp | 2232 std::string callingBundleName; in ObtainCallingBundleName() local 2236 return callingBundleName; in ObtainCallingBundleName() 2238 if (!bundleMgr->ObtainCallingBundleName(callingBundleName)) { in ObtainCallingBundleName() 2241 return callingBundleName; in ObtainCallingBundleName()
|
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/acts_bms_kit_system_test/ |
H A D | acts_bms_kit_system_test.cpp | 7576 std::string callingBundleName; in HWTEST_F() local 7577 bundleMgrProxy->GetNameForUid(uid, callingBundleName); in HWTEST_F() 7578 testRet = bundleMgrProxy->GetShortcutInfoV9(callingBundleName, shortcutInfos); in HWTEST_F()
|