Xml文件  |  160行  |  6.97 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
 * Copyright (C) 2010 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="android.accessibilityservice.cts"
          android:targetSandboxVersion="2">

    <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
    <uses-permission android:name="android.permission.USE_FINGERPRINT" />

    <application android:theme="@android:style/Theme.Holo.NoActionBar">

        <uses-library android:name="android.test.runner" />

        <activity
            android:label="@string/accessibility_end_to_end_test_activity"
            android:name=".activities.AccessibilityEndToEndActivity"
            android:screenOrientation="locked"/>

        <activity
            android:label="@string/accessibility_query_window_test_activity"
            android:name=".activities.AccessibilityWindowQueryActivity"
            android:supportsPictureInPicture="true"
            android:screenOrientation="locked"/>

        <activity
            android:label="@string/accessibility_view_tree_reporting_test_activity"
            android:name=".activities.AccessibilityViewTreeReportingActivity"
            android:screenOrientation="locked"/>

        <activity
            android:label="@string/accessibility_focus_and_input_focus_sync_test_activity"
            android:name=".activities.AccessibilityFocusAndInputFocusSyncActivity"
            android:screenOrientation="locked"/>

        <activity
            android:label="@string/accessibility_text_traversal_test_activity"
            android:name=".activities.AccessibilityTextTraversalActivity"
            android:screenOrientation="locked"/>

        <activity android:label="Activity for testing window accessibility reporting"
             android:name=".activities.AccessibilityWindowReportingActivity"
             android:supportsPictureInPicture="true"
             android:screenOrientation="locked"/>

        <activity
            android:label="Full screen activity for gesture dispatch testing"
            android:name=".AccessibilityGestureDispatchTest$GestureDispatchActivity"
            android:screenOrientation="locked" />

        <activity
            android:label="@string/accessibility_soft_keyboard_modes_activity"
            android:name=".AccessibilitySoftKeyboardModesTest$SoftKeyboardModesActivity" />

        <service
                android:name=".StubGestureAccessibilityService"
                android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
            <intent-filter>
                <action android:name="android.accessibilityservice.AccessibilityService" />
                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC" />
            </intent-filter>

            <meta-data
                android:name="android.accessibilityservice"
                android:resource="@xml/stub_gesture_dispatch_a11y_service" />
        </service>

        <service
                android:name=".GestureDetectionStubAccessibilityService"
                android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
            <intent-filter>
                <action android:name="android.accessibilityservice.AccessibilityService" />
                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC" />
            </intent-filter>
            <meta-data
                    android:name="android.accessibilityservice"
                    android:resource="@xml/stub_gesture_detect_a11y_service" />
        </service>

        <service
            android:name="android.accessibility.cts.common.InstrumentedAccessibilityService"
            android:label="@string/title_soft_keyboard_modes_accessibility_service"
            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
            <intent-filter>
                <action android:name="android.accessibilityservice.AccessibilityService" />
                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC" />
            </intent-filter>
            <meta-data
                android:name="android.accessibilityservice"
                android:resource="@xml/stub_soft_keyboard_modes_accessibility_service" />
        </service>

        <service
            android:name=".StubMagnificationAccessibilityService"
            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
            <intent-filter>
                <action android:name="android.accessibilityservice.AccessibilityService" />
                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC" />
            </intent-filter>

            <meta-data
                android:name="android.accessibilityservice"
                android:resource="@xml/stub_magnification_a11y_service" />
        </service>

        <service
            android:name=".StubFingerprintGestureService"
            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
            <intent-filter>
                <action android:name="android.accessibilityservice.AccessibilityService" />
                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC" />
            </intent-filter>

            <meta-data
                    android:name="android.accessibilityservice"
                    android:resource="@xml/stub_fingerprint_gesture_service" />
        </service>

        <service
            android:name=".StubAccessibilityButtonService"
            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
            <intent-filter>
                <action android:name="android.accessibilityservice.AccessibilityService" />
                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC" />
            </intent-filter>

            <meta-data
                android:name="android.accessibilityservice"
                android:resource="@xml/stub_accessibility_button_service" />
        </service>

    </application>

    <instrumentation
        android:name="androidx.test.runner.AndroidJUnitRunner"
        android:targetPackage="android.accessibilityservice.cts"
        android:label="Tests for the accessibility APIs.">
        <meta-data
            android:name="listener"
            android:value="com.android.cts.runner.CtsTestRunListener" />

    </instrumentation>

</manifest>