package epson.print.service;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.epson.cameracopy.printlayout.ImageAndLayout;
import epson.print.EPImageList;
import java.util.List;

public interface IEpsonService extends IInterface {
    void EpsonConnectCancel() throws RemoteException;

    int EpsonConnectChangePrintSetting() throws RemoteException;

    int EpsonConnectCheckSupportedFileType(String str) throws RemoteException;

    int EpsonConnectCreateJob(int i, String str, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10, int i11, int i12, int i13, int i14) throws RemoteException;

    int EpsonConnectEndJob() throws RemoteException;

    int EpsonConnectGetPreview(int i, String str) throws RemoteException;

    int EpsonConnectGetRemotePrintMaxFileSize() throws RemoteException;

    int EpsonConnectGetRenderingStatus(int[] iArr) throws RemoteException;

    int EpsonConnectGetSupportedMedia(int i, String str, String str2) throws RemoteException;

    int EpsonConnectStartPrint(int i, int i2) throws RemoteException;

    int EpsonConnectUpdatePrinterSettings(String str) throws RemoteException;

    int EpsonConnectUploadFile(String str, int i) throws RemoteException;

    int cancelPrint() throws RemoteException;

    int cancelSearchPrinter() throws RemoteException;

    int confirmCancel(boolean z) throws RemoteException;

    int confirmContinueable(boolean z) throws RemoteException;

    int ensureLogin(boolean z) throws RemoteException;

    int[] getColor(boolean z, int i, int i2, int i3) throws RemoteException;

    int getDuplex(int i, int i2) throws RemoteException;

    int getLang() throws RemoteException;

    int[] getLayout(int i, int i2) throws RemoteException;

    int[] getPaperSize() throws RemoteException;

    int[] getPaperSource(int i, int i2, int i3) throws RemoteException;

    int[] getPaperType(int i) throws RemoteException;

    int[] getQuality(int i, int i2) throws RemoteException;

    int getSupportedMedia(boolean z, int i, String str, String str2) throws RemoteException;

    boolean isPrinting() throws RemoteException;

    boolean isSearchingPrinter() throws RemoteException;

    int print(EPImageList ePImageList, String str, boolean z) throws RemoteException;

    int printLocalPdf(String str, String str2, String str3, boolean z, int i, int i2, boolean z2) throws RemoteException;

    int printWithImagesAndLayouts(List<ImageAndLayout> list, boolean z) throws RemoteException;

    void refreshRemotePrinterLogin() throws RemoteException;

    void registerCallback(IEpsonServiceCallback iEpsonServiceCallback) throws RemoteException;

    int searchPrinters(String str, String str2, int i) throws RemoteException;

    int setCurPrinter(int i) throws RemoteException;

    void setTimeOut(int i) throws RemoteException;

    void unregisterCallback(IEpsonServiceCallback iEpsonServiceCallback) throws RemoteException;

    int updatePrinterSettings(String str) throws RemoteException;

