Xml文件  |  110行  |  4.6 KB

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.documentsui.tests">

    <uses-permission android:name="android.permission.INTERNET" />

    <application android:label="DocumentsUI Tests">
        <uses-library android:name="android.test.runner" />

        <activity android:name="com.android.documentsui.SettingsActivity">
            <intent-filter>
                <action android:name="android.provider.action.DOCUMENT_SETTINGS" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="content"
                      android:host="com.android.documentsui.demoprovider"
                      android:mimeType="*/*" />
            </intent-filter>
        </activity>

        <activity android:name="com.android.documentsui.AuthenticationActivity">
            <intent-filter>
                <action android:name="com.android.documentsui.test.action.AUTHENTICATE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <provider
            android:name="com.android.documentsui.StubProvider"
            android:authorities="com.android.documentsui.stubprovider"
            android:exported="true"
            android:grantUriPermissions="true"
            android:permission="android.permission.MANAGE_DOCUMENTS"
            android:enabled="true">
            <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
       </provider>

       <!-- Provider that demostrates some features, like display of INFO and ERROR messages. -->
       <provider
            android:name="com.android.documentsui.DemoProvider"
            android:label="Demo Provider"
            android:authorities="com.android.documentsui.demoprovider"
            android:exported="true"
            android:grantUriPermissions="true"
            android:permission="android.permission.MANAGE_DOCUMENTS"
            android:enabled="true">
           <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
       </provider>

       <!-- Provider for testing archives. -->
       <provider
            android:name="com.android.documentsui.archives.ResourcesProvider"
            android:authorities="com.android.documentsui.archives.resourcesprovider"
            android:exported="true"
            android:grantUriPermissions="true"
            android:permission="android.permission.MANAGE_DOCUMENTS"
            android:enabled="true">
            <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
      </provider>

       <!-- Provider with support for paging. -->
       <provider
            android:name="com.android.documentsui.PagingProvider"
            android:authorities="com.android.documentsui.pagingprovider"
            android:exported="true"
            android:grantUriPermissions="true"
            android:permission="android.permission.MANAGE_DOCUMENTS"
            android:enabled="true">
            <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
       </provider>

        <!-- Provider that has broken behavior -->
        <provider
            android:name="com.android.documentsui.BrokenProvider"
            android:authorities="com.android.documentsui.broken"
            android:exported="true"
            android:grantUriPermissions="true"
            android:permission="android.permission.MANAGE_DOCUMENTS"
            android:enabled="true">
            <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
        </provider>

        <provider
            android:name="com.android.documentsui.BrokenSettingsEnabledProvider"
            android:authorities="com.android.documentsui.brokensettingsenabled"
            android:exported="true"
            android:grantUriPermissions="true"
            android:permission="android.permission.MANAGE_DOCUMENTS"
            android:enabled="true">
            <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
        </provider>
    </application>

    <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
        android:targetPackage="com.android.documentsui"
        android:label="Tests for DocumentsUI" />

</manifest>