package android.os;
public interface ISystemUpdateManager extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.os.ISystemUpdateManager
{
private static final java.lang.String DESCRIPTOR = "android.os.ISystemUpdateManager";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.os.ISystemUpdateManager asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.os.ISystemUpdateManager))) {
return ((android.os.ISystemUpdateManager)iin);
}
return new android.os.ISystemUpdateManager.Stub.Proxy(obj);
}
@Override 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
{
java.lang.String descriptor = DESCRIPTOR;
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(descriptor);
return true;
}
case TRANSACTION_retrieveSystemUpdateInfo:
{
data.enforceInterface(descriptor);
android.os.Bundle _result = this.retrieveSystemUpdateInfo();
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_updateSystemUpdateInfo:
{
data.enforceInterface(descriptor);
android.os.PersistableBundle _arg0;
if ((0!=data.readInt())) {
_arg0 = android.os.PersistableBundle.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
this.updateSystemUpdateInfo(_arg0);
reply.writeNoException();
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.os.ISystemUpdateManager
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
@Override public android.os.Bundle retrieveSystemUpdateInfo() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.os.Bundle _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_retrieveSystemUpdateInfo, _data, _reply, 0);
_reply.readException();
if ((0!=_reply.readInt())) {
_result = android.os.Bundle.CREATOR.createFromParcel(_reply);
}
else {
_result = null;
}
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void updateSystemUpdateInfo(android.os.PersistableBundle data) 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 ((data!=null)) {
_data.writeInt(1);
data.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_updateSystemUpdateInfo, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_retrieveSystemUpdateInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_updateSystemUpdateInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
}
public android.os.Bundle retrieveSystemUpdateInfo() throws android.os.RemoteException;
public void updateSystemUpdateInfo(android.os.PersistableBundle data) throws android.os.RemoteException;
}