1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2010 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 -->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19     package="android.accessibilityservice.cts"
20     android:targetSandboxVersion="2">
21
22    <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
23    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
24    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
25    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
26    <uses-permission android:name="android.permission.USE_FINGERPRINT"/>
27    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
28
29    <application android:theme="@android:style/Theme.Holo.NoActionBar"
30         android:requestLegacyExternalStorage="true">
31
32        <uses-library android:name="android.test.runner"/>
33
34        <activity android:label="@string/accessibility_end_to_end_test_activity"
35             android:name=".activities.AccessibilityEndToEndActivity"
36             android:screenOrientation="locked"/>
37
38        <activity android:label="@string/accessibility_query_window_test_activity"
39             android:name=".activities.AccessibilityWindowQueryActivity"
40             android:supportsPictureInPicture="true"
41             android:screenOrientation="locked"/>
42
43        <activity android:label="@string/accessibility_view_tree_reporting_test_activity"
44             android:name=".activities.AccessibilityViewTreeReportingActivity"
45             android:screenOrientation="locked"/>
46
47        <activity android:label="@string/accessibility_focus_and_input_focus_sync_test_activity"
48             android:name=".activities.AccessibilityFocusAndInputFocusSyncActivity"
49             android:screenOrientation="locked"/>
50
51        <activity android:label="@string/accessibility_text_traversal_test_activity"
52             android:name=".activities.AccessibilityTextTraversalActivity"
53             android:screenOrientation="locked"/>
54
55        <activity android:label="Activity for testing window accessibility reporting"
56             android:name=".activities.AccessibilityWindowReportingActivity"
57             android:supportsPictureInPicture="true"
58             android:screenOrientation="locked"/>
59
60        <activity android:label="@string/non_default_display_activity"
61                  android:name=".activities.NonDefaultDisplayActivity"
62                  android:screenOrientation="locked"/>
63
64        <activity android:label="Full screen activity for gesture dispatch testing"
65             android:name=".AccessibilityGestureDispatchTest$GestureDispatchActivity"
66             android:theme="@style/Theme_NoSwipeDismiss"
67             android:screenOrientation="locked"/>
68
69        <activity android:label="@string/accessibility_soft_keyboard_modes_activity"
70             android:name=".AccessibilitySoftKeyboardModesTest$SoftKeyboardModesActivity"/>
71
72        <activity android:label="@string/accessibility_embedded_hierarchy_test_activity"
73             android:name=".AccessibilityEmbeddedHierarchyTest$AccessibilityEmbeddedHierarchyActivity"
74             android:theme="@android:style/Theme.Dialog"
75             android:screenOrientation="locked"/>
76
77        <activity android:label="@string/accessibility_drag_and_drop_test_activity"
78                  android:name=".activities.AccessibilityDragAndDropActivity"
79                  android:screenOrientation="locked"/>
80
81        <service android:name=".StubSystemActionsAccessibilityService"
82             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
83             android:exported="true">
84            <intent-filter>
85                <action android:name="android.accessibilityservice.AccessibilityService"/>
86                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
87            </intent-filter>
88
89            <meta-data android:name="android.accessibilityservice"
90                 android:resource="@xml/stub_system_actions_a11y_service"/>
91        </service>
92
93        <service android:name=".StubGestureAccessibilityService"
94             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
95             android:exported="true">
96            <intent-filter>
97                <action android:name="android.accessibilityservice.AccessibilityService"/>
98                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
99            </intent-filter>
100
101            <meta-data android:name="android.accessibilityservice"
102                 android:resource="@xml/stub_gesture_dispatch_a11y_service"/>
103        </service>
104
105        <service android:name=".GestureDetectionStubAccessibilityService"
106             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
107             android:exported="true">
108            <intent-filter>
109                <action android:name="android.accessibilityservice.AccessibilityService"/>
110                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
111            </intent-filter>
112            <meta-data android:name="android.accessibilityservice"
113                 android:resource="@xml/stub_gesture_detect_a11y_service"/>
114        </service>
115
116        <service android:name=".TouchExplorationStubAccessibilityService"
117             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
118             android:exported="true">
119            <intent-filter>
120                <action android:name="android.accessibilityservice.AccessibilityService"/>
121                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
122            </intent-filter>
123            <meta-data android:name="android.accessibilityservice"
124                 android:resource="@xml/stub_touch_exploration_a11y_service"/>
125        </service>
126        <service android:name="android.accessibility.cts.common.InstrumentedAccessibilityService"
127             android:label="@string/title_soft_keyboard_modes_accessibility_service"
128             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
129             android:exported="true">
130            <intent-filter>
131                <action android:name="android.accessibilityservice.AccessibilityService"/>
132                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
133            </intent-filter>
134            <meta-data android:name="android.accessibilityservice"
135                 android:resource="@xml/stub_soft_keyboard_modes_accessibility_service"/>
136        </service>
137
138        <service android:name=".StubMagnificationAccessibilityService"
139             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
140             android:exported="true">
141            <intent-filter>
142                <action android:name="android.accessibilityservice.AccessibilityService"/>
143                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
144            </intent-filter>
145
146            <meta-data android:name="android.accessibilityservice"
147                 android:resource="@xml/stub_magnification_a11y_service"/>
148        </service>
149
150        <service android:name=".StubFingerprintGestureService"
151             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
152             android:exported="true">
153            <intent-filter>
154                <action android:name="android.accessibilityservice.AccessibilityService"/>
155                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
156            </intent-filter>
157
158            <meta-data android:name="android.accessibilityservice"
159                 android:resource="@xml/stub_fingerprint_gesture_service"/>
160        </service>
161
162        <service android:name=".StubAccessibilityButtonService"
163             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
164             android:exported="true">
165            <intent-filter>
166                <action android:name="android.accessibilityservice.AccessibilityService"/>
167                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
168            </intent-filter>
169
170            <meta-data android:name="android.accessibilityservice"
171                 android:resource="@xml/stub_accessibility_button_service"/>
172        </service>
173
174        <service android:name=".StubTakeScreenshotService"
175             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
176             android:exported="true">
177            <intent-filter>
178                <action android:name="android.accessibilityservice.AccessibilityService"/>
179                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
180            </intent-filter>
181
182            <meta-data android:name="android.accessibilityservice"
183                 android:resource="@xml/stub_take_screenshot_service"/>
184        </service>
185
186        <service android:name=".StubFocusIndicatorService"
187                 android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
188                 android:exported="true">
189            <intent-filter>
190                <action android:name="android.accessibilityservice.AccessibilityService"/>
191                <category android:name="android.accessibilityservice.category.FEEDBACK_GENERIC"/>
192            </intent-filter>
193
194            <meta-data android:name="android.accessibilityservice"
195                       android:resource="@xml/stub_focus_indicator_service"/>
196        </service>
197    </application>
198
199    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
200         android:targetPackage="android.accessibilityservice.cts"
201         android:label="Tests for the accessibility APIs.">
202        <meta-data android:name="listener"
203             android:value="com.android.cts.runner.CtsTestRunListener"/>
204
205    </instrumentation>
206
207</manifest>
208