Remove InputManager#getInstance

Replace all instances of InputManager with instances of InputManagerGlobal.

Bug: b/267758905
Test: Pre-submit
Change-Id: I4d08ec51b544c2043e3b30aea98a4147f49056aa
diff --git a/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java b/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
index 3bef2fb..a0cf2b2 100644
--- a/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
+++ b/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
@@ -175,6 +175,7 @@
     private final ActivityManager mActivityManager;
     private final ConnectivityManager mConnectivityManager;
     private final AudioManager mAudioManager;
+    private final InputManager mInputManager;
     private final HashMap<View, Integer> mScrollYPos = new HashMap<>();
     private final HashMap<View, Integer> mScrollXPos = new HashMap<>();
 
@@ -267,6 +268,7 @@
         mActivityManager = ActivityManager_Accessor.getActivityManagerInstance(this);
         mConnectivityManager = new ConnectivityManager(this, null);
         mAudioManager = new AudioManager(this);
+        mInputManager = new InputManager(this);
 
         if (mLayoutlibCallback.isResourceNamespacingRequired()) {
             if (mLayoutlibCallback.hasAndroidXAppCompat()) {
@@ -686,7 +688,7 @@
                 return mAudioManager;
 
             case INPUT_SERVICE:
-                return InputManager.getInstance(this);
+                return mInputManager;
 
             case TEXT_CLASSIFICATION_SERVICE:
             case CONTENT_CAPTURE_MANAGER_SERVICE: