Lines Matching refs:deviceId
681 final int deviceId = mInputDevices.keyAt(i);
682 if (!containsDeviceId(deviceIdAndGeneration, deviceId)) {
684 Log.d(TAG, "Device removed: " + deviceId);
687 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_REMOVED, deviceId);
692 final int deviceId = deviceIdAndGeneration[i];
693 int index = mInputDevices.indexOfKey(deviceId);
700 Log.d(TAG, "Device changed: " + deviceId);
703 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_CHANGED, deviceId);
708 Log.d(TAG, "Device added: " + deviceId);
710 mInputDevices.put(deviceId, null);
711 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_ADDED, deviceId);
717 private void sendMessageToInputDeviceListenersLocked(int what, int deviceId) {
721 listener.sendMessage(listener.obtainMessage(what, deviceId, 0));
725 private static boolean containsDeviceId(int[] deviceIdAndGeneration, int deviceId) {
727 if (deviceIdAndGeneration[i] == deviceId) {
739 public Vibrator getInputDeviceVibrator(int deviceId) {
740 return new InputDeviceVibrator(deviceId);
751 * @param deviceId The id of the input device that was added.
753 void onInputDeviceAdded(int deviceId);
758 * @param deviceId The id of the input device that was removed.
760 void onInputDeviceRemoved(int deviceId);
767 * @param deviceId The id of the input device that changed.
769 void onInputDeviceChanged(int deviceId);
807 public InputDeviceVibrator(int deviceId) {
808 mDeviceId = deviceId;