/out/target/common/obj/APPS/Email_intermediates/src/src/com/android/email/service/IEmailService.java

https://github.com/JTroniks/CyanogenMod-7 · Java · 502 lines · 492 code · 0 blank · 10 comment · 7 complexity · 6650b9ffe98e46c4bda5102f76e8af02 MD5 · raw file

  1. /*
  2. * This file is auto-generated. DO NOT MODIFY.
  3. * Original file: packages/apps/Email/src/com/android/email/service/IEmailService.aidl
  4. */
  5. package com.android.email.service;
  6. public interface IEmailService extends android.os.IInterface
  7. {
  8. /** Local-side IPC implementation stub class. */
  9. public static abstract class Stub extends android.os.Binder implements com.android.email.service.IEmailService
  10. {
  11. private static final java.lang.String DESCRIPTOR = "com.android.email.service.IEmailService";
  12. /** Construct the stub at attach it to the interface. */
  13. public Stub()
  14. {
  15. this.attachInterface(this, DESCRIPTOR);
  16. }
  17. /**
  18. * Cast an IBinder object into an com.android.email.service.IEmailService interface,
  19. * generating a proxy if needed.
  20. */
  21. public static com.android.email.service.IEmailService asInterface(android.os.IBinder obj)
  22. {
  23. if ((obj==null)) {
  24. return null;
  25. }
  26. android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
  27. if (((iin!=null)&&(iin instanceof com.android.email.service.IEmailService))) {
  28. return ((com.android.email.service.IEmailService)iin);
  29. }
  30. return new com.android.email.service.IEmailService.Stub.Proxy(obj);
  31. }
  32. public android.os.IBinder asBinder()
  33. {
  34. return this;
  35. }
  36. @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
  37. {
  38. switch (code)
  39. {
  40. case INTERFACE_TRANSACTION:
  41. {
  42. reply.writeString(DESCRIPTOR);
  43. return true;
  44. }
  45. case TRANSACTION_validate:
  46. {
  47. data.enforceInterface(DESCRIPTOR);
  48. java.lang.String _arg0;
  49. _arg0 = data.readString();
  50. java.lang.String _arg1;
  51. _arg1 = data.readString();
  52. java.lang.String _arg2;
  53. _arg2 = data.readString();
  54. java.lang.String _arg3;
  55. _arg3 = data.readString();
  56. int _arg4;
  57. _arg4 = data.readInt();
  58. boolean _arg5;
  59. _arg5 = (0!=data.readInt());
  60. boolean _arg6;
  61. _arg6 = (0!=data.readInt());
  62. int _result = this.validate(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
  63. reply.writeNoException();
  64. reply.writeInt(_result);
  65. return true;
  66. }
  67. case TRANSACTION_startSync:
  68. {
  69. data.enforceInterface(DESCRIPTOR);
  70. long _arg0;
  71. _arg0 = data.readLong();
  72. this.startSync(_arg0);
  73. reply.writeNoException();
  74. return true;
  75. }
  76. case TRANSACTION_stopSync:
  77. {
  78. data.enforceInterface(DESCRIPTOR);
  79. long _arg0;
  80. _arg0 = data.readLong();
  81. this.stopSync(_arg0);
  82. reply.writeNoException();
  83. return true;
  84. }
  85. case TRANSACTION_loadMore:
  86. {
  87. data.enforceInterface(DESCRIPTOR);
  88. long _arg0;
  89. _arg0 = data.readLong();
  90. this.loadMore(_arg0);
  91. reply.writeNoException();
  92. return true;
  93. }
  94. case TRANSACTION_loadAttachment:
  95. {
  96. data.enforceInterface(DESCRIPTOR);
  97. long _arg0;
  98. _arg0 = data.readLong();
  99. java.lang.String _arg1;
  100. _arg1 = data.readString();
  101. java.lang.String _arg2;
  102. _arg2 = data.readString();
  103. this.loadAttachment(_arg0, _arg1, _arg2);
  104. reply.writeNoException();
  105. return true;
  106. }
  107. case TRANSACTION_updateFolderList:
  108. {
  109. data.enforceInterface(DESCRIPTOR);
  110. long _arg0;
  111. _arg0 = data.readLong();
  112. this.updateFolderList(_arg0);
  113. reply.writeNoException();
  114. return true;
  115. }
  116. case TRANSACTION_createFolder:
  117. {
  118. data.enforceInterface(DESCRIPTOR);
  119. long _arg0;
  120. _arg0 = data.readLong();
  121. java.lang.String _arg1;
  122. _arg1 = data.readString();
  123. boolean _result = this.createFolder(_arg0, _arg1);
  124. reply.writeNoException();
  125. reply.writeInt(((_result)?(1):(0)));
  126. return true;
  127. }
  128. case TRANSACTION_deleteFolder:
  129. {
  130. data.enforceInterface(DESCRIPTOR);
  131. long _arg0;
  132. _arg0 = data.readLong();
  133. java.lang.String _arg1;
  134. _arg1 = data.readString();
  135. boolean _result = this.deleteFolder(_arg0, _arg1);
  136. reply.writeNoException();
  137. reply.writeInt(((_result)?(1):(0)));
  138. return true;
  139. }
  140. case TRANSACTION_renameFolder:
  141. {
  142. data.enforceInterface(DESCRIPTOR);
  143. long _arg0;
  144. _arg0 = data.readLong();
  145. java.lang.String _arg1;
  146. _arg1 = data.readString();
  147. java.lang.String _arg2;
  148. _arg2 = data.readString();
  149. boolean _result = this.renameFolder(_arg0, _arg1, _arg2);
  150. reply.writeNoException();
  151. reply.writeInt(((_result)?(1):(0)));
  152. return true;
  153. }
  154. case TRANSACTION_setCallback:
  155. {
  156. data.enforceInterface(DESCRIPTOR);
  157. com.android.email.service.IEmailServiceCallback _arg0;
  158. _arg0 = com.android.email.service.IEmailServiceCallback.Stub.asInterface(data.readStrongBinder());
  159. this.setCallback(_arg0);
  160. reply.writeNoException();
  161. return true;
  162. }
  163. case TRANSACTION_setLogging:
  164. {
  165. data.enforceInterface(DESCRIPTOR);
  166. int _arg0;
  167. _arg0 = data.readInt();
  168. this.setLogging(_arg0);
  169. reply.writeNoException();
  170. return true;
  171. }
  172. case TRANSACTION_hostChanged:
  173. {
  174. data.enforceInterface(DESCRIPTOR);
  175. long _arg0;
  176. _arg0 = data.readLong();
  177. this.hostChanged(_arg0);
  178. reply.writeNoException();
  179. return true;
  180. }
  181. case TRANSACTION_autoDiscover:
  182. {
  183. data.enforceInterface(DESCRIPTOR);
  184. java.lang.String _arg0;
  185. _arg0 = data.readString();
  186. java.lang.String _arg1;
  187. _arg1 = data.readString();
  188. android.os.Bundle _result = this.autoDiscover(_arg0, _arg1);
  189. reply.writeNoException();
  190. if ((_result!=null)) {
  191. reply.writeInt(1);
  192. _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
  193. }
  194. else {
  195. reply.writeInt(0);
  196. }
  197. return true;
  198. }
  199. case TRANSACTION_sendMeetingResponse:
  200. {
  201. data.enforceInterface(DESCRIPTOR);
  202. long _arg0;
  203. _arg0 = data.readLong();
  204. int _arg1;
  205. _arg1 = data.readInt();
  206. this.sendMeetingResponse(_arg0, _arg1);
  207. reply.writeNoException();
  208. return true;
  209. }
  210. }
  211. return super.onTransact(code, data, reply, flags);
  212. }
  213. private static class Proxy implements com.android.email.service.IEmailService
  214. {
  215. private android.os.IBinder mRemote;
  216. Proxy(android.os.IBinder remote)
  217. {
  218. mRemote = remote;
  219. }
  220. public android.os.IBinder asBinder()
  221. {
  222. return mRemote;
  223. }
  224. public java.lang.String getInterfaceDescriptor()
  225. {
  226. return DESCRIPTOR;
  227. }
  228. public int validate(java.lang.String protocol, java.lang.String host, java.lang.String userName, java.lang.String password, int port, boolean ssl, boolean trustCertificates) throws android.os.RemoteException
  229. {
  230. android.os.Parcel _data = android.os.Parcel.obtain();
  231. android.os.Parcel _reply = android.os.Parcel.obtain();
  232. int _result;
  233. try {
  234. _data.writeInterfaceToken(DESCRIPTOR);
  235. _data.writeString(protocol);
  236. _data.writeString(host);
  237. _data.writeString(userName);
  238. _data.writeString(password);
  239. _data.writeInt(port);
  240. _data.writeInt(((ssl)?(1):(0)));
  241. _data.writeInt(((trustCertificates)?(1):(0)));
  242. mRemote.transact(Stub.TRANSACTION_validate, _data, _reply, 0);
  243. _reply.readException();
  244. _result = _reply.readInt();
  245. }
  246. finally {
  247. _reply.recycle();
  248. _data.recycle();
  249. }
  250. return _result;
  251. }
  252. public void startSync(long mailboxId) throws android.os.RemoteException
  253. {
  254. android.os.Parcel _data = android.os.Parcel.obtain();
  255. android.os.Parcel _reply = android.os.Parcel.obtain();
  256. try {
  257. _data.writeInterfaceToken(DESCRIPTOR);
  258. _data.writeLong(mailboxId);
  259. mRemote.transact(Stub.TRANSACTION_startSync, _data, _reply, 0);
  260. _reply.readException();
  261. }
  262. finally {
  263. _reply.recycle();
  264. _data.recycle();
  265. }
  266. }
  267. public void stopSync(long mailboxId) throws android.os.RemoteException
  268. {
  269. android.os.Parcel _data = android.os.Parcel.obtain();
  270. android.os.Parcel _reply = android.os.Parcel.obtain();
  271. try {
  272. _data.writeInterfaceToken(DESCRIPTOR);
  273. _data.writeLong(mailboxId);
  274. mRemote.transact(Stub.TRANSACTION_stopSync, _data, _reply, 0);
  275. _reply.readException();
  276. }
  277. finally {
  278. _reply.recycle();
  279. _data.recycle();
  280. }
  281. }
  282. public void loadMore(long messageId) throws android.os.RemoteException
  283. {
  284. android.os.Parcel _data = android.os.Parcel.obtain();
  285. android.os.Parcel _reply = android.os.Parcel.obtain();
  286. try {
  287. _data.writeInterfaceToken(DESCRIPTOR);
  288. _data.writeLong(messageId);
  289. mRemote.transact(Stub.TRANSACTION_loadMore, _data, _reply, 0);
  290. _reply.readException();
  291. }
  292. finally {
  293. _reply.recycle();
  294. _data.recycle();
  295. }
  296. }
  297. public void loadAttachment(long attachmentId, java.lang.String destinationFile, java.lang.String contentUriString) throws android.os.RemoteException
  298. {
  299. android.os.Parcel _data = android.os.Parcel.obtain();
  300. android.os.Parcel _reply = android.os.Parcel.obtain();
  301. try {
  302. _data.writeInterfaceToken(DESCRIPTOR);
  303. _data.writeLong(attachmentId);
  304. _data.writeString(destinationFile);
  305. _data.writeString(contentUriString);
  306. mRemote.transact(Stub.TRANSACTION_loadAttachment, _data, _reply, 0);
  307. _reply.readException();
  308. }
  309. finally {
  310. _reply.recycle();
  311. _data.recycle();
  312. }
  313. }
  314. public void updateFolderList(long accountId) throws android.os.RemoteException
  315. {
  316. android.os.Parcel _data = android.os.Parcel.obtain();
  317. android.os.Parcel _reply = android.os.Parcel.obtain();
  318. try {
  319. _data.writeInterfaceToken(DESCRIPTOR);
  320. _data.writeLong(accountId);
  321. mRemote.transact(Stub.TRANSACTION_updateFolderList, _data, _reply, 0);
  322. _reply.readException();
  323. }
  324. finally {
  325. _reply.recycle();
  326. _data.recycle();
  327. }
  328. }
  329. public boolean createFolder(long accountId, java.lang.String name) throws android.os.RemoteException
  330. {
  331. android.os.Parcel _data = android.os.Parcel.obtain();
  332. android.os.Parcel _reply = android.os.Parcel.obtain();
  333. boolean _result;
  334. try {
  335. _data.writeInterfaceToken(DESCRIPTOR);
  336. _data.writeLong(accountId);
  337. _data.writeString(name);
  338. mRemote.transact(Stub.TRANSACTION_createFolder, _data, _reply, 0);
  339. _reply.readException();
  340. _result = (0!=_reply.readInt());
  341. }
  342. finally {
  343. _reply.recycle();
  344. _data.recycle();
  345. }
  346. return _result;
  347. }
  348. public boolean deleteFolder(long accountId, java.lang.String name) throws android.os.RemoteException
  349. {
  350. android.os.Parcel _data = android.os.Parcel.obtain();
  351. android.os.Parcel _reply = android.os.Parcel.obtain();
  352. boolean _result;
  353. try {
  354. _data.writeInterfaceToken(DESCRIPTOR);
  355. _data.writeLong(accountId);
  356. _data.writeString(name);
  357. mRemote.transact(Stub.TRANSACTION_deleteFolder, _data, _reply, 0);
  358. _reply.readException();
  359. _result = (0!=_reply.readInt());
  360. }
  361. finally {
  362. _reply.recycle();
  363. _data.recycle();
  364. }
  365. return _result;
  366. }
  367. public boolean renameFolder(long accountId, java.lang.String oldName, java.lang.String newName) throws android.os.RemoteException
  368. {
  369. android.os.Parcel _data = android.os.Parcel.obtain();
  370. android.os.Parcel _reply = android.os.Parcel.obtain();
  371. boolean _result;
  372. try {
  373. _data.writeInterfaceToken(DESCRIPTOR);
  374. _data.writeLong(accountId);
  375. _data.writeString(oldName);
  376. _data.writeString(newName);
  377. mRemote.transact(Stub.TRANSACTION_renameFolder, _data, _reply, 0);
  378. _reply.readException();
  379. _result = (0!=_reply.readInt());
  380. }
  381. finally {
  382. _reply.recycle();
  383. _data.recycle();
  384. }
  385. return _result;
  386. }
  387. public void setCallback(com.android.email.service.IEmailServiceCallback cb) throws android.os.RemoteException
  388. {
  389. android.os.Parcel _data = android.os.Parcel.obtain();
  390. android.os.Parcel _reply = android.os.Parcel.obtain();
  391. try {
  392. _data.writeInterfaceToken(DESCRIPTOR);
  393. _data.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null)));
  394. mRemote.transact(Stub.TRANSACTION_setCallback, _data, _reply, 0);
  395. _reply.readException();
  396. }
  397. finally {
  398. _reply.recycle();
  399. _data.recycle();
  400. }
  401. }
  402. public void setLogging(int on) throws android.os.RemoteException
  403. {
  404. android.os.Parcel _data = android.os.Parcel.obtain();
  405. android.os.Parcel _reply = android.os.Parcel.obtain();
  406. try {
  407. _data.writeInterfaceToken(DESCRIPTOR);
  408. _data.writeInt(on);
  409. mRemote.transact(Stub.TRANSACTION_setLogging, _data, _reply, 0);
  410. _reply.readException();
  411. }
  412. finally {
  413. _reply.recycle();
  414. _data.recycle();
  415. }
  416. }
  417. public void hostChanged(long accountId) throws android.os.RemoteException
  418. {
  419. android.os.Parcel _data = android.os.Parcel.obtain();
  420. android.os.Parcel _reply = android.os.Parcel.obtain();
  421. try {
  422. _data.writeInterfaceToken(DESCRIPTOR);
  423. _data.writeLong(accountId);
  424. mRemote.transact(Stub.TRANSACTION_hostChanged, _data, _reply, 0);
  425. _reply.readException();
  426. }
  427. finally {
  428. _reply.recycle();
  429. _data.recycle();
  430. }
  431. }
  432. public android.os.Bundle autoDiscover(java.lang.String userName, java.lang.String password) throws android.os.RemoteException
  433. {
  434. android.os.Parcel _data = android.os.Parcel.obtain();
  435. android.os.Parcel _reply = android.os.Parcel.obtain();
  436. android.os.Bundle _result;
  437. try {
  438. _data.writeInterfaceToken(DESCRIPTOR);
  439. _data.writeString(userName);
  440. _data.writeString(password);
  441. mRemote.transact(Stub.TRANSACTION_autoDiscover, _data, _reply, 0);
  442. _reply.readException();
  443. if ((0!=_reply.readInt())) {
  444. _result = android.os.Bundle.CREATOR.createFromParcel(_reply);
  445. }
  446. else {
  447. _result = null;
  448. }
  449. }
  450. finally {
  451. _reply.recycle();
  452. _data.recycle();
  453. }
  454. return _result;
  455. }
  456. public void sendMeetingResponse(long messageId, int response) throws android.os.RemoteException
  457. {
  458. android.os.Parcel _data = android.os.Parcel.obtain();
  459. android.os.Parcel _reply = android.os.Parcel.obtain();
  460. try {
  461. _data.writeInterfaceToken(DESCRIPTOR);
  462. _data.writeLong(messageId);
  463. _data.writeInt(response);
  464. mRemote.transact(Stub.TRANSACTION_sendMeetingResponse, _data, _reply, 0);
  465. _reply.readException();
  466. }
  467. finally {
  468. _reply.recycle();
  469. _data.recycle();
  470. }
  471. }
  472. }
  473. static final int TRANSACTION_validate = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
  474. static final int TRANSACTION_startSync = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
  475. static final int TRANSACTION_stopSync = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
  476. static final int TRANSACTION_loadMore = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
  477. static final int TRANSACTION_loadAttachment = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
  478. static final int TRANSACTION_updateFolderList = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
  479. static final int TRANSACTION_createFolder = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
  480. static final int TRANSACTION_deleteFolder = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
  481. static final int TRANSACTION_renameFolder = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
  482. static final int TRANSACTION_setCallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
  483. static final int TRANSACTION_setLogging = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
  484. static final int TRANSACTION_hostChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
  485. static final int TRANSACTION_autoDiscover = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12);
  486. static final int TRANSACTION_sendMeetingResponse = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13);
  487. }
  488. public int validate(java.lang.String protocol, java.lang.String host, java.lang.String userName, java.lang.String password, int port, boolean ssl, boolean trustCertificates) throws android.os.RemoteException;
  489. public void startSync(long mailboxId) throws android.os.RemoteException;
  490. public void stopSync(long mailboxId) throws android.os.RemoteException;
  491. public void loadMore(long messageId) throws android.os.RemoteException;
  492. public void loadAttachment(long attachmentId, java.lang.String destinationFile, java.lang.String contentUriString) throws android.os.RemoteException;
  493. public void updateFolderList(long accountId) throws android.os.RemoteException;
  494. public boolean createFolder(long accountId, java.lang.String name) throws android.os.RemoteException;
  495. public boolean deleteFolder(long accountId, java.lang.String name) throws android.os.RemoteException;
  496. public boolean renameFolder(long accountId, java.lang.String oldName, java.lang.String newName) throws android.os.RemoteException;
  497. public void setCallback(com.android.email.service.IEmailServiceCallback cb) throws android.os.RemoteException;
  498. public void setLogging(int on) throws android.os.RemoteException;
  499. public void hostChanged(long accountId) throws android.os.RemoteException;
  500. public android.os.Bundle autoDiscover(java.lang.String userName, java.lang.String password) throws android.os.RemoteException;
  501. public void sendMeetingResponse(long messageId, int response) throws android.os.RemoteException;
  502. }