RemoteCopyPhotoTask.java 39 KB

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