/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/content/ISyncContext.aidl
 */
package android.content;
Interface used by the SyncAdapter to indicate its progress.
@hide
/** * Interface used by the SyncAdapter to indicate its progress. * @hide */
public interface ISyncContext extends android.os.IInterface {
Local-side IPC implementation stub class.
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements android.content.ISyncContext { private static final java.lang.String DESCRIPTOR = "android.content.ISyncContext";
Construct the stub at attach it to the interface.
/** Construct the stub at attach it to the interface. */
public Stub() { this.attachInterface(this, DESCRIPTOR); }
Cast an IBinder object into an android.content.ISyncContext interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.content.ISyncContext interface, * generating a proxy if needed. */
public static android.content.ISyncContext asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.content.ISyncContext))) { return ((android.content.ISyncContext)iin); } return new android.content.ISyncContext.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_sendHeartbeat: { data.enforceInterface(descriptor); this.sendHeartbeat(); reply.writeNoException(); return true; } case TRANSACTION_onFinished: { data.enforceInterface(descriptor); android.content.SyncResult _arg0; if ((0!=data.readInt())) { _arg0 = android.content.SyncResult.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.onFinished(_arg0); reply.writeNoException(); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements android.content.ISyncContext { 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; }
Call to indicate that the SyncAdapter is making progress. E.g., if this SyncAdapter downloads or sends records to/from the server, this may be called after each record is downloaded or uploaded.
/** * Call to indicate that the SyncAdapter is making progress. E.g., if this SyncAdapter * downloads or sends records to/from the server, this may be called after each record * is downloaded or uploaded. */
@Override public void sendHeartbeat() 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_sendHeartbeat, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Signal that the corresponding sync session is completed.
Params:
  • result – information about this sync session
/** * Signal that the corresponding sync session is completed. * @param result information about this sync session */
@Override public void onFinished(android.content.SyncResult result) 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 ((result!=null)) { _data.writeInt(1); result.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_onFinished, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_sendHeartbeat = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onFinished = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); }
Call to indicate that the SyncAdapter is making progress. E.g., if this SyncAdapter downloads or sends records to/from the server, this may be called after each record is downloaded or uploaded.
/** * Call to indicate that the SyncAdapter is making progress. E.g., if this SyncAdapter * downloads or sends records to/from the server, this may be called after each record * is downloaded or uploaded. */
public void sendHeartbeat() throws android.os.RemoteException;
Signal that the corresponding sync session is completed.
Params:
  • result – information about this sync session
/** * Signal that the corresponding sync session is completed. * @param result information about this sync session */
public void onFinished(android.content.SyncResult result) throws android.os.RemoteException; }