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

1 2 3

  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowInputEvent.java 3 import android.view.InputDevice;
10 protected InputDevice device;
13 protected InputDevice getDevice() {
17 public void setDevice(InputDevice device) {
ShadowInputDevice.java 3 import android.view.InputDevice;
8 @Implements(InputDevice.class)
12 public static InputDevice makeInputDeviceNamed(String deviceName) {
13 InputDevice inputDevice = Shadow.newInstanceOf(InputDevice.class);
14 ShadowInputDevice shadowInputDevice = Shadow.extract(inputDevice);
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);
MonkeyKeyEvent.java 23 import android.view.InputDevice;
131 KeyEvent.FLAG_FROM_SYSTEM, InputDevice.SOURCE_KEYBOARD);
  /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");
  /cts/tests/tests/view/src/android/view/cts/util/
EventUtils.java 20 import android.view.InputDevice;
37 pointerCoords, 0, buttonState, 0, 0, 0, 0, InputDevice.SOURCE_MOUSE, 0);
  /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...]
  /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 24 import android.view.InputDevice;
35 * Test {@link android.view.InputDevice} enable/disable functionality.
55 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId);
57 inputDevice.isEnabled(); // output is not checked
63 // Check that InputDevice.enable() and InputDevice.disable() throw SecurityException
68 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId);
71 inputDevice.enable()
    [all...]
SearchEventTest.java 26 import android.view.InputDevice;
70 final InputDevice inputDevice = inputManager.getInputDevice(inputDeviceId);
71 new SearchEvent(inputDevice);
85 InputDevice id = se.getInputDevice();
TouchDelegateTest.java 27 import android.view.InputDevice;
140 event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
189 dispatchMotionEventToActivity(action, y, downTime, InputDevice.SOURCE_TOUCHSCREEN,
194 dispatchMotionEventToActivity(action, y, downTime, InputDevice.SOURCE_MOUSE,
229 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
  /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)
  /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);
  /cts/tests/tests/systemui/src/android/systemui/cts/
TouchHelper.java 22 import android.view.InputDevice;
82 0, 0, 1.0f, 1.0f, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
  /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() {
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
CtsMouseUtil.java 28 import android.view.InputDevice;
64 event.setSource(InputDevice.SOURCE_MOUSE);
93 event.setSource(InputDevice.SOURCE_MOUSE);
  /cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
CtsMouseUtil.java 28 import android.view.InputDevice;
64 event.setSource(InputDevice.SOURCE_MOUSE);
93 event.setSource(InputDevice.SOURCE_MOUSE);
  /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...]
  /external/autotest/client/cros/faft/utils/
firmware_check_keys.py 20 device = InputDevice(evdev)
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
MicrophoneDeviceTestActivity.java 28 import android.view.InputDevice;
112 final InputDevice inputDevice = mInputManager.getInputDevice(inputDeviceId);
113 final boolean hasMicrophone = inputDevice.hasMicrophone();
114 Log.w(TAG, "name: " + inputDevice.getName() + ", mic: " + hasMicrophone + ", virtual: "
115 + inputDevice.isVirtual() + ", descriptor: " + inputDevice.getDescriptor());
119 if (inputDevice.isVirtual()) {
124 getString(R.string.tv_microphone_device_test_mic_question, inputDevice.getName());
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
TouchRotateActivity.java 23 import android.view.InputDevice;
100 if (e.isFromSource(InputDevice.SOURCE_MOUSE)) {

Completed in 1240 milliseconds

1 2 3