Initial skeleton of TvProvider

Implemented the very first version of TvProvider (ContentProvider for
TV) that manages access to TV channel/program data as well as the user’s
TV watch log. The contract between this provider and applications is
defined in android.provider.TvContract.

Change-Id: I7c04a952983ae28287398c720c945da0d7d4726b
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
new file mode 100644
index 0000000..0549403
--- /dev/null
+++ b/AndroidManifest.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.android.providers.tv" >
+
+    <!-- Allows an application to read (but not write) the TV channel/program
+         data. -->
+    <permission android:name="android.permission.READ_EPG_DATA"
+        android:protectionLevel="dangerous"
+        android:label="@string/permlab_readEpgData"
+        android:description="@string/permdesc_readEpgData" />
+
+    <!-- Allows an application to write (but not read) the TV channel/program
+         data. -->
+    <permission android:name="android.permission.WRITE_EPG_DATA"
+        android:protectionLevel="dangerous"
+        android:label="@string/permlab_writeEpgData"
+        android:description="@string/permdesc_writeEpgData" />
+
+    <!-- Allows an application to read and write all TV channel/program data.
+         @hide -->
+    <permission android:name="android.permission.ALL_EPG_DATA"
+        android:protectionLevel="signatureOrSystem"
+        android:label="@string/permlab_allEpgData"
+        android:description="@string/permdesc_allEpgData" />
+
+    <!-- Allows an application to read and write the user's TV watch log.
+         @hide -->
+    <permission android:name="android.permission.TV_WATCH_LOG"
+        android:protectionLevel="signature"
+        android:label="@string/permlab_tvWatchLog"
+        android:description="@string/permdesc_tvWatchLog" />
+
+    <application android:label="@string/app_label">
+        <provider
+            android:name="TvProvider"
+            android:authorities="com.android.tv"
+            android:exported="true"
+            android:syncable="true"
+            android:readPermission="android.permission.READ_EPG_DATA"
+            android:writePermission="android.permission.WRITE_EPG_DATA">
+            <path-permission
+                android:pathPrefix="/watched_program"
+                android:permission="android.permission.TV_WATCH_LOG" />
+        </provider>
+    </application>
+</manifest>