Home
last modified time | relevance | path

Searched refs:mInputManager (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceEnabledTest.java42 private InputManager mInputManager; field in InputDeviceEnabledTest
47 mInputManager = instrumentation.getTargetContext().getSystemService(InputManager.class); in setup()
48 assertNotNull(mInputManager); in setup()
53 final int[] inputDeviceIds = mInputManager.getInputDeviceIds(); in testIsEnabled()
56 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in testIsEnabled()
67 final int[] inputDeviceIds = mInputManager.getInputDeviceIds(); in testEnableDisableException()
69 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in testEnableDisableException()
DInputDeviceViewBehaviorTest.java52 private InputManager mInputManager; field in InputDeviceViewBehaviorTest
57 mInputManager = instrumentation.getTargetContext().getSystemService(InputManager.class); in setup()
58 assertNotNull(mInputManager); in setup()
66 mInputManager.getInputDeviceViewBehavior(deviceId); in testShouldSmoothScroll_onValidAxisSourceCombo_throwsNoException()
78 mInputManager.getInputDeviceViewBehavior(deviceId); in testShouldSmoothScroll_onInvalidAxisSourceCombo_returnsFalse()
94 assertNotNull(mInputManager.getInputDeviceViewBehavior(deviceId)); in testGetViewBehavior_forValidDeviceId_returnsNonNull()
102 assertNull(mInputManager.getInputDeviceViewBehavior(deviceId)); in testGetViewBehavior_forInvalidDeviceId_returnsNull()
DInputDeviceVibratorTest.java73 private InputManager mInputManager; field in InputDeviceVibratorTest
93 final int[] inputDeviceIds = mInputManager.getInputDeviceIds(); in getVibrator()
95 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getVibrator()
110 mInputManager = mInstrumentation.getTargetContext().getSystemService(InputManager.class); in setup()
111 assertNotNull(mInputManager); in setup()
DInputDeviceVibratorManagerTest.java64 private InputManager mInputManager; field in InputDeviceVibratorManagerTest
82 final int[] inputDeviceIds = mInputManager.getInputDeviceIds(); in getVibratorManager()
84 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getVibratorManager()
98 mInputManager = mInstrumentation.getTargetContext().getSystemService(InputManager.class); in setup()
99 assertNotNull(mInputManager); in setup()
DInputDeviceMultiDeviceKeyEventTest.java81 private InputManager mInputManager; field in InputDeviceMultiDeviceKeyEventTest
105 mInputManager = mInstrumentation.getContext().getSystemService(InputManager.class); in setup()
106 final int[] inputDeviceIds = mInputManager.getInputDeviceIds(); in setup()
108 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in setup()
DInputDeviceSensorManagerTest.java108 private InputManager mInputManager; field in InputDeviceSensorManagerTest
218 final int[] inputDeviceIds = mInputManager.getInputDeviceIds(); in getSensorManager()
220 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in getSensorManager()
375 mInputManager = mInstrumentation.getTargetContext().getSystemService(InputManager.class); in setup()
376 assertNotNull(mInputManager); in setup()
/cts/libs/input/src/com/android/cts/input/
DDefaultPointerSpeedRule.kt43 private val mInputManager: InputManager constant in com.android.cts.input.DefaultPointerSpeedRule
46 mInputManager = context.getSystemService(InputManager::class.java)!!
56 PollingCheck.waitFor { mInputManager.mousePointerSpeed == speed } in set()
DVirtualInputDevice.java59 private final InputManager mInputManager; field in VirtualInputDevice
85 mInputManager = mInstrumentation.getContext().getSystemService(InputManager.class); in VirtualInputDevice()
111 mInputManager.registerInputDeviceListener(VirtualInputDevice.this, mHandler); in VirtualInputDevice()
198 mInputManager.unregisterInputDeviceListener(VirtualInputDevice.this); in close()
242 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDevice()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualInputDeviceGenericTest.java69 private InputManager mInputManager; field in VirtualInputDeviceGenericTest
80 mInputManager = context.getSystemService(InputManager.class); in setUp()
121 new InputDeviceRemovedWaiter(mInputManager, deviceHolder.getDeviceId())) { in close_removesInputDevice()
137 new InputDeviceRemovedWaiter(mInputManager, deviceHolder.getDeviceId())) { in closeVirtualDevice_removesInputDevice()
202 private final InputManager mInputManager; field in VirtualInputDeviceGenericTest.InputDeviceRemovedWaiter
208 mInputManager = inputManager; in InputDeviceRemovedWaiter()
209 mInputManager.registerInputDeviceListener(this, new Handler(Looper.getMainLooper())); in InputDeviceRemovedWaiter()
229 mInputManager.unregisterInputDeviceListener(this); in close()
DVirtualKeyboardLayoutTest.java53 private InputManager mInputManager; field in VirtualKeyboardLayoutTest
60 mInputManager = mContext.getSystemService(InputManager.class); in setUp()
179 InputDevice inputDevice = mInputManager.getInputDevice(virtualKeyboard.getInputDeviceId()); in createVirtualKeyboard()
/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java76 private InputManager mInputManager; field in VerifyInputEventTest
92 mInputManager = instrumentation.getTargetContext().getSystemService(InputManager.class); in setup()
93 assertNotNull(mInputManager); in setup()
107 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testKeyEvent()
131 VerifiedInputEvent verified = mInputManager.verifyInputEvent(downEvent); in testKeyEventWithoutHmac()
154 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testTamperedKeyEvent()
174 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testMotionEvent()
202 VerifiedInputEvent verified = mInputManager.verifyInputEvent(downEvent); in testMotionEventWithoutHmac()
229 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testTamperedMotionEvent()
257 VerifiedInputEvent verified = mInputManager.verifyInputEvent(received); in testDeviceIdBecomesVirtualForInjectedKeys()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMicrophoneDeviceTestActivity.java42 private InputManager mInputManager; field in MicrophoneDeviceTestActivity
105 mInputManager = (InputManager) context.getSystemService(Context.INPUT_SERVICE); in createInputDeviceItems()
107 final int[] inputDeviceIds = mInputManager.getInputDeviceIds(); in createInputDeviceItems()
111 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId); in createInputDeviceItems()
/cts/tests/tests/hardware/src/android/hardware/input/cts/virtualcreators/
DVirtualInputDeviceCreator.java193 private final InputManager mInputManager; field in VirtualInputDeviceCreator.InputDeviceAddedWaiter
202 mInputManager = inputManager; in InputDeviceAddedWaiter()
203 mInputManager.registerInputDeviceListener(this, new Handler(Looper.getMainLooper())); in InputDeviceAddedWaiter()
217 InputDevice device = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged()
229 mInputManager.unregisterInputDeviceListener(this); in close()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/
DTouchableInsetsProviderTest.java121 private InputManager mInputManager; field in TouchableInsetsProviderTest
127 mInputManager = mInstrumentation.getTargetContext().getSystemService(InputManager.class); in setup()
184 InputManagerHelper.injectInputEvent(mInputManager, event); in injectInputEvent()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowUntrustedTouchTest.java154 private InputManager mInputManager; field in WindowUntrustedTouchTest
194 mInputManager = mContext.getSystemService(InputManager.class); in setUp()
232 assertEquals(0.8f, mInputManager.getMaximumObscuringOpacityForTouch()); in testMaximumObscuringOpacity()
241 assertEquals(threshold, mInputManager.getMaximumObscuringOpacityForTouch()); in testAfterSettingThreshold_returnsThresholdSet()
1044 float previous = mInputManager.getMaximumObscuringOpacityForTouch(); in setMaximumObscuringOpacityForTouch()
DWindowInputTests.java110 private InputManager mInputManager; field in WindowInputTests
127 mInputManager = mActivity.getSystemService(InputManager.class); in setUp()
351 lp.alpha = mInputManager.getMaximumObscuringOpacityForTouch(); in testFilterTouchesWhenObscuredByWindowFromDifferentUid()
383 lp.alpha = mInputManager.getMaximumObscuringOpacityForTouch(); in testFlagTouchesWhenObscuredByWindowFromDifferentUid()