1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 * Copyright (C) 2015 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 package="android.server.wm.app"> 21 22 <!-- virtual display test permissions --> 23 <uses-permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT" /> 24 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> 25 <uses-permission android:name="android.permission.BIND_VOICE_INTERACTION" /> 26 27 <application> 28 <activity android:name=".TestActivity" 29 android:resizeableActivity="true" 30 android:supportsPictureInPicture="true" 31 android:exported="true" 32 /> 33 <activity android:name=".TestActivityWithSameAffinity" 34 android:resizeableActivity="true" 35 android:supportsPictureInPicture="true" 36 android:exported="true" 37 android:taskAffinity="nobody.but.PipActivitySameAffinity" 38 /> 39 <activity android:name=".TranslucentTestActivity" 40 android:resizeableActivity="true" 41 android:supportsPictureInPicture="true" 42 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 43 android:theme="@style/Theme.Transparent" 44 android:exported="true" 45 /> 46 <activity android:name=".VrTestActivity" 47 android:resizeableActivity="true" 48 android:exported="true" 49 /> 50 <activity-alias android:name=".AliasTestActivity" 51 android:exported="true" 52 android:targetActivity=".TestActivity" 53 /> 54 <activity android:name=".ResumeWhilePausingActivity" 55 android:allowEmbedded="true" 56 android:resumeWhilePausing="true" 57 android:taskAffinity="" 58 android:exported="true" 59 /> 60 <activity android:name=".ResizeableActivity" 61 android:resizeableActivity="true" 62 android:allowEmbedded="true" 63 android:exported="true" 64 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|colorMode|density|touchscreen" 65 /> 66 <activity android:name=".NonResizeableActivity" 67 android:resizeableActivity="false" 68 android:exported="true" 69 /> 70 <activity android:name=".DockedActivity" 71 android:resizeableActivity="true" 72 android:exported="true" 73 android:taskAffinity="nobody.but.DockedActivity" 74 /> 75 <activity android:name=".TranslucentActivity" 76 android:theme="@android:style/Theme.Translucent.NoTitleBar" 77 android:resizeableActivity="true" 78 android:taskAffinity="nobody.but.TranslucentActivity" 79 android:exported="true" 80 /> 81 <activity android:name=".DialogWhenLargeActivity" 82 android:exported="true" 83 android:theme="@android:style/Theme.DeviceDefault.Light.DialogWhenLarge" 84 /> 85 <activity android:name=".NoRelaunchActivity" 86 android:resizeableActivity="true" 87 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|fontScale|colorMode|density|touchscreen" 88 android:exported="true" 89 android:taskAffinity="nobody.but.NoRelaunchActivity" 90 /> 91 <activity android:name=".SlowCreateActivity" 92 android:resizeableActivity="true" 93 android:exported="true" 94 /> 95 <activity android:name=".LaunchingActivity" 96 android:resizeableActivity="true" 97 android:exported="true" 98 android:taskAffinity="nobody.but.LaunchingActivity" 99 /> 100 <!-- 101 * This activity should have same affinity as LaunchingActivity, because we're using it to 102 * check activities being launched into the same task. 103 --> 104 <activity android:name=".AltLaunchingActivity" 105 android:resizeableActivity="true" 106 android:exported="true" 107 android:taskAffinity="nobody.but.LaunchingActivity" 108 /> 109 <activity android:name=".PipActivity" 110 android:resizeableActivity="false" 111 android:supportsPictureInPicture="true" 112 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 113 android:exported="true" 114 android:taskAffinity="nobody.but.PipActivity" 115 /> 116 <activity android:name=".PipActivity2" 117 android:resizeableActivity="false" 118 android:supportsPictureInPicture="true" 119 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 120 android:exported="true" 121 android:taskAffinity="nobody.but.PipActivity2" 122 /> 123 <activity android:name=".PipOnStopActivity" 124 android:resizeableActivity="false" 125 android:supportsPictureInPicture="true" 126 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 127 android:exported="true" 128 android:taskAffinity="nobody.but.PipOnStopActivity" 129 /> 130 <activity android:name=".PipActivityWithSameAffinity" 131 android:resizeableActivity="false" 132 android:supportsPictureInPicture="true" 133 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 134 android:exported="true" 135 android:taskAffinity="nobody.but.PipActivitySameAffinity" 136 /> 137 <activity android:name=".AlwaysFocusablePipActivity" 138 android:theme="@style/Theme.Transparent" 139 android:resizeableActivity="false" 140 android:supportsPictureInPicture="true" 141 androidprv:alwaysFocusable="true" 142 android:exported="true" 143 android:taskAffinity="nobody.but.AlwaysFocusablePipActivity" 144 /> 145 <activity android:name=".LaunchIntoPinnedStackPipActivity" 146 android:resizeableActivity="false" 147 androidprv:alwaysFocusable="true" 148 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 149 android:exported="true" 150 /> 151 <activity android:name=".LaunchPipOnPipActivity" 152 android:resizeableActivity="false" 153 android:supportsPictureInPicture="true" 154 android:taskAffinity="nobody.but.LaunchPipOnPipActivity" 155 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 156 android:exported="true" 157 /> 158 <activity android:name=".LaunchEnterPipActivity" 159 android:resizeableActivity="false" 160 android:supportsPictureInPicture="true" 161 androidprv:alwaysFocusable="true" 162 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 163 android:exported="true" 164 /> 165 <activity android:name=".FreeformActivity" 166 android:resizeableActivity="true" 167 android:taskAffinity="nobody.but.FreeformActivity" 168 android:exported="true" 169 /> 170 <activity android:name=".TopLeftLayoutActivity" 171 android:resizeableActivity="true" 172 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 173 android:exported="true"> 174 <layout android:defaultWidth="240dp" 175 android:defaultHeight="160dp" 176 android:gravity="top|left" 177 android:minWidth="100dp" 178 android:minHeight="80dp" 179 /> 180 </activity> 181 <activity android:name=".TopRightLayoutActivity" 182 android:resizeableActivity="true" 183 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 184 android:exported="true"> 185 <layout android:defaultWidth="50%" 186 android:defaultHeight="70%" 187 android:gravity="top|right" 188 android:minWidth="50dp" 189 android:minHeight="80dp" 190 /> 191 </activity> 192 <activity android:name=".BottomLeftLayoutActivity" 193 android:resizeableActivity="true" 194 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 195 android:exported="true"> 196 <layout android:defaultWidth="50%" 197 android:defaultHeight="70%" 198 android:gravity="bottom|left" 199 android:minWidth="50dp" 200 android:minHeight="80dp" 201 /> 202 </activity> 203 <activity android:name=".BottomRightLayoutActivity" 204 android:resizeableActivity="true" 205 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 206 android:exported="true"> 207 <layout android:defaultWidth="240dp" 208 android:defaultHeight="160dp" 209 android:gravity="bottom|right" 210 android:minWidth="100dp" 211 android:minHeight="80dp" 212 /> 213 </activity> 214 <activity android:name=".TurnScreenOnActivity" 215 android:exported="true" 216 /> 217 <activity android:name=".TurnScreenOnDismissKeyguardActivity" 218 android:exported="true" 219 /> 220 <activity android:name=".SingleTaskActivity" 221 android:exported="true" 222 android:launchMode="singleTask" 223 /> 224 <activity android:name=".SingleInstanceActivity" 225 android:exported="true" 226 android:launchMode="singleInstance" 227 /> 228 <activity android:name=".TrampolineActivity" 229 android:exported="true" 230 android:theme="@android:style/Theme.NoDisplay" 231 /> 232 <activity android:name=".BroadcastReceiverActivity" 233 android:resizeableActivity="true" 234 android:exported="true" 235 /> 236 <activity-alias android:enabled="true" 237 android:exported="true" 238 android:name=".EntryPointAliasActivity" 239 android:targetActivity=".TrampolineActivity" > 240 </activity-alias> 241 <activity android:name=".BottomActivity" 242 android:exported="true" 243 android:theme="@style/NoPreview" 244 /> 245 <activity android:name=".TopActivity" 246 android:process=".top_process" 247 android:exported="true" 248 android:theme="@style/NoPreview" 249 /> 250 <activity android:name=".TranslucentTopActivity" 251 android:process=".top_process" 252 android:exported="true" 253 android:theme="@style/TranslucentTheme" 254 /> 255 <!-- An animation test with an explicitly opaque theme, overriding device defaults, as the 256 animation background being tested is not used in translucent activities. --> 257 <activity android:name=".AnimationTestActivity" 258 android:theme="@style/OpaqueTheme" 259 android:exported="true" 260 /> 261 <activity android:name=".VirtualDisplayActivity" 262 android:resizeableActivity="true" 263 android:exported="true" 264 android:taskAffinity="nobody.but.VirtualDisplayActivity" 265 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboardHidden" 266 /> 267 <activity android:name=".ShowWhenLockedActivity" 268 android:exported="true" 269 /> 270 <activity android:name=".ShowWhenLockedWithDialogActivity" 271 android:exported="true" 272 /> 273 <activity android:name=".ShowWhenLockedDialogActivity" 274 android:exported="true" 275 android:theme="@android:style/Theme.Material.Dialog" 276 /> 277 <activity android:name=".ShowWhenLockedTranslucentActivity" 278 android:exported="true" 279 android:theme="@android:style/Theme.Translucent" 280 /> 281 <activity android:name=".DismissKeyguardActivity" 282 android:exported="true" 283 /> 284 <activity android:name=".DismissKeyguardMethodActivity" 285 android:exported="true" 286 /> 287 <activity android:name=".WallpaperActivity" 288 android:exported="true" 289 android:theme="@style/WallpaperTheme" 290 /> 291 <activity android:name=".InputMethodTestActivity" 292 android:exported="true" /> 293 <activity android:name=".KeyguardLockActivity" 294 android:exported="true" 295 /> 296 <activity android:name=".LogConfigurationActivity" 297 android:exported="true" 298 android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout" 299 /> 300 <activity android:name=".PortraitOrientationActivity" 301 android:exported="true" 302 android:screenOrientation="portrait" 303 android:documentLaunchMode="always" 304 /> 305 <activity android:name=".LandscapeOrientationActivity" 306 android:exported="true" 307 android:screenOrientation="landscape" 308 android:documentLaunchMode="always" 309 /> 310 <activity android:name=".MoveTaskToBackActivity" 311 android:exported="true" 312 android:launchMode="singleInstance" 313 /> 314 <activity android:name=".NightModeActivity" 315 android:exported="true" 316 android:configChanges="uiMode" 317 /> 318 <activity android:name=".FontScaleActivity" 319 android:exported="true" 320 /> 321 <activity android:name=".FontScaleNoRelaunchActivity" 322 android:exported="true" 323 android:configChanges="fontScale" 324 /> 325 <activity android:name=".DisplayAccessCheckEmbeddingActivity" 326 android:allowEmbedded="true" 327 android:exported="true"/> 328 <receiver 329 android:name=".LaunchBroadcastReceiver" 330 android:enabled="true" 331 android:exported="true" > 332 <intent-filter> 333 <action android:name="android.server.wm.app.LAUNCH_BROADCAST_ACTION"/> 334 <action android:name="android.server.wm.app.ACTION_TEST_ACTIVITY_START"/> 335 </intent-filter> 336 </receiver> 337 338 <activity android:name=".AssistantActivity" 339 android:exported="true" 340 android:screenOrientation="locked" /> 341 <activity android:name=".TranslucentAssistantActivity" 342 android:exported="true" 343 android:theme="@style/Theme.Transparent" /> 344 <activity android:name=".LaunchAssistantActivityFromSession" 345 android:taskAffinity="nobody.but.LaunchAssistantActivityFromSession" 346 android:exported="true" /> 347 <activity android:name=".LaunchAssistantActivityIntoAssistantStack" 348 android:taskAffinity="nobody.but.LaunchAssistantActivityIntoAssistantStack" 349 android:exported="true" /> 350 351 <service android:name=".AssistantVoiceInteractionService" 352 android:permission="android.permission.BIND_VOICE_INTERACTION" 353 android:exported="true"> 354 <meta-data android:name="android.voice_interaction" 355 android:resource="@xml/interaction_service" /> 356 <intent-filter> 357 <action android:name="android.service.voice.VoiceInteractionService" /> 358 </intent-filter> 359 </service> 360 361 <service android:name=".AssistantVoiceInteractionSessionService" 362 android:permission="android.permission.BIND_VOICE_INTERACTION" 363 android:exported="true" /> 364 365 <activity android:name=".SplashscreenActivity" 366 android:taskAffinity="nobody.but.SplashscreenActivity" 367 android:theme="@style/SplashscreenTheme" 368 android:exported="true" /> 369 370 371 <activity android:name=".SwipeRefreshActivity" 372 android:exported="true" /> 373 374 <activity android:name=".NoHistoryActivity" 375 android:noHistory="true" 376 android:exported="true" /> 377 378 <activity android:name=".ShowWhenLockedAttrActivity" 379 android:showWhenLocked="true" 380 android:exported="true" /> 381 382 <activity android:name=".ShowWhenLockedAttrRemoveAttrActivity" 383 android:showWhenLocked="true" 384 android:exported="true" /> 385 386 <activity android:name=".ShowWhenLockedAttrWithDialogActivity" 387 android:showWhenLocked="true" 388 android:exported="true" /> 389 390 <activity android:name=".InheritShowWhenLockedAddActivity" 391 android:exported="true" /> 392 393 <activity android:name=".InheritShowWhenLockedAttrActivity" 394 android:inheritShowWhenLocked="true" 395 android:exported="true" /> 396 397 <activity android:name=".InheritShowWhenLockedRemoveActivity" 398 android:inheritShowWhenLocked="true" 399 android:exported="true" /> 400 401 <activity android:name=".NoInheritShowWhenLockedAttrActivity" 402 android:exported="true" /> 403 404 <activity android:name=".ShowWhenLockedAttrImeActivity" 405 android:showWhenLocked="true" 406 android:exported="true" /> 407 408 <activity android:name=".ShowWhenLockedAttrRotationActivity" 409 android:showWhenLocked="true" 410 android:configChanges="orientation|screenSize" 411 android:exported="true" /> 412 413 <activity android:name=".ToastActivity" 414 android:exported="true"/> 415 416 <activity android:name=".TurnScreenOnAttrActivity" 417 android:turnScreenOn="true" 418 android:exported="true" /> 419 420 <activity android:name=".TurnScreenOnShowOnLockActivity" 421 android:showWhenLocked="true" 422 android:turnScreenOn="true" 423 android:exported="true" /> 424 425 <activity android:name=".TurnScreenOnAttrRemoveAttrActivity" 426 android:turnScreenOn="true" 427 android:showWhenLocked="true" 428 android:exported="true" /> 429 430 <activity android:name=".TurnScreenOnSingleTaskActivity" 431 android:turnScreenOn="true" 432 android:showWhenLocked="true" 433 android:exported="true" 434 android:launchMode="singleTask" /> 435 436 <activity android:name=".TurnScreenOnAttrDismissKeyguardActivity" 437 android:turnScreenOn="true" 438 android:exported="true"/> 439 440 <activity android:name=".TurnScreenOnWithRelayoutActivity" 441 android:exported="true"/> 442 443 <activity android:name=".RecursiveActivity" 444 android:exported="true"/> 445 446 <activity android:name=".LaunchTestOnDestroyActivity" 447 android:exported="true"/> 448 449 <activity android:name=".ReportFullyDrawnActivity" 450 android:exported="true"/> 451 452 <activity android:name=".NoDisplayActivity" 453 android:exported="true" 454 android:theme="@android:style/Theme.NoDisplay"/> 455 456 <activity android:name=".SingleTaskInstanceDisplayActivity" 457 android:exported="true" /> 458 459 <activity android:name=".SingleTaskInstanceDisplayActivity2" 460 android:exported="true" /> 461 462 <activity android:name=".SingleTaskInstanceDisplayActivity3" 463 android:exported="true" 464 android:launchMode="singleInstance" /> 465 466 <service 467 android:name=".LiveWallpaper" 468 android:permission="android.permission.BIND_WALLPAPER"> 469 <intent-filter> 470 <action android:name="android.service.wallpaper.WallpaperService"> 471 </action> 472 </intent-filter> 473 <meta-data 474 android:name="android.service.wallpaper" 475 android:resource="@xml/wallpaper"> 476 </meta-data> 477 </service> 478 479 <!-- Disable home activities by default or it may disturb other tests by 480 showing ResolverActivity when start home activity --> 481 <activity-alias android:name=".HomeActivity" 482 android:targetActivity=".TestActivity" 483 android:enabled="false" 484 android:exported="true"> 485 <intent-filter> 486 <action android:name="android.intent.action.MAIN"/> 487 <category android:name="android.intent.category.HOME"/> 488 <category android:name="android.intent.category.DEFAULT"/> 489 </intent-filter> 490 </activity-alias> 491 492 <activity-alias android:name=".SecondaryHomeActivity" 493 android:targetActivity=".TestActivity" 494 android:enabled="false" 495 android:exported="true"> 496 <intent-filter> 497 <action android:name="android.intent.action.MAIN"/> 498 <category android:name="android.intent.category.HOME"/> 499 <category android:name="android.intent.category.SECONDARY_HOME"/> 500 <category android:name="android.intent.category.DEFAULT"/> 501 </intent-filter> 502 </activity-alias> 503 504 <activity-alias android:name=".SingleHomeActivity" 505 android:targetActivity=".SingleInstanceActivity" 506 android:enabled="false" 507 android:exported="true"> 508 <intent-filter> 509 <action android:name="android.intent.action.MAIN"/> 510 <category android:name="android.intent.category.HOME"/> 511 <category android:name="android.intent.category.DEFAULT"/> 512 </intent-filter> 513 </activity-alias> 514 515 <activity-alias android:name=".SingleSecondaryHomeActivity" 516 android:targetActivity=".SingleInstanceActivity" 517 android:enabled="false" 518 android:exported="true"> 519 <intent-filter> 520 <action android:name="android.intent.action.MAIN"/> 521 <category android:name="android.intent.category.HOME"/> 522 <category android:name="android.intent.category.SECONDARY_HOME"/> 523 <category android:name="android.intent.category.DEFAULT"/> 524 </intent-filter> 525 </activity-alias> 526 527 <service android:name="com.android.cts.verifier.vr.MockVrListenerService" 528 android:exported="true" 529 android:enabled="true" 530 android:permission="android.permission.BIND_VR_LISTENER_SERVICE"> 531 <intent-filter> 532 <action android:name="android.service.vr.VrListenerService" /> 533 </intent-filter> 534 </service> 535 </application> 536</manifest> 537 538