Add constants for the new table: sms-changes.
This table is used by Auto code to keep track of changes to locally
stored SMS messages. These changes are propagated to the phone.
Bug: 71633682
Test: tested manually with messaging app.
Change-Id: I8bd8f5f375a9229de2b9de5ef09e5e1e9a97a4ca
diff --git a/telephony/java/android/provider/Telephony.java b/telephony/java/android/provider/Telephony.java
index 4f78c4c..bff00b1 100644
--- a/telephony/java/android/provider/Telephony.java
+++ b/telephony/java/android/provider/Telephony.java
@@ -274,6 +274,70 @@
}
/**
+ * Columns in sms_changes table.
+ * @hide
+ */
+ public interface TextBasedSmsChangesColumns {
+ /**
+ * The {@code content://} style URL for this table.
+ * @hide
+ */
+ public static final Uri CONTENT_URI = Uri.parse("content://sms-changes");
+
+ /**
+ * Primary key.
+ * <P>Type: INTEGER (long)</P>
+ * @hide
+ */
+ public static final String ID = "_id";
+
+ /**
+ * Triggers on sms table create a row in this table for each update/delete.
+ * This column is the "_id" of the row from sms table that was updated/deleted.
+ * <P>Type: INTEGER (long)</P>
+ * @hide
+ */
+ public static final String ORIG_ROW_ID = "orig_rowid";
+
+ /**
+ * Triggers on sms table create a row in this table for each update/delete.
+ * This column is the "sub_id" of the row from sms table that was updated/deleted.
+ * @hide
+ * <P>Type: INTEGER (long)</P>
+ */
+ public static final String SUB_ID = "sub_id";
+
+ /**
+ * The type of operation that created this row.
+ * {@link #TYPE_UPDATE} = update op
+ * {@link #TYPE_DELETE} = delete op
+ * @hide
+ * <P>Type: INTEGER (long)</P>
+ */
+ public static final String TYPE = "type";
+
+ /**
+ * One of the possible values for the above column "type". Indicates it is an update op.
+ * @hide
+ */
+ public static final int TYPE_UPDATE = 0;
+
+ /**
+ * One of the possible values for the above column "type". Indicates it is a delete op.
+ * @hide
+ */
+ public static final int TYPE_DELETE = 1;
+
+ /**
+ * This column contains a non-null value only if the operation on sms table is an update op
+ * and the column "read" is changed by the update op.
+ * <P>Type: INTEGER (boolean)</P>
+ * @hide
+ */
+ public static final String NEW_READ_STATUS = "new_read_status";
+ }
+
+ /**
* Contains all text-based SMS messages.
*/
public static final class Sms implements BaseColumns, TextBasedSmsColumns {