    public static abstract class Stub extends Binder implements IEpsonService {
        private static final String DESCRIPTOR = "epson.print.service.IEpsonService";
        static final int TRANSACTION_EpsonConnectCancel = 37;
        static final int TRANSACTION_EpsonConnectChangePrintSetting = 27;
        static final int TRANSACTION_EpsonConnectCheckSupportedFileType = 31;
        static final int TRANSACTION_EpsonConnectCreateJob = 26;
        static final int TRANSACTION_EpsonConnectEndJob = 30;
        static final int TRANSACTION_EpsonConnectGetPreview = 33;
        static final int TRANSACTION_EpsonConnectGetRemotePrintMaxFileSize = 36;
        static final int TRANSACTION_EpsonConnectGetRenderingStatus = 32;
        static final int TRANSACTION_EpsonConnectGetSupportedMedia = 34;
        static final int TRANSACTION_EpsonConnectStartPrint = 29;
        static final int TRANSACTION_EpsonConnectUpdatePrinterSettings = 25;
        static final int TRANSACTION_EpsonConnectUploadFile = 28;
        static final int TRANSACTION_cancelPrint = 19;
        static final int TRANSACTION_cancelSearchPrinter = 4;
        static final int TRANSACTION_confirmCancel = 20;
        static final int TRANSACTION_confirmContinueable = 21;
        static final int TRANSACTION_ensureLogin = 35;
        static final int TRANSACTION_getColor = 14;
        static final int TRANSACTION_getDuplex = 15;
        static final int TRANSACTION_getLang = 7;
        static final int TRANSACTION_getLayout = 11;
        static final int TRANSACTION_getPaperSize = 9;
        static final int TRANSACTION_getPaperSource = 13;
        static final int TRANSACTION_getPaperType = 10;
        static final int TRANSACTION_getQuality = 12;
        static final int TRANSACTION_getSupportedMedia = 8;
        static final int TRANSACTION_isPrinting = 23;
        static final int TRANSACTION_isSearchingPrinter = 22;
        static final int TRANSACTION_print = 16;
        static final int TRANSACTION_printLocalPdf = 17;
        static final int TRANSACTION_printWithImagesAndLayouts = 18;
        static final int TRANSACTION_refreshRemotePrinterLogin = 38;
        static final int TRANSACTION_registerCallback = 1;
        static final int TRANSACTION_searchPrinters = 3;
        static final int TRANSACTION_setCurPrinter = 6;
        static final int TRANSACTION_setTimeOut = 5;
        static final int TRANSACTION_unregisterCallback = 2;
        static final int TRANSACTION_updatePrinterSettings = 24;

        public IBinder asBinder() {
            return this;
        }

        public Stub() {
            attachInterface(this, DESCRIPTOR);
        }

        public static IEpsonService asInterface(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
            if (queryLocalInterface == null || !(queryLocalInterface instanceof IEpsonService)) {
                return new Proxy(iBinder);
            }
            return (IEpsonService) queryLocalInterface;
        }

