Home | History | Annotate | Download | only in tests
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
      3     package="com.android.documentsui.tests">
      4 
      5     <uses-permission android:name="android.permission.INTERNET" />
      6 
      7     <application android:label="DocumentsUI Tests">
      8         <uses-library android:name="android.test.runner" />
      9 
     10         <activity android:name="com.android.documentsui.SettingsActivity">
     11             <intent-filter>
     12                 <action android:name="android.provider.action.DOCUMENT_SETTINGS" />
     13                 <category android:name="android.intent.category.DEFAULT" />
     14                 <data android:scheme="content"
     15                       android:host="com.android.documentsui.demoprovider"
     16                       android:mimeType="*/*" />
     17             </intent-filter>
     18         </activity>
     19 
     20         <!--Needed for demo'ing and functional testing the open in provider feature in inspector -->
     21         <activity android:name="com.android.documentsui.TestProviderActivity">
     22           <intent-filter>
     23             <action android:name="android.provider.action.DOCUMENT_SETTINGS" />
     24             <category android:name="android.intent.category.DEFAULT" />
     25             <data android:scheme="content"
     26                 android:host="com.android.documentsui.inspectorprovider"
     27                 android:mimeType="*/*" />
     28           </intent-filter>
     29         </activity>
     30 
     31         <activity android:name="com.android.documentsui.AuthenticationActivity">
     32             <intent-filter>
     33                 <action android:name="com.android.documentsui.test.action.AUTHENTICATE" />
     34                 <category android:name="android.intent.category.DEFAULT" />
     35             </intent-filter>
     36         </activity>
     37 
     38         <provider
     39             android:name="com.android.documentsui.StubProvider"
     40             android:authorities="com.android.documentsui.stubprovider"
     41             android:exported="true"
     42             android:grantUriPermissions="true"
     43             android:permission="android.permission.MANAGE_DOCUMENTS"
     44             android:enabled="true">
     45             <intent-filter>
     46                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
     47             </intent-filter>
     48        </provider>
     49 
     50        <!-- Provider that demostrates some features, like display of INFO and ERROR messages. -->
     51        <provider
     52             android:name="com.android.documentsui.DemoProvider"
     53             android:label="Demo Provider"
     54             android:authorities="com.android.documentsui.demoprovider"
     55             android:exported="true"
     56             android:grantUriPermissions="true"
     57             android:permission="android.permission.MANAGE_DOCUMENTS"
     58             android:enabled="true">
     59            <intent-filter>
     60                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
     61             </intent-filter>
     62        </provider>
     63 
     64        <!-- Provider for testing archives. -->
     65        <provider
     66             android:name="com.android.documentsui.archives.ResourcesProvider"
     67             android:authorities="com.android.documentsui.archives.resourcesprovider"
     68             android:exported="true"
     69             android:grantUriPermissions="true"
     70             android:permission="android.permission.MANAGE_DOCUMENTS"
     71             android:enabled="true">
     72             <intent-filter>
     73                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
     74             </intent-filter>
     75       </provider>
     76 
     77       <!-- Provider for testing inspector -->
     78       <provider
     79           android:name="com.android.documentsui.InspectorProvider"
     80           android:authorities="com.android.documentsui.inspectorprovider"
     81           android:exported="true"
     82           android:grantUriPermissions="true"
     83           android:permission="android.permission.MANAGE_DOCUMENTS"
     84           android:enabled="true">
     85         <intent-filter>
     86           <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
     87         </intent-filter>
     88       </provider>
     89 
     90        <!-- Provider with support for paging. -->
     91        <provider
     92             android:name="com.android.documentsui.PagingProvider"
     93             android:authorities="com.android.documentsui.pagingprovider"
     94             android:exported="true"
     95             android:grantUriPermissions="true"
     96             android:permission="android.permission.MANAGE_DOCUMENTS"
     97             android:enabled="true">
     98             <intent-filter>
     99                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
    100             </intent-filter>
    101        </provider>
    102 
    103         <!-- Provider that has broken behavior -->
    104         <provider
    105             android:name="com.android.documentsui.BrokenProvider"
    106             android:authorities="com.android.documentsui.broken"
    107             android:exported="true"
    108             android:grantUriPermissions="true"
    109             android:permission="android.permission.MANAGE_DOCUMENTS"
    110             android:enabled="true">
    111             <intent-filter>
    112                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
    113             </intent-filter>
    114         </provider>
    115 
    116         <provider
    117             android:name="com.android.documentsui.BrokenSettingsEnabledProvider"
    118             android:authorities="com.android.documentsui.brokensettingsenabled"
    119             android:exported="true"
    120             android:grantUriPermissions="true"
    121             android:permission="android.permission.MANAGE_DOCUMENTS"
    122             android:enabled="true">
    123             <intent-filter>
    124                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
    125             </intent-filter>
    126         </provider>
    127     </application>
    128 
    129     <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
    130         android:targetPackage="com.android.documentsui"
    131         android:label="Tests for DocumentsUI" />
    132 
    133 </manifest>
    134