summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Jigar Thakkar <jigarthakkar@google.com> 2024-02-06 00:09:41 +0000
committer Jigar Thakkar <jigarthakkar@google.com> 2024-03-05 17:11:40 +0000
commit4e9eb5f76ab0807289ed1e18e56ecf1facffe852 (patch)
tree03304fe0bad46e823f3b8072ff5fc982c5e526d0 /libs/input/SpriteController.cpp
parent7f8a7bfd8b8b64f1847634d06bae65c60cc830ac (diff)
Block private space creation based on device conditions
This change adds logic to disable private space creation when the below mentioned device conditions are met: - Device has low RAM (based on ActivityManager.isLowRamDevice) - Device is a TV, Automotive devices, or a Watch - The parent user has retriciton DISALLOW_ADD_PRIVATE_PROFILE - The parent user is non-system user The change also adds a hidden API (canAddPrivateProfile) that checks for all the above mentioned conditions. This API can be used by callers to check if the private space creation is supported on the device and parent user. Test: atest UserManagerServiceTest atest UserManagerTest Bug: 290333800 Change-Id: Iea123c2e4646980eca6253b2f063799d92320b1a
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions