Move device connection logic to a separated class

Bug: 344862874
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Test: KeyboardRepositoryTest.kt
Change-Id: I640d6a12d792751de7b6b4ae91c3f022914f322a
3 files changed