FileDocCategorySizeDatePackage
IFullBackupRestoreObserver.javaAPI DocAndroid 5.1 API8327Sat Mar 14 05:47:58 GMT 2015android.app.backup

IFullBackupRestoreObserver.java

/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: frameworks/base/core/java/android/app/backup/IFullBackupRestoreObserver.aidl
 */
package android.app.backup;
/**
 * Observer of a full backup or restore process.  The observer is told "interesting"
 * information about an ongoing full backup or restore action.
 *
 * {@hide}
 */
public interface IFullBackupRestoreObserver extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements android.app.backup.IFullBackupRestoreObserver
{
private static final java.lang.String DESCRIPTOR = "android.app.backup.IFullBackupRestoreObserver";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an android.app.backup.IFullBackupRestoreObserver interface,
 * generating a proxy if needed.
 */
public static android.app.backup.IFullBackupRestoreObserver asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.app.backup.IFullBackupRestoreObserver))) {
return ((android.app.backup.IFullBackupRestoreObserver)iin);
}
return new android.app.backup.IFullBackupRestoreObserver.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
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_onStartBackup:
{
data.enforceInterface(DESCRIPTOR);
this.onStartBackup();
return true;
}
case TRANSACTION_onBackupPackage:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.onBackupPackage(_arg0);
return true;
}
case TRANSACTION_onEndBackup:
{
data.enforceInterface(DESCRIPTOR);
this.onEndBackup();
return true;
}
case TRANSACTION_onStartRestore:
{
data.enforceInterface(DESCRIPTOR);
this.onStartRestore();
return true;
}
case TRANSACTION_onRestorePackage:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.onRestorePackage(_arg0);
return true;
}
case TRANSACTION_onEndRestore:
{
data.enforceInterface(DESCRIPTOR);
this.onEndRestore();
return true;
}
case TRANSACTION_onTimeout:
{
data.enforceInterface(DESCRIPTOR);
this.onTimeout();
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements android.app.backup.IFullBackupRestoreObserver
{
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;
}
/**
     * Notification: a full backup operation has begun.
     */
@Override public void onStartBackup() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onStartBackup, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
/**
     * Notification: the system has begun backing up the given package.
     *
     * @param name The name of the application being saved.  This will typically be a
     *     user-meaningful name such as "Browser" rather than a package name such as
     *     "com.android.browser", though this is not guaranteed.
     */
@Override public void onBackupPackage(java.lang.String name) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(name);
mRemote.transact(Stub.TRANSACTION_onBackupPackage, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
/**
     * Notification: the full backup operation has ended.
     */
@Override public void onEndBackup() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onEndBackup, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
/**
     * Notification: a restore-from-full-backup operation has begun.
     */
@Override public void onStartRestore() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onStartRestore, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
/**
     * Notification: the system has begun restore of the given package.
     *
     * @param name The name of the application being saved.  This will typically be a
     *     user-meaningful name such as "Browser" rather than a package name such as
     *     "com.android.browser", though this is not guaranteed.
     */
@Override public void onRestorePackage(java.lang.String name) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(name);
mRemote.transact(Stub.TRANSACTION_onRestorePackage, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
/**
     * Notification: the restore-from-full-backup operation has ended.
     */
@Override public void onEndRestore() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onEndRestore, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
/**
     * The user's window of opportunity for confirming the operation has timed out.
     */
@Override public void onTimeout() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onTimeout, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
}
static final int TRANSACTION_onStartBackup = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_onBackupPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_onEndBackup = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_onStartRestore = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_onRestorePackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_onEndRestore = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_onTimeout = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
}
/**
     * Notification: a full backup operation has begun.
     */
public void onStartBackup() throws android.os.RemoteException;
/**
     * Notification: the system has begun backing up the given package.
     *
     * @param name The name of the application being saved.  This will typically be a
     *     user-meaningful name such as "Browser" rather than a package name such as
     *     "com.android.browser", though this is not guaranteed.
     */
public void onBackupPackage(java.lang.String name) throws android.os.RemoteException;
/**
     * Notification: the full backup operation has ended.
     */
public void onEndBackup() throws android.os.RemoteException;
/**
     * Notification: a restore-from-full-backup operation has begun.
     */
public void onStartRestore() throws android.os.RemoteException;
/**
     * Notification: the system has begun restore of the given package.
     *
     * @param name The name of the application being saved.  This will typically be a
     *     user-meaningful name such as "Browser" rather than a package name such as
     *     "com.android.browser", though this is not guaranteed.
     */
public void onRestorePackage(java.lang.String name) throws android.os.RemoteException;
/**
     * Notification: the restore-from-full-backup operation has ended.
     */
public void onEndRestore() throws android.os.RemoteException;
/**
     * The user's window of opportunity for confirming the operation has timed out.
     */
public void onTimeout() throws android.os.RemoteException;
}