Xml文件  |  285行  |  13.12 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
 * Copyright (C) 2007 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.cts.app.stub">

    <permission android:name="android.app.cts.permission.TEST_GRANTED"
        android:protectionLevel="normal"
            android:label="@string/permlab_testGranted"
            android:description="@string/permdesc_testGranted">
        <meta-data android:name="android.app.cts.string" android:value="foo" />
        <meta-data android:name="android.app.cts.boolean" android:value="true" />
        <meta-data android:name="android.app.cts.integer" android:value="100" />
        <meta-data android:name="android.app.cts.color" android:value="#ff000000" />
        <meta-data android:name="android.app.cts.float" android:value="100.1" />
        <meta-data android:name="android.app.cts.reference" android:resource="@xml/metadata" />
    </permission>

    <uses-permission android:name="android.app.cts.permission.TEST_GRANTED" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.BODY_SENSORS" />

    <application android:label="Android TestCase"
                android:icon="@drawable/size_48x48"
                android:maxRecents="1"
                android:multiArch="true"
                android:name="android.app.cts.MockApplication"
                android:supportsRtl="true">
        <uses-library android:name="android.test.runner" />

        <activity android:name="android.app.cts.ActionBarActivity" />

        <activity android:name="android.app.cts.DialogStubActivity"
            android:label="DialogStubActivity"
            android:configChanges="keyboardHidden|orientation|screenSize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.MockActivity" android:label="MockActivity">
            <meta-data android:name="android.app.alias"
                android:resource="@xml/alias" />
            <meta-data android:name="android.app.intent.filter"
                android:resource="@xml/intentfilter" />
        </activity>

        <activity android:name="android.app.cts.MockApplicationActivity"
            android:label="MockApplicationActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.InstrumentationTestActivity"
                  android:theme="@style/Theme_NoSwipeDismiss"
                  android:label="InstrumentationTestActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.dir/person" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.AliasActivityStub">
            <meta-data android:name="android.app.alias"
                android:resource="@xml/alias" />
        </activity>

        <activity android:name="android.app.cts.ChildActivity"
                        android:label="ChildActivity" />

        <receiver android:name="android.app.cts.MockReceiver">
            <intent-filter>
                <action android:name="android.app.cts.PendingIntentTest.TEST_RECEIVER" />
            </intent-filter>
        </receiver>

        <service android:name="android.app.cts.MockService" />

        <activity android:name="android.app.cts.SearchManagerStubActivity"
                android:label="SearchManagerStubActivity">
            <intent-filter>
                <action android:name="android.intent.action.SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable" />
        </activity>

        <service android:name="android.app.cts.LocalService">
            <intent-filter>
                <action android:name="android.app.cts.activity.SERVICE_LOCAL" />
            </intent-filter>
            <meta-data android:name="android.app.cts.string" android:value="foo" />
            <meta-data android:name="android.app.cts.boolean" android:value="true" />
            <meta-data android:name="android.app.cts.integer" android:value="100" />
            <meta-data android:name="android.app.cts.color" android:value="#ff000000" />
            <meta-data android:name="android.app.cts.float" android:value="100.1" />
            <meta-data android:name="android.app.cts.reference" android:resource="@xml/metadata" />
        </service>

        <service android:name="android.app.cts.LocalGrantedService"
             android:permission="android.app.cts.permission.TEST_GRANTED">
            <intent-filter>
                <action android:name="android.app.cts.activity.SERVICE_LOCAL_GRANTED" />
            </intent-filter>
        </service>

        <service android:name="android.app.cts.LocalDeniedService"
               android:permission="android.app.cts.permission.TEST_DENIED">
            <intent-filter>
                <action android:name="android.app.cts.activity.SERVICE_LOCAL_DENIED" />
            </intent-filter>
        </service>

        <activity android:name="android.app.cts.TestedScreen"
                android:process=":remoteScreen">
        </activity>
        <activity android:name="android.app.cts.LocalScreen" android:multiprocess="true">
        </activity>
        <activity android:name="android.app.cts.ClearTop" android:multiprocess="true"
               android:launchMode="singleTop">
        </activity>
        <activity android:name="android.app.cts.LocalDialog" android:multiprocess="true"
               android:theme="@android:style/Theme.Dialog">
        </activity>

        <activity android:name="android.app.cts.PendingIntentStubActivity"
             android:label="PendingIntentStubActivity"/>

        <activity android:name="android.app.cts.LocalActivityManagerStubActivity"
                        android:label="LocalActivityManagerStubActivity" />

        <activity android:name="android.app.cts.LocalActivityManagerTestHelper"
            android:label="LocalActivityManagerTestHelper" />

        <activity android:name="android.app.cts.LaunchpadTabActivity" android:multiprocess="true">
        </activity>

        <activity android:name="android.app.cts.LocalActivity" android:multiprocess="true">
            <meta-data android:name="android.app.cts.string" android:value="foo" />
            <meta-data android:name="android.app.cts.boolean" android:value="true" />
            <meta-data android:name="android.app.cts.integer" android:value="100" />
            <meta-data android:name="android.app.cts.color" android:value="#ff000000" />
            <meta-data android:name="android.app.cts.float" android:value="100.1" />
            <meta-data android:name="android.app.cts.reference" android:resource="@xml/metadata" />
        </activity>

        <activity android:name="android.app.cts.TestedActivity"
                android:process=":remoteActivity">
        </activity>

        <activity android:name="android.app.cts.ExpandableListTestActivity"
            android:label="ExpandableListTestActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.ChildTabActivity" android:label="ChildTabActivity" />

        <activity android:name="android.app.cts.LauncherActivityStub"
                  android:label="LauncherActivityStub" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.MockTabActivity" android:label="MockTabActivity" />

        <activity android:name="android.app.cts.AppStubActivity" android:label="AppStubActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.DialogStubActivity"
                  android:theme="@style/Theme_NoSwipeDismiss"
                  android:label="DialogStubActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.ActivityManagerStubFooActivity"
            android:label="ActivityManagerStubFooActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.ActivityManagerRecentOneActivity"
            android:label="ActivityManagerRecentOneActivity"
            android:allowTaskReparenting="true"
            android:taskAffinity="android.app.cts.recentOne">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.ActivityManagerRecentTwoActivity"
            android:label="ActivityManagerRecentTwoActivity"
            android:allowTaskReparenting="true"
            android:taskAffinity="android.app.cts.recentTwo">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>

        <activity android:name="android.app.cts.ActivityManagerStubCrashActivity"
            android:label="ActivityManagerStubCrashActivity"
            android:multiprocess="true"
            android:process=":ActivityManagerStubCrashActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>

        <service android:name="android.app.cts.StubRemoteService"
            android:process=":remote">
            <intent-filter>
                <action
                    android:name="android.app.cts.ISecondary" />
                <action
                    android:name="android.app.REMOTESERVICE" />
            </intent-filter>
        </service>

        <activity android:name="android.app.ActivityGroup"
            android:label="ActivityGroup" />

        <activity android:name="android.app.cts.KeyguardManagerActivity"
            android:label="KeyguardManagerActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST" />
            </intent-filter>
        </activity>

        <service android:name="android.app.cts.IntentServiceStub"/>

        <activity android:name="android.app.cts.LaunchpadActivity"
                  android:configChanges="keyboardHidden|orientation|screenSize"
                  android:multiprocess="true">
        </activity>

        <activity android:name="android.app.cts.ActivityManagerMemoryClassLaunchActivity" />

        <activity android:name="android.app.cts.ActivityManagerMemoryClassTestActivity"
                android:process=":memoryclass" />

    </application>

</manifest>