RemoteCopyPhotoTask.java 39 KB

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