1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2017 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     xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
20     xmlns:tools="http://schemas.android.com/tools"
21     package="android.server.wm.cts"
22     android:targetSandboxVersion="2">
23
24    <uses-permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT"/>
25    <uses-permission android:name="android.permission.DETECT_SCREEN_CAPTURE"/>
26    <uses-permission android:name="android.permission.DETECT_SCREEN_RECORDING" />
27    <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
28    <uses-permission android:name="android.permission.DUMP"/>
29    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
30    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
31    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
32    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
33    <uses-permission android:name="android.permission.READ_LOGS"/>
34    <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES"/>
35    <uses-permission android:name="android.permission.STOP_APP_SWITCHES"/>
36    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
37    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
38    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
39
40    <application android:label="CtsWindowManagerDeviceTestCases"
41                 android:requestLegacyExternalStorage="true"
42                 android:enableOnBackInvokedCallback="false"
43                 android:testOnly="true">
44        <uses-library android:name="android.test.runner"/>
45        <uses-library android:name="androidx.window.extensions"
46            android:required="false" />
47
48        <activity android:name="android.server.wm.ActivityManagerTestBase$ConfigChangeHandlingActivity"
49             android:resizeableActivity="true"
50             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
51
52        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$FirstActivity"/>
53
54        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$SecondActivity"/>
55
56        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$ThirdActivity"/>
57
58        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$SideActivity"
59                  android:taskAffinity="nobody.but.SideActivity"/>
60
61        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$TranslucentActivity"
62             android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
63
64        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$SecondTranslucentActivity"
65             android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
66
67        <activity android:name="android.server.wm.activity.lifecycle.CallbackTrackingActivity"
68             android:configChanges="keyboard|keyboardHidden|navigation"/>
69
70        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$SecondCallbackTrackingActivity"/>
71
72        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$TranslucentCallbackTrackingActivity"
73             android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
74
75        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$ShowWhenLockedCallbackTrackingActivity"
76                  android:configChanges="keyboard|keyboardHidden|navigation" />
77
78        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$SecondProcessCallbackTrackingActivity"
79             android:process=":SecondProcess"
80             android:exported="true"/>
81
82        <provider android:name="android.server.wm.activity.lifecycle.EventLog"
83             android:authorities="android.server.wm.lifecycle.logprovider"
84             android:exported="true"/>
85
86        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$LaunchForResultActivity"/>
87
88        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$ResultActivity"/>
89
90        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$TranslucentResultActivity"
91                  android:theme="@android:style/Theme.Dialog"/>
92
93        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$SingleTopActivity"
94             android:launchMode="singleTop"/>
95
96        <activity android:name="android.server.wm.activity.lifecycle.LifecycleConfigChangeHandlingActivity"
97             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density"/>
98
99        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$PipActivity"
100             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout"
101             android:supportsPictureInPicture="true"/>
102
103        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$AlwaysFocusablePipActivity"
104             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout"
105             android:resizeableActivity="false"
106             android:supportsPictureInPicture="true"
107             androidprv:alwaysFocusable="true"
108             android:exported="true"/>
109
110        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$SlowActivity"/>
111
112        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$NoDisplayActivity"
113             android:theme="@android:style/Theme.NoDisplay"/>
114
115        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$DifferentAffinityActivity"
116             android:taskAffinity="nobody.but.DifferentAffinityActivity"/>
117
118        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$TransitionSourceActivity"
119             android:theme="@style/window_activity_transitions"/>
120
121        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$TransitionDestinationActivity"
122             android:theme="@style/window_activity_transitions"/>
123
124        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$LaunchForwardResultActivity"/>
125
126        <activity android:name="android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase$TrampolineActivity"/>
127
128        <activity android:name="android.server.wm.multidisplay.MultiDisplayActivityLaunchTests$ImmediateLaunchTestActivity"
129             android:allowEmbedded="true"/>
130
131        <activity android:name="android.server.wm.ime.MultiDisplayImeTests$ImeTestActivity"
132             android:resizeableActivity="true"
133             android:theme="@style/no_starting_window"
134             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
135        <activity android:name="android.server.wm.ime.MultiDisplayImeTests$ImeTestActivity2"/>
136        <activity android:name="android.server.wm.ime.MultiDisplayImeTests$ImeTestActivityWithBrokenContextWrapper"/>
137
138        <activity android:name="android.server.wm.multidisplay.MultiDisplayClientTests$ClientTestActivity"/>
139        <activity android:name="android.server.wm.multidisplay.MultiDisplayClientTests$NoRelaunchActivity"
140             android:resizeableActivity="true"
141             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen|keyboard|keyboardHidden|navigation"/>
142
143        <activity android:name="android.server.wm.window.HideOverlayWindowsTest$SystemWindowActivity"
144                  android:process=":swa"
145                  android:launchMode="singleTop"
146                  android:exported="true"/>
147        <activity android:name="android.server.wm.window.HideOverlayWindowsTest$InternalSystemWindowActivity"
148                  android:process=":iswa"
149                  android:exported="true"/>
150        <activity android:name="android.server.wm.window.HideOverlayWindowsTest$SystemApplicationOverlayActivity"
151                  android:process=":saoa"
152                  android:exported="true"/>
153
154        <activity android:name="android.server.wm.keyguard.KeyguardLockedTests$ShowImeAfterLockscreenActivity"
155                  android:theme="@style/OptOutEdgeToEdge"
156                  android:configChanges="keyboard|keyboardHidden|navigation"/>
157
158        <activity android:name="android.server.wm.keyguard.KeyguardLockedTests$ShowWhenLockedImeActivity"/>
159
160        <activity android:name="android.server.wm.HelperActivities$StandardActivity"
161             android:exported="true"/>
162
163        <activity android:name="android.server.wm.HelperActivities$SecondStandardActivity"
164             android:exported="true"/>
165
166        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$StandardWithSingleTopActivity"
167             android:exported="true"/>
168
169        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$SingleTopActivity"
170             android:launchMode="singleTop"
171             android:exported="true"/>
172
173        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$SingleInstanceActivity"
174             android:launchMode="singleInstance"
175             android:exported="true"/>
176
177        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$SingleTaskActivity"
178             android:launchMode="singleTask"
179             android:exported="true"/>
180
181        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$DocumentIntoExistingActivity"
182                  android:documentLaunchMode="intoExisting"
183                  android:exported="true"/>
184        <activity-alias
185            android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$DocumentIntoExistingAliasActivity"
186            android:targetActivity="android.server.wm.activity.lifecycle.ActivityStarterTests$DocumentIntoExistingActivity"
187            android:exported="true">
188        </activity-alias>
189
190        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$TestLaunchingActivity"
191             android:taskAffinity="nobody.but.LaunchingActivity"
192             android:exported="true"/>
193
194        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$LaunchingAndFinishActivity"
195             android:taskAffinity="nobody.but.LaunchingActivity"
196             android:exported="true"/>
197
198        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$ClearTaskOnLaunchActivity"
199                  android:clearTaskOnLaunch="true"/>
200
201        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$FinishOnTaskLaunchActivity"
202                  android:finishOnTaskLaunch="true"
203                  android:exported="true"/>
204        <activity android:name="android.server.wm.activity.lifecycle.ActivityStarterTests$RelinquishTaskIdentityActivity"
205                  android:exported="true"
206                  android:relinquishTaskIdentity="true"/>
207
208        <provider android:name="android.server.wm.TestJournalProvider"
209             android:authorities="android.server.wm.testjournalprovider"
210             android:exported="true"/>
211
212        <!--intent tests-->
213        <activity android:name="android.server.wm.intent.Activities$RegularActivity"/>
214        <activity android:name="android.server.wm.intent.Activities$SingleTopActivity"
215             android:launchMode="singleTop"/>
216        <activity android:name="android.server.wm.intent.Activities$SingleInstanceActivity"
217             android:launchMode="singleInstance"/>
218        <activity android:name="android.server.wm.intent.Activities$SingleInstanceActivity2"
219             android:launchMode="singleInstance"
220             android:taskAffinity=".t1"/>
221        <activity android:name="android.server.wm.intent.Activities$SingleTaskActivity"
222             android:launchMode="singleTask"/>
223        <activity android:name="android.server.wm.intent.Activities$SingleTaskActivity2"
224             android:launchMode="singleTask"
225             android:taskAffinity=".t1"/>
226        <activity android:name="android.server.wm.intent.Activities$SingleInstancePerTaskActivity"
227             android:launchMode="singleInstancePerTask"/>
228        <activity android:name="android.server.wm.intent.Activities$SingleInstancePerTaskDocumentNeverActivity"
229             android:launchMode="singleInstancePerTask"
230             android:documentLaunchMode="never"/>
231        <activity android:name="android.server.wm.intent.Activities$TaskAffinity1Activity"
232             android:allowTaskReparenting="true"
233             android:launchMode="standard"
234             android:taskAffinity=".t1"/>
235        <activity android:name="android.server.wm.intent.Activities$TaskAffinity1Activity2"
236             android:allowTaskReparenting="true"
237             android:launchMode="standard"
238             android:taskAffinity=".t1"/>
239        <activity android:name="android.server.wm.intent.Activities$TaskAffinity1SingleTopActivity"
240             android:allowTaskReparenting="true"
241             android:launchMode="singleTop"
242             android:taskAffinity=".t1"/>
243        <activity android:name="android.server.wm.intent.Activities$TaskAffinity1RelinquishTaskIdentityActivity"
244             android:relinquishTaskIdentity="true"
245             android:taskAffinity=".t1"/>
246        <activity android:name="android.server.wm.intent.Activities$TaskAffinity2Activity"
247             android:allowTaskReparenting="true"
248             android:launchMode="standard"
249             android:taskAffinity=".t2"/>
250        <activity android:name="android.server.wm.intent.Activities$TaskAffinity3Activity"
251             android:allowTaskReparenting="true"
252             android:launchMode="standard"
253             android:taskAffinity=".t3"/>
254        <activity android:name="android.server.wm.intent.Activities$ClearTaskOnLaunchActivity"
255             android:allowTaskReparenting="true"
256             android:clearTaskOnLaunch="true"
257             android:launchMode="standard"
258             android:taskAffinity=".t2"/>
259        <activity android:name="android.server.wm.intent.Activities$DocumentLaunchIntoActivity"
260             android:documentLaunchMode="intoExisting"/>
261        <activity android:name="android.server.wm.intent.Activities$DocumentLaunchAlwaysActivity"
262             android:documentLaunchMode="always"/>
263        <activity android:name="android.server.wm.intent.Activities$DocumentLaunchNeverActivity"
264             android:documentLaunchMode="never"/>
265        <activity android:name="android.server.wm.intent.Activities$NoHistoryActivity"
266             android:noHistory="true"/>
267        <activity android:name="android.server.wm.intent.Activities$LauncherActivity"
268             android:documentLaunchMode="always"
269             android:launchMode="singleInstance"/>
270        <activity android:name="android.server.wm.intent.Activities$RelinquishTaskIdentityActivity"
271             android:relinquishTaskIdentity="true"/>
272
273        <service android:name="android.server.wm.TestLogService"
274             android:enabled="true"
275             android:exported="true">
276        </service>
277
278        <activity android:name="android.server.wm.window.AlertWindowsAppOpsTestsActivity"/>
279        <activity android:name="android.server.wm.activity.CloseOnOutsideTestActivity"
280                  android:theme="@style/no_starting_window"/>
281        <activity android:name="android.server.wm.animations.DialogFrameTestActivity" />
282        <activity android:name="android.server.wm.insets.DisplayCutoutTests$TestActivity"
283                  android:theme="@style/OptOutEdgeToEdge"
284                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout"
285                  android:screenOrientation="nosensor"
286                  android:turnScreenOn="true"
287                  android:showWhenLocked="true"/>
288        <activity android:name="android.server.wm.activity.ConfigurationCallbacksTest$TestActivity"
289                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
290
291        <activity android:name="android.server.wm.insets.RoundedCornerTests$TestActivity"
292                  android:configChanges="orientation|screenSize"
293                  android:screenOrientation="nosensor"
294                  android:turnScreenOn="true"
295                  android:showWhenLocked="true"/>
296
297        <activity android:name="android.server.wm.other.PrivacyIndicatorBoundsTests$TestActivity"
298                  android:configChanges="orientation|screenSize"
299                  android:screenOrientation="nosensor"
300                  android:turnScreenOn="true"
301                  android:showWhenLocked="true"/>
302
303        <activity android:name="android.server.wm.insets.WindowInsetsAnimationSynchronicityTests$TestActivity"
304             android:turnScreenOn="true"
305             android:showWhenLocked="true"/>
306        <service android:name="android.server.wm.insets.WindowInsetsAnimationSynchronicityTests$SimpleIme"
307             android:label="Simple IME"
308             android:permission="android.permission.BIND_INPUT_METHOD"
309             android:exported="true">
310            <intent-filter>
311                <action android:name="android.view.InputMethod"/>
312            </intent-filter>
313            <meta-data android:name="android.view.im"
314                 android:resource="@xml/simple_method"/>
315        </service>
316
317        <activity android:name="android.server.wm.KeyEventActivity"
318             android:exported="true"
319             android:configChanges="orientation|screenLayout|keyboard|keyboardHidden|navigation"
320             android:showWhenLocked="true"/>
321        <activity android:name="android.server.wm.insets.WindowInsetsPolicyTest$TestActivity"
322             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout"
323             android:turnScreenOn="true"
324             android:showWhenLocked="true"/>
325        <activity android:name="android.server.wm.insets.WindowInsetsPolicyTest$FullscreenTestActivity"/>
326        <activity android:name="android.server.wm.insets.WindowInsetsPolicyTest$FullscreenWmFlagsTestActivity"/>
327        <activity android:name="android.server.wm.insets.WindowInsetsPolicyTest$ImmersiveFullscreenTestActivity"
328             android:documentLaunchMode="always"
329             android:theme="@style/no_animation"/>
330        <activity android:name="android.server.wm.animations.LayoutTests$TestActivity"
331             android:theme="@style/no_animation"/>
332        <activity android:name="android.server.wm.animations.LocationOnScreenTests$TestActivity"
333             android:theme="@style/no_starting_window"/>
334        <activity android:name="android.server.wm.animations.LocationInWindowTests$TestActivity"/>
335        <activity android:name="android.server.wm.other.EnsureBarContrastTest$TestActivity"
336             android:screenOrientation="locked"
337                  android:theme="@style/OptOutEdgeToEdge.NoStartingWindow"/>
338        <activity android:name="android.server.wm.input.WindowFocusTests$PrimaryActivity"/>
339        <activity android:name="android.server.wm.input.WindowFocusTests$SecondaryActivity"
340             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
341        <activity android:name="android.server.wm.input.WindowFocusTests$TertiaryActivity"
342            android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
343        <activity android:name="android.server.wm.activity.ActivityCaptureCallbackTests$PrimaryActivity"/>
344        <activity android:name="android.server.wm.activity.ActivityCaptureCallbackTests$SecondaryActivity"/>
345        <activity android:name="android.server.wm.input.WindowFocusTests$LosingFocusActivity"/>
346        <activity android:name="android.server.wm.input.WindowFocusTests$AutoEngagePointerCaptureActivity" />
347        <activity android:name="android.server.wm.MetricsActivity"
348             android:exported="true"
349             android:resizeableActivity="true"
350             android:supportsPictureInPicture="true"
351             android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
352        <activity android:name="android.server.wm.window.WindowMetricsActivityTests$MinAspectRatioActivity"
353                  android:label="MinAspectRatioActivity"
354                  android:minAspectRatio="3.0"
355                  android:resizeableActivity="false"/>
356        <activity android:name="android.app.Activity"/>
357        <activity android:name="android.server.wm.insets.WindowInsetsLayoutTests$TestActivity"/>
358        <activity android:name="android.server.wm.insets.WindowInsetsControllerTests$TestActivity"
359                  android:theme="@style/no_starting_window"/>
360        <activity android:name="android.server.wm.insets.WindowInsetsControllerTests$TestHideOnCreateActivity"
361                  android:windowSoftInputMode="adjustPan|stateUnchanged"/>
362        <activity android:name="android.server.wm.insets.WindowInsetsControllerTests$TestShowOnCreateActivity"/>
363
364        <activity android:name="android.server.wm.other.DragDropTest$DragDropActivity"
365             android:theme="@style/OptOutEdgeToEdge"
366             android:screenOrientation="locked"
367             android:turnScreenOn="true"
368             android:showWhenLocked="true"
369             android:label="DragDropActivity"
370             android:hardwareAccelerated="true"
371             android:exported="true">
372            <intent-filter>
373                <action android:name="android.intent.action.MAIN"/>
374                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"/>
375            </intent-filter>
376        </activity>
377
378        <activity android:name="android.server.wm.other.DragDropTest$SoftwareCanvasDragDropActivity"
379            android:theme="@style/OptOutEdgeToEdge"
380            android:screenOrientation="locked"
381            android:turnScreenOn="true"
382            android:showWhenLocked="true"
383            android:label="DragDropTest$SoftwareCanvasDragDropActivity"
384            android:hardwareAccelerated="false"
385            android:exported="true">
386            <intent-filter>
387                <action android:name="android.intent.action.MAIN"/>
388                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"/>
389            </intent-filter>
390        </activity>
391
392        <activity android:name="android.server.wm.insets.DecorInsetTestsBase$TestActivity"
393             android:theme="@style/OptOutEdgeToEdge"
394             android:label="DecorInsetTestsBase.TestActivity"
395             android:exported="true"/>
396
397        <!-- The test tests insets dispatching. Here disables action bar because it might intercept
398             the insets and dispatch modified ones. -->
399        <activity android:name="android.server.wm.window.WindowPolicyTests$TestActivity"
400                  android:theme="@android:style/Theme.Material.NoActionBar"/>
401
402        <!-- INSETS_DECOUPLED_CONFIGURATION_ENFORCED can only be opted out before creating the
403             activity. -->
404        <activity android:name="android.server.wm.window.WindowPolicyTests$OptOutEdgeToEdgeActivity"
405                  android:theme="@style/OptOutEdgeToEdge"/>
406
407        <activity android:name="android.server.wm.window.WindowCtsActivity"
408             android:theme="@style/OptOutEdgeToEdge.NoActionBar"
409             android:screenOrientation="locked"
410             android:turnScreenOn="true"
411             android:showWhenLocked="true"
412             android:label="WindowCtsActivity"
413             android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
414             android:exported="true">
415            <intent-filter>
416                <action android:name="android.intent.action.MAIN"/>
417                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"/>
418            </intent-filter>
419        </activity>
420
421        <activity android:name="android.view.cts.surfacevalidator.ASurfaceControlTestActivity"
422                  android:screenOrientation="locked"
423                  android:theme="@style/WhiteBackgroundTheme"
424                  android:exported="true">
425            <intent-filter>
426                <action android:name="android.intent.action.MAIN"/>
427                <category android:name="android.intent.category.LAUNCHER"/>
428            </intent-filter>
429        </activity>
430
431        <activity android:name="android.server.wm.input.WindowInputTests$TestActivity"
432            android:theme="@style/no_starting_window" />
433
434        <activity android:name="android.server.wm.activity.ActivityRecordInputSinkTestsActivity"
435            android:theme="@android:style/Theme.Material.NoActionBar"
436            android:exported="true"/>
437
438        <activity android:name="android.server.wm.activity.StartActivityAsUserActivity"
439             android:showForAllUsers="true"
440             android:directBootAware="true"/>
441
442        <activity android:name="android.server.wm.WindowInsetsAnimationTestBase$TestActivity"
443            android:screenOrientation="locked"
444            android:theme="@style/OptOutEdgeToEdge.NoActionBar"/>
445        <activity android:name="android.server.wm.insets.WindowInsetsAnimationControllerTests$ControllerTestActivity"
446            android:theme="@android:style/Theme.Material.NoActionBar" />
447
448        <activity android:name="android.server.wm.insets.ForceRelayoutTestBase$TestActivity"
449             android:exported="true"/>
450
451        <activity android:name="android.server.wm.animations.ActivityTransitionTests$LauncherActivity"
452            android:theme="@style/Theme.TranslucentBars"
453            android:fitsSystemWindows="true" />
454
455        <activity android:name="android.server.wm.animations.ActivityTransitionTests$TransitionActivity"/>
456
457        <activity android:name="android.server.wm.animations.ActivityTransitionTests$CustomBackgroundTransitionActivity"/>
458
459        <activity android:name="android.server.wm.animations.ActivityTransitionTests$TransitionActivityWithWhiteBackground"
460            android:theme="@style/Theme.WhiteBackground"
461            android:exported="true"
462            android:colorMode="wideColorGamut"/>
463
464        <activity android:name="android.server.wm.animations.ActivityTransitionTests$EdgeExtensionActivity"
465            android:theme="@style/Theme.EdgeExtensions"
466            android:exported="true"
467            android:colorMode="wideColorGamut"
468            android:fitsSystemWindows="true" />
469
470        <activity android:name="android.server.wm.animations.ActivityTransitionTests$CustomWindowAnimationActivity"
471            android:theme="@style/window_task_animation"
472            android:exported="true"/>
473
474        <activity android:name="android.server.wm.input.WindowUntrustedTouchTest$TestActivity"
475                  android:exported="true"
476                  android:configChanges="screenSize|screenLayout|orientation"
477                  android:screenOrientation="nosensor" />
478
479        <activity android:name="android.server.wm.display.DisplayHashManagerTest$TestActivity"
480                   android:exported="true"/>
481
482        <activity android:name="android.server.wm.HelperActivities$ResizeableLeftActivity"
483                  android:resizeableActivity="true"
484                  android:exported="true"/>
485
486        <activity android:name="android.server.wm.HelperActivities$ResizeableRightActivity"
487                  android:resizeableActivity="true"
488                  android:exported="true"/>
489
490        <activity android:name="android.server.wm.HelperActivities$ResizeablePortraitActivity"
491                  android:resizeableActivity="true"
492                  android:screenOrientation="portrait"
493                  android:exported="true"/>
494
495        <activity android:name="android.server.wm.HelperActivities$ResponsiveActivity"
496                  android:exported="true"/>
497
498        <activity android:name="android.server.wm.HelperActivities$NonResizeablePortraitActivity"
499                  android:resizeableActivity="false"
500                  android:screenOrientation="portrait"
501                  android:exported="true"/>
502
503        <activity android:name="android.server.wm.HelperActivities$NonResizeableLandscapeActivity"
504                  android:resizeableActivity="false"
505                  android:screenOrientation="landscape"
506                  android:exported="true"/>
507
508        <activity android:name="android.server.wm.HelperActivities$NonResizeableNonFixedOrientationActivity"
509                  android:resizeableActivity="false"
510                  android:exported="true"/>
511
512        <activity android:name="android.server.wm.HelperActivities$NonResizeableAspectRatioActivity"
513                  android:resizeableActivity="false"
514                  android:screenOrientation="portrait"
515                  android:minAspectRatio="1.6"
516                  android:exported="true"/>
517
518        <activity android:name="android.server.wm.HelperActivities$NonResizeableLargeAspectRatioActivity"
519                  android:resizeableActivity="false"
520                  android:screenOrientation="portrait"
521                  android:minAspectRatio="4"
522                  android:exported="true"/>
523
524        <activity android:name="android.server.wm.HelperActivities$SupportsSizeChangesPortraitActivity"
525                  android:resizeableActivity="false"
526                  android:screenOrientation="portrait"
527                  android:exported="true">
528        <meta-data android:name="android.supports_size_changes"
529                       android:value="true"/>
530        </activity>
531
532        <activity android:name="android.server.wm.HelperActivities$NoPropertyChangeOrientationWhileRelaunchingActivity"
533                  android:screenOrientation="landscape"
534                  android:exported="true"/>
535
536        <service android:name="android.server.wm.display.WindowContextTests$TestWindowService"
537                 android:exported="true"
538                 android:enabled="true" />
539        <activity android:name="android.server.wm.WindowContextTestActivity"
540                  android:exported="true"
541                  android:resizeableActivity="true"
542                  android:supportsPictureInPicture="true"
543                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
544        <activity android:name="android.server.wm.animations.BlurTests$BackgroundActivity"
545             android:theme="@style/BackgroundImage"
546             android:colorMode="wideColorGamut"
547             android:exported="true"/>
548        <activity android:name="android.server.wm.animations.BlurTests$BlurActivity"
549             android:exported="true"
550             android:colorMode="wideColorGamut"
551             android:theme="@style/TranslucentDialog"/>
552        <activity android:name="android.server.wm.animations.BlurTests$BlurAttributesActivity"
553             android:exported="true"
554             android:colorMode="wideColorGamut"
555             android:theme="@style/BlurryDialog"/>
556        <activity android:name="android.server.wm.animations.BlurTests$BadBlurActivity"
557             android:exported="true"
558             android:colorMode="wideColorGamut"
559             android:theme="@style/BadBlurryDialog"/>
560
561        <!-- Overrides the activity declaration in AndroidX test library to remove the starting
562             animation. -->
563        <activity
564            android:name="androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity"
565            tools:replace="android:theme"
566            android:theme="@style/WhiteBackgroundTheme" />
567        <activity android:name="android.server.wm.taskfragment.SplitActivityLifecycleTest$ActivityA"
568                  android:exported="true"
569                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
570        <activity android:name="android.server.wm.taskfragment.SplitActivityLifecycleTest$ActivityB"
571                  android:exported="true"
572                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
573        <activity android:name="android.server.wm.taskfragment.SplitActivityLifecycleTest$ActivityC"
574                  android:exported="true"
575                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"/>
576        <activity android:name="android.server.wm.taskfragment.SplitActivityLifecycleTest$TranslucentActivity"
577                  android:exported="true"
578                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"
579                  android:theme="@android:style/Theme.Translucent.NoTitleBar" />
580        <activity android:name="android.server.wm.other.HostActivity"
581                  android:exported="true">
582               <intent-filter>
583                 <action android:name="android.server.wm.other.HostActivity"/>
584               </intent-filter>
585               <intent-filter>
586                 <action android:name="android.intent.action.MAIN"/>
587                 <category android:name="android.intent.category.LAUNCHER"/>
588               </intent-filter>
589        </activity>
590        <activity android:name="android.server.wm.other.KeepClearRectsTests$TestActivity"
591                  android:exported="true"
592                  android:theme="@style/NoInsetsTheme" />
593        <activity android:name="android.server.wm.other.KeepClearRectsTests$TranslucentTestActivity"
594                  android:exported="true"
595                  android:theme="@style/NoInsetsTheme.Translucent" />
596        <service android:name="android.server.wm.other.AccessibilityTestService"
597            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
598            android:exported="true">
599            <intent-filter>
600                <action android:name="android.accessibilityservice.AccessibilityService"/>
601            </intent-filter>
602            <meta-data android:name="android.accessibilityservice"
603                android:resource="@xml/test_accessibilityservice"/>
604        </service>
605
606        <activity android:name="android.server.wm.window.SnapshotTaskTests$TestActivity"
607            android:theme="@style/WhiteBackgroundTheme"
608            android:exported="true">
609        </activity>
610        <activity android:name="android.server.wm.backnavigation.BackNavigationActivity"
611                  android:enableOnBackInvokedCallback="true"
612                  android:exported="true"/>
613        <activity android:name="android.server.wm.other.PinnedStackTests$TestActivity"
614                  android:exported="true"/>
615        <activity android:name="android.server.wm.taskfragment.TaskFragmentTrustedModeTest$TranslucentActivity"
616                  android:exported="true"
617                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen"
618                  android:theme="@android:style/Theme.Translucent.NoTitleBar" />
619        <activity android:name="android.server.wm.other.LockTaskModeTests$TestActivity"
620                  android:exported="true" />
621        <activity android:name="android.server.wm.backnavigation.BackGestureInvokedTest$BackInvokedActivity"
622                  android:label="BackInvokedActivity"
623                  android:enableOnBackInvokedCallback="true"
624                  android:exported="true" />
625        <activity android:name="android.server.wm.backnavigation.BackGestureInvokedTest$NewTaskActivity"
626                  android:enableOnBackInvokedCallback="true"
627                  android:exported="true" />
628        <activity android:name="android.server.wm.backnavigation.BackGestureInvokedTest$SecondActivity"
629                  android:enableOnBackInvokedCallback="true"
630                  android:exported="true" />
631        <activity android:name="android.server.wm.backnavigation.BackGestureInvokedTest$ImeTestActivity"
632                  android:enableOnBackInvokedCallback="true"
633                  android:exported="true"
634                  android:windowSoftInputMode="stateVisible"/>
635        <activity android:name="android.server.wm.animations.DisplayShapeTests$TestActivity"
636                  android:theme="@android:style/Theme.Dialog"
637                  android:exported="true"/>
638
639        <activity android:name="android.server.wm.animations.MoveAnimationTests$FloatingActivity"
640                  android:exported="true"
641                  android:noHistory="true"
642                  android:theme="@style/Floating"/>
643        <activity android:name="android.server.wm.animations.MoveAnimationTests$FloatingActivity$NoMove"
644                  android:exported="true"
645                  android:noHistory="true"
646                  android:theme="@style/Floating.NoMove"/>
647
648        <activity android:name="android.server.wm.MediaProjectionHelper$MediaProjectionActivity" />
649        <service
650            android:name="android.server.wm.MediaProjectionHelper$MediaProjectionService"
651            android:enabled="true"
652            android:foregroundServiceType="mediaProjection" />
653
654        <activity android:name="android.server.wm.window.ScreenRecordingCallbackTests$ScreenRecordingCallbackActivity" />
655    </application>
656
657    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
658         android:targetPackage="android.server.wm.cts"
659         android:label="CTS tests of WindowManager">
660    </instrumentation>
661
662</manifest>
663