RemoteCopyPhotoTask.java 40 KB

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