Fix Instrumentation#setInTouchMode behavior.

Instrumentation#setInTouchMode should set the touch mode for all
displays, regardless of the value of the perDisplayFocusEnabled flag
and whether any display has own touch mode / own focus.

The fix is WindowManagerService#setInTouchModeOnAllDisplays ignoring
the "own focus" property of displays.

Test: atest TouchModeTest
Test: atest WindowManagerServiceTests
Fix: 267331091
Change-Id: I5a9010e23e3d91ac65f2d7ee8790cf2288bed1a2
2 files changed