[RESTRICT_AUTOMERGE]Workaround for testIncorrectContextUse_ConfigContext

The intention of this test is to verify the behavior of
assertConfigurationContext. However, ViewConfiguration may get
WindowManager if the ViewConfiguration by density is not cached.

This CL workarounds the issue by calling ViewConfiguration#get
before verifying the violation.

Test: atest StrictModeTest
Bug: 197282789
Change-Id: I2bde85c496fe2ca280bfd6f81c83b3a32cee2a95
1 file changed