am 59c04032: Merge "Send and download MMS via content provider instead of PDU bytes." into lmp-dev

* commit '59c0403265a842ae47559b8b2055372a545edb61':
  Send and download MMS via content provider instead of PDU bytes.
This commit is contained in:
Cheuksan Wang
2014-09-12 18:52:39 +00:00
committed by Android Git Automerger
3 changed files with 34 additions and 17 deletions

View File

@@ -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.