Home
last modified time | relevance | path

Searched refs:mInputDevice (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DGameControllerPreferenceControllerTest.java50 private InputDevice mInputDevice; field in GameControllerPreferenceControllerTest
80 when(mInputManager.getInputDevice(1)).thenReturn(mInputDevice); in getAvailabilityStatus_hasDeviceWithVibrator_shouldReturnAvailable()
81 when(mInputDevice.isVirtual()).thenReturn(false); in getAvailabilityStatus_hasDeviceWithVibrator_shouldReturnAvailable()
82 when(mInputDevice.getVibrator().hasVibrator()).thenReturn(true); in getAvailabilityStatus_hasDeviceWithVibrator_shouldReturnAvailable()
90 when(mInputManager.getInputDevice(1)).thenReturn(mInputDevice); in getAvailabilityStatus_hasNoVibratingDevice_shouldReturnDisabled()
91 when(mInputDevice.isVirtual()).thenReturn(false); in getAvailabilityStatus_hasNoVibratingDevice_shouldReturnDisabled()
92 when(mInputDevice.getVibrator().hasVibrator()).thenReturn(false); in getAvailabilityStatus_hasNoVibratingDevice_shouldReturnDisabled()
100 when(mInputManager.getInputDevice(1)).thenReturn(mInputDevice); in getAvailabilityStatus_hasNoPhysicalDevice_shouldReturnDisabled()
101 when(mInputDevice.isVirtual()).thenReturn(true); in getAvailabilityStatus_hasNoPhysicalDevice_shouldReturnDisabled()
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/
DStylusUsiDetailsFragment.java42 InputDevice mInputDevice; field in StylusUsiDetailsFragment
49 mInputDevice = im.getInputDevice(inputDeviceId); in onAttach()
52 if (mInputDevice == null) { in onAttach()
75 if (mInputDevice != null) { in createPreferenceControllers()
77 controllers.add(new StylusUsiHeaderController(context, mInputDevice)); in createPreferenceControllers()
78 controllers.add(new StylusDevicesController(context, mInputDevice, null, lifecycle)); in createPreferenceControllers()
DStylusUsiHeaderController.java53 private final InputDevice mInputDevice; field in StylusUsiHeaderController
60 mInputDevice = inputDevice; in StylusUsiHeaderController()
86 BatteryState batteryState = mInputDevice.getBatteryState(); in refresh()
135 mInputManager.addInputDeviceBatteryListener(mInputDevice.getId(), in onCreate()
141 mInputManager.removeInputDeviceBatteryListener(mInputDevice.getId(), in onDestroy()
DStylusDevicesController.java83 private final InputDevice mInputDevice; field in StylusDevicesController
97 mInputDevice = inputDevice; in StylusDevicesController()
104 return isDeviceStylus(mInputDevice, mCachedBluetoothDevice); in isAvailable()
117 if (mInputDevice != null) { in createOrUpdateDefaultNotesPreference()
119 mInputDevice.hasKeys(KeyEvent.KEYCODE_STYLUS_BUTTON_TAIL)[0]; in createOrUpdateDefaultNotesPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/
DStylusUsiHeaderControllerTest.java55 private InputDevice mInputDevice; field in StylusUsiHeaderControllerTest
70 mInputDevice = spy(device); in setUp()
71 when(mInputDevice.getBatteryState()).thenReturn(mBatteryState); in setUp()
77 mController = new StylusUsiHeaderController(mContext, mInputDevice); in setUp()
93 verify(mInputManager).addInputDeviceBatteryListener(mInputDevice.getId(), in onCreate_registersBatteryListener()
102 verify(mInputManager).removeInputDeviceBatteryListener(mInputDevice.getId(), in onDestroy_unregistersBatteryListener()
151 mController.onBatteryStateChanged(mInputDevice.getId(), in onBatteryStateChanged_updatesSummary()
DStylusDevicesControllerTest.java95 private InputDevice mInputDevice; field in StylusDevicesControllerTest
159 mInputDevice = spy(new InputDevice.Builder() in setUp()
163 when(mInputDevice.getBluetoothAddress()).thenReturn("SOME:ADDRESS"); in setUp()
164 when(mInputDevice.hasKeys(KEYCODE_STYLUS_BUTTON_TAIL)).thenReturn( in setUp()
170 mController = new StylusDevicesController(mContext, mInputDevice, null, mLifecycle); in setUp()
252 when(mInputDevice.hasKeys(KEYCODE_STYLUS_BUTTON_TAIL)).thenReturn(new boolean[]{false}); in usiStylusInputDevice_doesntSupportTailButton_tailButtonPreferenceNotShown()
256 mContext, mInputDevice, mCachedBluetoothDevice, mLifecycle in usiStylusInputDevice_doesntSupportTailButton_tailButtonPreferenceNotShown()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceDetailsFragment.java102 InputDevice mInputDevice; field in BluetoothDeviceDetailsFragment
206 mInputDevice = getInputDevice(context); in onAttach()
380 controllers.add(new StylusDevicesController(context, mInputDevice, mCachedDevice, in createPreferenceControllers()
425 if (StylusDevicesController.isDeviceStylus(mInputDevice, mCachedDevice)) { in setTitleForInputDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDeviceDetailsFragmentTest.java128 assertThat(mFragment.mInputDevice).isEqualTo(null); in verifyOnAttachResult()
146 assertThat(fragment.mInputDevice).isEqualTo(inputDevice); in verifyOnAttachResult_flagEnabledAndInputDeviceSet_returnsInputDevice()
164 assertThat(fragment.mInputDevice).isEqualTo(null); in verifyOnAttachResult_flagDisabled_returnsNullInputDevice()