Home
last modified time | relevance | path

Searched refs:deviceId (Results 1 – 8 of 8) sorted by relevance

/development/samples/ControllerSample/src/com/example/inputmanagercompat/
DInputManagerV16.java59 public void onInputDeviceAdded(int deviceId) { in onInputDeviceAdded() argument
60 mIDL.onInputDeviceAdded(deviceId); in onInputDeviceAdded()
64 public void onInputDeviceChanged(int deviceId) { in onInputDeviceChanged() argument
65 mIDL.onInputDeviceChanged(deviceId); in onInputDeviceChanged()
69 public void onInputDeviceRemoved(int deviceId) { in onInputDeviceRemoved() argument
70 mIDL.onInputDeviceRemoved(deviceId); in onInputDeviceRemoved()
DInputManagerCompat.java99 void onInputDeviceAdded(int deviceId); in onInputDeviceAdded() argument
108 void onInputDeviceChanged(int deviceId); in onInputDeviceChanged() argument
117 void onInputDeviceRemoved(int deviceId); in onInputDeviceRemoved() argument
DInputManagerV9.java132 private void notifyListeners(int why, int deviceId) { in notifyListeners() argument
139 DeviceEvent odc = DeviceEvent.getDeviceEvent(why, deviceId, listener); in notifyListeners()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameControllerInput.java156 private InputDeviceState getInputDeviceState(int deviceId) { in getInputDeviceState() argument
157 InputDeviceState state = mInputDeviceStates.get(deviceId); in getInputDeviceState()
159 final InputDevice device = mInputManager.getInputDevice(deviceId); in getInputDeviceState()
164 mInputDeviceStates.put(deviceId, state); in getInputDeviceState()
172 public void onInputDeviceAdded(int deviceId) { in onInputDeviceAdded() argument
173 InputDeviceState state = getInputDeviceState(deviceId); in onInputDeviceAdded()
179 public void onInputDeviceChanged(int deviceId) { in onInputDeviceChanged() argument
180 InputDeviceState state = mInputDeviceStates.get(deviceId); in onInputDeviceChanged()
182 mInputDeviceStates.remove(deviceId); in onInputDeviceChanged()
183 state = getInputDeviceState(deviceId); in onInputDeviceChanged()
[all …]
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java115 for (int deviceId : deviceIds) { in findControllersAndAttachShips()
116 InputDevice dev = mInputManager.getInputDevice(deviceId); in findControllersAndAttachShips()
122 getShipForId(deviceId); in findControllersAndAttachShips()
129 int deviceId = event.getDeviceId(); in onKeyDown() local
130 if (deviceId != -1) { in onKeyDown()
131 Ship currentShip = getShipForId(deviceId); in onKeyDown()
143 int deviceId = event.getDeviceId(); in onKeyUp() local
144 if (deviceId != -1) { in onKeyUp()
145 Ship currentShip = getShipForId(deviceId); in onKeyUp()
1131 public void onInputDeviceAdded(int deviceId) { in onInputDeviceAdded() argument
[all …]
/development/apps/SdkSetup/src/com/android/sdksetup/
DDefaultActivity.java88 for (int deviceId : deviceIds) { in getKeyboardDevice()
89 InputDevice inputDevice = InputDevice.getDevice(deviceId); in getKeyboardDevice()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyMotionEvent.java114 public MonkeyMotionEvent setDeviceId(int deviceId) { in setDeviceId() argument
115 mDeviceId = deviceId; in setDeviceId()
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv70406 …orks/av,fake_vK7-V_BISjivLLyVzq3omg@fakeemail.com,aaudio examples: Add deviceId option to examples