commit | ec5f7d16253496258f04a16038b2e578532750a7 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Aug 08 09:15:04 2018 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed Sep 12 14:02:11 2018 -0600 |
tree | 0572947f8a02ebe034a83dd60283cd951b85cbfd | |
parent | f0ed77694f333be8581d7a00cdfd0a5129b536de [diff] |
Support more createPackageContextAsUser() users. We created this API to make it easy to pass a given UserHandle into all Managers obtained from a given Context, which works great for "normal" users, but we should also support special users like ALL and CURRENT. Also add an AutoCloseable marker to make try-with-resources easier. Bug: 112153259 Test: atest android.content.cts.ContextTest Change-Id: I261dfcc5cfdfc76bda5d70181785e11c2715a558