FileDocCategorySizeDatePackage
IInputManager.javaAPI DocAndroid 5.1 API23438Sat Mar 14 05:48:02 GMT 2015android.hardware.input

IInputManager.java

/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: frameworks/base/core/java/android/hardware/input/IInputManager.aidl
 */
package android.hardware.input;
/** @hide */
public interface IInputManager extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements android.hardware.input.IInputManager
{
private static final java.lang.String DESCRIPTOR = "android.hardware.input.IInputManager";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an android.hardware.input.IInputManager interface,
 * generating a proxy if needed.
 */
public static android.hardware.input.IInputManager asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.hardware.input.IInputManager))) {
return ((android.hardware.input.IInputManager)iin);
}
return new android.hardware.input.IInputManager.Stub.Proxy(obj);
}
@Override public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_getInputDevice:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
android.view.InputDevice _result = this.getInputDevice(_arg0);
reply.writeNoException();
if ((_result!=null)) {
reply.writeInt(1);
_result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
}
else {
reply.writeInt(0);
}
return true;
}
case TRANSACTION_getInputDeviceIds:
{
data.enforceInterface(DESCRIPTOR);
int[] _result = this.getInputDeviceIds();
reply.writeNoException();
reply.writeIntArray(_result);
return true;
}
case TRANSACTION_hasKeys:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
int[] _arg2;
_arg2 = data.createIntArray();
boolean[] _arg3;
int _arg3_length = data.readInt();
if ((_arg3_length<0)) {
_arg3 = null;
}
else {
_arg3 = new boolean[_arg3_length];
}
boolean _result = this.hasKeys(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
reply.writeBooleanArray(_arg3);
return true;
}
case TRANSACTION_tryPointerSpeed:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.tryPointerSpeed(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_injectInputEvent:
{
data.enforceInterface(DESCRIPTOR);
android.view.InputEvent _arg0;
if ((0!=data.readInt())) {
_arg0 = android.view.InputEvent.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
int _arg1;
_arg1 = data.readInt();
boolean _result = this.injectInputEvent(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_getTouchCalibrationForInputDevice:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
android.hardware.input.TouchCalibration _result = this.getTouchCalibrationForInputDevice(_arg0, _arg1);
reply.writeNoException();
if ((_result!=null)) {
reply.writeInt(1);
_result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
}
else {
reply.writeInt(0);
}
return true;
}
case TRANSACTION_setTouchCalibrationForInputDevice:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
android.hardware.input.TouchCalibration _arg2;
if ((0!=data.readInt())) {
_arg2 = android.hardware.input.TouchCalibration.CREATOR.createFromParcel(data);
}
else {
_arg2 = null;
}
this.setTouchCalibrationForInputDevice(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
}
case TRANSACTION_getKeyboardLayouts:
{
data.enforceInterface(DESCRIPTOR);
android.hardware.input.KeyboardLayout[] _result = this.getKeyboardLayouts();
reply.writeNoException();
reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
return true;
}
case TRANSACTION_getKeyboardLayout:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
android.hardware.input.KeyboardLayout _result = this.getKeyboardLayout(_arg0);
reply.writeNoException();
if ((_result!=null)) {
reply.writeInt(1);
_result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
}
else {
reply.writeInt(0);
}
return true;
}
case TRANSACTION_getCurrentKeyboardLayoutForInputDevice:
{
data.enforceInterface(DESCRIPTOR);
android.hardware.input.InputDeviceIdentifier _arg0;
if ((0!=data.readInt())) {
_arg0 = android.hardware.input.InputDeviceIdentifier.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
java.lang.String _result = this.getCurrentKeyboardLayoutForInputDevice(_arg0);
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_setCurrentKeyboardLayoutForInputDevice:
{
data.enforceInterface(DESCRIPTOR);
android.hardware.input.InputDeviceIdentifier _arg0;
if ((0!=data.readInt())) {
_arg0 = android.hardware.input.InputDeviceIdentifier.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
java.lang.String _arg1;
_arg1 = data.readString();
this.setCurrentKeyboardLayoutForInputDevice(_arg0, _arg1);
reply.writeNoException();
return true;
}
case TRANSACTION_getKeyboardLayoutsForInputDevice:
{
data.enforceInterface(DESCRIPTOR);
android.hardware.input.InputDeviceIdentifier _arg0;
if ((0!=data.readInt())) {
_arg0 = android.hardware.input.InputDeviceIdentifier.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
java.lang.String[] _result = this.getKeyboardLayoutsForInputDevice(_arg0);
reply.writeNoException();
reply.writeStringArray(_result);
return true;
}
case TRANSACTION_addKeyboardLayoutForInputDevice:
{
data.enforceInterface(DESCRIPTOR);
android.hardware.input.InputDeviceIdentifier _arg0;
if ((0!=data.readInt())) {
_arg0 = android.hardware.input.InputDeviceIdentifier.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
java.lang.String _arg1;
_arg1 = data.readString();
this.addKeyboardLayoutForInputDevice(_arg0, _arg1);
reply.writeNoException();
return true;
}
case TRANSACTION_removeKeyboardLayoutForInputDevice:
{
data.enforceInterface(DESCRIPTOR);
android.hardware.input.InputDeviceIdentifier _arg0;
if ((0!=data.readInt())) {
_arg0 = android.hardware.input.InputDeviceIdentifier.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
java.lang.String _arg1;
_arg1 = data.readString();
this.removeKeyboardLayoutForInputDevice(_arg0, _arg1);
reply.writeNoException();
return true;
}
case TRANSACTION_registerInputDevicesChangedListener:
{
data.enforceInterface(DESCRIPTOR);
android.hardware.input.IInputDevicesChangedListener _arg0;
_arg0 = android.hardware.input.IInputDevicesChangedListener.Stub.asInterface(data.readStrongBinder());
this.registerInputDevicesChangedListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_vibrate:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
long[] _arg1;
_arg1 = data.createLongArray();
int _arg2;
_arg2 = data.readInt();
android.os.IBinder _arg3;
_arg3 = data.readStrongBinder();
this.vibrate(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
return true;
}
case TRANSACTION_cancelVibrate:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
android.os.IBinder _arg1;
_arg1 = data.readStrongBinder();
this.cancelVibrate(_arg0, _arg1);
reply.writeNoException();
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements android.hardware.input.IInputManager
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
// Gets input device information.

@Override public android.view.InputDevice getInputDevice(int deviceId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.view.InputDevice _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(deviceId);
mRemote.transact(Stub.TRANSACTION_getInputDevice, _data, _reply, 0);
_reply.readException();
if ((0!=_reply.readInt())) {
_result = android.view.InputDevice.CREATOR.createFromParcel(_reply);
}
else {
_result = null;
}
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public int[] getInputDeviceIds() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
int[] _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getInputDeviceIds, _data, _reply, 0);
_reply.readException();
_result = _reply.createIntArray();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
// Reports whether the hardware supports the given keys; returns true if successful

@Override public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(deviceId);
_data.writeInt(sourceMask);
_data.writeIntArray(keyCodes);
if ((keyExists==null)) {
_data.writeInt(-1);
}
else {
_data.writeInt(keyExists.length);
}
mRemote.transact(Stub.TRANSACTION_hasKeys, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
_reply.readBooleanArray(keyExists);
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
// Temporarily changes the pointer speed.

@Override public void tryPointerSpeed(int speed) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(speed);
mRemote.transact(Stub.TRANSACTION_tryPointerSpeed, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
// Injects an input event into the system.  To inject into windows owned by other
// applications, the caller must have the INJECT_EVENTS permission.

@Override public boolean injectInputEvent(android.view.InputEvent ev, int mode) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((ev!=null)) {
_data.writeInt(1);
ev.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeInt(mode);
mRemote.transact(Stub.TRANSACTION_injectInputEvent, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
// Calibrate input device position

@Override public android.hardware.input.TouchCalibration getTouchCalibrationForInputDevice(java.lang.String inputDeviceDescriptor, int rotation) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.hardware.input.TouchCalibration _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(inputDeviceDescriptor);
_data.writeInt(rotation);
mRemote.transact(Stub.TRANSACTION_getTouchCalibrationForInputDevice, _data, _reply, 0);
_reply.readException();
if ((0!=_reply.readInt())) {
_result = android.hardware.input.TouchCalibration.CREATOR.createFromParcel(_reply);
}
else {
_result = null;
}
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void setTouchCalibrationForInputDevice(java.lang.String inputDeviceDescriptor, int rotation, android.hardware.input.TouchCalibration calibration) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(inputDeviceDescriptor);
_data.writeInt(rotation);
if ((calibration!=null)) {
_data.writeInt(1);
calibration.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_setTouchCalibrationForInputDevice, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
// Keyboard layouts configuration.

@Override public android.hardware.input.KeyboardLayout[] getKeyboardLayouts() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.hardware.input.KeyboardLayout[] _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getKeyboardLayouts, _data, _reply, 0);
_reply.readException();
_result = _reply.createTypedArray(android.hardware.input.KeyboardLayout.CREATOR);
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public android.hardware.input.KeyboardLayout getKeyboardLayout(java.lang.String keyboardLayoutDescriptor) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.hardware.input.KeyboardLayout _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(keyboardLayoutDescriptor);
mRemote.transact(Stub.TRANSACTION_getKeyboardLayout, _data, _reply, 0);
_reply.readException();
if ((0!=_reply.readInt())) {
_result = android.hardware.input.KeyboardLayout.CREATOR.createFromParcel(_reply);
}
else {
_result = null;
}
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public java.lang.String getCurrentKeyboardLayoutForInputDevice(android.hardware.input.InputDeviceIdentifier identifier) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((identifier!=null)) {
_data.writeInt(1);
identifier.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_getCurrentKeyboardLayoutForInputDevice, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void setCurrentKeyboardLayoutForInputDevice(android.hardware.input.InputDeviceIdentifier identifier, java.lang.String keyboardLayoutDescriptor) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((identifier!=null)) {
_data.writeInt(1);
identifier.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeString(keyboardLayoutDescriptor);
mRemote.transact(Stub.TRANSACTION_setCurrentKeyboardLayoutForInputDevice, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public java.lang.String[] getKeyboardLayoutsForInputDevice(android.hardware.input.InputDeviceIdentifier identifier) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String[] _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((identifier!=null)) {
_data.writeInt(1);
identifier.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_getKeyboardLayoutsForInputDevice, _data, _reply, 0);
_reply.readException();
_result = _reply.createStringArray();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void addKeyboardLayoutForInputDevice(android.hardware.input.InputDeviceIdentifier identifier, java.lang.String keyboardLayoutDescriptor) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((identifier!=null)) {
_data.writeInt(1);
identifier.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeString(keyboardLayoutDescriptor);
mRemote.transact(Stub.TRANSACTION_addKeyboardLayoutForInputDevice, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void removeKeyboardLayoutForInputDevice(android.hardware.input.InputDeviceIdentifier identifier, java.lang.String keyboardLayoutDescriptor) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((identifier!=null)) {
_data.writeInt(1);
identifier.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeString(keyboardLayoutDescriptor);
mRemote.transact(Stub.TRANSACTION_removeKeyboardLayoutForInputDevice, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
// Registers an input devices changed listener.

@Override public void registerInputDevicesChangedListener(android.hardware.input.IInputDevicesChangedListener listener) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_registerInputDevicesChangedListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
// Input device vibrator control.

@Override public void vibrate(int deviceId, long[] pattern, int repeat, android.os.IBinder token) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(deviceId);
_data.writeLongArray(pattern);
_data.writeInt(repeat);
_data.writeStrongBinder(token);
mRemote.transact(Stub.TRANSACTION_vibrate, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void cancelVibrate(int deviceId, android.os.IBinder token) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(deviceId);
_data.writeStrongBinder(token);
mRemote.transact(Stub.TRANSACTION_cancelVibrate, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_getInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_getInputDeviceIds = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_hasKeys = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_tryPointerSpeed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_injectInputEvent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_getTouchCalibrationForInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_setTouchCalibrationForInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_getKeyboardLayouts = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_getKeyboardLayout = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_getCurrentKeyboardLayoutForInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_setCurrentKeyboardLayoutForInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
static final int TRANSACTION_getKeyboardLayoutsForInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
static final int TRANSACTION_addKeyboardLayoutForInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12);
static final int TRANSACTION_removeKeyboardLayoutForInputDevice = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13);
static final int TRANSACTION_registerInputDevicesChangedListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14);
static final int TRANSACTION_vibrate = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15);
static final int TRANSACTION_cancelVibrate = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16);
}
// Gets input device information.

public android.view.InputDevice getInputDevice(int deviceId) throws android.os.RemoteException;
public int[] getInputDeviceIds() throws android.os.RemoteException;
// Reports whether the hardware supports the given keys; returns true if successful

public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) throws android.os.RemoteException;
// Temporarily changes the pointer speed.

public void tryPointerSpeed(int speed) throws android.os.RemoteException;
// Injects an input event into the system.  To inject into windows owned by other
// applications, the caller must have the INJECT_EVENTS permission.

public boolean injectInputEvent(android.view.InputEvent ev, int mode) throws android.os.RemoteException;
// Calibrate input device position

public android.hardware.input.TouchCalibration getTouchCalibrationForInputDevice(java.lang.String inputDeviceDescriptor, int rotation) throws android.os.RemoteException;
public void setTouchCalibrationForInputDevice(java.lang.String inputDeviceDescriptor, int rotation, android.hardware.input.TouchCalibration calibration) throws android.os.RemoteException;
// Keyboard layouts configuration.

public android.hardware.input.KeyboardLayout[] getKeyboardLayouts() throws android.os.RemoteException;
public android.hardware.input.KeyboardLayout getKeyboardLayout(java.lang.String keyboardLayoutDescriptor) throws android.os.RemoteException;
public java.lang.String getCurrentKeyboardLayoutForInputDevice(android.hardware.input.InputDeviceIdentifier identifier) throws android.os.RemoteException;
public void setCurrentKeyboardLayoutForInputDevice(android.hardware.input.InputDeviceIdentifier identifier, java.lang.String keyboardLayoutDescriptor) throws android.os.RemoteException;
public java.lang.String[] getKeyboardLayoutsForInputDevice(android.hardware.input.InputDeviceIdentifier identifier) throws android.os.RemoteException;
public void addKeyboardLayoutForInputDevice(android.hardware.input.InputDeviceIdentifier identifier, java.lang.String keyboardLayoutDescriptor) throws android.os.RemoteException;
public void removeKeyboardLayoutForInputDevice(android.hardware.input.InputDeviceIdentifier identifier, java.lang.String keyboardLayoutDescriptor) throws android.os.RemoteException;
// Registers an input devices changed listener.

public void registerInputDevicesChangedListener(android.hardware.input.IInputDevicesChangedListener listener) throws android.os.RemoteException;
// Input device vibrator control.

public void vibrate(int deviceId, long[] pattern, int repeat, android.os.IBinder token) throws android.os.RemoteException;
public void cancelVibrate(int deviceId, android.os.IBinder token) throws android.os.RemoteException;
}