Home
last modified time | relevance | path

Searched refs:callingBundleName (Results 1 - 21 of 21) sorted by relevance

/foundation/window/window_manager/window_scene/common/src/
H A Dsession_permission.cpp211 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 Dbundle_overlay_manager_host_impl.cpp109 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 Dbundle_overlay_data_manager.cpp721 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 Dpermission.cpp170 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 Dshared_bundle_installer.cpp191 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 Dbundle_permission_mgr.cpp527 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 Dinner_event_report.cpp413 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 Dbundle_mgr_host_impl.cpp3448 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 Dbase_bundle_installer.cpp3937 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 Devent_report.h104 std::string callingBundleName; member
174 callingBundleName.clear(); in Reset()
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_ability_common/
H A Dfeature_ability_common.h116 std::string callingBundleName; member
H A Dnapi_context.cpp1958 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 Ddefault_app_mgr.cpp164 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 Dbundle_active_service.cpp277 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 Dtarget_ability_info.cpp290 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 Ddistributed_sched_service.cpp1484 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 Ddistributed_sched_service.h304 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 Dbms_bundle_install_checker_test.cpp683 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 Dbms_bundle_installer_test.cpp5255 EXPECT_EQ(eventInfo.callingBundleName, EMPTY_STRING); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/common/
H A Dcommon_func.cpp2232 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 Dacts_bms_kit_system_test.cpp7576 std::string callingBundleName; in HWTEST_F() local
7577 bundleMgrProxy->GetNameForUid(uid, callingBundleName); in HWTEST_F()
7578 testRet = bundleMgrProxy->GetShortcutInfoV9(callingBundleName, shortcutInfos); in HWTEST_F()

Completed in 75 milliseconds