1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2020 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" package="android.input.cts">
19    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
20    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
21    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
22    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
23    <application android:label="InputTest"
24                 android:requestLegacyExternalStorage="true">
25        <activity android:name=".OverlayActivity"
26                  android:label="Overlay activity"
27                  android:process=":externalProcess"
28                  android:theme="@android:style/Theme.Dialog"
29                  android:exported="true">
30            <layout android:defaultHeight="100dp"
31                    android:defaultWidth="100dp"
32                    android:gravity="bottom"
33                    android:minHeight="100dp"
34                    android:minWidth="100dp" />
35        </activity>
36        <receiver android:name=".OverlayFocusedBroadcastReceiver" android:exported="true">
37            <intent-filter>
38                <action android:name="android.input.cts.action.OVERLAY_ACTIVITY_FOCUSED"/>
39            </intent-filter>
40        </receiver>
41
42        <activity android:name="android.input.cts.IncompleteMotionActivity"
43                  android:label="IncompleteMotion activity"
44                  android:turnScreenOn="true"
45                  android:exported="true">
46        </activity>
47        <!-- Disable onBackInvokedCallback to allow us to make assertions about
48          the app receiving KEYCODE_BACK. -->
49        <activity android:name="android.input.cts.CaptureEventActivity"
50                  android:label="Capture events"
51                  android:configChanges="touchscreen|uiMode|orientation|screenSize|screenLayout|keyboardHidden|uiMode|navigation|keyboard|density|fontScale|layoutDirection|locale|mcc|mnc|smallestScreenSize"
52                  android:enableOnBackInvokedCallback="false"
53                  android:turnScreenOn="true"
54                  android:exported="true">
55        </activity>
56        <activity android:name="android.input.cts.TwoWindowsActivity"
57                  android:label="Capture events with two windows"
58                  android:configChanges="touchscreen|uiMode|orientation|screenSize|screenLayout|keyboardHidden|uiMode|navigation|keyboard|density|fontScale|layoutDirection|locale|mcc|mnc|smallestScreenSize"
59                  android:turnScreenOn="true"
60                  android:exported="true">
61        </activity>
62        <activity android:name="android.app.Activity"
63                  android:label="Empty activity for simple tests"
64                  android:turnScreenOn="true"
65                  android:exported="true">
66        </activity>
67
68        <receiver android:name="android.input.cts.KeyboardLayoutTest.CtsKeyboardLayoutProvider"
69                  android:label="CTS keyboard layout provider"
70                  android:exported="true">
71            <intent-filter>
72                <action android:name="android.hardware.input.action.QUERY_KEYBOARD_LAYOUTS" />
73            </intent-filter>
74            <meta-data android:name="android.hardware.input.metadata.KEYBOARD_LAYOUTS"
75                       android:resource="@xml/keyboard_layouts" />
76        </receiver>
77    </application>
78
79    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
80         android:targetPackage="android.input.cts"
81         android:label="Tests for input APIs and behaviours.">
82    </instrumentation>
83</manifest>
84