Add CALL/DIAL test activity.

This is a test activity that mimics the behavior of 3rd party apps firing
off CALL and DIAL intents, which will be useful when working on bugs
3116684 and/or 3116625 (which cover handling DIAL and CALL gracefully on
non-voice-capable devices.)

Note this activity is part of com.android.phone.tests, which is not
installed by default, and it's not in the LAUNCHER category either.  So to
run it you need to manually build apps/Phone and do an "adb sync", and
then "adb shell am start -n com.android.phone.tests/.CallDialTest".

Bug: 3116625

Change-Id: Ibadbd36bdb06121611a501acfa20ad42ba3f38d7
diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml
index c885265..652945e 100644
--- a/tests/AndroidManifest.xml
+++ b/tests/AndroidManifest.xml
@@ -17,12 +17,30 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.android.phone.tests">
 
-     <application android:label="@string/app_name">
-         <uses-library android:name="android.test.runner" />
-     </application>
+    <uses-permission android:name="android.permission.CALL_PHONE" />
 
-     <!--
-         The prefered way is to use 'runtest':
+    <application android:label="@string/app_name">
+        <uses-library android:name="android.test.runner" />
+
+        <!-- Miscellaneous phone app-related test activities -->
+
+        <!-- Test activity that mimics the behavior of 3rd party apps
+             firing off CALL and DIAL intents. -->
+        <!-- To run:
+                adb shell am start -n com.android.phone.tests/.CallDialTest
+        -->
+        <activity android:name="CallDialTest"
+                  android:label="@string/callDialTestLabel">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+        </activity>
+
+    </application>
+
+    <!--
+        The prefered way is to use 'runtest':
            runtest phone-unit
 
          runtest is a wrapper around 'adb shell'. The low level shell command is:
@@ -36,4 +54,3 @@
         android:targetPackage="com.android.phone"
         android:label="Phone application tests." />
 </manifest>
-