Checkpoint of SMS/MMS Recycler.

The recycler allows a user to turn on setting that'll limit the number
of messages saved per thread. An eventual UI will allow users to lock
messages and prevent them from being deleted. This change adds a couple
of tweaks to be able to query the number of messages per thread id, etc.
diff --git a/src/com/android/providers/telephony/MmsProvider.java b/src/com/android/providers/telephony/MmsProvider.java
index 37d1787..fc20ee2 100644
--- a/src/com/android/providers/telephony/MmsProvider.java
+++ b/src/com/android/providers/telephony/MmsProvider.java
@@ -176,6 +176,9 @@
                 qb.setTables(TABLE_DRM);
                 qb.appendWhere(BaseColumns._ID + "=" + uri.getLastPathSegment());
                 break;
+            case MMS_THREADS:
+                qb.setTables("pdu group by thread_id");
+                break;
             default:
                 Log.e(TAG, "Invalid request: " + uri);
                 return null;
@@ -751,10 +754,11 @@
     private static final int MMS_PART_ID                  = 12;
     private static final int MMS_MSG_ADDR                 = 13;
     private static final int MMS_SENDING_RATE             = 14;
-    private static final int MMS_REPORT_STATUS          = 15;
-    private static final int MMS_REPORT_REQUEST = 16;
+    private static final int MMS_REPORT_STATUS            = 15;
+    private static final int MMS_REPORT_REQUEST           = 16;
     private static final int MMS_DRM_STORAGE              = 17;
     private static final int MMS_DRM_STORAGE_ID           = 18;
+    private static final int MMS_THREADS                  = 19;
 
     private static final UriMatcher
             sURLMatcher = new UriMatcher(UriMatcher.NO_MATCH);
@@ -779,6 +783,7 @@
         sURLMatcher.addURI("mms", "report-request/#", MMS_REPORT_REQUEST);
         sURLMatcher.addURI("mms", "drm",        MMS_DRM_STORAGE);
         sURLMatcher.addURI("mms", "drm/#",      MMS_DRM_STORAGE_ID);
+        sURLMatcher.addURI("mms", "threads",    MMS_THREADS);
     }
 
     private SQLiteOpenHelper mOpenHelper;