[8/n InputDispatcher refactor] move input connections to a subclass

In this CL we create a new subclass for DispatcherInputConnections in
Dispatcher to consolidate functionality related to input connections.

Bug: 367661487
Bug: 245989146
Test: atest inputflinger_tests
Flag: EXEMPT refactor
Change-Id: I210a60626d55030a71b3335274feb14cd7f0c616
2 files changed