package android.view;
public interface IWindowId extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.view.IWindowId
{
private static final java.lang.String DESCRIPTOR = "android.view.IWindowId";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.view.IWindowId asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.view.IWindowId))) {
return ((android.view.IWindowId)iin);
}
return new android.view.IWindowId.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
{
java.lang.String descriptor = DESCRIPTOR;
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(descriptor);
return true;
}
case TRANSACTION_registerFocusObserver:
{
data.enforceInterface(descriptor);
android.view.IWindowFocusObserver _arg0;
_arg0 = android.view.IWindowFocusObserver.Stub.asInterface(data.readStrongBinder());
this.registerFocusObserver(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_unregisterFocusObserver:
{
data.enforceInterface(descriptor);
android.view.IWindowFocusObserver _arg0;
_arg0 = android.view.IWindowFocusObserver.Stub.asInterface(data.readStrongBinder());
this.unregisterFocusObserver(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isFocused:
{
data.enforceInterface(descriptor);
boolean _result = this.isFocused();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.view.IWindowId
{
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;
}
@Override public void registerFocusObserver(android.view.IWindowFocusObserver observer) 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((((observer!=null))?(observer.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_registerFocusObserver, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void unregisterFocusObserver(android.view.IWindowFocusObserver observer) 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((((observer!=null))?(observer.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_unregisterFocusObserver, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public boolean isFocused() 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);
mRemote.transact(Stub.TRANSACTION_isFocused, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_registerFocusObserver = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_unregisterFocusObserver = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_isFocused = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
}
public void registerFocusObserver(android.view.IWindowFocusObserver observer) throws android.os.RemoteException;
public void unregisterFocusObserver(android.view.IWindowFocusObserver observer) throws android.os.RemoteException;
public boolean isFocused() throws android.os.RemoteException;
}