/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/com/android/internal/policy/IFaceLockCallback.aidl */ package com.android.internal.policy; /** {@hide} */ public interface IFaceLockCallback extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements com.android.internal.policy.IFaceLockCallback { private static final java.lang.String DESCRIPTOR = "com.android.internal.policy.IFaceLockCallback"; /** 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.IFaceLockCallback interface, * generating a proxy if needed. */ public static com.android.internal.policy.IFaceLockCallback 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.IFaceLockCallback))) { return ((com.android.internal.policy.IFaceLockCallback)iin); } return new com.android.internal.policy.IFaceLockCallback.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_unlock: { data.enforceInterface(DESCRIPTOR); this.unlock(); return true; } case TRANSACTION_cancel: { data.enforceInterface(DESCRIPTOR); this.cancel(); return true; } case TRANSACTION_reportFailedAttempt: { data.enforceInterface(DESCRIPTOR); this.reportFailedAttempt(); return true; } case TRANSACTION_exposeFallback: { data.enforceInterface(DESCRIPTOR); this.exposeFallback(); return true; } case TRANSACTION_pokeWakelock: { data.enforceInterface(DESCRIPTOR); this.pokeWakelock(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements com.android.internal.policy.IFaceLockCallback { 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 unlock() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_unlock, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void cancel() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_cancel, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void reportFailedAttempt() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_reportFailedAttempt, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void exposeFallback() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_exposeFallback, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void pokeWakelock() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_pokeWakelock, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } } static final int TRANSACTION_unlock = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_cancel = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_reportFailedAttempt = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_exposeFallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_pokeWakelock = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); } public void unlock() throws android.os.RemoteException; public void cancel() throws android.os.RemoteException; public void reportFailedAttempt() throws android.os.RemoteException; public void exposeFallback() throws android.os.RemoteException; public void pokeWakelock() throws android.os.RemoteException; }