diff options
author | Felka Chang <felkachang@google.com> | 2020-09-24 17:03:32 +0800 |
---|---|---|
committer | Felka Chang <felkachang@google.com> | 2020-09-26 10:31:40 +0800 |
commit | 63a2ede196d88d57a4d6da3f010973524b284571 (patch) | |
tree | cb2fbbc93ec760de6fa803af7daeab5b8cb29cc1 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | eab871a7c3a55e55558de6bfa58a8ee1bdcd0870 (diff) |
Fix the RemoteInputViewTest mock user context
SystemUI needs to handle multiple user environment but the systemuitest
doesn't simulate appropriately. To use spy mocks the
Context.createContextAsUser. When the test is running, the real
environment doesn't have the such user. That's why the
IllegalStateException comes out.
Fixes: 169302704
Test: TID="SystemUITests"; \
PACKAGE_NAME="com.android.systemui.statusbar.policy"; \
TEST_CLASS="RemoteInputViewTest"; \
atest "${TID}:${PACKAGE_NAME}.${TEST_CLASS}"
Change-Id: I3041226496c641dad11b415173675e09186d318a
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions