RemoteCopyPhotoTask.java 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. package epson.print.copy.Component.ecopycomponent;
  2. import android.os.AsyncTask;
  3. import java.util.ArrayList;
  4. import epson.print.copy.Component.eremoteoperation.ERemoteCopy;
  5. import epson.print.copy.Component.eremoteoperation.ERemoteCopyPhoto;
  6. import epson.print.copy.Component.eremoteoperation.ERemoteOperation;
  7. import epson.print.copy.Component.eremoteoperation.ERemotePrinter;
  8. class RemoteCopyPhotoTask extends AsyncTask<Void, Progress, Result> implements ECopyComponent.ITask {
  9. ERemoteCopy.IRemoteCancelParameter cancelParameter;
  10. boolean cancelRequested;
  11. String clientID;
  12. String jobToken;
  13. ERemoteCopyPhoto operation = new ERemoteCopyPhoto();
  14. ECopyOptionContext optionContext;
  15. CopyPhotoSettingHandler photoSetting;
  16. Progress progress = new Progress();
  17. ECopyComponent.ICopyStatusListener statusListener;
  18. ERemoteCopy.IRemoteCopyStatusParameter statusParameter;
  19. ECopyComponent.ICopySystemSettings systemSettings;
  20. class Progress {
  21. int currentPages;
  22. ECopyComponent.ICopyInvalidateResumeRequest resumeRequest;
  23. ECopyComponent.ICopyResumeRequest.ResumeState resumeState;
  24. ECopyComponent.ICopyStatusListener.CopyTaskProgress taskProgress;
  25. int totalPages;
  26. Progress() {
  27. }
  28. }
  29. class Result {
  30. ECopyComponent.ICopyStatusListener.CopyTaskResult taskResult;
  31. private void setResult(ERemoteOperation.ERemoteParam eRemoteParam) {
  32. switch (eRemoteParam) {
  33. case none:
  34. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.Succeed;
  35. return;
  36. case success:
  37. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.Succeed;
  38. return;
  39. case canceled:
  40. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.Canceled;
  41. return;
  42. case busy:
  43. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.Busy;
  44. return;
  45. case document_error:
  46. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.ErrorOther;
  47. return;
  48. case x_failed_communication:
  49. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.ErrorCommunication;
  50. return;
  51. case unknown_token:
  52. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.ErrorOther;
  53. return;
  54. case x_invalid_photo_setting:
  55. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.ErrorInvalidOption;
  56. return;
  57. default:
  58. taskResult = ECopyComponent.ICopyStatusListener.CopyTaskResult.ErrorOther;
  59. return;
  60. }
  61. }
  62. public Result(ERemoteOperation.ERemoteParam eRemoteParam) {
  63. setResult(eRemoteParam);
  64. }
  65. public Result(ERemoteOperation.ERemoteReasonResult eRemoteReasonResult) {
  66. if (eRemoteReasonResult.isNull(ERemoteOperation.ERemoteParam.success)) {
  67. setResult(ERemoteOperation.ERemoteParam.x_failed_communication);
  68. } else {
  69. setResult(eRemoteReasonResult.reason());
  70. }
  71. }
  72. }
  73. public RemoteCopyPhotoTask(String str, ECopyComponent.ICopyStatusListener iCopyStatusListener) {
  74. photoSetting = new CopyPhotoSettingHandler(str);
  75. statusListener = iCopyStatusListener;
  76. }
  77. public ECopyComponent.ICopyCancelRequest start() {
  78. super.execute(new Void[0]);
  79. return new ECopyComponent.ICopyCancelRequest() {
  80. public void cancel() {
  81. synchronized (this) {
  82. cancelRequested = true;
  83. }
  84. }
  85. };
  86. }
  87. public void setSystemSettings(ECopyComponent.ICopySystemSettings iCopySystemSettings) {
  88. systemSettings = iCopySystemSettings;
  89. }
  90. public void setRequestConnectionTimeout(int i) {
  91. operation.setRequestConnectionTimeout(i);
  92. }
  93. public void setClientID(String str) {
  94. clientID = str;
  95. }
  96. public void setOptionContext(ECopyOptionContext eCopyOptionContext) {
  97. optionContext = eCopyOptionContext;
  98. }
  99. protected void onPreExecute() {
  100. cancelParameter = new ERemoteCopy.IRemoteCancelParameter() {
  101. public String client_id() {
  102. return clientID;
  103. }
  104. public String job_token() {
  105. return jobToken;
  106. }
  107. };
  108. statusParameter = new ERemoteCopy.IRemoteCopyStatusParameter() {
  109. public String client_id() {
  110. return clientID;
  111. }
  112. public String job_token() {
  113. return jobToken;
  114. }
  115. public ArrayList<ERemoteOperation.ERemoteParam> keys() {
  116. ArrayList<ERemoteOperation.ERemoteParam> arrayList = new ArrayList<>();
  117. arrayList.add(ERemoteOperation.ERemoteParam.print_x_disc_tray_state);
  118. arrayList.add(ERemoteOperation.ERemoteParam.printer_state);
  119. arrayList.add(ERemoteOperation.ERemoteParam.printer_state_reasons);
  120. arrayList.add(ERemoteOperation.ERemoteParam.scanner_state);
  121. arrayList.add(ERemoteOperation.ERemoteParam.scanner_state_reasons);
  122. arrayList.add(ERemoteOperation.ERemoteParam.job_state);
  123. arrayList.add(ERemoteOperation.ERemoteParam.job_result);
  124. arrayList.add(ERemoteOperation.ERemoteParam.job_tokens);
  125. arrayList.add(ERemoteOperation.ERemoteParam.job_print_total_pages);
  126. arrayList.add(ERemoteOperation.ERemoteParam.job_print_current_pages);
  127. return arrayList;
  128. }
  129. };
  130. statusListener.onStarted(ECopyComponent.ICopyStatusListener.CopyTaskType.Copy);
  131. }
  132. protected void onProgressUpdate(Progress... progressArr) {
  133. Progress progress2 = progressArr[0];
  134. statusListener.onProcessed(ECopyComponent.ICopyStatusListener.CopyTaskType.Copy, progress2.totalPages, progress2.currentPages, progress2.taskProgress, progress2.resumeRequest);
  135. }
  136. private void resumeNotify(ECopyComponent.ICopyResumeRequest.ResumeState resumeState) {
  137. synchronized (progress) {
  138. progress.resumeState = resumeState;
  139. progress.notify();
  140. }
  141. }
  142. private int resumeExecute() {
  143. int i = 1000;
  144. if (progress.resumeRequest == null) {
  145. return 1000;
  146. }
  147. synchronized (progress) {
  148. while (progress.resumeState == null) {
  149. try {
  150. progress.wait(1000);
  151. } catch (InterruptedException e) {
  152. e.printStackTrace();
  153. }
  154. }
  155. }
  156. switch (progress.resumeState) {
  157. case ClearError:
  158. ERemotePrinter eRemotePrinter = new ERemotePrinter();
  159. eRemotePrinter.setHostIP(operation.getHostIP());
  160. eRemotePrinter.setRequestConnectionTimeout(operation.getRequestConnectionTimeout());
  161. eRemotePrinter.clearError(new ERemoteOperation.IRemoteOperationParameter() {
  162. public String client_id() {
  163. return clientID;
  164. }
  165. });
  166. i = 15000;
  167. break;
  168. case Cancel:
  169. cancelRequested = true;
  170. break;
  171. }
  172. Progress progress2 = progress;
  173. progress2.resumeState = null;
  174. progress2.resumeRequest = null;
  175. return i;
  176. }
  177. private ERemoteOperation.ERemoteReasonResult startCopy() {
  178. ERemoteCopy.ERemoteCopyResult copy = operation.copy(new ERemoteCopyPhoto.IRemoteCopyPhotoParameter() {
  179. public String client_id() {
  180. return clientID;
  181. }
  182. public ERemoteOperation.ERemoteParam layout() {
  183. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.XBorderless).getSelectedChoice().param;
  184. }
  185. public ERemoteOperation.ERemoteParam print_media_type() {
  186. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.PrintMediaType).getSelectedChoice().param;
  187. }
  188. public ERemoteOperation.ERemoteParam print_media_size() {
  189. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.PrintMediaSize).getSelectedChoice().param;
  190. }
  191. public ERemoteOperation.ERemoteParam print_quality() {
  192. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.PrintQuality).getSelectedChoice().param;
  193. }
  194. public ERemoteOperation.ERemoteParam print_media_source() {
  195. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.PrintMediaSource).getSelectedChoice().param;
  196. }
  197. public ERemoteOperation.ERemoteParam x_apf() {
  198. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.XApf).getSelectedChoice().param;
  199. }
  200. public ERemoteOperation.ERemoteParam x_color_restoration() {
  201. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.XColorRestoration).getSelectedChoice().param;
  202. }
  203. public ERemoteOperation.ERemoteParam color_effects_type() {
  204. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.ColorEffectsType).getSelectedChoice().param;
  205. }
  206. public int scan_count() {
  207. return photoSetting.getScanCount();
  208. }
  209. public ArrayList<String> copies() {
  210. return photoSetting.scanCopies;
  211. }
  212. public ArrayList<String> scan_area_x() {
  213. return photoSetting.scanAreaX;
  214. }
  215. public ArrayList<String> scan_area_y() {
  216. return photoSetting.scanAreaY;
  217. }
  218. public ArrayList<String> scan_area_width() {
  219. return photoSetting.scanAreaWidth;
  220. }
  221. public ArrayList<String> scan_area_height() {
  222. return photoSetting.scanAreaHeight;
  223. }
  224. public ArrayList<String> scan_area_resolution() {
  225. return photoSetting.scanAreaResolution;
  226. }
  227. public ERemoteOperation.ERemoteParam print_x_bleed() {
  228. if (optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.XBorderless).getSelectedChoice().param == ERemoteOperation.ERemoteParam.standard) {
  229. return ERemoteOperation.ERemoteParam.x_null;
  230. }
  231. return optionContext.getCopyOptionItemOf(ECopyOptionItem.ECopyOptionItemKey.PrintXBleed).getSelectedChoice().param;
  232. }
  233. public ERemoteOperation.ERemoteParam print_x_auto_pg() {
  234. return ERemoteOperation.ERemoteParam.off;
  235. }
  236. public ArrayList<String> x_fit_gamma() {
  237. return photoSetting.xFitGamma;
  238. }
  239. public ArrayList<String> x_fit_matrix() {
  240. return photoSetting.xFitMatrix;
  241. }
  242. });
  243. if (copy.success()) {
  244. jobToken = copy.job_token();
  245. }
  246. return copy;
  247. }
  248. protected Result doInBackground(Void... voidArr) {
  249. operation.setHostIP(systemSettings.getPrinterIPAddress());
  250. if (!photoSetting.parse()) {
  251. return new Result(ERemoteOperation.ERemoteParam.x_invalid_photo_setting);
  252. }
  253. ERemoteOperation.ERemoteReasonResult startCopy = startCopy();
  254. if (!startCopy.success()) {
  255. return new Result(startCopy);
  256. }
  257. Result result = null;
  258. boolean z = false;
  259. boolean z2 = false;
  260. while (!z) {
  261. if (cancelRequested && !z2) {
  262. if (!operation.cancel(cancelParameter).success()) {
  263. return new Result(ERemoteOperation.ERemoteParam.canceled);
  264. }
  265. z2 = true;
  266. }
  267. final ERemoteCopy.ERemoteCopyStatusResult status = operation.getStatus(statusParameter);
  268. if (!status.success()) {
  269. return new Result((ERemoteOperation.ERemoteReasonResult) status);
  270. }
  271. Result result2 = new Result(status.job_result());
  272. progress.totalPages = status.job_print_total_pages();
  273. progress.currentPages = status.job_print_current_pages();
  274. if (progress.currentPages < 1) {
  275. progress.currentPages = 1;
  276. }
  277. ERemoteOperation.ERemoteParam job_state = status.job_state();
  278. switch (job_state) {
  279. case scanning:
  280. progress.taskProgress = ECopyComponent.ICopyStatusListener.CopyTaskProgress.Scanning;
  281. break;
  282. case copying:
  283. progress.taskProgress = ECopyComponent.ICopyStatusListener.CopyTaskProgress.Copying;
  284. break;
  285. case canceling:
  286. progress.taskProgress = ECopyComponent.ICopyStatusListener.CopyTaskProgress.Canceling;
  287. break;
  288. case finished:
  289. result = result2;
  290. z = true;
  291. continue;
  292. }
  293. switch (status.printer_state()) {
  294. case stopped:
  295. if (job_state == ERemoteOperation.ERemoteParam.copying || job_state == ERemoteOperation.ERemoteParam.scanning) {
  296. Progress progress2 = progress;
  297. progress2.resumeState = null;
  298. progress2.taskProgress = ECopyComponent.ICopyStatusListener.CopyTaskProgress.Stopped;
  299. progress.resumeRequest = new ECopyComponent.ICopyInvalidateResumeRequest() {
  300. public void invalidate() {
  301. }
  302. public ECopyComponent.ICopyResumeRequest.StopReason getStopReason() {
  303. ECopyComponent.ICopyResumeRequest.StopReason printerStopReason = RemoteCopyTask.getPrinterStopReason(status.printer_state_reasons());
  304. return printerStopReason == ECopyComponent.ICopyResumeRequest.StopReason.None ? RemoteCopyTask.getScannerStopReason(status.scanner_state_reasons()) : printerStopReason;
  305. }
  306. public boolean isPossibleClearError() {
  307. switch (C21897.f373xc6bf26c4[RemoteCopyTask.getPrinterStopReason(status.printer_state_reasons()).ordinal()]) {
  308. case 1:
  309. return false;
  310. case 2:
  311. return false;
  312. case 3:
  313. return false;
  314. case 4:
  315. return true;
  316. case 5:
  317. return true;
  318. case 6:
  319. return true;
  320. case 7:
  321. return true;
  322. case 8:
  323. return false;
  324. default:
  325. switch (C21897.f373xc6bf26c4[RemoteCopyTask.getScannerStopReason(status.scanner_state_reasons()).ordinal()]) {
  326. case 9:
  327. return false;
  328. case 10:
  329. return false;
  330. case 11:
  331. return false;
  332. case 12:
  333. return false;
  334. default:
  335. return false;
  336. }
  337. }
  338. }
  339. public void resume(ECopyComponent.ICopyResumeRequest.ResumeState resumeState) {
  340. progress.taskProgress = ECopyComponent.ICopyStatusListener.CopyTaskProgress.Processing;
  341. RemoteCopyPhotoTask remoteCopyPhotoTask = RemoteCopyPhotoTask.this;
  342. remoteCopyPhotoTask.publishProgress(new Progress[]{remoteCopyPhotoTask.progress});
  343. resumeNotify(resumeState);
  344. }
  345. };
  346. break;
  347. }
  348. }
  349. publishProgress(new Progress[]{this.progress});
  350. try {
  351. Thread.sleep((long) resumeExecute());
  352. } catch (InterruptedException e) {
  353. e.printStackTrace();
  354. }
  355. result = result2;
  356. }
  357. return result;
  358. }
  359. /* renamed from: epson.print.copy.Component.ecopycomponent.RemoteCopyPhotoTask$7 */
  360. static /* synthetic */ class C21897 {
  361. /* renamed from: $SwitchMap$epson$print$copy$Component$ecopycomponent$ECopyComponent$ICopyResumeRequest$StopReason */
  362. static final /* synthetic */ int[] f373xc6bf26c4 = new int[ECopyComponent.ICopyResumeRequest.StopReason.values().length];
  363. /* JADX WARNING: Can't wrap try/catch for region: R(59:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|(2:13|14)|15|(2:17|18)|19|(2:21|22)|23|(2:25|26)|27|(2:29|30)|31|(2:33|34)|35|(2:37|38)|39|(2:41|42)|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  364. /* JADX WARNING: Can't wrap try/catch for region: R(60:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|(2:13|14)|15|(2:17|18)|19|(2:21|22)|23|(2:25|26)|27|(2:29|30)|31|(2:33|34)|35|(2:37|38)|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  365. /* JADX WARNING: Can't wrap try/catch for region: R(61:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|(2:13|14)|15|17|18|19|(2:21|22)|23|(2:25|26)|27|(2:29|30)|31|(2:33|34)|35|(2:37|38)|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  366. /* JADX WARNING: Can't wrap try/catch for region: R(62:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|(2:13|14)|15|17|18|19|(2:21|22)|23|(2:25|26)|27|(2:29|30)|31|(2:33|34)|35|37|38|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  367. /* JADX WARNING: Can't wrap try/catch for region: R(63:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|13|14|15|17|18|19|(2:21|22)|23|(2:25|26)|27|(2:29|30)|31|(2:33|34)|35|37|38|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  368. /* JADX WARNING: Can't wrap try/catch for region: R(64:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|13|14|15|17|18|19|(2:21|22)|23|(2:25|26)|27|(2:29|30)|31|33|34|35|37|38|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  369. /* JADX WARNING: Can't wrap try/catch for region: R(65:0|(2:1|2)|3|(2:5|6)|7|9|10|11|13|14|15|17|18|19|(2:21|22)|23|(2:25|26)|27|(2:29|30)|31|33|34|35|37|38|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  370. /* JADX WARNING: Can't wrap try/catch for region: R(66:0|(2:1|2)|3|(2:5|6)|7|9|10|11|13|14|15|17|18|19|(2:21|22)|23|(2:25|26)|27|29|30|31|33|34|35|37|38|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  371. /* JADX WARNING: Can't wrap try/catch for region: R(67:0|(2:1|2)|3|5|6|7|9|10|11|13|14|15|17|18|19|(2:21|22)|23|(2:25|26)|27|29|30|31|33|34|35|37|38|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  372. /* JADX WARNING: Can't wrap try/catch for region: R(68:0|(2:1|2)|3|5|6|7|9|10|11|13|14|15|17|18|19|(2:21|22)|23|25|26|27|29|30|31|33|34|35|37|38|39|41|42|43|(2:45|46)|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|(3:83|84|86)) */
  373. /* JADX WARNING: Can't wrap try/catch for region: R(72:0|1|2|3|5|6|7|9|10|11|13|14|15|17|18|19|(2:21|22)|23|25|26|27|29|30|31|33|34|35|37|38|39|41|42|43|45|46|47|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|86) */
  374. /* JADX WARNING: Failed to process nested try/catch */
  375. /* JADX WARNING: Missing exception handler attribute for start block: B:51:0x00a5 */
  376. /* JADX WARNING: Missing exception handler attribute for start block: B:57:0x00c2 */
  377. /* JADX WARNING: Missing exception handler attribute for start block: B:59:0x00cc */
  378. /* JADX WARNING: Missing exception handler attribute for start block: B:61:0x00d6 */
  379. /* JADX WARNING: Missing exception handler attribute for start block: B:63:0x00e0 */
  380. /* JADX WARNING: Missing exception handler attribute for start block: B:65:0x00ea */
  381. /* JADX WARNING: Missing exception handler attribute for start block: B:67:0x00f4 */
  382. /* JADX WARNING: Missing exception handler attribute for start block: B:69:0x00fe */
  383. /* JADX WARNING: Missing exception handler attribute for start block: B:71:0x0108 */
  384. /* JADX WARNING: Missing exception handler attribute for start block: B:73:0x0112 */
  385. /* JADX WARNING: Missing exception handler attribute for start block: B:75:0x011c */
  386. /* JADX WARNING: Missing exception handler attribute for start block: B:77:0x0126 */
  387. /* JADX WARNING: Missing exception handler attribute for start block: B:79:0x0130 */
  388. /* JADX WARNING: Missing exception handler attribute for start block: B:81:0x013c */
  389. /* JADX WARNING: Missing exception handler attribute for start block: B:83:0x0148 */
  390. static {
  391. /*
  392. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason[] r0 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.values()
  393. int r0 = r0.length
  394. int[] r0 = new int[r0]
  395. f373xc6bf26c4 = r0
  396. r0 = 1
  397. int[] r1 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x0014 }
  398. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r2 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.PrinterMarkerSupplyEmptyError // Catch:{ NoSuchFieldError -> 0x0014 }
  399. int r2 = r2.ordinal() // Catch:{ NoSuchFieldError -> 0x0014 }
  400. r1[r2] = r0 // Catch:{ NoSuchFieldError -> 0x0014 }
  401. L_0x0014:
  402. r1 = 2
  403. int[] r2 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x001f }
  404. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r3 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.PrinterMarkerWasteFullError // Catch:{ NoSuchFieldError -> 0x001f }
  405. int r3 = r3.ordinal() // Catch:{ NoSuchFieldError -> 0x001f }
  406. r2[r3] = r1 // Catch:{ NoSuchFieldError -> 0x001f }
  407. L_0x001f:
  408. r2 = 3
  409. int[] r3 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x002a }
  410. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r4 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.PrinterMediaJamError // Catch:{ NoSuchFieldError -> 0x002a }
  411. int r4 = r4.ordinal() // Catch:{ NoSuchFieldError -> 0x002a }
  412. r3[r4] = r2 // Catch:{ NoSuchFieldError -> 0x002a }
  413. L_0x002a:
  414. r3 = 4
  415. int[] r4 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x0035 }
  416. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r5 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.PrinterMediaEmptyError // Catch:{ NoSuchFieldError -> 0x0035 }
  417. int r5 = r5.ordinal() // Catch:{ NoSuchFieldError -> 0x0035 }
  418. r4[r5] = r3 // Catch:{ NoSuchFieldError -> 0x0035 }
  419. L_0x0035:
  420. r4 = 5
  421. int[] r5 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x0040 }
  422. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r6 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.PrinterInputTrayMissingError // Catch:{ NoSuchFieldError -> 0x0040 }
  423. int r6 = r6.ordinal() // Catch:{ NoSuchFieldError -> 0x0040 }
  424. r5[r6] = r4 // Catch:{ NoSuchFieldError -> 0x0040 }
  425. L_0x0040:
  426. r5 = 6
  427. int[] r6 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x004b }
  428. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r7 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.PrinterCoverOpenError // Catch:{ NoSuchFieldError -> 0x004b }
  429. int r7 = r7.ordinal() // Catch:{ NoSuchFieldError -> 0x004b }
  430. r6[r7] = r5 // Catch:{ NoSuchFieldError -> 0x004b }
  431. L_0x004b:
  432. r6 = 7
  433. int[] r7 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x0056 }
  434. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r8 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.PrinterOutputAreaFullError // Catch:{ NoSuchFieldError -> 0x0056 }
  435. int r8 = r8.ordinal() // Catch:{ NoSuchFieldError -> 0x0056 }
  436. r7[r8] = r6 // Catch:{ NoSuchFieldError -> 0x0056 }
  437. L_0x0056:
  438. r7 = 8
  439. int[] r8 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x0062 }
  440. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r9 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.PrinterOtherError // Catch:{ NoSuchFieldError -> 0x0062 }
  441. int r9 = r9.ordinal() // Catch:{ NoSuchFieldError -> 0x0062 }
  442. r8[r9] = r7 // Catch:{ NoSuchFieldError -> 0x0062 }
  443. L_0x0062:
  444. r8 = 9
  445. int[] r9 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x006e }
  446. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r10 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.ScannerMediaEmptyError // Catch:{ NoSuchFieldError -> 0x006e }
  447. int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x006e }
  448. r9[r10] = r8 // Catch:{ NoSuchFieldError -> 0x006e }
  449. L_0x006e:
  450. r9 = 10
  451. int[] r10 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x007a }
  452. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r11 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.ScannerMediaJamError // Catch:{ NoSuchFieldError -> 0x007a }
  453. int r11 = r11.ordinal() // Catch:{ NoSuchFieldError -> 0x007a }
  454. r10[r11] = r9 // Catch:{ NoSuchFieldError -> 0x007a }
  455. L_0x007a:
  456. r10 = 11
  457. int[] r11 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x0086 }
  458. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r12 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.ScannerMediaSizeMissmatchError // Catch:{ NoSuchFieldError -> 0x0086 }
  459. int r12 = r12.ordinal() // Catch:{ NoSuchFieldError -> 0x0086 }
  460. r11[r12] = r10 // Catch:{ NoSuchFieldError -> 0x0086 }
  461. L_0x0086:
  462. r11 = 12
  463. int[] r12 = f373xc6bf26c4 // Catch:{ NoSuchFieldError -> 0x0092 }
  464. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$StopReason r13 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.StopReason.ScannerOtherError // Catch:{ NoSuchFieldError -> 0x0092 }
  465. int r13 = r13.ordinal() // Catch:{ NoSuchFieldError -> 0x0092 }
  466. r12[r13] = r11 // Catch:{ NoSuchFieldError -> 0x0092 }
  467. L_0x0092:
  468. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$ResumeState[] r12 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.ResumeState.values()
  469. int r12 = r12.length
  470. int[] r12 = new int[r12]
  471. f372x17ee3246 = r12
  472. int[] r12 = f372x17ee3246 // Catch:{ NoSuchFieldError -> 0x00a5 }
  473. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$ResumeState r13 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.ResumeState.ClearError // Catch:{ NoSuchFieldError -> 0x00a5 }
  474. int r13 = r13.ordinal() // Catch:{ NoSuchFieldError -> 0x00a5 }
  475. r12[r13] = r0 // Catch:{ NoSuchFieldError -> 0x00a5 }
  476. L_0x00a5:
  477. int[] r12 = f372x17ee3246 // Catch:{ NoSuchFieldError -> 0x00af }
  478. epson.print.copy.Component.ecopycomponent.ECopyComponent$ICopyResumeRequest$ResumeState r13 = epson.print.copy.Component.ecopycomponent.ECopyComponent.ICopyResumeRequest.ResumeState.Cancel // Catch:{ NoSuchFieldError -> 0x00af }
  479. int r13 = r13.ordinal() // Catch:{ NoSuchFieldError -> 0x00af }
  480. r12[r13] = r1 // Catch:{ NoSuchFieldError -> 0x00af }
  481. L_0x00af:
  482. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam[] r12 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.values()
  483. int r12 = r12.length
  484. int[] r12 = new int[r12]
  485. f374xed9088c4 = r12
  486. int[] r12 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x00c2 }
  487. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r13 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.none // Catch:{ NoSuchFieldError -> 0x00c2 }
  488. int r13 = r13.ordinal() // Catch:{ NoSuchFieldError -> 0x00c2 }
  489. r12[r13] = r0 // Catch:{ NoSuchFieldError -> 0x00c2 }
  490. L_0x00c2:
  491. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x00cc }
  492. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r12 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.success // Catch:{ NoSuchFieldError -> 0x00cc }
  493. int r12 = r12.ordinal() // Catch:{ NoSuchFieldError -> 0x00cc }
  494. r0[r12] = r1 // Catch:{ NoSuchFieldError -> 0x00cc }
  495. L_0x00cc:
  496. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x00d6 }
  497. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.canceled // Catch:{ NoSuchFieldError -> 0x00d6 }
  498. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x00d6 }
  499. r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x00d6 }
  500. L_0x00d6:
  501. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x00e0 }
  502. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.busy // Catch:{ NoSuchFieldError -> 0x00e0 }
  503. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x00e0 }
  504. r0[r1] = r3 // Catch:{ NoSuchFieldError -> 0x00e0 }
  505. L_0x00e0:
  506. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x00ea }
  507. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.document_error // Catch:{ NoSuchFieldError -> 0x00ea }
  508. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x00ea }
  509. r0[r1] = r4 // Catch:{ NoSuchFieldError -> 0x00ea }
  510. L_0x00ea:
  511. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x00f4 }
  512. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.x_failed_communication // Catch:{ NoSuchFieldError -> 0x00f4 }
  513. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x00f4 }
  514. r0[r1] = r5 // Catch:{ NoSuchFieldError -> 0x00f4 }
  515. L_0x00f4:
  516. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x00fe }
  517. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.unknown_token // Catch:{ NoSuchFieldError -> 0x00fe }
  518. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x00fe }
  519. r0[r1] = r6 // Catch:{ NoSuchFieldError -> 0x00fe }
  520. L_0x00fe:
  521. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x0108 }
  522. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.x_invalid_photo_setting // Catch:{ NoSuchFieldError -> 0x0108 }
  523. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0108 }
  524. r0[r1] = r7 // Catch:{ NoSuchFieldError -> 0x0108 }
  525. L_0x0108:
  526. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x0112 }
  527. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.scanning // Catch:{ NoSuchFieldError -> 0x0112 }
  528. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0112 }
  529. r0[r1] = r8 // Catch:{ NoSuchFieldError -> 0x0112 }
  530. L_0x0112:
  531. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x011c }
  532. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.copying // Catch:{ NoSuchFieldError -> 0x011c }
  533. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x011c }
  534. r0[r1] = r9 // Catch:{ NoSuchFieldError -> 0x011c }
  535. L_0x011c:
  536. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x0126 }
  537. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.canceling // Catch:{ NoSuchFieldError -> 0x0126 }
  538. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0126 }
  539. r0[r1] = r10 // Catch:{ NoSuchFieldError -> 0x0126 }
  540. L_0x0126:
  541. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x0130 }
  542. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.finished // Catch:{ NoSuchFieldError -> 0x0130 }
  543. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0130 }
  544. r0[r1] = r11 // Catch:{ NoSuchFieldError -> 0x0130 }
  545. L_0x0130:
  546. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x013c }
  547. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.idle // Catch:{ NoSuchFieldError -> 0x013c }
  548. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x013c }
  549. r2 = 13
  550. r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x013c }
  551. L_0x013c:
  552. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x0148 }
  553. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.processing // Catch:{ NoSuchFieldError -> 0x0148 }
  554. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0148 }
  555. r2 = 14
  556. r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x0148 }
  557. L_0x0148:
  558. int[] r0 = f374xed9088c4 // Catch:{ NoSuchFieldError -> 0x0154 }
  559. epson.print.copy.Component.eremoteoperation.ERemoteOperation$ERemoteParam r1 = epson.print.copy.Component.eremoteoperation.ERemoteOperation.ERemoteParam.stopped // Catch:{ NoSuchFieldError -> 0x0154 }
  560. int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0154 }
  561. r2 = 15
  562. r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x0154 }
  563. L_0x0154:
  564. return
  565. */
  566. throw new UnsupportedOperationException("Method not decompiled: epson.print.copy.Component.ecopycomponent.RemoteCopyPhotoTask.C21897.<clinit>():void");
  567. }
  568. }
  569. protected void onPostExecute(Result result) {
  570. statusListener.onFinished(ECopyComponent.ICopyStatusListener.CopyTaskType.Copy, result.taskResult);
  571. }
  572. }