@@ -534,6 +534,10 @@ public static class Default implements com.imin.printer.INeoPrinterService
534534 {
535535 return null ;
536536 }
537+ @ Override public byte [] getPrinterTestData (int fd ) throws android .os .RemoteException
538+ {
539+ return null ;
540+ }
537541 @ Override
538542 public android .os .IBinder asBinder () {
539543 return null ;
@@ -2636,6 +2640,16 @@ public static com.imin.printer.INeoPrinterService asInterface(android.os.IBinder
26362640 reply .writeString (_result );
26372641 return true ;
26382642 }
2643+ case TRANSACTION_getPrinterTestData :
2644+ {
2645+ data .enforceInterface (descriptor );
2646+ int _arg0 ;
2647+ _arg0 = data .readInt ();
2648+ byte [] _result = this .getPrinterTestData (_arg0 );
2649+ reply .writeNoException ();
2650+ reply .writeByteArray (_result );
2651+ return true ;
2652+ }
26392653 default :
26402654 {
26412655 return super .onTransact (code , data , reply , flags );
@@ -6173,6 +6187,27 @@ public java.lang.String getInterfaceDescriptor()
61736187 }
61746188 return _result ;
61756189 }
6190+ @ Override public byte [] getPrinterTestData (int fd ) throws android .os .RemoteException
6191+ {
6192+ android .os .Parcel _data = android .os .Parcel .obtain ();
6193+ android .os .Parcel _reply = android .os .Parcel .obtain ();
6194+ byte [] _result ;
6195+ try {
6196+ _data .writeInterfaceToken (DESCRIPTOR );
6197+ _data .writeInt (fd );
6198+ boolean _status = mRemote .transact (Stub .TRANSACTION_getPrinterTestData , _data , _reply , 0 );
6199+ if (!_status && getDefaultImpl () != null ) {
6200+ return getDefaultImpl ().getPrinterTestData (fd );
6201+ }
6202+ _reply .readException ();
6203+ _result = _reply .createByteArray ();
6204+ }
6205+ finally {
6206+ _reply .recycle ();
6207+ _data .recycle ();
6208+ }
6209+ return _result ;
6210+ }
61766211 public static com .imin .printer .INeoPrinterService sDefaultImpl ;
61776212 }
61786213 static final int TRANSACTION_initPrinter = (android .os .IBinder .FIRST_CALL_TRANSACTION + 0 );
@@ -6340,6 +6375,7 @@ public java.lang.String getInterfaceDescriptor()
63406375 static final int TRANSACTION_getPrinterInfo = (android .os .IBinder .FIRST_CALL_TRANSACTION + 162 );
63416376 static final int TRANSACTION_getPrinterInfoList = (android .os .IBinder .FIRST_CALL_TRANSACTION + 163 );
63426377 static final int TRANSACTION_getPrinterInfoString = (android .os .IBinder .FIRST_CALL_TRANSACTION + 164 );
6378+ static final int TRANSACTION_getPrinterTestData = (android .os .IBinder .FIRST_CALL_TRANSACTION + 165 );
63436379 public static boolean setDefaultImpl (com .imin .printer .INeoPrinterService impl ) {
63446380 // Only one user of this interface can use this function
63456381 // at a time. This is a heuristic to detect if two different
@@ -6522,4 +6558,5 @@ public static com.imin.printer.INeoPrinterService getDefaultImpl() {
65226558 public void getPrinterInfo (int fd , java .lang .String keyName , com .imin .printer .IPrinterCallback callback ) throws android .os .RemoteException ;
65236559 public java .util .List <java .lang .String > getPrinterInfoList (int fd , java .lang .String keyName ) throws android .os .RemoteException ;
65246560 public java .lang .String getPrinterInfoString (int fd , java .lang .String keyName ) throws android .os .RemoteException ;
6561+ public byte [] getPrinterTestData (int fd ) throws android .os .RemoteException ;
65256562}
0 commit comments