/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/com/android/internal/app/IUsageStats.aidl */ package com.android.internal.app; public interface IUsageStats extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements com.android.internal.app.IUsageStats { private static final java.lang.String DESCRIPTOR = "com.android.internal.app.IUsageStats"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an com.android.internal.app.IUsageStats interface, * generating a proxy if needed. */ public static com.android.internal.app.IUsageStats 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.app.IUsageStats))) { return ((com.android.internal.app.IUsageStats)iin); } return new com.android.internal.app.IUsageStats.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_noteResumeComponent: { data.enforceInterface(DESCRIPTOR); android.content.ComponentName _arg0; if ((0!=data.readInt())) { _arg0 = android.content.ComponentName.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.noteResumeComponent(_arg0); reply.writeNoException(); return true; } case TRANSACTION_notePauseComponent: { data.enforceInterface(DESCRIPTOR); android.content.ComponentName _arg0; if ((0!=data.readInt())) { _arg0 = android.content.ComponentName.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.notePauseComponent(_arg0); reply.writeNoException(); return true; } case TRANSACTION_noteLaunchTime: { data.enforceInterface(DESCRIPTOR); android.content.ComponentName _arg0; if ((0!=data.readInt())) { _arg0 = android.content.ComponentName.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _arg1; _arg1 = data.readInt(); this.noteLaunchTime(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_getPkgUsageStats: { data.enforceInterface(DESCRIPTOR); android.content.ComponentName _arg0; if ((0!=data.readInt())) { _arg0 = android.content.ComponentName.CREATOR.createFromParcel(data); } else { _arg0 = null; } com.android.internal.os.PkgUsageStats _result = this.getPkgUsageStats(_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_getAllPkgUsageStats: { data.enforceInterface(DESCRIPTOR); com.android.internal.os.PkgUsageStats[] _result = this.getAllPkgUsageStats(); reply.writeNoException(); reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements com.android.internal.app.IUsageStats { 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 noteResumeComponent(android.content.ComponentName componentName) 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 ((componentName!=null)) { _data.writeInt(1); componentName.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_noteResumeComponent, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void notePauseComponent(android.content.ComponentName componentName) 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 ((componentName!=null)) { _data.writeInt(1); componentName.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_notePauseComponent, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void noteLaunchTime(android.content.ComponentName componentName, int 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); if ((componentName!=null)) { _data.writeInt(1); componentName.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(millis); mRemote.transact(Stub.TRANSACTION_noteLaunchTime, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public com.android.internal.os.PkgUsageStats getPkgUsageStats(android.content.ComponentName componentName) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); com.android.internal.os.PkgUsageStats _result; try { _data.writeInterfaceToken(DESCRIPTOR); if ((componentName!=null)) { _data.writeInt(1); componentName.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getPkgUsageStats, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = com.android.internal.os.PkgUsageStats.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } public com.android.internal.os.PkgUsageStats[] getAllPkgUsageStats() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); com.android.internal.os.PkgUsageStats[] _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getAllPkgUsageStats, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArray(com.android.internal.os.PkgUsageStats.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_noteResumeComponent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_notePauseComponent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_noteLaunchTime = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_getPkgUsageStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_getAllPkgUsageStats = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); } public void noteResumeComponent(android.content.ComponentName componentName) throws android.os.RemoteException; public void notePauseComponent(android.content.ComponentName componentName) throws android.os.RemoteException; public void noteLaunchTime(android.content.ComponentName componentName, int millis) throws android.os.RemoteException; public com.android.internal.os.PkgUsageStats getPkgUsageStats(android.content.ComponentName componentName) throws android.os.RemoteException; public com.android.internal.os.PkgUsageStats[] getAllPkgUsageStats() throws android.os.RemoteException; }