diff options
author | Ye Wen <ywen@google.com> | 2014-07-14 16:19:04 -0700 |
---|---|---|
committer | Ye Wen <ywen@google.com> | 2014-07-16 10:39:21 -0700 |
commit | 9966429dcd99667e2308cc41863ab860f04cfc88 (patch) | |
tree | 2bd720fa8644f40bc9a1832b8ad7e614398364d2 /telephony | |
parent | 5fcaa0c6705ae42be8ff507b362fb8e2393a606a (diff) | |
download | frameworks_base-9966429dcd99667e2308cc41863ab860f04cfc88.zip frameworks_base-9966429dcd99667e2308cc41863ab860f04cfc88.tar.gz frameworks_base-9966429dcd99667e2308cc41863ab860f04cfc88.tar.bz2 |
Messaging auto persist switch (1/4)
b/14095333
Change-Id: I0860b662bceb250601c815028f377c28ad0e3159
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/IMms.aidl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/IMms.aidl b/telephony/java/com/android/internal/telephony/IMms.aidl index db93a4f..651205f 100644 --- a/telephony/java/com/android/internal/telephony/IMms.aidl +++ b/telephony/java/com/android/internal/telephony/IMms.aidl @@ -215,4 +215,29 @@ interface IMms { */ void sendStoredMessage(long subId, String callingPkg, in Uri messageUri, in PendingIntent sentIntent); + + /** + * Turns on/off the flag to automatically write sent/received SMS/MMS messages into system + * + * When this flag is on, all SMS/MMS sent/received are stored by system automatically + * When this flag is off, only SMS/MMS sent by non-default SMS apps are stored by system + * automatically + * + * This flag can only be changed by default SMS apps + * + * @param callingPkg the name of the calling app package + * @param enabled Whether to enable message auto persisting + */ + void setAutoPersisting(String callingPkg, boolean enabled); + + /** + * Get the value of the flag to automatically write sent/received SMS/MMS messages into system + * + * When this flag is on, all SMS/MMS sent/received are stored by system automatically + * When this flag is off, only SMS/MMS sent by non-default SMS apps are stored by system + * automatically + * + * @return the current value of the auto persist flag + */ + boolean getAutoPersisting(); } |