Home
last modified time | relevance | path

Searched refs:InputDevice (Results 1 – 25 of 77) sorted by relevance

1234

/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java22 import android.view.InputDevice;
41 put("keyboard", InputDevice.SOURCE_KEYBOARD);
42 put("dpad", InputDevice.SOURCE_DPAD);
43 put("gamepad", InputDevice.SOURCE_GAMEPAD);
44 put("touchscreen", InputDevice.SOURCE_TOUCHSCREEN);
45 put("mouse", InputDevice.SOURCE_MOUSE);
46 put("stylus", InputDevice.SOURCE_STYLUS);
47 put("trackball", InputDevice.SOURCE_TRACKBALL);
48 put("touchpad", InputDevice.SOURCE_TOUCHPAD);
49 put("touchnavigation", InputDevice.SOURCE_TOUCH_NAVIGATION);
[all …]
/frameworks/base/core/java/android/view/
DSearchEvent.java24 private InputDevice mInputDevice;
27 public SearchEvent(InputDevice inputDevice) { in SearchEvent()
35 public InputDevice getInputDevice() { in getInputDevice()
DInputDevice.java47 public final class InputDevice implements Parcelable { class
397 public static final Parcelable.Creator<InputDevice> CREATOR =
398 new Parcelable.Creator<InputDevice>() {
399 public InputDevice createFromParcel(Parcel in) {
400 return new InputDevice(in);
402 public InputDevice[] newArray(int size) {
403 return new InputDevice[size];
408 private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, in InputDevice() method in InputDevice
429 private InputDevice(Parcel in) { in InputDevice() method in InputDevice
462 public static InputDevice getDevice(int id) { in getDevice()
DInputEvent.java65 public final InputDevice getDevice() { in getDevice()
66 return InputDevice.getDevice(getDeviceId()); in getDevice()
DInputEventConsistencyVerifier.java180 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onInputEvent()
269 if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onTrackballEvent()
358 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onTouchEvent()
475 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent()
555 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onGenericMotionEvent()
604 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onUnhandledEvent()
DInputDevice.aidl20 parcelable InputDevice;
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java26 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/native/services/inputflinger/
DInputReader.h52 class InputDevice; variable
381 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0;
444 virtual InputDevice* createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
457 InputDevice* device, int32_t keyCode, int32_t scanCode);
485 KeyedVector<int32_t, InputDevice*> mDevices;
515 InputDevice* device, int32_t keyCode, int32_t scanCode);
524 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
546 class InputDevice {
548 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, int32_t
550 ~InputDevice();
[all …]
DInputReader.cpp467 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes); in addDeviceLocked()
488 InputDevice* device = NULL; in removeDeviceLocked()
515 InputDevice* InputReader::createDeviceLocked(int32_t deviceId, int32_t controllerNumber, in createDeviceLocked()
517 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked()
598 InputDevice* device = mDevices.valueAt(deviceIndex); in processEventsForDeviceLocked()
609 InputDevice* device = mDevices.valueAt(i); in timeoutExpiredLocked()
637 InputDevice* device = mDevices.valueAt(i); in refreshConfigurationLocked()
648 InputDevice* device = mDevices.valueAt(i); in updateGlobalMetaStateLocked()
663 InputDevice* device = mDevices.valueAt(i); in getExternalStylusDevicesLocked()
673 InputDevice* device = mDevices.valueAt(i); in dispatchExternalStylusState()
[all …]
/frameworks/base/core/java/android/hardware/input/
DInputManager.java42 import android.view.InputDevice;
74 private SparseArray<InputDevice> mInputDevices;
244 public InputDevice getInputDevice(int id) { in getInputDevice()
253 InputDevice inputDevice = mInputDevices.valueAt(index); in getInputDevice()
274 public InputDevice getInputDeviceByDescriptor(String descriptor) { in getInputDeviceByDescriptor()
284 InputDevice inputDevice = mInputDevices.valueAt(i); in getInputDeviceByDescriptor()
885 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
1013 mInputDevices = new SparseArray<InputDevice>(); in populateInputDevicesLocked()
1041 final InputDevice device = mInputDevices.valueAt(index); in onInputDevicesChanged()
DIInputManager.aidl26 import android.view.InputDevice;
35 InputDevice getInputDevice(int deviceId); in getInputDevice()
/frameworks/base/services/core/java/com/android/server/wm/
DPointerEventDispatcher.java20 import android.view.InputDevice;
42 && (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onInputEvent()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DMouseUiController.java27 import android.view.InputDevice;
67 event.setSource(InputDevice.SOURCE_MOUSE); in injectMotionEvent()
DMouseClickAction.java26 import android.view.InputDevice;
79 return sendTap(uiController, coordinates, precision, InputDevice.SOURCE_UNKNOWN, in sendTap()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DBasicGLSurfaceView.java7 import android.view.InputDevice;
64 if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK)) { in onGenericMotionEvent()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtils.java30 import android.view.InputDevice;
318 eventDown.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectDownEvent()
328 eventMove.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectMoveEventForTap()
339 eventUp.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectUpEvent()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java95 import android.view.InputDevice;
168 private InputDevice[] mInputDevices = new InputDevice[0];
174 private final ArrayList<InputDevice>
175 mTempFullKeyboards = new ArrayList<InputDevice>(); // handler thread only
646 public InputDevice getInputDevice(int deviceId) { in getInputDevice()
650 final InputDevice inputDevice = mInputDevices[i]; in getInputDevice()
705 public InputDevice[] getInputDevices() { in getInputDevices()
745 private void deliverInputDevicesChanged(InputDevice[] oldInputDevices) { in deliverInputDevicesChanged()
767 final InputDevice inputDevice = mInputDevices[i]; in deliverInputDevicesChanged()
790 List<InputDevice> keyboardsMissingLayout = new ArrayList<>(); in deliverInputDevicesChanged()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityInputFilter.java26 import android.view.InputDevice;
239 if (event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)) { in getEventStreamState()
245 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in getEventStreamState()
252 if (event.isFromSource(InputDevice.SOURCE_KEYBOARD)) { in getEventStreamState()
DAutoclickController.java29 import android.view.InputDevice;
77 if (event.isFromSource(InputDevice.SOURCE_MOUSE)) { in onMotionEvent()
125 if (inputSource == InputDevice.SOURCE_MOUSE && mClickScheduler != null) { in clearEvents()
/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java29 import android.view.InputDevice;
105 … if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_HEADPHONE_INSERT) == 1) { in onSystemReady()
108 … if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_MICROPHONE_INSERT) == 1) { in onSystemReady()
111 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_LINEOUT_INSERT) == 1) { in onSystemReady()
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java36 import android.view.InputDevice;
175 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
177 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java29 import android.view.InputDevice;
569 InputDevice device = InputDevice.getDevice(event.getDeviceId()); in onPointerEvent()
672 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent()
674 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onGenericMotionEvent()
676 } else if ((source & InputDevice.SOURCE_CLASS_POSITION) != 0) { in onGenericMotionEvent()
758 int[] deviceIds = InputDevice.getDeviceIds(); in logInputDevices()
765 InputDevice device = mIm.getInputDevice(deviceId); in logInputDeviceState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java40 import android.view.InputDevice;
257 public static boolean isGamePad(InputDevice dev) { in isGamePad()
261 return (((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) in isGamePad()
262 || ((sources & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK)); in isGamePad()
267 int[] deviceIds = InputDevice.getDeviceIds(); in getGameControllers()
269 InputDevice dev = InputDevice.getDevice(deviceId); in getGameControllers()
376 InputDevice dev = InputDevice.getDevice(controllerId); in thump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DRecentsViewTouchHandler.java23 import android.view.InputDevice;
165 InputDevice device = InputDevice.getDevice(mDeviceId); in onBusEvent()
/frameworks/base/core/java/android/app/
DActivityView.java29 import android.view.InputDevice;
213 if (event.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) { in onGenericMotionEvent()

1234