summaryrefslogtreecommitdiffstats
path: root/telephony/java/com/android
diff options
context:
space:
mode:
authorJi Yang <yangji@google.com>2015-07-23 10:16:07 -0700
committerJi Yang <yangji@google.com>2015-07-29 13:30:55 -0700
commit216813c9e1edda0bc70a97cd6ec7e26a28d640b0 (patch)
tree17e45032f8a1f00ed00229ce6d15e0887294a703 /telephony/java/com/android
parentbdb7d936512a39b6c06411d11a26824b82e5727f (diff)
downloadframeworks_base-216813c9e1edda0bc70a97cd6ec7e26a28d640b0.zip
frameworks_base-216813c9e1edda0bc70a97cd6ec7e26a28d640b0.tar.gz
frameworks_base-216813c9e1edda0bc70a97cd6ec7e26a28d640b0.tar.bz2
Add API to let carrier app send SMS without auto perisisting.
Bug: 22773702 Change-Id: I976a8268ce95fe9fc5bb046ce744a1cddefc8eeb
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r--telephony/java/com/android/internal/telephony/ISms.aidl12
1 files changed, 10 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/ISms.aidl b/telephony/java/com/android/internal/telephony/ISms.aidl
index 21c94c2..70a8653 100644
--- a/telephony/java/com/android/internal/telephony/ISms.aidl
+++ b/telephony/java/com/android/internal/telephony/ISms.aidl
@@ -149,10 +149,14 @@ interface ISms {
* broadcast when the message is delivered to the recipient. The
* raw pdu of the status report is in the extended data ("pdu").
* @param subId the subId on which the SMS has to be sent.
+ * @param persistMessageForNonDefaultSmsApp whether the sent message should
+ * be automatically persisted in the SMS db. It only affects messages sent
+ * by a non-default SMS app. Currently only the carrier app can set this
+ * parameter to false to skip auto message persistence.
*/
void sendTextForSubscriber(in int subId, String callingPkg, in String destAddr,
in String scAddr, in String text, in PendingIntent sentIntent,
- in PendingIntent deliveryIntent);
+ in PendingIntent deliveryIntent, in boolean persistMessageForNonDefaultSmsApp);
/**
* Send an SMS. Internal use only.
@@ -219,11 +223,15 @@ interface ISms {
* to the recipient. The raw pdu of the status report is in the
* extended data ("pdu").
* @param subId the subId on which the SMS has to be sent.
+ * @param persistMessageForNonDefaultSmsApp whether the sent message should
+ * be automatically persisted in the SMS db. It only affects messages sent
+ * by a non-default SMS app. Currently only the carrier app can set this
+ * parameter to false to skip auto message persistence.
*/
void sendMultipartTextForSubscriber(in int subId, String callingPkg,
in String destinationAddress, in String scAddress,
in List<String> parts, in List<PendingIntent> sentIntents,
- in List<PendingIntent> deliveryIntents);
+ in List<PendingIntent> deliveryIntents, in boolean persistMessageForNonDefaultSmsApp);
/**
* Enable reception of cell broadcast (SMS-CB) messages with the given