Loading core/res/AndroidManifest.xml +1 −1 Original line number Diff line number Diff line Loading @@ -5351,7 +5351,7 @@ <!-- Allows input events to be monitored. Very dangerous! @hide --> <permission android:name="android.permission.MONITOR_INPUT" android:protectionLevel="signature" /> android:protectionLevel="signature|recents" /> <!-- Allows the caller to change the associations between input devices and displays. Very dangerous! @hide --> <permission android:name="android.permission.ASSOCIATE_INPUT_DEVICE_TO_DISPLAY_BY_PORT" Loading packages/SystemUI/shared/src/com/android/systemui/shared/system/InputMonitorCompat.java +8 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ */ package com.android.systemui.shared.system; import android.hardware.input.InputManager; import android.os.Bundle; import android.os.Looper; import android.os.Parcel; Loading @@ -32,6 +33,13 @@ public class InputMonitorCompat implements Parcelable { private final InputMonitor mInputMonitor; private boolean mForReturn = false; /** * Monitor input on the specified display for gestures. */ public InputMonitorCompat(String name, int displayId) { mInputMonitor = InputManager.getInstance().monitorGestureInput(name, displayId); } private InputMonitorCompat(InputMonitor monitor) { mInputMonitor = monitor; } Loading Loading
core/res/AndroidManifest.xml +1 −1 Original line number Diff line number Diff line Loading @@ -5351,7 +5351,7 @@ <!-- Allows input events to be monitored. Very dangerous! @hide --> <permission android:name="android.permission.MONITOR_INPUT" android:protectionLevel="signature" /> android:protectionLevel="signature|recents" /> <!-- Allows the caller to change the associations between input devices and displays. Very dangerous! @hide --> <permission android:name="android.permission.ASSOCIATE_INPUT_DEVICE_TO_DISPLAY_BY_PORT" Loading
packages/SystemUI/shared/src/com/android/systemui/shared/system/InputMonitorCompat.java +8 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ */ package com.android.systemui.shared.system; import android.hardware.input.InputManager; import android.os.Bundle; import android.os.Looper; import android.os.Parcel; Loading @@ -32,6 +33,13 @@ public class InputMonitorCompat implements Parcelable { private final InputMonitor mInputMonitor; private boolean mForReturn = false; /** * Monitor input on the specified display for gestures. */ public InputMonitorCompat(String name, int displayId) { mInputMonitor = InputManager.getInstance().monitorGestureInput(name, displayId); } private InputMonitorCompat(InputMonitor monitor) { mInputMonitor = monitor; } Loading