OSDN Git Service

Messaging auto persist switch (1/4)
authorYe Wen <ywen@google.com>
Mon, 14 Jul 2014 23:19:04 +0000 (16:19 -0700)
committerYe Wen <ywen@google.com>
Wed, 16 Jul 2014 17:39:21 +0000 (10:39 -0700)
b/14095333

Change-Id: I0860b662bceb250601c815028f377c28ad0e3159

telephony/java/com/android/internal/telephony/IMms.aidl

index db93a4f..651205f 100644 (file)
@@ -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();
 }