HomeSort by relevance Sort by last modified time
    Searched refs:InputDevice (Results 1 - 25 of 151) sorted by null

1 2 3 4 5 6 7

  /frameworks/base/core/java/android/view/
InputDevice.aidl 1 /* //device/java/android/android.view.InputDevice.aidl
20 parcelable InputDevice;
SearchEvent.java 24 private InputDevice mInputDevice;
27 public SearchEvent(InputDevice inputDevice) {
28 mInputDevice = inputDevice;
32 * Returns the {@link InputDevice} that triggered the search.
33 * @return InputDevice the InputDevice that triggered the search.
35 public InputDevice getInputDevice() {
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}.
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowInputEvent.java 3 import android.view.InputDevice;
10 protected InputDevice device;
13 public InputDevice getDevice() {
17 public void setDevice(InputDevice device) {
ShadowInputDevice.java 3 import android.view.InputDevice;
9 @Implements(InputDevice.class)
13 public static InputDevice makeInputDeviceNamed(String deviceName) {
14 InputDevice inputDevice = Shadow.newInstanceOf(InputDevice.class);
15 Shadows.shadowOf(inputDevice).setDeviceName(deviceName);
16 return inputDevice;
  /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);
  /frameworks/base/core/jni/
android_view_InputDevice.h 22 #include <input/InputDevice.h>
26 /* Creates an InputDevice object from the given information. */
  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
ShadowInputDevice.java 19 import android.view.InputDevice;
28 @Implements(InputDevice.class)
33 private static Map<Integer, InputDevice> sDeviceMap = new HashMap<>();
41 public static InputDevice getDevice(int id) {
45 public static void addDevice(int id, InputDevice device) {
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowInputDeviceTest.java 5 import android.view.InputDevice;
14 InputDevice inputDevice = ShadowInputDevice.makeInputDeviceNamed("foo");
15 assertThat(inputDevice.getName()).isEqualTo("foo");
ShadowInputEventTest.java 6 import android.view.InputDevice;
16 InputDevice myDevice = ShadowInputDevice.makeInputDeviceNamed("myDevice");
  /developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/
FullscreenActivity.java 28 import android.view.InputDevice;
216 InputDevice dev = InputDevice.getDevice(deviceId);
221 if (((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD)
222 || ((sources & InputDevice.SOURCE_JOYSTICK)
223 == InputDevice.SOURCE_JOYSTICK)) {
298 InputDevice device = ev.getDevice();
321 private float getCenteredAxis(MotionEvent event, InputDevice device, int axis) {
322 InputDevice.MotionRange range = device.getMotionRange(axis, event.getSource())
    [all...]
  /frameworks/base/cmds/input/src/com/android/commands/input/
Input.java 22 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...]
  /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) {
  /cts/tests/tests/view/src/android/view/cts/
InputDeviceEnabledTest.java 27 import android.view.InputDevice;
34 * Test {@link android.view.InputDevice} enable/disable functionality.
54 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId);
56 inputDevice.isEnabled(); // output is not checked
62 // Check that InputDevice.enable() and InputDevice.disable() throw SecurityException
67 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId);
70 inputDevice.enable()
    [all...]
SearchEventTest.java 29 import android.view.InputDevice;
68 final InputDevice inputDevice = inputManager.getInputDevice(inputDeviceId);
69 new SearchEvent(inputDevice);
79 InputDevice id = se.getInputDevice();
  /external/autotest/client/bin/input/
input_event_player.py 20 from input_device import InputDevice, InputEvent
41 device -- the InputDevice device object
83 device = InputDevice(evdev)
93 device = InputDevice(options.devpath)
  /packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
InputDeviceResultTask.java 28 import android.view.InputDevice;
105 for (final InputDevice device : getPhysicalFullKeyboards()) {
176 private List<InputDevice> getPhysicalFullKeyboards() {
177 final List<InputDevice> keyboards = new ArrayList<>();
178 final int[] deviceIds = InputDevice.getDeviceIds();
181 final InputDevice device = InputDevice.getDevice(deviceId);
218 private static boolean isFullPhysicalKeyboard(InputDevice device) {
220 (device.getSources() & InputDevice.SOURCE_KEYBOARD)
221 == InputDevice.SOURCE_KEYBOAR
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/espresso/
MouseUiController.java 27 import android.view.InputDevice;
67 event.setSource(InputDevice.SOURCE_MOUSE);
  /frameworks/base/services/core/java/com/android/server/wm/
PointerEventDispatcher.java 20 import android.view.InputDevice;
42 && (event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) {
  /external/droiddriver/src/io/appium/droiddriver/util/
Events.java 23 import android.view.InputDevice;
44 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
57 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
70 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
80 event.setSource(InputDevice.SOURCE_KEYBOARD);
  /packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
PhysicalKeyboardPreferenceControllerTest.java 28 import android.view.InputDevice;
96 final InputDevice device = mock(InputDevice.class);
  /frameworks/base/core/java/android/hardware/input/
IInputManager.aidl 26 import android.view.InputDevice;
33 InputDevice getInputDevice(int deviceId);

Completed in 479 milliseconds

1 2 3 4 5 6 7