From b63b92922ba80f7bce086f11bff2f103da9e7b38 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Wed, 9 Dec 2020 18:21:36 +0800 Subject: Introduce #createWindowContext with display Test: atest ContextIsUiContextTest ContextGetDisplayTest Test: atest WindowContextPolicyTests Bug: 174640742 Change-Id: I13bd07fa3a4e79fe44bce34157ee93622cbb431d --- test-mock/src/android/test/mock/MockContext.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test-mock/src') 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 @@ -816,6 +816,11 @@ public class MockContext extends Context { throw new UnsupportedOperationException(); } + @Override + public @NonNull Context createWindowContext(Display display, int type, Bundle options) { + throw new UnsupportedOperationException(); + } + @Override public boolean isRestricted() { throw new UnsupportedOperationException(); -- cgit v1.2.3-59-g8ed1b