/frameworks/base/core/tests/coretests/src/android/view/ |
D | HapticScrollFeedbackProviderTest.java | 76 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL, in testRotaryEncoder_noFeedbackWhenViewBasedFeedbackIsEnabled() 79 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL); in testRotaryEncoder_noFeedbackWhenViewBasedFeedbackIsEnabled() 81 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL, in testRotaryEncoder_noFeedbackWhenViewBasedFeedbackIsEnabled() 96 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL, in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics() 99 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL); in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics() 101 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL, in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics() 115 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL); in testNoFeedbackWhenFeedbackIsDisabled() 117 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL, in testNoFeedbackWhenFeedbackIsDisabled() 120 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL, in testNoFeedbackWhenFeedbackIsDisabled() 123 INPUT_DEVICE_1, InputDevice.SOURCE_ROTARY_ENCODER, MotionEvent.AXIS_SCROLL, in testNoFeedbackWhenFeedbackIsDisabled() [all …]
|
D | MotionEventTest.java | 19 import static android.view.InputDevice.SOURCE_CLASS_POINTER; 74 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId() 79 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, displayId); in testObtainWithDisplayId() 94 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId() 102 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testCalculatesCursorPositionForTouchscreenEvents() 112 event.setSource(InputDevice.SOURCE_MOUSE); in testCalculatesCursorPositionForSimpleMouseEvents() 123 event.setSource(InputDevice.SOURCE_MOUSE); in testCalculatesCursorPositionForSimpleMouseEventsWithOffset() 139 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_MOUSE, in testCalculatesCursorPositionForMultiTouchMouseEvents() 179 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testEventRotation() 232 event.setSource(InputDevice.SOURCE_JOYSTICK); in testLocationOffsetOnlyAppliedToNonPointerSources() [all …]
|
/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 42 InputDevice::InputDevice(InputReaderContext* context, int32_t id, int32_t generation, in InputDevice() function in android::InputDevice 56 InputDevice::~InputDevice() {} in ~InputDevice() 58 bool InputDevice::isEnabled() { in isEnabled() 69 std::list<NotifyArgs> InputDevice::updateEnableState(nsecs_t when, in updateEnableState() 112 void InputDevice::dump(std::string& dump, const std::string& eventHubDevStr) { in dump() 172 void InputDevice::addEmptyEventHubDevice(int32_t eventHubId) { in addEmptyEventHubDevice() 182 [[nodiscard]] std::list<NotifyArgs> InputDevice::addEventHubDevice( in addEventHubDevice() 203 void InputDevice::removeEventHubDevice(int32_t eventHubId) { in removeEventHubDevice() 211 std::list<NotifyArgs> InputDevice::configure(nsecs_t when, in configure() 216 std::list<NotifyArgs> InputDevice::configureInternal(nsecs_t when, in configureInternal() [all …]
|
D | InputReader.cpp | 271 std::shared_ptr<InputDevice> device = createDeviceLocked(when, eventHubId, identifier); in addDeviceLocked() 316 std::shared_ptr<InputDevice> device = std::move(deviceIt->second); in removeDeviceLocked() 353 std::shared_ptr<InputDevice> InputReader::createDeviceLocked( in createDeviceLocked() 361 std::shared_ptr<InputDevice> device; in createDeviceLocked() 366 device = std::make_shared<InputDevice>(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked() 382 std::shared_ptr<InputDevice>& device = deviceIt->second; in processEventsForDeviceLocked() 391 InputDevice* InputReader::findInputDeviceLocked(int32_t deviceId) const { in findInputDeviceLocked() 405 std::shared_ptr<InputDevice>& device = devicePair.second; in timeoutExpiredLocked() 439 std::shared_ptr<InputDevice>& device = devicePair.second; in refreshConfigurationLocked() 461 std::shared_ptr<InputDevice>& device = devicePair.second; in updateGlobalMetaStateLocked() [all …]
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | InputDeviceTest.java | 36 private void assertMotionRangeEquals(InputDevice.MotionRange range, in assertMotionRangeEquals() 37 InputDevice.MotionRange outRange) { in assertMotionRangeEquals() 47 private void assertDeviceEquals(InputDevice device, InputDevice outDevice) { in assertDeviceEquals() 71 InputDevice.MotionRange motionRange = device.getMotionRanges().get(j); in assertDeviceEquals() 83 final InputDevice.Builder deviceBuilder = new InputDevice.Builder() in assertInputDeviceParcelUnparcel() 93 .setSources(InputDevice.SOURCE_HDMI) in assertInputDeviceParcelUnparcel() 94 .setKeyboardType(InputDevice.KEYBOARD_TYPE_NON_ALPHABETIC) in assertInputDeviceParcelUnparcel() 111 InputDevice.SOURCE_UNKNOWN, in assertInputDeviceParcelUnparcel() 119 final InputDevice device = deviceBuilder.build(); in assertInputDeviceParcelUnparcel() 125 InputDevice outDevice = InputDevice.CREATOR.createFromParcel(parcel); in assertInputDeviceParcelUnparcel()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/hardware/ |
D | InputDevice.kt | 19 import android.view.InputDevice 25 val InputDevice.isInternalStylusSource: Boolean constant 29 val InputDevice.isExternalStylusSource: Boolean constant 38 val InputDevice.isAnyStylusSource: Boolean constant 39 get() = supportsSource(InputDevice.SOURCE_STYLUS)
|
D | InputManager.kt | 20 import android.view.InputDevice 40 fun InputManager.getInputDeviceSequence(): Sequence<InputDevice> = in InputManager() 47 fun InputManager.findInputDevice(predicate: (InputDevice) -> Boolean): InputDevice? = in findInputDevice() 59 fun InputManager.hasInputDevice(predicate: (InputDevice) -> Boolean): Boolean = in hasInputDevice()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputShellCommand.java | 21 import static android.view.InputDevice.SOURCE_CLASS_POINTER; 57 import android.view.InputDevice; 113 map.put("keyboard", InputDevice.SOURCE_KEYBOARD); 114 map.put("dpad", InputDevice.SOURCE_DPAD); 115 map.put("gamepad", InputDevice.SOURCE_GAMEPAD); 116 map.put("touchscreen", InputDevice.SOURCE_TOUCHSCREEN); 117 map.put("mouse", InputDevice.SOURCE_MOUSE); 118 map.put("stylus", InputDevice.SOURCE_STYLUS); 119 map.put("trackball", InputDevice.SOURCE_TRACKBALL); 120 map.put("touchpad", InputDevice.SOURCE_TOUCHPAD); [all …]
|
D | KeyboardLedController.java | 36 import android.view.InputDevice; 53 private final SparseArray<InputDevice> mKeyboardsWithMicMuteLed = new SparseArray<>(); 97 InputDevice device = mKeyboardsWithMicMuteLed.valueAt(i); in updateMicMuteLedState() 108 private Light getKeyboardMicMuteLight(InputDevice device) { in getKeyboardMicMuteLight() 148 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged() 165 InputDevice inputDevice = mKeyboardsWithMicMuteLed.valueAt(i); in dump()
|
/frameworks/native/services/inputflinger/tests/ |
D | InstrumentedInputReader.cpp | 26 void InstrumentedInputReader::pushNextDevice(std::shared_ptr<InputDevice> device) { in pushNextDevice() 30 std::shared_ptr<InputDevice> InstrumentedInputReader::newDevice(int32_t deviceId, in newDevice() 37 return std::make_shared<InputDevice>(&mFakeContext, deviceId, generation, identifier); in newDevice() 40 std::shared_ptr<InputDevice> InstrumentedInputReader::createDeviceLocked( in createDeviceLocked() 43 std::shared_ptr<InputDevice> device(std::move(mNextDevices.front())); in createDeviceLocked()
|
D | InstrumentedInputReader.h | 37 void pushNextDevice(std::shared_ptr<InputDevice> device); 39 std::shared_ptr<InputDevice> newDevice(int32_t deviceId, const std::string& name, 46 virtual std::shared_ptr<InputDevice> createDeviceLocked( 128 std::queue<std::shared_ptr<InputDevice>> mNextDevices;
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DragDetectorTest.kt | 22 import android.view.InputDevice 77 it.source == InputDevice.SOURCE_TOUCHSCREEN in testNoMove_passesDownAndUp() 83 it.source == InputDevice.SOURCE_TOUCHSCREEN in testNoMove_passesDownAndUp() 96 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveInSlop_touch_passesDownAndUp() 109 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveInSlop_touch_passesDownAndUp() 123 it.source == InputDevice.SOURCE_MOUSE in testMoveInSlop_mouse_passesDownMoveAndUp() 131 it.source == InputDevice.SOURCE_MOUSE in testMoveInSlop_mouse_passesDownMoveAndUp() 138 it.source == InputDevice.SOURCE_MOUSE in testMoveInSlop_mouse_passesDownMoveAndUp() 151 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveBeyondSlop_passesDownMoveAndUp() 158 it.source == InputDevice.SOURCE_TOUCHSCREEN in testMoveBeyondSlop_passesDownMoveAndUp() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | SystemActionPerformer.java | 32 import android.view.InputDevice; 280 sendDownAndUpKeyEvents(KeyEvent.KEYCODE_BACK, InputDevice.SOURCE_KEYBOARD); in performSystemAction() 284 sendDownAndUpKeyEvents(KeyEvent.KEYCODE_HOME, InputDevice.SOURCE_KEYBOARD); in performSystemAction() 308 InputDevice.SOURCE_KEYBOARD); in performSystemAction() 313 InputDevice.SOURCE_KEYBOARD | InputDevice.SOURCE_DPAD); in performSystemAction() 317 InputDevice.SOURCE_KEYBOARD | InputDevice.SOURCE_DPAD); in performSystemAction() 321 InputDevice.SOURCE_KEYBOARD | InputDevice.SOURCE_DPAD); in performSystemAction() 325 InputDevice.SOURCE_KEYBOARD | InputDevice.SOURCE_DPAD); in performSystemAction() 329 InputDevice.SOURCE_KEYBOARD | InputDevice.SOURCE_DPAD); in performSystemAction()
|
/frameworks/base/core/java/android/view/ |
D | SearchEvent.java | 24 private InputDevice mInputDevice; 27 public SearchEvent(InputDevice inputDevice) { in SearchEvent() 35 public InputDevice getInputDevice() { in getInputDevice()
|
D | InputDevice.java | 69 public final class InputDevice implements Parcelable { class 488 public static final @android.annotation.NonNull Parcelable.Creator<InputDevice> CREATOR = 489 new Parcelable.Creator<InputDevice>() { 490 public InputDevice createFromParcel(Parcel in) { 491 return new InputDevice(in); 493 public InputDevice[] newArray(int size) { 494 return new InputDevice[size]; 501 private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, in InputDevice() method in InputDevice 540 private InputDevice(Parcel in) { in InputDevice() method in InputDevice 763 public InputDevice build() { in build() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterTest.java | 46 import android.view.InputDevice; 273 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 274 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 290 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForDisplayEventHandlers() 291 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForDisplayEventHandlers() 296 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForDisplayEventHandlers() 314 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers() 315 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers() 316 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers() 320 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MagnificationGestureHandlerTest.java | 29 import android.view.InputDevice; 72 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_isFromScreen_onMotionEventInternal() 86 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_downEvent_handleInteractionStart() 100 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_upEvent_handleInteractionEnd() 114 cancelEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_cancelEvent_handleInteractionEnd()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/ |
D | StylusUsiPowerStartableTest.kt | 22 import android.view.InputDevice 44 @Mock lateinit var stylusDevice: InputDevice 45 @Mock lateinit var externalDevice: InputDevice 70 whenever(stylusDevice.supportsSource(InputDevice.SOURCE_STYLUS)).thenReturn(true) in setUp() 73 whenever(externalDevice.supportsSource(InputDevice.SOURCE_STYLUS)).thenReturn(true) in setUp()
|
/frameworks/base/tests/Input/src/android/hardware/input/ |
D | InputDeviceSensorManagerTest.java | 39 import android.view.InputDevice; 144 private InputDevice createInputDeviceWithSensor(int id) { in createInputDeviceWithSensor() 145 return new InputDevice.Builder() in createInputDeviceWithSensor() 161 private InputDevice getSensorDevice(int[] deviceIds) { in getSensorDevice() 163 InputDevice device = mInputManager.getInputDevice(deviceId); in getSensorDevice() 173 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withExpectedType() 193 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in getInputDeviceSensors_withUnexpectedType() 210 InputDevice device = getSensorDevice(mInputManager.getInputDeviceIds()); in testInputDeviceSensorListener()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 26 import android.view.InputDevice; 192 InputDevice.SOURCE_KEYBOARD); in sendKeyAndWaitForEvent() 196 InputDevice.SOURCE_KEYBOARD); in sendKeyAndWaitForEvent() 309 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 320 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 332 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 549 InputDevice.SOURCE_KEYBOARD); 553 InputDevice.SOURCE_KEYBOARD); 712 properties, pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0); 718 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0); [all …]
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | KeyboardMetricsCollectorTests.kt | 23 import android.view.InputDevice 37 ): InputDevice = in createKeyboard() 38 InputDevice.Builder() in createKeyboard() 42 .setSources(InputDevice.SOURCE_KEYBOARD) in createKeyboard() 43 .setKeyboardType(InputDevice.KEYBOARD_TYPE_ALPHABETIC) in createKeyboard()
|
D | KeyRemapperTests.kt | 27 import android.view.InputDevice 43 private fun createKeyboard(deviceId: Int): InputDevice = in createKeyboard() 44 InputDevice.Builder() in createKeyboard() 48 .setSources(InputDevice.SOURCE_KEYBOARD) in createKeyboard() 49 .setKeyboardType(InputDevice.KEYBOARD_TYPE_ALPHABETIC) in createKeyboard()
|
/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/ |
D | DrawingView.kt | 24 import android.view.InputDevice in <lambda>() 25 import android.view.InputDevice.SOURCE_MOUSE in <lambda>() 26 import android.view.InputDevice.SOURCE_STYLUS in <lambda>() 27 import android.view.InputDevice.SOURCE_TOUCHSCREEN in <lambda>() 28 import android.view.InputDevice.SOURCE_TOUCHPAD in <lambda>() 138 val inputDevice = InputDevice.getDevice(event.deviceId) in resolvePaint()
|
/frameworks/native/libs/input/rust/ |
D | keyboard_classifier.rs | 37 use crate::input::{DeviceId, InputDevice, KeyboardType}; 49 _device: InputDevice, 61 pub fn notify_keyboard_changed(&mut self, device: InputDevice) { in notify_keyboard_changed() argument 113 fn classify_keyboard(&self, device: &InputDevice) -> (KeyboardType, bool) { in classify_keyboard() 171 use crate::input::{DeviceId, InputDevice, KeyboardType}; 329 fn create_device(classes: DeviceClass) -> InputDevice { in create_device() argument 330 InputDevice { in create_device()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
D | InputManagerMockHelper.java | 31 import android.view.InputDevice; 52 private final List<InputDevice> mDevices = new ArrayList<>(); 108 final InputDevice device = new InputDevice.Builder() in handleNativeOpenInputDevice()
|