        /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r3v2, resolved type: epson.print.EPImageList} */
        /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r3v9, resolved type: int[]} */
        /* JADX WARNING: type inference failed for: r3v1 */
        /* JADX WARNING: type inference failed for: r3v11 */
        /* JADX WARNING: type inference failed for: r3v12 */
        /* JADX WARNING: Multi-variable type inference failed */
        /* Code decompiled incorrectly, please refer to instructions dump. */
        public boolean onTransact(int r21, android.os.Parcel r22, android.os.Parcel r23, int r24) throws android.os.RemoteException {
            /*
                r20 = this;
                r15 = r20
                r0 = r21
                r1 = r22
                r14 = r23
                java.lang.String r2 = "epson.print.service.IEpsonService"
                r3 = 1598968902(0x5f4e5446, float:1.4867585E19)
                r16 = 1
                if (r0 == r3) goto L_0x03b9
                r3 = 0
                r4 = 0
                switch(r0) {
                    case 1: goto L_0x03a5;
                    case 2: goto L_0x0391;
                    case 3: goto L_0x0375;
                    case 4: goto L_0x0365;
                    case 5: goto L_0x0355;
                    case 6: goto L_0x0341;
                    case 7: goto L_0x0331;
                    case 8: goto L_0x030e;
                    case 9: goto L_0x02fe;
                    case 10: goto L_0x02ea;
                    case 11: goto L_0x02d2;
                    case 12: goto L_0x02ba;
                    case 13: goto L_0x029e;
                    case 14: goto L_0x027b;
                    case 15: goto L_0x0263;
                    case 16: goto L_0x0239;
                    case 17: goto L_0x01fa;
                    case 18: goto L_0x01dd;
                    case 19: goto L_0x01cd;
                    case 20: goto L_0x01b6;
                    case 21: goto L_0x019f;
                    case 22: goto L_0x018f;
                    case 23: goto L_0x017f;
                    case 24: goto L_0x016b;
                    case 25: goto L_0x0156;
                    case 26: goto L_0x00f6;
                    case 27: goto L_0x00e8;
                    case 28: goto L_0x00d2;
                    case 29: goto L_0x00bc;
                    case 30: goto L_0x00ae;
                    case 31: goto L_0x009c;
                    case 32: goto L_0x0082;
                    case 33: goto L_0x006c;
                    case 34: goto L_0x0052;
                    case 35: goto L_0x003d;
                    case 36: goto L_0x002f;
                    case 37: goto L_0x0025;
                    case 38: goto L_0x001b;
                    default: goto L_0x0016;
                }
            L_0x0016:
                boolean r0 = super.onTransact(r21, r22, r23, r24)
                return r0
            L_0x001b:
                r1.enforceInterface(r2)
                r20.refreshRemotePrinterLogin()
                r23.writeNoException()
                return r16
            L_0x0025:
                r1.enforceInterface(r2)
                r20.EpsonConnectCancel()
                r23.writeNoException()
                return r16
            L_0x002f:
                r1.enforceInterface(r2)
                int r0 = r20.EpsonConnectGetRemotePrintMaxFileSize()
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x003d:
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                if (r0 == 0) goto L_0x0047
                r4 = 1
            L_0x0047:
                int r0 = r15.ensureLogin(r4)
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x0052:
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                java.lang.String r2 = r22.readString()
                java.lang.String r1 = r22.readString()
                int r0 = r15.EpsonConnectGetSupportedMedia(r0, r2, r1)
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x006c:
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                java.lang.String r1 = r22.readString()
                int r0 = r15.EpsonConnectGetPreview(r0, r1)
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x0082:
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                if (r0 >= 0) goto L_0x008c
                goto L_0x008e
            L_0x008c:
                int[] r3 = new int[r0]
            L_0x008e:
                int r0 = r15.EpsonConnectGetRenderingStatus(r3)
                r23.writeNoException()
                r14.writeInt(r0)
                r14.writeIntArray(r3)
                return r16
            L_0x009c:
                r1.enforceInterface(r2)
                java.lang.String r0 = r22.readString()
                int r0 = r15.EpsonConnectCheckSupportedFileType(r0)
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x00ae:
                r1.enforceInterface(r2)
                int r0 = r20.EpsonConnectEndJob()
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x00bc:
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                int r1 = r22.readInt()
                int r0 = r15.EpsonConnectStartPrint(r0, r1)
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x00d2:
                r1.enforceInterface(r2)
                java.lang.String r0 = r22.readString()
                int r1 = r22.readInt()
                int r0 = r15.EpsonConnectUploadFile(r0, r1)
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x00e8:
                r1.enforceInterface(r2)
                int r0 = r20.EpsonConnectChangePrintSetting()
                r23.writeNoException()
                r14.writeInt(r0)
                return r16
            L_0x00f6:
                r1.enforceInterface(r2)
                int r2 = r22.readInt()
                java.lang.String r3 = r22.readString()
                int r4 = r22.readInt()
                int r5 = r22.readInt()
                int r6 = r22.readInt()
                int r7 = r22.readInt()
                int r8 = r22.readInt()
                int r9 = r22.readInt()
                int r10 = r22.readInt()
                int r11 = r22.readInt()
                int r12 = r22.readInt()
                int r13 = r22.readInt()
                int r17 = r22.readInt()
                int r18 = r22.readInt()
                int r19 = r22.readInt()
                r0 = r20
                r1 = r2
                r2 = r3
                r3 = r4
                r4 = r5
                r5 = r6
                r6 = r7
                r7 = r8
                r8 = r9
                r9 = r10
                r10 = r11
                r11 = r12
                r12 = r13
                r13 = r17
                r14 = r18
                r15 = r19
                int r0 = r0.EpsonConnectCreateJob(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15)
                r23.writeNoException()
                r8 = r23
                r8.writeInt(r0)
                return r16
            L_0x0156:
                r8 = r14
                r1.enforceInterface(r2)
                java.lang.String r0 = r22.readString()
                r9 = r20
                int r0 = r9.EpsonConnectUpdatePrinterSettings(r0)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x016b:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                java.lang.String r0 = r22.readString()
                int r0 = r9.updatePrinterSettings(r0)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x017f:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                boolean r0 = r20.isPrinting()
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x018f:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                boolean r0 = r20.isSearchingPrinter()
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x019f:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                if (r0 == 0) goto L_0x01ab
                r4 = 1
            L_0x01ab:
                int r0 = r9.confirmContinueable(r4)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x01b6:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                if (r0 == 0) goto L_0x01c2
                r4 = 1
            L_0x01c2:
                int r0 = r9.confirmCancel(r4)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x01cd:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r20.cancelPrint()
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x01dd:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                android.os.Parcelable$Creator<com.epson.cameracopy.printlayout.ImageAndLayout> r0 = com.epson.cameracopy.printlayout.ImageAndLayout.CREATOR
                java.util.ArrayList r0 = r1.createTypedArrayList(r0)
                int r1 = r22.readInt()
                if (r1 == 0) goto L_0x01ef
                r4 = 1
            L_0x01ef:
                int r0 = r9.printWithImagesAndLayouts(r0, r4)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x01fa:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                java.lang.String r2 = r22.readString()
                java.lang.String r3 = r22.readString()
                java.lang.String r5 = r22.readString()
                int r0 = r22.readInt()
                if (r0 == 0) goto L_0x0213
                r6 = 1
                goto L_0x0214
            L_0x0213:
                r6 = 0
            L_0x0214:
                int r7 = r22.readInt()
                int r10 = r22.readInt()
                int r0 = r22.readInt()
                if (r0 == 0) goto L_0x0224
                r11 = 1
                goto L_0x0225
            L_0x0224:
                r11 = 0
            L_0x0225:
                r0 = r20
                r1 = r2
                r2 = r3
                r3 = r5
                r4 = r6
                r5 = r7
                r6 = r10
                r7 = r11
                int r0 = r0.printLocalPdf(r1, r2, r3, r4, r5, r6, r7)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x0239:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                if (r0 == 0) goto L_0x024d
                android.os.Parcelable$Creator<epson.print.EPImageList> r0 = epson.print.EPImageList.CREATOR
                java.lang.Object r0 = r0.createFromParcel(r1)
                r3 = r0
                epson.print.EPImageList r3 = (epson.print.EPImageList) r3
            L_0x024d:
                java.lang.String r0 = r22.readString()
                int r1 = r22.readInt()
                if (r1 == 0) goto L_0x0258
                r4 = 1
            L_0x0258:
                int r0 = r9.print(r3, r0, r4)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x0263:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                int r1 = r22.readInt()
                int r0 = r9.getDuplex(r0, r1)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x027b:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                if (r0 == 0) goto L_0x0287
                r4 = 1
            L_0x0287:
                int r0 = r22.readInt()
                int r2 = r22.readInt()
                int r1 = r22.readInt()
                int[] r0 = r9.getColor(r4, r0, r2, r1)
                r23.writeNoException()
                r8.writeIntArray(r0)
                return r16
            L_0x029e:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                int r2 = r22.readInt()
                int r1 = r22.readInt()
                int[] r0 = r9.getPaperSource(r0, r2, r1)
                r23.writeNoException()
                r8.writeIntArray(r0)
                return r16
            L_0x02ba:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                int r1 = r22.readInt()
                int[] r0 = r9.getQuality(r0, r1)
                r23.writeNoException()
                r8.writeIntArray(r0)
                return r16
            L_0x02d2:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                int r1 = r22.readInt()
                int[] r0 = r9.getLayout(r0, r1)
                r23.writeNoException()
                r8.writeIntArray(r0)
                return r16
            L_0x02ea:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                int[] r0 = r9.getPaperType(r0)
                r23.writeNoException()
                r8.writeIntArray(r0)
                return r16
            L_0x02fe:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int[] r0 = r20.getPaperSize()
                r23.writeNoException()
                r8.writeIntArray(r0)
                return r16
            L_0x030e:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                if (r0 == 0) goto L_0x031a
                r4 = 1
            L_0x031a:
                int r0 = r22.readInt()
                java.lang.String r2 = r22.readString()
                java.lang.String r1 = r22.readString()
                int r0 = r9.getSupportedMedia(r4, r0, r2, r1)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x0331:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r20.getLang()
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x0341:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                int r0 = r9.setCurPrinter(r0)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x0355:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r22.readInt()
                r9.setTimeOut(r0)
                r23.writeNoException()
                return r16
            L_0x0365:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                int r0 = r20.cancelSearchPrinter()
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x0375:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                java.lang.String r0 = r22.readString()
                java.lang.String r2 = r22.readString()
                int r1 = r22.readInt()
                int r0 = r9.searchPrinters(r0, r2, r1)
                r23.writeNoException()
                r8.writeInt(r0)
                return r16
            L_0x0391:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                android.os.IBinder r0 = r22.readStrongBinder()
                epson.print.service.IEpsonServiceCallback r0 = epson.print.service.IEpsonServiceCallback.Stub.asInterface(r0)
                r9.unregisterCallback(r0)
                r23.writeNoException()
                return r16
            L_0x03a5:
                r8 = r14
                r9 = r15
                r1.enforceInterface(r2)
                android.os.IBinder r0 = r22.readStrongBinder()
                epson.print.service.IEpsonServiceCallback r0 = epson.print.service.IEpsonServiceCallback.Stub.asInterface(r0)
                r9.registerCallback(r0)
                r23.writeNoException()
                return r16
            L_0x03b9:
                r8 = r14
                r9 = r15
                r8.writeString(r2)
                return r16
            */
            throw new UnsupportedOperationException("Method not decompiled: epson.print.service.IEpsonService.Stub.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean");
        }

        private static class Proxy implements IEpsonService {
            private IBinder mRemote;

            public String getInterfaceDescriptor() {
                return Stub.DESCRIPTOR;
            }

            Proxy(IBinder iBinder) {
                this.mRemote = iBinder;
            }

            public IBinder asBinder() {
                return this.mRemote;
            }

            public void registerCallback(IEpsonServiceCallback iEpsonServiceCallback) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeStrongBinder(iEpsonServiceCallback != null ? iEpsonServiceCallback.asBinder() : null);
                    this.mRemote.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void unregisterCallback(IEpsonServiceCallback iEpsonServiceCallback) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeStrongBinder(iEpsonServiceCallback != null ? iEpsonServiceCallback.asBinder() : null);
                    this.mRemote.transact(2, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int searchPrinters(String str, String str2, int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeString(str);
                    obtain.writeString(str2);
                    obtain.writeInt(i);
                    this.mRemote.transact(3, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int cancelSearchPrinter() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(4, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void setTimeOut(int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    this.mRemote.transact(5, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int setCurPrinter(int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    this.mRemote.transact(6, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int getLang() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(7, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int getSupportedMedia(boolean z, int i, String str, String str2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(z ? 1 : 0);
                    obtain.writeInt(i);
                    obtain.writeString(str);
                    obtain.writeString(str2);
                    this.mRemote.transact(8, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int[] getPaperSize() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(9, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.createIntArray();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int[] getPaperType(int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    this.mRemote.transact(10, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.createIntArray();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int[] getLayout(int i, int i2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    this.mRemote.transact(11, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.createIntArray();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int[] getQuality(int i, int i2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    this.mRemote.transact(12, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.createIntArray();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int[] getPaperSource(int i, int i2, int i3) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    obtain.writeInt(i3);
                    this.mRemote.transact(13, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.createIntArray();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int[] getColor(boolean z, int i, int i2, int i3) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(z ? 1 : 0);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    obtain.writeInt(i3);
                    this.mRemote.transact(14, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.createIntArray();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int getDuplex(int i, int i2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    this.mRemote.transact(15, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int print(EPImageList ePImageList, String str, boolean z) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    int i = 1;
                    if (ePImageList != null) {
                        obtain.writeInt(1);
                        ePImageList.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    obtain.writeString(str);
                    if (!z) {
                        i = 0;
                    }
                    obtain.writeInt(i);
                    this.mRemote.transact(16, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int printLocalPdf(String str, String str2, String str3, boolean z, int i, int i2, boolean z2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeString(str);
                    obtain.writeString(str2);
                    obtain.writeString(str3);
                    int i3 = 1;
                    obtain.writeInt(z ? 1 : 0);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    if (!z2) {
                        i3 = 0;
                    }
                    obtain.writeInt(i3);
                    this.mRemote.transact(17, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int printWithImagesAndLayouts(List<ImageAndLayout> list, boolean z) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeTypedList(list);
                    obtain.writeInt(z ? 1 : 0);
                    this.mRemote.transact(18, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int cancelPrint() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(19, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int confirmCancel(boolean z) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(z ? 1 : 0);
                    this.mRemote.transact(20, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int confirmContinueable(boolean z) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(z ? 1 : 0);
                    this.mRemote.transact(21, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean isSearchingPrinter() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    boolean z = false;
                    this.mRemote.transact(22, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    return z;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean isPrinting() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    boolean z = false;
                    this.mRemote.transact(23, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    return z;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int updatePrinterSettings(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeString(str);
                    this.mRemote.transact(24, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectUpdatePrinterSettings(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeString(str);
                    this.mRemote.transact(25, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectCreateJob(int i, String str, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10, int i11, int i12, int i13, int i14) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    int i15 = i;
                    obtain.writeInt(i);
                    String str2 = str;
                    obtain.writeString(str);
                    int i16 = i2;
                    obtain.writeInt(i2);
                    int i17 = i3;
                    obtain.writeInt(i3);
                    int i18 = i4;
                    obtain.writeInt(i4);
                    int i19 = i5;
                    obtain.writeInt(i5);
                    int i20 = i6;
                    obtain.writeInt(i6);
                    int i21 = i7;
                    obtain.writeInt(i7);
                    int i22 = i8;
                    obtain.writeInt(i8);
                    obtain.writeInt(i9);
                    obtain.writeInt(i10);
                    obtain.writeInt(i11);
                    obtain.writeInt(i12);
                    obtain.writeInt(i13);
                    obtain.writeInt(i14);
                    try {
                        this.mRemote.transact(26, obtain, obtain2, 0);
                        obtain2.readException();
                        int readInt = obtain2.readInt();
                        obtain2.recycle();
                        obtain.recycle();
                        return readInt;
                    } catch (Throwable th) {
                        th = th;
                        obtain2.recycle();
                        obtain.recycle();
                        throw th;
                    }
                } catch (Throwable th2) {
                    th = th2;
                    obtain2.recycle();
                    obtain.recycle();
                    throw th;
                }
            }

            public int EpsonConnectChangePrintSetting() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(27, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectUploadFile(String str, int i) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeString(str);
                    obtain.writeInt(i);
                    this.mRemote.transact(28, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectStartPrint(int i, int i2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    obtain.writeInt(i2);
                    this.mRemote.transact(29, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectEndJob() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(30, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectCheckSupportedFileType(String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeString(str);
                    this.mRemote.transact(31, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectGetRenderingStatus(int[] iArr) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    if (iArr == null) {
                        obtain.writeInt(-1);
                    } else {
                        obtain.writeInt(iArr.length);
                    }
                    this.mRemote.transact(32, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    obtain2.readIntArray(iArr);
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectGetPreview(int i, String str) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    obtain.writeString(str);
                    this.mRemote.transact(33, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectGetSupportedMedia(int i, String str, String str2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(i);
                    obtain.writeString(str);
                    obtain.writeString(str2);
                    this.mRemote.transact(34, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int ensureLogin(boolean z) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    obtain.writeInt(z ? 1 : 0);
                    this.mRemote.transact(35, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int EpsonConnectGetRemotePrintMaxFileSize() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(36, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void EpsonConnectCancel() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(37, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void refreshRemotePrinterLogin() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(38, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }
    }
}
