Test window magnifier when the connection is reconnected/disconnected

testSetWindowModeConfig_connectionReset_expectedResult:
 We would like to test the set window magnification config
 function still works after the windowMagnification connection
 is  connected -> disconnected -> connected.

1. MagnificationAccessibilityService enabled:
  connection is connected
2. MagnificationAccessibilityService disabled:
  setconnection(null)
3. MagnificationAccessibilityService enabled again:
  setconnection(mConnection)

testServiceConnectionDisconnected_hasNoMagnificationOverlay:
 MagnificationOverlay should be removed after the service connection
 disconnected.

Bug: 2147470987
Test: atest AccessibilityMagnificationTest --iterations
Change-Id: Ie757fec4bd737f2014232bb3ee9e8a3c3cd37afb
1 file changed