/frameworks/base/core/java/android/view/ |
InputDevice.aidl | 1 /* //device/java/android/android.view.InputDevice.aidl 20 parcelable InputDevice;
|
InputEvent.java | 56 * @see InputDevice#getDevice 65 public final InputDevice getDevice() { 66 return InputDevice.getDevice(getDeviceId()); 72 * @return The event source or {@link InputDevice#SOURCE_UNKNOWN} if unknown. 73 * @see InputDevice#getSources 89 * {@link InputDevice#SOURCE_TOUCH_NAVIGATION}, or a more generic device class, such as 90 * {@link InputDevice#SOURCE_CLASS_POINTER}.
|
InputDevice.java | 44 public final class InputDevice implements Parcelable { 337 public static final Parcelable.Creator<InputDevice> CREATOR = 338 new Parcelable.Creator<InputDevice>() { 339 public InputDevice createFromParcel(Parcel in) { 340 return new InputDevice(in); 342 public InputDevice[] newArray(int size) { 343 return new InputDevice[size]; 348 private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, 366 private InputDevice(Parcel in) { 396 public static InputDevice getDevice(int id) [all...] |
InputEventConsistencyVerifier.java | 176 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { 265 if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { 354 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { 469 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { 493 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { 542 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyTouchEvent.java | 19 import android.view.InputDevice; 27 super(MonkeyEvent.EVENT_TYPE_TOUCH, InputDevice.SOURCE_TOUCHSCREEN, action);
|
MonkeyTrackballEvent.java | 19 import android.view.InputDevice; 26 super(MonkeyEvent.EVENT_TYPE_TRACKBALL, InputDevice.SOURCE_TRACKBALL, action);
|
MonkeyKeyEvent.java | 23 import android.view.InputDevice; 131 KeyEvent.FLAG_FROM_SYSTEM, InputDevice.SOURCE_KEYBOARD);
|
/frameworks/base/core/jni/ |
android_view_InputDevice.h | 22 #include <input/InputDevice.h> 26 /* Creates an InputDevice object from the given information. */
|
/frameworks/base/cmds/input/src/com/android/commands/input/ |
Input.java | 22 import android.view.InputDevice; 40 put("keyboard", InputDevice.SOURCE_KEYBOARD); 41 put("dpad", InputDevice.SOURCE_DPAD); 42 put("gamepad", InputDevice.SOURCE_GAMEPAD); 43 put("touchscreen", InputDevice.SOURCE_TOUCHSCREEN); 44 put("mouse", InputDevice.SOURCE_MOUSE); 45 put("stylus", InputDevice.SOURCE_STYLUS); 46 put("trackball", InputDevice.SOURCE_TRACKBALL); 47 put("touchpad", InputDevice.SOURCE_TOUCHPAD); 48 put("touchnavigation", InputDevice.SOURCE_TOUCH_NAVIGATION) [all...] |
/development/samples/ControllerSample/src/com/example/inputmanagercompat/ |
InputManagerCompat.java | 22 import android.view.InputDevice; 32 public InputDevice getInputDevice(int id);
|
InputManagerV9.java | 24 import android.view.InputDevice; 69 if (null == InputDevice.getDevice(id)) { 98 public InputDevice getInputDevice(int id) { 99 return InputDevice.getDevice(id); 106 int[] activeDevices = InputDevice.getDeviceIds();
|
InputManagerV16.java | 24 import android.view.InputDevice; 42 public InputDevice getInputDevice(int id) {
|
/frameworks/base/core/java/android/hardware/input/ |
IInputManager.aidl | 22 import android.view.InputDevice; 28 InputDevice getInputDevice(int deviceId);
|
InputManager.java | 36 import android.view.InputDevice; 64 private SparseArray<InputDevice> mInputDevices; 199 public InputDevice getInputDevice(int id) { 208 InputDevice inputDevice = mInputDevices.valueAt(index); 209 if (inputDevice == null) { 211 inputDevice = mIm.getInputDevice(id); 215 if (inputDevice != null) { 216 mInputDevices.setValueAt(index, inputDevice); 219 return inputDevice; [all...] |
/external/droiddriver/src/com/google/android/droiddriver/util/ |
Events.java | 20 import android.view.InputDevice; 37 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 47 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 57 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 63 event.setSource(InputDevice.SOURCE_KEYBOARD);
|
/frameworks/base/services/java/com/android/server/wm/ |
PointerEventDispatcher.java | 20 import android.view.InputDevice; 42 && (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) {
|
/frameworks/base/services/input/ |
InputReader.h | 47 class InputDevice; 356 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0; 412 virtual InputDevice* createDeviceLocked(int32_t deviceId, int32_t controllerNumber, 425 InputDevice* device, int32_t keyCode, int32_t scanCode); 451 KeyedVector<int32_t, InputDevice*> mDevices; 477 InputDevice* device, int32_t keyCode, int32_t scanCode); 486 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code); 508 class InputDevice { 510 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, int32_t 512 ~InputDevice(); [all...] |
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
InteractionController.java | 26 import android.view.InputDevice; 194 InputDevice.SOURCE_KEYBOARD); 198 InputDevice.SOURCE_KEYBOARD); 311 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 322 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 334 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); 551 InputDevice.SOURCE_KEYBOARD); 555 InputDevice.SOURCE_KEYBOARD); 714 properties, pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0); 720 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GameControllerInput.java | 29 import android.view.InputDevice; 35 import android.view.InputDevice.MotionRange; 145 if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK) 159 final InputDevice device = mInputManager.getInputDevice(deviceId); 203 private final InputDevice mDevice; 208 public InputDeviceState(InputDevice device) { 214 if (range.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK)) { 223 if (range.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK)) { 231 public InputDevice getDevice() {
|
/development/samples/ControllerSample/src/com/example/controllersample/ |
GameView.java | 34 import android.view.InputDevice; 116 InputDevice dev = mInputManager.getInputDevice(deviceId); 119 if (((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) || 120 ((sources & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK)) { 163 if ((((eventSource & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) || 164 ((eventSource & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK) [all...] |
/frameworks/native/include/input/ |
Keyboard.h | 21 #include <input/InputDevice.h>
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
KeyboardLayoutPickerFragment.java | 30 import android.view.InputDevice; 73 InputDevice inputDevice = mIm.getInputDeviceByDescriptor(mInputDeviceDescriptor); 74 if (inputDevice == null) { 78 mInputDeviceId = inputDevice.getId();
|
InputMethodAndLanguageSettings.java | 50 import android.view.InputDevice; 489 final int[] devices = InputDevice.getDeviceIds(); 491 InputDevice device = InputDevice.getDevice(devices[i]); 585 final int[] devices = InputDevice.getDeviceIds(); 587 InputDevice device = InputDevice.getDevice(devices[i]);
|
/frameworks/base/services/java/com/android/server/input/ |
InputManagerService.java | 71 import android.view.InputDevice; 126 private InputDevice[] mInputDevices = new InputDevice[0]; 132 private final ArrayList<InputDevice> 133 mTempFullKeyboards = new ArrayList<InputDevice>(); // handler thread only 359 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to 372 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to 385 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to 398 * @param sourceMask The input sources to consult, or {@link InputDevice#SOURCE_ANY} to 550 public InputDevice getInputDevice(int deviceId) [all...] |
/frameworks/base/cmds/media/src/com/android/commands/media/ |
Media.java | 30 import android.view.InputDevice; 125 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); 127 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD));
|