Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 23fbfb82 authored by Felipe Leme's avatar Felipe Leme
Browse files

Changes AM.startUserInBgOnSecondaryDisplay() to check if display is valid.

Also adds APIs to list the valid displays:
- @TestApi AM getSecondaryDisplayIdsForStartingBackgroundUsers()
- cmd activity list-secondary-displays-for-starting-users
- system property
  (fw.secondary_display_for_starting_users_for_testing_purposes)
  to override it for testing purposes

Test: m -j update-api
Test: adb shell cmd activity list-secondary-displays-for-starting-users
Test: atest MultipleUsersOnMultipleDisplaysTest # CTS
Test: atest ActivityManagerServiceTest ActivityManagerServiceInjectorTest # unit

Bug: 239982558

Change-Id: Iaf5c83344075cce9985885a3f9359ebbd0174d41
parent d274a8df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment