/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/com/android/internal/widget/IRemoteViewsFactory.aidl */ package com.android.internal.widget; /** {@hide} */ public interface IRemoteViewsFactory extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements com.android.internal.widget.IRemoteViewsFactory { private static final java.lang.String DESCRIPTOR = "com.android.internal.widget.IRemoteViewsFactory"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an com.android.internal.widget.IRemoteViewsFactory interface, * generating a proxy if needed. */ public static com.android.internal.widget.IRemoteViewsFactory 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.widget.IRemoteViewsFactory))) { return ((com.android.internal.widget.IRemoteViewsFactory)iin); } return new com.android.internal.widget.IRemoteViewsFactory.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_onDataSetChanged: { data.enforceInterface(DESCRIPTOR); this.onDataSetChanged(); reply.writeNoException(); return true; } case TRANSACTION_onDestroy: { data.enforceInterface(DESCRIPTOR); android.content.Intent _arg0; if ((0!=data.readInt())) { _arg0 = android.content.Intent.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.onDestroy(_arg0); return true; } case TRANSACTION_getCount: { data.enforceInterface(DESCRIPTOR); int _result = this.getCount(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getViewAt: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); android.widget.RemoteViews _result = this.getViewAt(_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_getLoadingView: { data.enforceInterface(DESCRIPTOR); android.widget.RemoteViews _result = this.getLoadingView(); 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_getViewTypeCount: { data.enforceInterface(DESCRIPTOR); int _result = this.getViewTypeCount(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getItemId: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); long _result = this.getItemId(_arg0); reply.writeNoException(); reply.writeLong(_result); return true; } case TRANSACTION_hasStableIds: { data.enforceInterface(DESCRIPTOR); boolean _result = this.hasStableIds(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_isCreated: { data.enforceInterface(DESCRIPTOR); boolean _result = this.isCreated(); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements com.android.internal.widget.IRemoteViewsFactory { 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 onDataSetChanged() 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_onDataSetChanged, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void onDestroy(android.content.Intent intent) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((intent!=null)) { _data.writeInt(1); intent.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_onDestroy, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public int getCount() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getCount, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public android.widget.RemoteViews getViewAt(int position) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.widget.RemoteViews _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(position); mRemote.transact(Stub.TRANSACTION_getViewAt, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.widget.RemoteViews.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } public android.widget.RemoteViews getLoadingView() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.widget.RemoteViews _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getLoadingView, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.widget.RemoteViews.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } public int getViewTypeCount() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getViewTypeCount, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public long getItemId(int position) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); long _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(position); mRemote.transact(Stub.TRANSACTION_getItemId, _data, _reply, 0); _reply.readException(); _result = _reply.readLong(); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean hasStableIds() 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_hasStableIds, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } public boolean isCreated() 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_isCreated, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_onDataSetChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onDestroy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_getCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_getViewAt = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_getLoadingView = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_getViewTypeCount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_getItemId = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_hasStableIds = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_isCreated = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); } public void onDataSetChanged() throws android.os.RemoteException; public void onDestroy(android.content.Intent intent) throws android.os.RemoteException; public int getCount() throws android.os.RemoteException; public android.widget.RemoteViews getViewAt(int position) throws android.os.RemoteException; public android.widget.RemoteViews getLoadingView() throws android.os.RemoteException; public int getViewTypeCount() throws android.os.RemoteException; public long getItemId(int position) throws android.os.RemoteException; public boolean hasStableIds() throws android.os.RemoteException; public boolean isCreated() throws android.os.RemoteException; }