diff options
author | Tom Taylor <tomtaylor@google.com> | 2014-08-04 19:09:07 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-01 13:51:29 +0000 |
commit | 0e32f6bde4872126fa7b1ecddee414a26f506f36 (patch) | |
tree | bd9674e13898ed7001d2d6b3dd85b66892c928ff /telephony | |
parent | b673790e560d7aa971e85bef6531fddaec2c9b9a (diff) | |
parent | 63c00c4379ba4ac0f50161980b67c8acc2548f7b (diff) | |
download | frameworks_base-0e32f6bde4872126fa7b1ecddee414a26f506f36.zip frameworks_base-0e32f6bde4872126fa7b1ecddee414a26f506f36.tar.gz frameworks_base-0e32f6bde4872126fa7b1ecddee414a26f506f36.tar.bz2 |
Merge "Allow MmsConfig override per request (1/3)" into lmp-dev
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/IMms.aidl | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/telephony/java/com/android/internal/telephony/IMms.aidl b/telephony/java/com/android/internal/telephony/IMms.aidl index 30ef725..cbcef25 100644 --- a/telephony/java/com/android/internal/telephony/IMms.aidl +++ b/telephony/java/com/android/internal/telephony/IMms.aidl @@ -31,11 +31,14 @@ interface IMms { * @param callingPkg the package name of the calling app * @param pdu the MMS message encoded in standard MMS PDU format * @param locationUrl the optional location url for where this message should be sent to + * @param configOverrides the carrier-specific messaging configuration values to override for + * sending the message. See {@link android.telephony.MessagingConfigurationManager} for the + * value names and types. * @param sentIntent if not NULL this <code>PendingIntent</code> is * broadcast when the message is successfully sent, or failed */ void sendMessage(long subId, String callingPkg, in byte[] pdu, String locationUrl, - in PendingIntent sentIntent); + in ContentValues configOverrides, in PendingIntent sentIntent); /** * Download an MMS message using known location and transaction id @@ -44,11 +47,14 @@ interface IMms { * @param callingPkg the package name of the calling app * @param locationUrl the location URL of the MMS message to be downloaded, usually obtained * from the MMS WAP push notification + * @param configOverrides the carrier-specific messaging configuration values to override for + * downloading the message. See {@link android.telephony.MessagingConfigurationManager} for the + * value names and types. * @param downloadedIntent if not NULL this <code>PendingIntent</code> is * broadcast when the message is downloaded, or the download is failed */ void downloadMessage(long subId, String callingPkg, String locationUrl, - in PendingIntent downloadedIntent); + in ContentValues configOverrides, in PendingIntent downloadedIntent); /** * Update the status of a pending (send-by-IP) MMS message handled by the carrier app. @@ -75,53 +81,30 @@ interface IMms { * Get carrier-dependent configuration value as boolean. For example, if multipart SMS * is supported. * + * @param subId the SIM id * @param name the configuration name * @param defaultValue the default value if fail to find the name */ - boolean getCarrierConfigBoolean(String name, boolean defaultValue); + boolean getCarrierConfigBoolean(long subId, String name, boolean defaultValue); /** * Get carrier-dependent configuration value as int. For example, the MMS message size limit. * + * @param subId the SIM id * @param name the configuration name * @param defaultValue the default value if fail to find the name */ - int getCarrierConfigInt(String name, int defaultValue); + int getCarrierConfigInt(long subId, String name, int defaultValue); /** * Get carrier-dependent configuration value as String. For example, extra HTTP headers for * MMS request. * + * @param subId the SIM id * @param name the configuration name * @param defaultValue the default value if fail to find the name */ - String getCarrierConfigString(String name, String defaultValue); - - /** - * Set carrier-dependent configuration value as boolean. For example, if multipart SMS - * is supported. - * - * @param name the configuration name - * @param value the configuration value - */ - void setCarrierConfigBoolean(String callingPkg, String name, boolean value); - - /** - * Set carrier-dependent configuration value as int. For example, the MMS message size limit. - * - * @param name the configuration name - * @param value the configuration value - */ - void setCarrierConfigInt(String callingPkg, String name, int value); - - /** - * Set carrier-dependent configuration value as String. For example, extra HTTP headers for - * MMS request. - * - * @param name the configuration name - * @param value the configuration value - */ - void setCarrierConfigString(String callingPkg, String name, String value); + String getCarrierConfigString(long subId, String name, String defaultValue); /** * Import a text message into system's SMS store @@ -220,11 +203,14 @@ interface IMms { * @param subId the SIM id * @param callingPkg the package name of the calling app * @param messageUri the URI of the stored message + * @param configOverrides the carrier-specific messaging configuration values to override for + * sending the message. See {@link android.telephony.MessagingConfigurationManager} for the + * value names and types. * @param sentIntent if not NULL this <code>PendingIntent</code> is * broadcast when the message is successfully sent, or failed */ void sendStoredMessage(long subId, String callingPkg, in Uri messageUri, - in PendingIntent sentIntent); + in ContentValues configOverrides, in PendingIntent sentIntent); /** * Turns on/off the flag to automatically write sent/received SMS/MMS messages into system |