Home
last modified time | relevance | path

Searched refs:mInputDeviceDelegate (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DInputDeviceDelegateTest.java81 private InputDeviceDelegate mInputDeviceDelegate; field in InputDeviceDelegateTest
96 mInputDeviceDelegate = new InputDeviceDelegate( in setUp()
98 mInputDeviceDelegate.onSystemReady(); in setUp()
128 assertFalse(mInputDeviceDelegate.isAvailable()); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
132 mInputDeviceDelegate.onInputDeviceAdded(1); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
134 assertFalse(mInputDeviceDelegate.isAvailable()); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
142 assertFalse(mInputDeviceDelegate.isAvailable()); in onInputDeviceAdded_withDeviceWithoutVibrator_ignoresNewDevice()
163 assertTrue(mInputDeviceDelegate.isAvailable()); in onInputDeviceAdded_withDeviceWithVibrator_addsNewDevice()
187 assertTrue(mInputDeviceDelegate.isAvailable()); in onInputDeviceChanged_deviceLosesVibrator_removesDevice()
202 assertTrue(mInputDeviceDelegate.isAvailable()); in onInputDeviceChanged_deviceLost_removesDevice()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibratorManagerService.java153 private final InputDeviceDelegate mInputDeviceDelegate; field in VibratorManagerService
198 mInputDeviceDelegate = new InputDeviceDelegate(mContext, mHandler); in VibratorManagerService()
263 mInputDeviceDelegate.onSystemReady(); in systemReady()
619 boolean inputDevicesChanged = mInputDeviceDelegate.updateInputDeviceVibrators( in updateServiceState()
679 boolean inputDevicesAvailable = mInputDeviceDelegate.vibrateIfAvailable( in startVibrationLocked()