/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/printservice/IPrintServiceClient.aidl
 */
package android.printservice;
The top-level interface from a print service to the system.
@hide
/** * The top-level interface from a print service to the system. * * @hide */
public interface IPrintServiceClient 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.printservice.IPrintServiceClient { private static final java.lang.String DESCRIPTOR = "android.printservice.IPrintServiceClient";
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.printservice.IPrintServiceClient interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.printservice.IPrintServiceClient interface, * generating a proxy if needed. */
public static android.printservice.IPrintServiceClient asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.printservice.IPrintServiceClient))) { return ((android.printservice.IPrintServiceClient)iin); } return new android.printservice.IPrintServiceClient.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_getPrintJobInfos: { data.enforceInterface(descriptor); java.util.List<android.print.PrintJobInfo> _result = this.getPrintJobInfos(); reply.writeNoException(); reply.writeTypedList(_result); return true; } case TRANSACTION_getPrintJobInfo: { data.enforceInterface(descriptor); android.print.PrintJobId _arg0; if ((0!=data.readInt())) { _arg0 = android.print.PrintJobId.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.print.PrintJobInfo _result = this.getPrintJobInfo(_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_setPrintJobState: { data.enforceInterface(descriptor); android.print.PrintJobId _arg0; if ((0!=data.readInt())) { _arg0 = android.print.PrintJobId.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _arg1; _arg1 = data.readInt(); java.lang.String _arg2; _arg2 = data.readString(); boolean _result = this.setPrintJobState(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setPrintJobTag: { data.enforceInterface(descriptor); android.print.PrintJobId _arg0; if ((0!=data.readInt())) { _arg0 = android.print.PrintJobId.CREATOR.createFromParcel(data); } else { _arg0 = null; } java.lang.String _arg1; _arg1 = data.readString(); boolean _result = this.setPrintJobTag(_arg0, _arg1); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_writePrintJobData: { data.enforceInterface(descriptor); android.os.ParcelFileDescriptor _arg0; if ((0!=data.readInt())) { _arg0 = android.os.ParcelFileDescriptor.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.print.PrintJobId _arg1; if ((0!=data.readInt())) { _arg1 = android.print.PrintJobId.CREATOR.createFromParcel(data); } else { _arg1 = null; } this.writePrintJobData(_arg0, _arg1); return true; } case TRANSACTION_setProgress: { data.enforceInterface(descriptor); android.print.PrintJobId _arg0; if ((0!=data.readInt())) { _arg0 = android.print.PrintJobId.CREATOR.createFromParcel(data); } else { _arg0 = null; } float _arg1; _arg1 = data.readFloat(); this.setProgress(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_setStatus: { data.enforceInterface(descriptor); android.print.PrintJobId _arg0; if ((0!=data.readInt())) { _arg0 = android.print.PrintJobId.CREATOR.createFromParcel(data); } else { _arg0 = null; } java.lang.CharSequence _arg1; if ((0!=data.readInt())) { _arg1 = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(data); } else { _arg1 = null; } this.setStatus(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_setStatusRes: { data.enforceInterface(descriptor); android.print.PrintJobId _arg0; if ((0!=data.readInt())) { _arg0 = android.print.PrintJobId.CREATOR.createFromParcel(data); } else { _arg0 = null; } int _arg1; _arg1 = data.readInt(); java.lang.CharSequence _arg2; if ((0!=data.readInt())) { _arg2 = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(data); } else { _arg2 = null; } this.setStatusRes(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_onPrintersAdded: { data.enforceInterface(descriptor); android.content.pm.ParceledListSlice _arg0; if ((0!=data.readInt())) { _arg0 = android.content.pm.ParceledListSlice.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.onPrintersAdded(_arg0); reply.writeNoException(); return true; } case TRANSACTION_onPrintersRemoved: { data.enforceInterface(descriptor); android.content.pm.ParceledListSlice _arg0; if ((0!=data.readInt())) { _arg0 = android.content.pm.ParceledListSlice.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.onPrintersRemoved(_arg0); reply.writeNoException(); return true; } case TRANSACTION_onCustomPrinterIconLoaded: { data.enforceInterface(descriptor); android.print.PrinterId _arg0; if ((0!=data.readInt())) { _arg0 = android.print.PrinterId.CREATOR.createFromParcel(data); } else { _arg0 = null; } android.graphics.drawable.Icon _arg1; if ((0!=data.readInt())) { _arg1 = android.graphics.drawable.Icon.CREATOR.createFromParcel(data); } else { _arg1 = null; } this.onCustomPrinterIconLoaded(_arg0, _arg1); reply.writeNoException(); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements android.printservice.IPrintServiceClient { 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 java.util.List<android.print.PrintJobInfo> getPrintJobInfos() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); java.util.List<android.print.PrintJobInfo> _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getPrintJobInfos, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArrayList(android.print.PrintJobInfo.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public android.print.PrintJobInfo getPrintJobInfo(android.print.PrintJobId printJobId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.print.PrintJobInfo _result; try { _data.writeInterfaceToken(DESCRIPTOR); if ((printJobId!=null)) { _data.writeInt(1); printJobId.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getPrintJobInfo, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.print.PrintJobInfo.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public boolean setPrintJobState(android.print.PrintJobId printJobId, int state, java.lang.String error) 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); if ((printJobId!=null)) { _data.writeInt(1); printJobId.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(state); _data.writeString(error); mRemote.transact(Stub.TRANSACTION_setPrintJobState, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public boolean setPrintJobTag(android.print.PrintJobId printJobId, java.lang.String tag) 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); if ((printJobId!=null)) { _data.writeInt(1); printJobId.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(tag); mRemote.transact(Stub.TRANSACTION_setPrintJobTag, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public void writePrintJobData(android.os.ParcelFileDescriptor fd, android.print.PrintJobId printJobId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((fd!=null)) { _data.writeInt(1); fd.writeToParcel(_data, 0); } else { _data.writeInt(0); } if ((printJobId!=null)) { _data.writeInt(1); printJobId.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_writePrintJobData, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } }
Set the progress of this print job
Params:
  • printJobId – The print job to update
  • progress – The new progress
/** * Set the progress of this print job * * @param printJobId The print job to update * @param progress The new progress */
@Override public void setProgress(android.print.PrintJobId printJobId, float progress) 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 ((printJobId!=null)) { _data.writeInt(1); printJobId.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeFloat(progress); mRemote.transact(Stub.TRANSACTION_setProgress, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Set the status of this print job
Params:
  • printJobId – The print job to update
  • status – The new status, can be null
/** * Set the status of this print job * * @param printJobId The print job to update * @param status The new status, can be null */
@Override public void setStatus(android.print.PrintJobId printJobId, java.lang.CharSequence status) 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 ((printJobId!=null)) { _data.writeInt(1); printJobId.writeToParcel(_data, 0); } else { _data.writeInt(0); } if ((status!=null)) { _data.writeInt(1); android.text.TextUtils.writeToParcel(status, _data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_setStatus, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Set the status of this print job
Params:
  • printJobId – The print job to update
  • status – The new status as a string resource
  • appPackageName – The app package name the string belongs to
/** * Set the status of this print job * * @param printJobId The print job to update * @param status The new status as a string resource * @param appPackageName The app package name the string belongs to */
@Override public void setStatusRes(android.print.PrintJobId printJobId, int status, java.lang.CharSequence appPackageName) 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 ((printJobId!=null)) { _data.writeInt(1); printJobId.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeInt(status); if ((appPackageName!=null)) { _data.writeInt(1); android.text.TextUtils.writeToParcel(appPackageName, _data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_setStatusRes, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void onPrintersAdded(android.content.pm.ParceledListSlice printers) 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 ((printers!=null)) { _data.writeInt(1); printers.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_onPrintersAdded, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void onPrintersRemoved(android.content.pm.ParceledListSlice printerIds) 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 ((printerIds!=null)) { _data.writeInt(1); printerIds.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_onPrintersRemoved, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Handle that a custom icon for a printer was loaded.
Params:
  • printerId – the id of the printer the icon belongs to
  • icon – the icon that was loaded
See Also:
/** * Handle that a custom icon for a printer was loaded. * * @param printerId the id of the printer the icon belongs to * @param icon the icon that was loaded * @see android.print.PrinterInfo.Builder#setHasCustomPrinterIcon() */
@Override public void onCustomPrinterIconLoaded(android.print.PrinterId printerId, android.graphics.drawable.Icon icon) 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 ((printerId!=null)) { _data.writeInt(1); printerId.writeToParcel(_data, 0); } else { _data.writeInt(0); } if ((icon!=null)) { _data.writeInt(1); icon.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_onCustomPrinterIconLoaded, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_getPrintJobInfos = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getPrintJobInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_setPrintJobState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_setPrintJobTag = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_writePrintJobData = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_setProgress = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_setStatus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_setStatusRes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_onPrintersAdded = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_onPrintersRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); static final int TRANSACTION_onCustomPrinterIconLoaded = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); } public java.util.List<android.print.PrintJobInfo> getPrintJobInfos() throws android.os.RemoteException; public android.print.PrintJobInfo getPrintJobInfo(android.print.PrintJobId printJobId) throws android.os.RemoteException; public boolean setPrintJobState(android.print.PrintJobId printJobId, int state, java.lang.String error) throws android.os.RemoteException; public boolean setPrintJobTag(android.print.PrintJobId printJobId, java.lang.String tag) throws android.os.RemoteException; public void writePrintJobData(android.os.ParcelFileDescriptor fd, android.print.PrintJobId printJobId) throws android.os.RemoteException;
Set the progress of this print job
Params:
  • printJobId – The print job to update
  • progress – The new progress
/** * Set the progress of this print job * * @param printJobId The print job to update * @param progress The new progress */
public void setProgress(android.print.PrintJobId printJobId, float progress) throws android.os.RemoteException;
Set the status of this print job
Params:
  • printJobId – The print job to update
  • status – The new status, can be null
/** * Set the status of this print job * * @param printJobId The print job to update * @param status The new status, can be null */
public void setStatus(android.print.PrintJobId printJobId, java.lang.CharSequence status) throws android.os.RemoteException;
Set the status of this print job
Params:
  • printJobId – The print job to update
  • status – The new status as a string resource
  • appPackageName – The app package name the string belongs to
/** * Set the status of this print job * * @param printJobId The print job to update * @param status The new status as a string resource * @param appPackageName The app package name the string belongs to */
public void setStatusRes(android.print.PrintJobId printJobId, int status, java.lang.CharSequence appPackageName) throws android.os.RemoteException; public void onPrintersAdded(android.content.pm.ParceledListSlice printers) throws android.os.RemoteException; public void onPrintersRemoved(android.content.pm.ParceledListSlice printerIds) throws android.os.RemoteException;
Handle that a custom icon for a printer was loaded.
Params:
  • printerId – the id of the printer the icon belongs to
  • icon – the icon that was loaded
See Also:
/** * Handle that a custom icon for a printer was loaded. * * @param printerId the id of the printer the icon belongs to * @param icon the icon that was loaded * @see android.print.PrinterInfo.Builder#setHasCustomPrinterIcon() */
public void onCustomPrinterIconLoaded(android.print.PrinterId printerId, android.graphics.drawable.Icon icon) throws android.os.RemoteException; }