/frameworks/base/cmds/input/src/com/android/commands/input/ |
D | 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 …]
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 45 public final class InputDevice implements Parcelable { class 347 public static final Parcelable.Creator<InputDevice> CREATOR = 348 new Parcelable.Creator<InputDevice>() { 349 public InputDevice createFromParcel(Parcel in) { 350 return new InputDevice(in); 352 public InputDevice[] newArray(int size) { 353 return new InputDevice[size]; 358 private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId, in InputDevice() method in InputDevice 377 private InputDevice(Parcel in) { in InputDevice() method in InputDevice 408 public static InputDevice getDevice(int id) { in getDevice()
|
D | InputEvent.java | 65 public final InputDevice getDevice() { in getDevice() 66 return InputDevice.getDevice(getDeviceId()); in getDevice()
|
D | InputEventConsistencyVerifier.java | 176 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onInputEvent() 265 if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onTrackballEvent() 354 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onTouchEvent() 469 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent() 493 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onGenericMotionEvent() 542 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onUnhandledEvent()
|
D | InputDevice.aidl | 20 parcelable InputDevice;
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 26 import android.view.InputDevice; 194 InputDevice.SOURCE_KEYBOARD); in sendKeyAndWaitForEvent() 198 InputDevice.SOURCE_KEYBOARD); in sendKeyAndWaitForEvent() 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 …]
|
/frameworks/native/services/inputflinger/ |
D | InputReader.h | 48 class InputDevice; variable 388 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); 483 KeyedVector<int32_t, InputDevice*> mDevices; 509 InputDevice* device, int32_t keyCode, int32_t scanCode); 518 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code); 540 class InputDevice { 542 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, int32_t 544 ~InputDevice(); [all …]
|
D | InputReader.cpp | 370 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes); in addDeviceLocked() 387 InputDevice* device = NULL; in removeDeviceLocked() 410 InputDevice* InputReader::createDeviceLocked(int32_t deviceId, int32_t controllerNumber, in createDeviceLocked() 412 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked() 478 InputDevice* device = mDevices.valueAt(deviceIndex); in processEventsForDeviceLocked() 489 InputDevice* device = mDevices.valueAt(i); in timeoutExpiredLocked() 517 InputDevice* device = mDevices.valueAt(i); in refreshConfigurationLocked() 528 InputDevice* device = mDevices.valueAt(i); in updateGlobalMetaStateLocked() 542 InputDevice* device, int32_t keyCode, int32_t scanCode) { in shouldDropVirtualKeyLocked() 557 InputDevice* device = mDevices.valueAt(i); in fadePointerLocked() [all …]
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputManager.java | 39 import android.view.InputDevice; 67 private SparseArray<InputDevice> mInputDevices; 202 public InputDevice getInputDevice(int id) { in getInputDevice() 211 InputDevice inputDevice = mInputDevices.valueAt(index); in getInputDevice() 232 public InputDevice getInputDeviceByDescriptor(String descriptor) { in getInputDeviceByDescriptor() 242 InputDevice inputDevice = mInputDevices.valueAt(i); in getInputDeviceByDescriptor() 641 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys() 707 mInputDevices = new SparseArray<InputDevice>(); in populateInputDevicesLocked() 735 final InputDevice device = mInputDevices.valueAt(index); in onInputDevicesChanged()
|
D | IInputManager.aidl | 24 import android.view.InputDevice; 30 InputDevice getInputDevice(int deviceId); in getInputDevice()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PointerEventDispatcher.java | 20 import android.view.InputDevice; 42 && (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onInputEvent()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 77 import android.view.InputDevice; 133 private InputDevice[] mInputDevices = new InputDevice[0]; 139 private final ArrayList<InputDevice> 140 mTempFullKeyboards = new ArrayList<InputDevice>(); // handler thread only 576 public InputDevice getInputDevice(int deviceId) { in getInputDevice() 580 final InputDevice inputDevice = mInputDevices[i]; in getInputDevice() 609 public InputDevice[] getInputDevices() { in getInputDevices() 649 private void deliverInputDevicesChanged(InputDevice[] oldInputDevices) { in deliverInputDevicesChanged() 671 final InputDevice inputDevice = mInputDevices[i]; in deliverInputDevicesChanged() 699 InputDevice keyboardMissingLayout = null; in deliverInputDevicesChanged() [all …]
|
/frameworks/base/docs/html/training/game-controllers/ |
D | controller-input.jd | 117 {@link android.view.InputDevice#getSources()} to obtain a combined bit field of 121 <li>A source type of {@link android.view.InputDevice#SOURCE_GAMEPAD} indicates 126 <li>A source type of {@link android.view.InputDevice#SOURCE_DPAD} indicates that 129 <li>A source type of {@link android.view.InputDevice#SOURCE_JOYSTICK} 144 int[] deviceIds = InputDevice.getDeviceIds(); 146 InputDevice dev = InputDevice.getDevice(deviceId); 150 if (((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) 151 || ((sources & InputDevice.SOURCE_JOYSTICK) 152 == InputDevice.SOURCE_JOYSTICK)) { 171 {@link android.view.InputDevice#hasKeys(int...)}.</li> [all …]
|
D | multiple-controllers.jd | 38 game controllers by calling {@link android.view.InputDevice#getDeviceIds() InputDevice.getDeviceIds… 43 {@link android.view.InputDevice#getDescriptor()}, which returns a unique 113 if ((event.getSource() & InputDevice.SOURCE_GAMEPAD) 114 == InputDevice.SOURCE_GAMEPAD) {
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
D | Media.java | 37 import android.view.InputDevice; 170 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch() 172 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
|
/frameworks/base/services/core/java/com/android/server/ |
D | WiredAccessoryManager.java | 32 import android.view.InputDevice; 108 … if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_HEADPHONE_INSERT) == 1) { in onSystemReady() 111 … if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_MICROPHONE_INSERT) == 1) { in onSystemReady() 114 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_LINEOUT_INSERT) == 1) { in onSystemReady()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityInputFilter.java | 25 import android.view.InputDevice; 149 && event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)) { in onInputEvent() 153 && event.isFromSource(InputDevice.SOURCE_KEYBOARD)) { in onInputEvent()
|
/frameworks/native/libs/input/ |
D | Android.mk | 22 InputDevice.cpp \
|
/frameworks/base/docs/html/sdk/api_diff/12/ |
D | missingSinces.txt | 29 NO DOC BLOCK: android.view.InputDevice.MotionRange Method getAxis() 44 NO DOC BLOCK: android.view.InputDevice Method getMotionRange(int, int) 45 NO DOC BLOCK: android.view.InputDevice Method getMotionRanges() 46 NO DOC BLOCK: android.view.InputDevice.MotionRange Method getSource() 163 NO DOC BLOCK: android.view.InputDevice Field SOURCE_CLASS_JOYSTICK 164 NO DOC BLOCK: android.view.InputDevice Field SOURCE_GAMEPAD 165 NO DOC BLOCK: android.view.InputDevice Field SOURCE_JOYSTICK
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 28 import android.view.InputDevice; 568 InputDevice device = InputDevice.getDevice(event.getDeviceId()); in onPointerEvent() 665 if ((source & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent() 667 } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) { in onGenericMotionEvent() 669 } else if ((source & InputDevice.SOURCE_CLASS_POSITION) != 0) { in onGenericMotionEvent() 751 int[] deviceIds = InputDevice.getDeviceIds(); in logInputDevices() 758 InputDevice device = mIm.getInputDevice(deviceId); in logInputDeviceState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskStackViewTouchHandler.java | 20 import android.view.InputDevice; 335 if ((ev.getSource() & InputDevice.SOURCE_CLASS_POINTER) == in onGenericMotionEvent() 336 InputDevice.SOURCE_CLASS_POINTER) { in onGenericMotionEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonView.java | 31 import android.view.InputDevice; 247 InputDevice.SOURCE_KEYBOARD); in sendEvent()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | IInputMethodSessionWrapper.java | 31 import android.view.InputDevice; 235 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { in onInputEvent()
|
/frameworks/base/core/java/android/app/ |
D | Instrumentation.java | 42 import android.view.InputDevice; 888 if (source == InputDevice.SOURCE_UNKNOWN) { in sendKeySync() 889 source = InputDevice.SOURCE_KEYBOARD; in sendKeySync() 939 if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) == 0) { in sendPointerSync() 940 event.setSource(InputDevice.SOURCE_TOUCHSCREEN); in sendPointerSync() 959 if ((event.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) == 0) { in sendTrackballEventSync() 960 event.setSource(InputDevice.SOURCE_TRACKBALL); in sendTrackballEventSync()
|
D | ActivityView.java | 30 import android.view.InputDevice; 142 if (event.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) { in onGenericMotionEvent()
|