Use MockImeSession#isActive() in InputConnectionBlockingMethodTest
This is a clean up CL for my previous CL [1], which attempted to work
around test flakiness in InputConnectionBlockingMethodTest in a bit
hacky way.
Although we may no longer need to the original workaround with my
another CL [2], it may still make some sense to be able to make our
TestActivity no-op once we start disposing MockImeSession. To make it
clear for future readers about what we are doing, this CL replaces the
local AtomicReference with MockImeSession#isActive() then
* returning true from View#onCheckIsTextEditor() only while the
MockIme is in use.
* returning a non-null InputConnection only while the MockIme is in
use.
Other than the above, there should be no changes in the test
expectations.
[1]: I8ae3b1b1c868dbd701d2ba7fae281aafc8a0041d
75c3a2fc8e266758a93c505463bf695c535f3c00
[2]: Ia9c147cbb56e30094b190815163c5799243c8015
6dead7c2947a238209dd6052fec1a07b99736657
Bug: 129012881
Bug: 154990192
Bug: 192412909
Test: atest CtsInputMethodTestCases:InputConnectionBlockingMethodTest
Change-Id: If74e9f44612f18aee0c7a5cbac59041bfd8e79b1
2 files changed