diff options
| author | Ming-Shin Lu <lumark@google.com> | 2021-04-16 02:08:01 +0800 |
|---|---|---|
| committer | Ming-Shin Lu <lumark@google.com> | 2021-04-16 11:37:52 +0800 |
| commit | c8e411fd1fa245c64ecfefa6308f4014710cea35 (patch) | |
| tree | d8e470312e21ad78c90ede8e2e4501243786ead0 /core/java/android/view/WindowManager.java | |
| parent | a6d011d092ccb5ef8310d532239e9a9a962ebacf (diff) | |
Add a test api for checking if system supports TaskSnapshot
Use this test api to make sure testing
KeyboardVisibilityControlTest#testRestoreImeVisibility_.* that
requires the system supporting TaskSnapshot mechanism, otherwise skip
the test when the system doesn't support it.
Bug: 184978234
Test: m checkapi & atest KeyboardVisibilityControlTest
Change-Id: I777053aeeb6a2734a4bbd37711cf56ced41c1bd9
Diffstat (limited to 'core/java/android/view/WindowManager.java')
| -rw-r--r-- | core/java/android/view/WindowManager.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java index 4b56fd740e8d..d71bbb527a9f 100644 --- a/core/java/android/view/WindowManager.java +++ b/core/java/android/view/WindowManager.java @@ -4544,4 +4544,13 @@ public interface WindowManager extends ViewManager { default void holdLock(IBinder token, int durationMs) { throw new UnsupportedOperationException(); } + + /** + * Used for testing to check if the system supports TaskSnapshot mechanism. + * @hide + */ + @TestApi + default boolean isTaskSnapshotSupported() { + return false; + } } |
