/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowInputDevice.java | 19 import android.view.InputDevice; 29 @Implements(InputDevice.class) 34 private static Map<Integer, InputDevice> sDeviceMap = new HashMap<>(); 48 protected static InputDevice getDevice(int id) { in getDevice() 52 public static void addDevice(int id, InputDevice device) { in addDevice() 89 public static InputDevice makeInputDevicebyId(int id) { in makeInputDevicebyId() 90 final InputDevice inputDevice = Shadow.newInstanceOf(InputDevice.class); in makeInputDevicebyId() 96 public static InputDevice makeInputDevicebyIdWithSources(int id, int sources) { in makeInputDevicebyIdWithSources() 97 final InputDevice inputDevice = Shadow.newInstanceOf(InputDevice.class); in makeInputDevicebyIdWithSources() 109 public static InputDevice makeFullKeyboardInputDevicebyId(int id) { in makeFullKeyboardInputDevicebyId() [all …]
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | InputPeripheralsSettingsUtils.java | 34 import android.view.InputDevice; 62 for (int deviceId : InputDevice.getDeviceIds()) { in isHardKeyboard() 63 final InputDevice device = InputDevice.getDevice(deviceId); in isHardKeyboard() 78 for (int deviceId : InputDevice.getDeviceIds()) { in isTouchpad() 79 final InputDevice device = InputDevice.getDevice(deviceId); in isTouchpad() 83 if ((device.getSources() & InputDevice.SOURCE_TOUCHPAD) in isTouchpad() 84 == InputDevice.SOURCE_TOUCHPAD) { in isTouchpad() 95 for (int deviceId : InputDevice.getDeviceIds()) { in isMouse() 96 final InputDevice device = InputDevice.getDevice(deviceId); in isMouse() 100 if ((device.getSources() & InputDevice.SOURCE_MOUSE) in isMouse() [all …]
|
D | MouseKeysMainPageFragment.java | 26 import android.view.InputDevice; 56 private InputDevice mCurrentInputDevice; 145 private InputDevice getInputDevice() { in getInputDevice() 146 InputDevice inputDevice = null; in getInputDevice() 147 for (int deviceId : InputDevice.getDeviceIds()) { in getInputDevice() 148 final InputDevice device = InputDevice.getDevice(deviceId); in getInputDevice()
|
D | PhysicalKeyboardA11yPreferenceController.java | 22 import android.view.InputDevice; 42 for (int deviceId : InputDevice.getDeviceIds()) { in isAnyHardKeyboardsExist() 43 final InputDevice device = InputDevice.getDevice(deviceId); in isAnyHardKeyboardsExist()
|
D | MouseKeysImageListAdapter.java | 20 import android.view.InputDevice; 66 @Nullable InputDevice currentInputDevice) { in MouseKeysImageListAdapter() 93 @Nullable InputDevice currentInputDevice) { in composeSummaryForImages() 123 private String getDisplayLabel(InputDevice currentInputDevice, int keycode) { in getDisplayLabel()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | TouchpadAndMouseSettingsControllerTest.java | 28 import android.view.InputDevice; 76 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in updateState_setTitleBasedOnDeviceSource() 77 InputDevice.SOURCE_TOUCHPAD); in updateState_setTitleBasedOnDeviceSource() 92 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_isTouchpadAvailable() 93 InputDevice.SOURCE_TOUCHPAD); in getAvailabilityStatus_isTouchpadAvailable() 107 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_isMouseAvailable() 108 InputDevice.SOURCE_MOUSE); in getAvailabilityStatus_isMouseAvailable() 119 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_noMouseOrTouchpadUnavailable() 120 InputDevice.SOURCE_UNKNOWN); in getAvailabilityStatus_noMouseOrTouchpadUnavailable()
|
D | PointerTouchpadPreferenceControllerTest.java | 24 import android.view.InputDevice; 61 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailableStatus_noTouchpadOrMouseConditionallyUnavailable() 62 InputDevice.SOURCE_BLUETOOTH_STYLUS); in getAvailableStatus_noTouchpadOrMouseConditionallyUnavailable() 72 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_isTouchpadAvailable() 73 InputDevice.SOURCE_TOUCHPAD); in getAvailabilityStatus_isTouchpadAvailable() 84 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_isMouseAvailable() 85 InputDevice.SOURCE_MOUSE); in getAvailabilityStatus_isMouseAvailable()
|
D | TouchpadThreeFingerTapPreferenceControllerTest.java | 36 import android.view.InputDevice; 87 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_flagEnabledHasTouchPad() 88 InputDevice.SOURCE_TOUCHPAD); in getAvailabilityStatus_flagEnabledHasTouchPad() 99 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_flagEnabledNoTouchPad() 100 InputDevice.SOURCE_BLUETOOTH_STYLUS); in getAvailabilityStatus_flagEnabledNoTouchPad() 111 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_flagDisabled() 112 InputDevice.SOURCE_TOUCHPAD); in getAvailabilityStatus_flagDisabled()
|
D | PhysicalKeyboardA11yPreferenceControllerTest.java | 26 import android.view.InputDevice; 58 InputDevice mInputDevice; 76 assertThat(InputDevice.getDeviceIds()).isNotEmpty(); in getAvailabilityStatus_expected() 92 assertThat(InputDevice.getDeviceIds()).isNotEmpty(); in getAvailabilityStatus_deviceIsNotAsExpected_unavailable()
|
D | TouchpadSettingsControllerTest.java | 25 import android.view.InputDevice; 81 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_isTouchpad_returnsAvailable() 82 InputDevice.SOURCE_TOUCHPAD); in getAvailabilityStatus_isTouchpad_returnsAvailable()
|
D | MouseSettingsControllerTest.java | 25 import android.view.InputDevice; 81 InputDevice device = ShadowInputDevice.makeInputDevicebyIdWithSources(deviceId, in getAvailabilityStatus_isMouse_returnsAvailable() 82 InputDevice.SOURCE_MOUSE); in getAvailabilityStatus_isMouse_returnsAvailable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDeviceUpdaterTest.java | 36 import android.view.InputDevice; 60 private InputDevice mStylusDevice; 61 private InputDevice mOtherDevice; 87 mOtherDevice = new InputDevice.Builder().setId(0).setName("other").setSources( in setUp() 88 InputDevice.SOURCE_DPAD).build(); in setUp() 90 mStylusDevice = new InputDevice.Builder().setId(1).setName("Pen").setExternal( in setUp() 92 InputDevice.SOURCE_STYLUS).build(); in setUp() 257 InputDevice stylusDevice = new InputDevice.Builder().setId(1).setName("Pen").setSources( in detectsConnectedBluetoothStylus() 258 InputDevice.SOURCE_STYLUS) in detectsConnectedBluetoothStylus() 268 InputDevice stylusDevice = new InputDevice.Builder().setId(1).setName("Pen").setSources( in detectsDisconnectedBluetoothStylus() [all …]
|
D | StylusUsiHeaderControllerTest.java | 29 import android.view.InputDevice; 56 private InputDevice mInputDevice; 69 InputDevice device = new InputDevice.Builder().setId(1).setSources( in setUp() 70 InputDevice.SOURCE_BLUETOOTH_STYLUS).build(); in setUp()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/ |
D | InputDeviceResultTask.java | 30 import android.view.InputDevice; 107 for (final InputDevice device : getPhysicalFullKeyboards()) { in buildPhysicalKeyboardSearchResults() 178 private List<InputDevice> getPhysicalFullKeyboards() { in getPhysicalFullKeyboards() 179 final List<InputDevice> keyboards = new ArrayList<>(); in getPhysicalFullKeyboards() 180 final int[] deviceIds = InputDevice.getDeviceIds(); in getPhysicalFullKeyboards() 183 final InputDevice device = InputDevice.getDevice(deviceId); in getPhysicalFullKeyboards() 220 private static boolean isFullPhysicalKeyboard(InputDevice device) { in isFullPhysicalKeyboard() 222 (device.getSources() & InputDevice.SOURCE_KEYBOARD) in isFullPhysicalKeyboard() 223 == InputDevice.SOURCE_KEYBOARD in isFullPhysicalKeyboard() 224 && device.getKeyboardType() == InputDevice.KEYBOARD_TYPE_ALPHABETIC; in isFullPhysicalKeyboard()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LaunchedAppState.java | 32 import android.view.InputDevice; 242 InputDevice.SOURCE_MOUSE); 248 InputDevice.SOURCE_MOUSE); 266 InputDevice.SOURCE_MOUSE); 278 InputDevice.SOURCE_MOUSE); 298 InputDevice.SOURCE_MOUSE); 310 null, InputDevice.SOURCE_MOUSE); 332 InputDevice.SOURCE_MOUSE); 341 null, InputDevice.SOURCE_MOUSE); 345 InputDevice.SOURCE_MOUSE); [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | TouchUtilTest.kt | 19 import android.view.InputDevice 35 ev.source = InputDevice.SOURCE_MOUSE in isMouseRightClickDownOrMove_onMouseRightButton_returnsTrue() 44 ev.source = InputDevice.SOURCE_MOUSE in isMouseRightClickDownOrMove_onMouseLeftButton_returnsFalse() 53 ev.source = InputDevice.SOURCE_MOUSE in isMouseRightClickDownOrMove_onMouseTertiaryButton_returnsFalse() 62 ev.source = InputDevice.SOURCE_DPAD in isMouseRightClickDownOrMove_onDpadRightButton_returnsFalse()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | InputHalService.java | 45 import android.view.InputDevice; 591 return InputDevice.SOURCE_KEYBOARD; 593 return InputDevice.SOURCE_DPAD; 595 return InputDevice.SOURCE_GAMEPAD; 597 return InputDevice.SOURCE_TOUCHSCREEN; 599 return InputDevice.SOURCE_MOUSE; 601 return InputDevice.SOURCE_STYLUS; 603 return InputDevice.SOURCE_BLUETOOTH_STYLUS; 605 return InputDevice.SOURCE_TRACKBALL; 607 return InputDevice.SOURCE_MOUSE_RELATIVE; [all …]
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDeviceUpdater.java | 26 import android.view.InputDevice; 102 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceAdded() 105 if (inputDevice.supportsSource(InputDevice.SOURCE_STYLUS) in onInputDeviceAdded() 126 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged() 129 if (inputDevice.supportsSource(InputDevice.SOURCE_STYLUS)) { in onInputDeviceChanged() 195 InputDevice device = mInputManager.getInputDevice(deviceId); in hasConnectedBluetoothStylusDevice() 198 if (device.supportsSource(InputDevice.SOURCE_STYLUS) in hasConnectedBluetoothStylusDevice()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDevicePairer.java | 35 import android.view.InputDevice; 186 InputDevice device = inMan.getInputDevice(deviceIds[ptr]); in hasValidInputDevice() 191 if ((sources & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD) { in hasValidInputDevice() 195 if ((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) { in hasValidInputDevice() 199 if ((sources & InputDevice.SOURCE_MOUSE) == InputDevice.SOURCE_MOUSE) { in hasValidInputDevice() 203 if ((sources & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK) { in hasValidInputDevice() 207 if ((sources & InputDevice.SOURCE_KEYBOARD) == InputDevice.SOURCE_KEYBOARD) { in hasValidInputDevice()
|
/packages/modules/Virtualization/android/TerminalApp/java/com/android/virtualization/terminal/ |
D | InputForwarder.kt | 24 import android.view.InputDevice in <lambda>() 79 receiver.requestUnbufferedDispatch(InputDevice.SOURCE_ANY) in <lambda>() 82 if ((eventSource and InputDevice.SOURCE_CLASS_POSITION) != 0) { in <lambda>() 136 for (id in InputDevice.getDeviceIds()) { in <lambda>() 137 val d = InputDevice.getDevice(id) in <lambda>()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDeviceDetailsFragmentTest.java | 44 import android.view.InputDevice; 148 InputDevice inputDevice = mock(InputDevice.class); in verifyOnAttachResult_flagEnabledAndInputDeviceSet_returnsInputDevice() 166 InputDevice inputDevice = mock(InputDevice.class); in verifyOnAttachResult_flagDisabled_returnsNullInputDevice() 194 InputDevice inputDevice = mock(InputDevice.class); in getTitle_inputDeviceTitle() 195 doReturn(true).when(inputDevice).supportsSource(InputDevice.SOURCE_STYLUS); in getTitle_inputDeviceTitle()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | ActiveTrackpadList.kt | 21 import android.view.InputDevice 70 (InputDevice.SOURCE_MOUSE or InputDevice.SOURCE_TOUCHPAD)
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/ |
D | PhysicalKeyboardHelper.java | 26 import android.view.InputDevice; 51 for (int deviceId : InputDevice.getDeviceIds()) { in getPhysicalKeyboards() 52 final InputDevice device = InputDevice.getDevice(deviceId); in getPhysicalKeyboards()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | ActiveTrackpadListTest.kt | 20 import android.view.InputDevice 21 import android.view.InputDevice.SOURCE_MOUSE 22 import android.view.InputDevice.SOURCE_TOUCHPAD 135 mock(InputDevice::class.java).apply { doReturn(sources).whenever(this).sources } in mockDevice()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | TouchUtil.java | 18 import android.view.InputDevice; 34 return event.isFromSource(InputDevice.SOURCE_MOUSE) in isMouseRightClickDownOrMove()
|