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

  /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);
  /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) {
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
GamepadDevice.java 8 import android.view.InputDevice;
9 import android.view.InputDevice.MotionRange;
37 // When the user agent recognizes the attached inputDevice, it is recommended
50 GamepadDevice(int index, InputDevice inputDevice) {
52 mDeviceId = inputDevice.getId();
53 mDeviceName = inputDevice.getName();
56 final List<MotionRange> ranges = inputDevice.getMotionRanges();
60 if ((range.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
GamepadList.java 13 import android.view.InputDevice;
66 InputDevice inputDevice = InputDevice.getDevice(deviceIds[i]);
68 if (isGamepadDevice(inputDevice)) {
70 registerGamepad(inputDevice);
132 InputDevice inputDevice = InputDevice.getDevice(deviceId);
133 if (!isGamepadDevice(inputDevice)) return
    [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);
  /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() {
GameView.java 28 import android.view.InputDevice;
56 private InputDevice mLastInputDevice;
212 if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK)
270 private static float getCenteredAxis(MotionEvent event, InputDevice device,
272 final InputDevice.MotionRange range = device.getMotionRange(axis, event.getSource());
  /external/chromium_org/remoting/android/javatests/src/org/chromium/chromoting/
TouchEventGenerator.java 10 import android.view.InputDevice;
64 0, 0, 1, 1, id, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
SwipePinchDetectorTest.java 11 import android.view.InputDevice;
57 mCurrentPositions, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
  /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/chromium_org/third_party/webrtc/modules/audio_device/win/
audio_device_wave_win.h 171 AudioDeviceModule::WindowsDeviceType InputDevice() const {return _inputDevice;}
audio_device_wave_win.cc 559 if (_mixerManager.OpenMicrophone(InputDevice()) == -1)
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
WindowTest.java 45 import android.view.InputDevice;
    [all...]
MotionEventTest.java 25 import android.view.InputDevice;
ViewTest.java 57 import android.view.InputDevice;
    [all...]
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
ContentViewCore.java 35 import android.view.InputDevice;
    [all...]

Completed in 735 milliseconds