1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2012 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.view.accessibility.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
27    <application android:theme="@android:style/Theme.Holo.NoActionBar"
28         android:requestLegacyExternalStorage="true">
29        <uses-library android:name="android.test.runner"/>
30        <service android:name=".SpeakingAccessibilityService"
31             android:label="@string/title_speaking_accessibility_service"
32             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
33             android:exported="true">
34            <intent-filter>
35                <action android:name="android.accessibilityservice.AccessibilityService"/>
36            </intent-filter>
37            <meta-data android:name="android.accessibilityservice"
38                 android:resource="@xml/speaking_accessibilityservice"/>
39        </service>
40
41        <service android:name=".VibratingAccessibilityService"
42             android:label="@string/title_vibrating_accessibility_service"
43             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
44             android:exported="true">
45            <intent-filter>
46                <action android:name="android.accessibilityservice.AccessibilityService"/>
47            </intent-filter>
48            <meta-data android:name="android.accessibilityservice"
49                 android:resource="@xml/vibrating_accessibilityservice"/>
50        </service>
51
52        <service android:name=".SpeakingAndVibratingAccessibilityService"
53             android:label="@string/title_speaking_and_vibrating_accessibility_service"
54             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
55             android:exported="true">
56            <intent-filter>
57                <action android:name="android.accessibilityservice.AccessibilityService"/>
58            </intent-filter>
59            <meta-data android:name="android.accessibilityservice"
60                 android:resource="@xml/speaking_and_vibrating_accessibilityservice"/>
61        </service>
62
63        <service android:name=".AccessibilityButtonService"
64             android:label="@string/title_accessibility_button_service"
65             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
66             android:exported="true">
67            <intent-filter>
68                <action android:name="android.accessibilityservice.AccessibilityService"/>
69            </intent-filter>
70            <meta-data android:name="android.accessibilityservice"
71                 android:resource="@xml/accessibility_button_service"/>
72        </service>
73
74        <activity android:label="@string/some_description"
75             android:name=".DummyActivity"
76             android:screenOrientation="locked"/>
77
78        <activity android:name=".AccessibilityShortcutTargetActivity"
79             android:label="@string/shortcut_target_title"
80             android:exported="true">
81            <intent-filter>
82                <action android:name="android.intent.action.MAIN"/>
83                <category android:name="android.intent.category.ACCESSIBILITY_SHORTCUT_TARGET"/>
84            </intent-filter>
85            <meta-data android:name="android.accessibilityshortcut.target"
86                 android:resource="@xml/shortcut_target_activity"/>
87        </activity>
88
89    </application>
90
91    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
92         android:targetPackage="android.view.accessibility.cts"
93         android:label="Tests for the accessibility APIs.">
94        <meta-data android:name="listener"
95             android:value="com.android.cts.runner.CtsTestRunListener"/>
96    </instrumentation>
97
98</manifest>
99