summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Maurice Lam <yukl@google.com> 2021-12-14 22:58:30 -0800
committer Maurice Lam <yukl@google.com> 2021-12-22 16:33:25 -0800
commita4ed6819c8f71d9a1e84d66e4f894557ee859d69 (patch)
tree3bd502fea7330177fefa7f254d214670f8146993 /libs/androidfw/StringPool.cpp
parent57cd80185e846defabfc710080a19adfb798efb6 (diff)
Implement VirtualDevice's device policy enforcement
The policy defined in DevicePolicyManager.getNearbyAppStreamingPolicy is implemented in this change. The policy in each profile defines its own behavior. For example, if a work profile sets the policy as ENABLED, activities for the work profile can be started on virtual displays created for the parent (personal) profile as well. If the policy is SAME_MANAGED_ACCOUNT_ONLY, VirtualDeviceManager will compare whether the UserHandle associated with the activity is listed as "usersWithMatchingAccounts", which is supplied by the virtual device owner. If usersWithMatchingAccounts is not given, it is treated the same way as an empty list, in which case SAME_MANAGED_ACCOUNT_ONLY policy has the same behavior as DISABLED. Bug: 179910177 Test: To be added in ag/15781910 Change-Id: I0d89aaafecdc579482a38ee8c0bff0cc300d4f41
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions