/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDeviceUpdater.java | 102 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceAdded() local 103 if (inputDevice == null) return; in onInputDeviceAdded() 105 if (inputDevice.supportsSource(InputDevice.SOURCE_STYLUS) in onInputDeviceAdded() 106 && !inputDevice.isExternal()) { in onInputDeviceAdded() 126 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged() local 127 if (inputDevice == null) return; in onInputDeviceChanged() 129 if (inputDevice.supportsSource(InputDevice.SOURCE_STYLUS)) { in onInputDeviceChanged()
|
D | StylusDevicesController.java | 94 public StylusDevicesController(Context context, InputDevice inputDevice, in StylusDevicesController() argument 97 mInputDevice = inputDevice; in StylusDevicesController() 376 public static boolean isDeviceStylus(@Nullable InputDevice inputDevice, in isDeviceStylus() argument 378 if (inputDevice != null && inputDevice.supportsSource(InputDevice.SOURCE_STYLUS)) { in isDeviceStylus()
|
D | StylusUsiHeaderController.java | 58 public StylusUsiHeaderController(Context context, InputDevice inputDevice) { in StylusUsiHeaderController() argument 60 mInputDevice = inputDevice; in StylusUsiHeaderController()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 262 InputDevice inputDevice = mInputDevices.get(device); in getTransport() local 263 if (inputDevice != null) { in getTransport() 264 return inputDevice.mSelectedTransport; in getTransport() 277 InputDevice inputDevice = getOrCreateInputDevice(device); in setTransport() local 278 if (inputDevice.mSelectedTransport != transport) { in setTransport() 279 inputDevice.mSelectedTransport = transport; in setTransport() 301 InputDevice inputDevice = mInputDevices.get(device); in getState() local 302 if (inputDevice != null) { in getState() 303 return inputDevice.getState(transport); in getState() 470 InputDevice inputDevice = getOrCreateInputDevice(device); in handleMessageSetPreferredTransport() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDeviceDetailsFragmentTest.java | 135 InputDevice inputDevice = createInputDeviceWithMatchingBluetoothAddress(); in verifyOnAttachResult_flagEnabledAndInputDeviceSet_returnsInputDevice() local 138 doReturn(inputDevice).when(fragment).getInputDevice(any()); in verifyOnAttachResult_flagEnabledAndInputDeviceSet_returnsInputDevice() 146 assertThat(fragment.mInputDevice).isEqualTo(inputDevice); in verifyOnAttachResult_flagEnabledAndInputDeviceSet_returnsInputDevice() 153 InputDevice inputDevice = createInputDeviceWithMatchingBluetoothAddress(); in verifyOnAttachResult_flagDisabled_returnsNullInputDevice() local 156 doReturn(inputDevice).when(fragment).getInputDevice(any()); in verifyOnAttachResult_flagDisabled_returnsNullInputDevice() 180 InputDevice inputDevice = mock(InputDevice.class); in getTitle_inputDeviceTitle() local 181 doReturn(true).when(inputDevice).supportsSource(InputDevice.SOURCE_STYLUS); in getTitle_inputDeviceTitle() 182 doReturn(inputDevice).when(mFragment).getInputDevice(mContext); in getTitle_inputDeviceTitle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowInputDevice.java | 64 final InputDevice inputDevice = Shadow.newInstanceOf(InputDevice.class); in makeInputDevicebyId() local 65 final ShadowInputDevice shadowInputDevice = Shadow.extract(inputDevice); in makeInputDevicebyId() 67 return inputDevice; in makeInputDevicebyId()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | NewKeyboardLayoutEnabledLocalesFragment.java | 120 InputDevice inputDevice = in onActivityCreated() local 122 if (inputDevice == null) { in onActivityCreated() 126 final String title = inputDevice.getName(); in onActivityCreated() 134 InputDevice inputDevice = in onStart() local 136 if (inputDevice == null) { in onStart() 141 mInputDeviceId = inputDevice.getId(); in onStart()
|
D | KeyboardLayoutDialogFragment.java | 129 InputDevice inputDevice = in onResume() local 131 if (inputDevice == null) { in onResume() 135 mInputDeviceId = inputDevice.getId(); in onResume()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDevicesControllerTest.java | 180 InputDevice inputDevice = new InputDevice.Builder() in isDeviceStylus_nonStylusInputDevice_false() local 184 assertThat(StylusDevicesController.isDeviceStylus(inputDevice, null)).isFalse(); in isDeviceStylus_nonStylusInputDevice_false() 189 InputDevice inputDevice = new InputDevice.Builder() in isDeviceStylus_stylusInputDevice_true() local 193 assertThat(StylusDevicesController.isDeviceStylus(inputDevice, null)).isTrue(); in isDeviceStylus_stylusInputDevice_true()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TouchInteractionService.java | 512 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); 513 if (inputDevice == null) { 516 return inputDevice.getSources() == (InputDevice.SOURCE_MOUSE
|