Loading services/core/java/com/android/server/wm/ActivityTaskManagerService.java +9 −4 Original line number Diff line number Diff line Loading @@ -3522,10 +3522,15 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub { if (displayContent == null) { return false; } final long callingIdentity = Binder.clearCallingIdentity(); try { hasRestrictedWindow = displayContent.forAllWindows(windowState -> { return windowState.isOnScreen() && UserManager.isUserTypePrivateProfile( getUserManager().getProfileType(windowState.mShowUserId)); }, true /* traverseTopToBottom */); } finally { Binder.restoreCallingIdentity(callingIdentity); } } return DevicePolicyCache.getInstance().isScreenCaptureAllowed(userId) && !hasRestrictedWindow; Loading Loading
services/core/java/com/android/server/wm/ActivityTaskManagerService.java +9 −4 Original line number Diff line number Diff line Loading @@ -3522,10 +3522,15 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub { if (displayContent == null) { return false; } final long callingIdentity = Binder.clearCallingIdentity(); try { hasRestrictedWindow = displayContent.forAllWindows(windowState -> { return windowState.isOnScreen() && UserManager.isUserTypePrivateProfile( getUserManager().getProfileType(windowState.mShowUserId)); }, true /* traverseTopToBottom */); } finally { Binder.restoreCallingIdentity(callingIdentity); } } return DevicePolicyCache.getInstance().isScreenCaptureAllowed(userId) && !hasRestrictedWindow; Loading