diff options
author | Bookatz <bookatz@google.com> | 2019-04-16 19:41:28 -0700 |
---|---|---|
committer | Bookatz <bookatz@google.com> | 2019-04-22 22:56:38 -0700 |
commit | 2b5a601f15e4709eb9e79c7fd831242e3d449531 (patch) | |
tree | ac4ab4b5037ac7a34029e89491beb413eb106ab8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0ba84f8f24dc14850ff7fc7e512b52ff1d6d1ac1 (diff) |
pm set-home-activity waits until completion
PackageManagerShellActivity.runSetHomeActivity used to be synchronous,
but in Q the underlying calls became asynchronous. This cl:
1. changes the shell command to use RoleManager's addRoleHolderAsUser,
instead of calling into PackageManagerService.
2. uses a RemoteCallback to restore the wait-until-complete aspect of
the shell command.
3. consequently, the shell command now accepts either a package name
or a component, but either way, the component will be determined
automatically from the package.
(This is an alternative to ag/6989721; see comments there for
motivation)
Fixes: 128686703
Fixes: 130167856
Test: atest CtsShortcutHostTestCases CtsShortcutManagerTestCases
(.ShortcutManagerThrottlingTest#testActivityUnthrottled fails, but that
is presumably unrelated)
Test: atest android.content.pm.cts.shortcutmanager.ShortcutManagerLauncherApiTest
Test: atest android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest
Change-Id: Ibce6282bf401ca471469448262ea87cfc504cf4f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions