/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/com/android/internal/policy/IFaceLockInterface.aidl */ package com.android.internal.policy; /** {@hide} */ public interface IFaceLockInterface extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements com.android.internal.policy.IFaceLockInterface { private static final java.lang.String DESCRIPTOR = "com.android.internal.policy.IFaceLockInterface"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an com.android.internal.policy.IFaceLockInterface interface, * generating a proxy if needed. */ public static com.android.internal.policy.IFaceLockInterface asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof com.android.internal.policy.IFaceLockInterface))) { return ((com.android.internal.policy.IFaceLockInterface)iin); } return new com.android.internal.policy.IFaceLockInterface.Stub.Proxy(obj); } 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_startUi: { data.enforceInterface(DESCRIPTOR); android.os.IBinder _arg0; _arg0 = data.readStrongBinder(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); int _arg4; _arg4 = data.readInt(); this.startUi(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); return true; } case TRANSACTION_stopUi: { data.enforceInterface(DESCRIPTOR); this.stopUi(); reply.writeNoException(); return true; } case TRANSACTION_registerCallback: { data.enforceInterface(DESCRIPTOR); com.android.internal.policy.IFaceLockCallback _arg0; _arg0 = com.android.internal.policy.IFaceLockCallback.Stub.asInterface(data.readStrongBinder()); this.registerCallback(_arg0); reply.writeNoException(); return true; } case TRANSACTION_unregisterCallback: { data.enforceInterface(DESCRIPTOR); com.android.internal.policy.IFaceLockCallback _arg0; _arg0 = com.android.internal.policy.IFaceLockCallback.Stub.asInterface(data.readStrongBinder()); this.unregisterCallback(_arg0); reply.writeNoException(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements com.android.internal.policy.IFaceLockInterface { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } public void startUi(android.os.IBinder containingWindowToken, int x, int y, int width, int height) 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(containingWindowToken); _data.writeInt(x); _data.writeInt(y); _data.writeInt(width); _data.writeInt(height); mRemote.transact(Stub.TRANSACTION_startUi, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void stopUi() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_stopUi, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void registerCallback(com.android.internal.policy.IFaceLockCallback cb) 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((((cb!=null))?(cb.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_registerCallback, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void unregisterCallback(com.android.internal.policy.IFaceLockCallback cb) 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((((cb!=null))?(cb.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_unregisterCallback, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_startUi = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_stopUi = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_registerCallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_unregisterCallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); } public void startUi(android.os.IBinder containingWindowToken, int x, int y, int width, int height) throws android.os.RemoteException; public void stopUi() throws android.os.RemoteException; public void registerCallback(com.android.internal.policy.IFaceLockCallback cb) throws android.os.RemoteException; public void unregisterCallback(com.android.internal.policy.IFaceLockCallback cb) throws android.os.RemoteException; }