From e0f2ad89118d74634781842d7209ef663e24c1c7 Mon Sep 17 00:00:00 2001 From: Pietro Maggi Date: Wed, 1 Feb 2023 11:55:14 +0000 Subject: [PATCH] docs: Update DISALLOW_CREATE_WINDOWS documentation so that it explains that windows besides app windows should not be created. This will block the creation of the following types of windows. LayoutParams#TYPE_TOAST LayoutParams#TYPE_APPLICATION_OVERLAY Bug: 265840695 Change-Id: I12d36306aff17c3a289a0bd058a6e7a4d2217f22 Tests: built docs with go/abtd --- core/java/android/os/UserManager.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 0efd264335a2b..1df45d132f345 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -1069,11 +1069,6 @@ public class UserManager { * Specifies that windows besides app windows should not be * created. This will block the creation of the following types of windows. *
  • {@link LayoutParams#TYPE_TOAST}
  • - *
  • {@link LayoutParams#TYPE_PHONE}
  • - *
  • {@link LayoutParams#TYPE_PRIORITY_PHONE}
  • - *
  • {@link LayoutParams#TYPE_SYSTEM_ALERT}
  • - *
  • {@link LayoutParams#TYPE_SYSTEM_ERROR}
  • - *
  • {@link LayoutParams#TYPE_SYSTEM_OVERLAY}
  • *
  • {@link LayoutParams#TYPE_APPLICATION_OVERLAY}
  • * *

    This can only be set by device owners and profile owners on the primary user.