diff options
| author | wilsonshih <wilsonshih@google.com> | 2021-02-23 13:01:14 +0800 |
|---|---|---|
| committer | wilsonshih <wilsonshih@google.com> | 2021-02-26 18:22:40 +0800 |
| commit | 75d1558ce11decaa21b58f14134c6300ea79afec (patch) | |
| tree | dcd1ea3690da3fc9f522f3a908ae689c38c49d99 /core/java | |
| parent | 8632838c5035dee35aafd24d61586fe50f27913c (diff) | |
Extract StartingSurface interface on WMShellBaseModule(7/N)
Decouple the dependency for the rest CLs.
Bug: 73289295
Bug: 131311659
Test: atest WindowOrganizerTests StartingSurfaceDrawerTests
SplashscreenTests
Change-Id: Ifd323714184fad285b4d65f8c86c9b8feafc2374
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/window/StartingWindowInfo.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/core/java/android/window/StartingWindowInfo.java b/core/java/android/window/StartingWindowInfo.java index 63b9e9befb77..d1c1e40d1578 100644 --- a/core/java/android/window/StartingWindowInfo.java +++ b/core/java/android/window/StartingWindowInfo.java @@ -35,6 +35,31 @@ import android.view.WindowManager; @TestApi public final class StartingWindowInfo implements Parcelable { /** + * Prefer nothing or not care the type of starting window. + * @hide + */ + public static final int STARTING_WINDOW_TYPE_NONE = 0; + /** + * Prefer splash screen starting window. + * @hide + */ + public static final int STARTING_WINDOW_TYPE_SPLASH_SCREEN = 1; + /** + * Prefer snapshot starting window. + * @hide + */ + public static final int STARTING_WINDOW_TYPE_SNAPSHOT = 2; + /** + * @hide + */ + @IntDef(flag = true, prefix = "STARTING_WINDOW_TYPE_", value = { + STARTING_WINDOW_TYPE_NONE, + STARTING_WINDOW_TYPE_SPLASH_SCREEN, + STARTING_WINDOW_TYPE_SNAPSHOT + }) + public @interface StartingWindowType {} + + /** * The {@link TaskInfo} from this task. * @hide */ |
