diff options
| author | 2020-12-09 18:21:36 +0800 | |
|---|---|---|
| committer | 2020-12-21 15:01:48 +0800 | |
| commit | b63b92922ba80f7bce086f11bff2f103da9e7b38 (patch) | |
| tree | 3e362d77348eecf381e5085e6fa0717c63a3aadb /test-mock/src | |
| parent | c1cd3d6fd8a415523367a853d505b4bfd1386fbe (diff) | |
Introduce #createWindowContext with display
Test: atest ContextIsUiContextTest ContextGetDisplayTest
Test: atest WindowContextPolicyTests
Bug: 174640742
Change-Id: I13bd07fa3a4e79fe44bce34157ee93622cbb431d
Diffstat (limited to 'test-mock/src')
| -rw-r--r-- | test-mock/src/android/test/mock/MockContext.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test-mock/src/android/test/mock/MockContext.java b/test-mock/src/android/test/mock/MockContext.java index cf3b03cae72e..f7cebd12fcff 100644 --- a/test-mock/src/android/test/mock/MockContext.java +++ b/test-mock/src/android/test/mock/MockContext.java @@ -817,6 +817,11 @@ public class MockContext extends Context { } @Override + public @NonNull Context createWindowContext(Display display, int type, Bundle options) { + throw new UnsupportedOperationException(); + } + + @Override public boolean isRestricted() { throw new UnsupportedOperationException(); } |