diff options
author | Cheuksan Wang <edwang@google.com> | 2014-09-08 19:54:58 -0700 |
---|---|---|
committer | Cheuksan Wang <edwang@google.com> | 2014-09-11 14:17:15 -0700 |
commit | ee04543d58bf570fd77202d6d2cd861476c3daf6 (patch) | |
tree | 7cc5724f476f04a0abbb545486e47386f543a062 /telephony | |
parent | cde5bb45cc86d181d96ee69da1832e6132162871 (diff) | |
download | frameworks_base-ee04543d58bf570fd77202d6d2cd861476c3daf6.zip frameworks_base-ee04543d58bf570fd77202d6d2cd861476c3daf6.tar.gz frameworks_base-ee04543d58bf570fd77202d6d2cd861476c3daf6.tar.bz2 |
Send and download MMS via content provider instead of PDU bytes.
Change-Id: Ib5a93d07799c9e14fea8be820c6bd4bc7ae8be3a
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/IMms.aidl | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/telephony/java/com/android/internal/telephony/IMms.aidl b/telephony/java/com/android/internal/telephony/IMms.aidl index 4337012..ebfefd1 100644 --- a/telephony/java/com/android/internal/telephony/IMms.aidl +++ b/telephony/java/com/android/internal/telephony/IMms.aidl @@ -62,24 +62,37 @@ interface IMms { /** * Update the status of a pending (send-by-IP) MMS message handled by the carrier app. - * If the carrier app fails to send this message, it would be resent via carrier network. + * If the carrier app fails to send this message, it may be resent via carrier network + * depending on the status code. + * + * The caller should have carrier privileges. + * @see android.telephony.TelephonyManager.hasCarrierPrivileges * * @param messageRef the reference number of the MMS message. - * @param success True if and only if the message was sent successfully. If its value is - * false, this message should be resent via carrier network + * @param pdu non-empty (contains the SendConf PDU) if the message was sent successfully, + * otherwise, this param should be null. + * @param status send status. It can be Activity.RESULT_OK or one of the MMS error codes. + * If status is Activity.RESULT_OK, the MMS was sent successfully. + * If status is MMS_ERROR_RETRY, this message would be resent via carrier + * network. The message will not be resent for other MMS error statuses. */ - void updateMmsSendStatus(int messageRef, boolean success); + void updateMmsSendStatus(int messageRef, in byte[] pdu, in int status); /** * Update the status of a pending (download-by-IP) MMS message handled by the carrier app. - * If the carrier app fails to download this message, it would be re-downloaded via carrier - * network. + * If the carrier app fails to download this message, it may be re-downloaded via carrier + * network depending on the status code. + * + * The caller should have carrier privileges. + * @see android.telephony.TelephonyManager.hasCarrierPrivileges * * @param messageRef the reference number of the MMS message. - * @param pdu non-empty if downloaded successfully, otherwise, it is empty and the message - * will be downloaded via carrier network + * @param status download status. It can be Activity.RESULT_OK or one of the MMS error codes. + * If status is Activity.RESULT_OK, the MMS was downloaded successfully. + * If status is MMS_ERROR_RETRY, this message would be re-downloaded via carrier + * network. The message will not be re-downloaded for other MMS error statuses. */ - void updateMmsDownloadStatus(int messageRef, in byte[] pdu); + void updateMmsDownloadStatus(int messageRef, in int status); /** * Get carrier-dependent configuration values. |