Home
last modified time | relevance | path

Searched refs:SessionPermission (Results 1 - 14 of 14) sorted by relevance

/foundation/window/window_manager/window_scene/test/unittest/
H A Dsession_permission_test.cpp61 bool result = SessionPermission::IsSystemServiceCalling(needPrintLog); in HWTEST_F()
72 bool result = SessionPermission::IsSACalling(); in HWTEST_F()
84 bool result = SessionPermission::VerifyCallingPermission(*permissionNode); in HWTEST_F()
97 bool result = SessionPermission::VerifyPermissionByCallerToken(callerToken, *permissionNode); in HWTEST_F()
109 bool result = SessionPermission::IsSameBundleNameAsCalling(*bundleName); in HWTEST_F()
113 bool result2 = SessionPermission::IsSameBundleNameAsCalling(*bundleName2); in HWTEST_F()
126 bool result = SessionPermission::IsSameAppAsCalling(bundleName, appIdentifier); in HWTEST_F()
130 bool result2 = SessionPermission::IsSameAppAsCalling(bundleName2, appIdentifier); in HWTEST_F()
141 bool result = SessionPermission::VerifySessionPermission(); in HWTEST_F()
152 bool result = SessionPermission in HWTEST_F()
[all...]
/foundation/window/window_manager/window_scene/common/src/
H A Dsession_permission.cpp37 constexpr HiviewDFX::HiLogLabel LABEL = {LOG_CORE, HILOG_DOMAIN_WINDOW, "SessionPermission"};
63 bool SessionPermission::IsSystemServiceCalling(bool needPrintLog) in IsSystemServiceCalling()
78 bool SessionPermission::IsSystemCalling() in IsSystemCalling()
90 bool SessionPermission::IsSystemAppCall() in IsSystemAppCall()
96 bool SessionPermission::IsSACalling() in IsSACalling()
108 bool SessionPermission::VerifyCallingPermission(const std::string& permissionName) in VerifyCallingPermission()
125 bool SessionPermission::VerifyPermissionByCallerToken(const uint32_t callerToken, const std::string& permissionName) in VerifyPermissionByCallerToken()
141 bool SessionPermission::VerifySessionPermission() in VerifySessionPermission()
155 bool SessionPermission::JudgeCallerIsAllowedToUseSystemAPI() in JudgeCallerIsAllowedToUseSystemAPI()
163 bool SessionPermission
[all...]
/foundation/window/window_manager/window_scene/screen_session_manager/src/
H A Dscreen_session_manager.cpp336 !SessionPermission::IsSystemCalling() && !SessionPermission::IsStartByHdcd()) { in CheckDisplayMangerAgentTypeAndPermission()
639 if (!SessionPermission::IsSystemCalling() && !SessionPermission::IsStartByHdcd()) { in NotifyCastWhenScreenConnectChange()
1017 if (!SessionPermission::IsSystemCalling()) { in GetScreenInfoById()
1033 if (!SessionPermission::IsSystemCalling() && !SessionPermission::IsStartByHdcd()) { in SetScreenActiveMode()
1072 if (!SessionPermission::IsSystemCalling()) { in UpdateDisplayHookInfo()
1133 if (!SessionPermission::IsSystemCalling() && !SessionPermission in SetVirtualPixelRatio()
[all...]
H A Dscreen_session_dumper.cpp106 if (!(SessionPermission::IsSACalling() || SessionPermission::IsStartByHdcd())) { in ExcuteDumpCmd()
/foundation/window/window_manager/window_scene/common/include/
H A Dsession_permission.h28 class SessionPermission { class
/foundation/window/window_manager/window_scene/session_manager/src/
H A Dscene_session_manager.cpp1423 if (!SessionPermission::IsSystemCalling()) { in CheckWindowId()
2368 bool isSystemCalling = SessionPermission::IsSystemCalling(); in CreateAndConnectSpecificSession()
2382 SessionPermission::IsStartedByUIExtension()) { in CreateAndConnectSpecificSession()
2520 if (!SessionPermission::IsSystemCalling()) { in CheckModalSubWindowPermission()
2541 if (SessionPermission::IsStartedByInputMethod()) { in CheckSystemWindowPermission()
2555 if (SessionPermission::VerifyCallingPermission("ohos.permission.SYSTEM_FLOAT_WINDOW") && in CheckSystemWindowPermission()
2556 (SessionPermission::IsSystemCalling() || SessionPermission::IsStartByHdcd() || in CheckSystemWindowPermission()
2565 if (SessionPermission::IsSystemCalling() || SessionPermission in CheckSystemWindowPermission()
[all...]
/foundation/window/window_manager/window_scene/session/container/src/
H A Dwindow_event_channel.cpp103 if (!SessionPermission::IsSystemCalling()) { in TransferPointerEvent()
172 if (!SessionPermission::IsSystemCalling()) { in IsUIExtensionKeyEventBlocked()
/foundation/window/window_manager/window_scene/session/host/src/
H A Dsystem_session.cpp83 !SessionPermission::IsSystemCalling()) { in Show()
123 if (!SessionPermission::IsSystemCalling() && type != WindowType::WINDOW_TYPE_INPUT_METHOD_STATUS_BAR) { in Hide()
H A Dscene_session.cpp218 if (!SessionPermission::IsSystemAppCall()) { in Foreground()
501 if (!SessionPermission::IsSystemCalling()) { in OnSystemSessionEvent()
1218 if (!SessionPermission::IsSystemCalling()) { in RaiseToAppTop()
1241 if (!SessionPermission::IsSystemCalling() && !SessionPermission::IsStartByHdcd()) { in RaiseAboveTarget()
2942 if (!SessionPermission::IsSystemCalling()) { in UpdateWindowSceneAfterCustomAnimation()
3251 if (!SessionPermission::VerifyCallingPermission(PermissionConstants::PERMISSION_MANAGE_MISSION)) { in ChangeSessionVisibilityWithStatusBar()
3349 if (!SessionPermission::VerifyCallingPermission(PermissionConstants::PERMISSION_MANAGE_MISSION)) { in PendingSessionActivation()
3353 bool isFoundationCall = SessionPermission::IsFoundationCall(); in PendingSessionActivation()
3469 if (!SessionPermission in UpdateSessionPropertyByAction()
[all...]
H A Dsession.cpp417 if (!SessionPermission::IsSystemCalling()) { in NotifyExtensionDied()
432 if (!SessionPermission::IsSystemCalling()) { in NotifyExtensionTimeout()
1269 if (!SessionPermission::IsSameAppAsCalling(SHELL_BUNDLE_NAME, SHELL_APP_IDENTIFIER)) { in DrawingCompleted()
2369 if (!SessionPermission::IsSystemCalling()) { in RequestFocus()
2892 if (uiNodeId_ != 0 && uiNodeId != 0 && !IsSystemSession() && SessionPermission::IsBetaVersion()) { in SetUINodeId()
/foundation/window/window_manager/wmserver/src/
H A Dmock_session_manager_service.cpp298 if (!SessionPermission::IsSystemCalling()) { in NotifySceneBoardAvailable()
829 if (!SessionPermission::IsSystemCalling()) { in SetSnapshotSkipByUserIdAndBundleNames()
847 if (!SessionPermission::IsSystemCalling()) { in SetSnapshotSkipByIdNamesMap()
/foundation/window/window_manager/wm/src/
H A Dwindow_scene_session_impl.cpp629 !SessionPermission::IsSystemCalling()) { in Create()
2508 if (!SessionPermission::IsSystemCalling() && !SessionPermission::IsStartByHdcd()) { in DisableAppWindowDecor()
2662 !SessionPermission::IsSystemCalling()) { in AddWindowFlag()
2666 if (flag == WindowFlag::WINDOW_FLAG_HANDWRITING && !SessionPermission::IsSystemCalling()) { in AddWindowFlag()
2670 if (flag == WindowFlag::WINDOW_FLAG_FORBID_SPLIT_MOVE && !SessionPermission::IsSystemCalling()) { in AddWindowFlag()
2909 if (!SessionPermission::IsSystemCalling() && !SessionPermission::IsStartByHdcd()) { in CheckParmAndPermission()
3093 if (!SessionPermission::IsSystemCalling() && !SessionPermission in SetSnapshotSkip()
[all...]
H A Dwindow_extension_session_impl.cpp948 if (!SessionPermission::VerifyCallingPermission("ohos.permission.ALLOW_SHOW_NON_SECURE_WINDOWS")) { in CheckHideNonSecureWindowsPermission()
1269 if (!SessionPermission::IsBetaVersion()) { in NotifyDumpInfo()
H A Dwindow_session_impl.cpp964 if (!SessionPermission::IsSystemCalling()) { in RequestFocusByClient()
1648 if (type != WindowType::WINDOW_TYPE_SYSTEM_ALARM_WINDOW && !SessionPermission::IsSystemCalling()) { in SetWindowType()

Completed in 45 milliseconds