/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/android/app/IAlarmManager.aidl */ package android.app; /** * System private API for talking with the alarm manager service. * * {@hide} */ public interface IAlarmManager extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.app.IAlarmManager { private static final java.lang.String DESCRIPTOR = "android.app.IAlarmManager"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.app.IAlarmManager interface, * generating a proxy if needed. */ public static android.app.IAlarmManager 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 android.app.IAlarmManager))) { return ((android.app.IAlarmManager)iin); } return new android.app.IAlarmManager.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_set: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); long _arg1; _arg1 = data.readLong(); android.app.PendingIntent _arg2; if ((0!=data.readInt())) { _arg2 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg2 = null; } this.set(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_setRepeating: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); long _arg1; _arg1 = data.readLong(); long _arg2; _arg2 = data.readLong(); android.app.PendingIntent _arg3; if ((0!=data.readInt())) { _arg3 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.setRepeating(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_setInexactRepeating: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); long _arg1; _arg1 = data.readLong(); long _arg2; _arg2 = data.readLong(); android.app.PendingIntent _arg3; if ((0!=data.readInt())) { _arg3 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.setInexactRepeating(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); return true; } case TRANSACTION_setTime: { data.enforceInterface(DESCRIPTOR); long _arg0; _arg0 = data.readLong(); this.setTime(_arg0); reply.writeNoException(); return true; } case TRANSACTION_setTimeZone: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); this.setTimeZone(_arg0); reply.writeNoException(); return true; } case TRANSACTION_remove: { data.enforceInterface(DESCRIPTOR); android.app.PendingIntent _arg0; if ((0!=data.readInt())) { _arg0 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.remove(_arg0); reply.writeNoException(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.app.IAlarmManager { 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 set(int type, long triggerAtTime, android.app.PendingIntent operation) 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(type); _data.writeLong(triggerAtTime); if ((operation!=null)) { _data.writeInt(1); operation.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_set, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void setRepeating(int type, long triggerAtTime, long interval, android.app.PendingIntent operation) 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(type); _data.writeLong(triggerAtTime); _data.writeLong(interval); if ((operation!=null)) { _data.writeInt(1); operation.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_setRepeating, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void setInexactRepeating(int type, long triggerAtTime, long interval, android.app.PendingIntent operation) 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(type); _data.writeLong(triggerAtTime); _data.writeLong(interval); if ((operation!=null)) { _data.writeInt(1); operation.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_setInexactRepeating, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void setTime(long millis) 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.writeLong(millis); mRemote.transact(Stub.TRANSACTION_setTime, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void setTimeZone(java.lang.String zone) 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(zone); mRemote.transact(Stub.TRANSACTION_setTimeZone, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void remove(android.app.PendingIntent operation) 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 ((operation!=null)) { _data.writeInt(1); operation.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_remove, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_set = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_setRepeating = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_setInexactRepeating = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_setTime = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_setTimeZone = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_remove = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); } public void set(int type, long triggerAtTime, android.app.PendingIntent operation) throws android.os.RemoteException; public void setRepeating(int type, long triggerAtTime, long interval, android.app.PendingIntent operation) throws android.os.RemoteException; public void setInexactRepeating(int type, long triggerAtTime, long interval, android.app.PendingIntent operation) throws android.os.RemoteException; public void setTime(long millis) throws android.os.RemoteException; public void setTimeZone(java.lang.String zone) throws android.os.RemoteException; public void remove(android.app.PendingIntent operation) throws android.os.RemoteException; }