diff options
| author | 2022-09-16 16:26:18 -0700 | |
|---|---|---|
| committer | 2022-09-28 00:08:26 +0000 | |
| commit | 23fbfb82b4a3e8609c4e8f2d61d33eab5ef6d5c0 (patch) | |
| tree | b5dc30680885749e0b6df6d8fcb37f426c225c56 /libs/androidfw/PosixUtils.cpp | |
| parent | d274a8df5dba2330f6bfe052151911dc2304c7d7 (diff) | |
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
Diffstat (limited to 'libs/androidfw/PosixUtils.cpp')
0 files changed, 0 insertions, 0 deletions