xref: /aosp_15_r20/cts/tests/tests/display/AndroidManifest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
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.display.cts"
20    android:targetSandboxVersion="2">
21
22    <!-- For special presentation windows when testing mode switches. -->
23    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
24    <!-- For testing brightness slider tracking. -->
25    <uses-permission android:name="android.permission.BRIGHTNESS_SLIDER_USAGE" />
26    <uses-permission android:name="android.permission.WAKE_LOCK" />
27    <!-- For testing pushing brightness curves. -->
28    <uses-permission android:name="android.permission.CONFIGURE_DISPLAY_BRIGHTNESS" />
29    <!-- For querying to see if packages exist with the brightness permissions. -->
30    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
31    <!-- For listening to cached mode of the test activity. -->
32    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
33    <!-- For creating trusted displays. -->
34    <uses-permission android:name="android.permission.ADD_TRUSTED_DISPLAY" />
35
36    <application>
37        <uses-library android:name="android.test.runner" />
38        <activity android:name=".ScreenOnActivity" android:exported="true" />
39        <activity android:name=".DisplayTestActivity" android:exported="true" />
40        <activity
41            android:name=".RetainedDisplayTestActivity"
42            android:configChanges="density|orientation|screenLayout|screenSize" />
43        <activity android:name="android.display.cts.DisplayManagerTest$TestActivity"
44            android:turnScreenOn="true"
45            android:showWhenLocked="true"
46            android:theme="@style/WhiteBackgroundTheme"
47            android:exported="true"/>
48        <activity android:name=".HdrConversionTestActivity" />
49        <activity android:name=".HdrContentActivity" />
50        <activity android:name=".DisplayEventPropertyChangeActivity" />
51        <activity android:name=".SimpleActivity" android:exported="true" />
52        <activity android:name=".SimpleActivity2" android:exported="true" />
53    </application>
54
55    <!--  self-instrumenting test package. -->
56    <instrumentation
57        android:name="androidx.test.runner.AndroidJUnitRunner"
58        android:targetPackage="android.display.cts"
59        android:label="CTS tests of android.display">
60    </instrumentation>
61
62</manifest>
63
64