Loading api/system-current.txt +5 −2 Original line number Original line Diff line number Diff line Loading @@ -6650,7 +6650,7 @@ package android.util { package android.view { package android.view { public abstract class Window { public abstract class Window { method public void addPrivateFlags(int); method public void addSystemFlags(int); } } public abstract interface WindowManager implements android.view.ViewManager { public abstract interface WindowManager implements android.view.ViewManager { Loading @@ -6660,7 +6660,10 @@ package android.view { public static class WindowManager.LayoutParams extends android.view.ViewGroup.LayoutParams implements android.os.Parcelable { public static class WindowManager.LayoutParams extends android.view.ViewGroup.LayoutParams implements android.os.Parcelable { method public final long getUserActivityTimeout(); method public final long getUserActivityTimeout(); method public final void setUserActivityTimeout(long); method public final void setUserActivityTimeout(long); field public static final int PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 524288; // 0x80000 field public static final int SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 524288; // 0x80000 } public static abstract class WindowManager.LayoutParams.SystemFlags implements java.lang.annotation.Annotation { } } } } Loading core/java/android/view/Window.java +15 −2 Original line number Original line Diff line number Diff line Loading @@ -1085,6 +1085,19 @@ public abstract class Window { * * * <p>Refer to the individual flags for the permissions needed. * <p>Refer to the individual flags for the permissions needed. * * * @param flags The flag bits to add. * * @hide */ public void addPrivateFlags(int flags) { setPrivateFlags(flags, flags); } /** * Add system flag bits. * * <p>Refer to the individual flags for the permissions needed. * * <p>Note: Only for updateable system components (aka. mainline modules) * <p>Note: Only for updateable system components (aka. mainline modules) * * * @param flags The flag bits to add. * @param flags The flag bits to add. Loading @@ -1092,8 +1105,8 @@ public abstract class Window { * @hide * @hide */ */ @SystemApi @SystemApi public void addPrivateFlags(int flags) { public void addSystemFlags(@WindowManager.LayoutParams.SystemFlags int flags) { setPrivateFlags(flags, flags); addPrivateFlags(flags); } } /** /** Loading core/java/android/view/WindowManager.java +15 −3 Original line number Original line Diff line number Diff line Loading @@ -1670,7 +1670,7 @@ public interface WindowManager extends ViewManager { */ */ @SystemApi @SystemApi @RequiresPermission(permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS) @RequiresPermission(permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS) public static final int PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 0x00080000; public static final int SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 0x00080000; /** /** * Indicates that this window is the rounded corners overlay present on some * Indicates that this window is the rounded corners overlay present on some Loading Loading @@ -1707,6 +1707,18 @@ public interface WindowManager extends ViewManager { */ */ public static final int PRIVATE_FLAG_STATUS_FORCE_SHOW_NAVIGATION = 0x00800000; public static final int PRIVATE_FLAG_STATUS_FORCE_SHOW_NAVIGATION = 0x00800000; /** * An internal annotation for flags that can be specified to {@link #softInputMode}. * * @hide */ @SystemApi @Retention(RetentionPolicy.SOURCE) @IntDef(flag = true, prefix = { "SYSTEM_FLAG_" }, value = { SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, }) public @interface SystemFlags {} /** /** * Control flags that are private to the platform. * Control flags that are private to the platform. * @hide * @hide Loading Loading @@ -1781,8 +1793,8 @@ public interface WindowManager extends ViewManager { equals = PRIVATE_FLAG_SUSTAINED_PERFORMANCE_MODE, equals = PRIVATE_FLAG_SUSTAINED_PERFORMANCE_MODE, name = "SUSTAINED_PERFORMANCE_MODE"), name = "SUSTAINED_PERFORMANCE_MODE"), @ViewDebug.FlagToString( @ViewDebug.FlagToString( mask = PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, mask = SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, equals = PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, equals = SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, name = "HIDE_NON_SYSTEM_OVERLAY_WINDOWS"), name = "HIDE_NON_SYSTEM_OVERLAY_WINDOWS"), @ViewDebug.FlagToString( @ViewDebug.FlagToString( mask = PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY, mask = PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY, Loading core/res/AndroidManifest.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2770,7 +2770,7 @@ android:protectionLevel="signature" /> android:protectionLevel="signature" /> <!-- @SystemApi Allows an application to use <!-- @SystemApi Allows an application to use {@link android.view.WindowManager.LayoutsParams#PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS} {@link android.view.WindowManager.LayoutsParams#SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS} to hide non-system-overlay windows. to hide non-system-overlay windows. <p>Not for use by third-party applications. <p>Not for use by third-party applications. @hide @hide Loading packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,7 @@ */ */ package com.android.packageinstaller; package com.android.packageinstaller; import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; import android.Manifest; import android.Manifest; import android.annotation.NonNull; import android.annotation.NonNull; Loading Loading @@ -281,7 +281,7 @@ public class PackageInstallerActivity extends AlertActivity { @Override @Override protected void onCreate(Bundle icicle) { protected void onCreate(Bundle icicle) { getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); super.onCreate(null); super.onCreate(null); Loading Loading
api/system-current.txt +5 −2 Original line number Original line Diff line number Diff line Loading @@ -6650,7 +6650,7 @@ package android.util { package android.view { package android.view { public abstract class Window { public abstract class Window { method public void addPrivateFlags(int); method public void addSystemFlags(int); } } public abstract interface WindowManager implements android.view.ViewManager { public abstract interface WindowManager implements android.view.ViewManager { Loading @@ -6660,7 +6660,10 @@ package android.view { public static class WindowManager.LayoutParams extends android.view.ViewGroup.LayoutParams implements android.os.Parcelable { public static class WindowManager.LayoutParams extends android.view.ViewGroup.LayoutParams implements android.os.Parcelable { method public final long getUserActivityTimeout(); method public final long getUserActivityTimeout(); method public final void setUserActivityTimeout(long); method public final void setUserActivityTimeout(long); field public static final int PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 524288; // 0x80000 field public static final int SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 524288; // 0x80000 } public static abstract class WindowManager.LayoutParams.SystemFlags implements java.lang.annotation.Annotation { } } } } Loading
core/java/android/view/Window.java +15 −2 Original line number Original line Diff line number Diff line Loading @@ -1085,6 +1085,19 @@ public abstract class Window { * * * <p>Refer to the individual flags for the permissions needed. * <p>Refer to the individual flags for the permissions needed. * * * @param flags The flag bits to add. * * @hide */ public void addPrivateFlags(int flags) { setPrivateFlags(flags, flags); } /** * Add system flag bits. * * <p>Refer to the individual flags for the permissions needed. * * <p>Note: Only for updateable system components (aka. mainline modules) * <p>Note: Only for updateable system components (aka. mainline modules) * * * @param flags The flag bits to add. * @param flags The flag bits to add. Loading @@ -1092,8 +1105,8 @@ public abstract class Window { * @hide * @hide */ */ @SystemApi @SystemApi public void addPrivateFlags(int flags) { public void addSystemFlags(@WindowManager.LayoutParams.SystemFlags int flags) { setPrivateFlags(flags, flags); addPrivateFlags(flags); } } /** /** Loading
core/java/android/view/WindowManager.java +15 −3 Original line number Original line Diff line number Diff line Loading @@ -1670,7 +1670,7 @@ public interface WindowManager extends ViewManager { */ */ @SystemApi @SystemApi @RequiresPermission(permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS) @RequiresPermission(permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS) public static final int PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 0x00080000; public static final int SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 0x00080000; /** /** * Indicates that this window is the rounded corners overlay present on some * Indicates that this window is the rounded corners overlay present on some Loading Loading @@ -1707,6 +1707,18 @@ public interface WindowManager extends ViewManager { */ */ public static final int PRIVATE_FLAG_STATUS_FORCE_SHOW_NAVIGATION = 0x00800000; public static final int PRIVATE_FLAG_STATUS_FORCE_SHOW_NAVIGATION = 0x00800000; /** * An internal annotation for flags that can be specified to {@link #softInputMode}. * * @hide */ @SystemApi @Retention(RetentionPolicy.SOURCE) @IntDef(flag = true, prefix = { "SYSTEM_FLAG_" }, value = { SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, }) public @interface SystemFlags {} /** /** * Control flags that are private to the platform. * Control flags that are private to the platform. * @hide * @hide Loading Loading @@ -1781,8 +1793,8 @@ public interface WindowManager extends ViewManager { equals = PRIVATE_FLAG_SUSTAINED_PERFORMANCE_MODE, equals = PRIVATE_FLAG_SUSTAINED_PERFORMANCE_MODE, name = "SUSTAINED_PERFORMANCE_MODE"), name = "SUSTAINED_PERFORMANCE_MODE"), @ViewDebug.FlagToString( @ViewDebug.FlagToString( mask = PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, mask = SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, equals = PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, equals = SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, name = "HIDE_NON_SYSTEM_OVERLAY_WINDOWS"), name = "HIDE_NON_SYSTEM_OVERLAY_WINDOWS"), @ViewDebug.FlagToString( @ViewDebug.FlagToString( mask = PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY, mask = PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY, Loading
core/res/AndroidManifest.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2770,7 +2770,7 @@ android:protectionLevel="signature" /> android:protectionLevel="signature" /> <!-- @SystemApi Allows an application to use <!-- @SystemApi Allows an application to use {@link android.view.WindowManager.LayoutsParams#PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS} {@link android.view.WindowManager.LayoutsParams#SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS} to hide non-system-overlay windows. to hide non-system-overlay windows. <p>Not for use by third-party applications. <p>Not for use by third-party applications. @hide @hide Loading
packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,7 @@ */ */ package com.android.packageinstaller; package com.android.packageinstaller; import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; import android.Manifest; import android.Manifest; import android.annotation.NonNull; import android.annotation.NonNull; Loading Loading @@ -281,7 +281,7 @@ public class PackageInstallerActivity extends AlertActivity { @Override @Override protected void onCreate(Bundle icicle) { protected void onCreate(Bundle icicle) { getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); super.onCreate(null); super.onCreate(null); Loading