commit | eeb6051d91ae3c99b9a8f229a5211d02b2172926 | [log] [tgz] |
---|---|---|
author | Ben Murdoch <benm@google.com> | Wed Jul 31 11:38:00 2024 +0000 |
committer | Ben Murdoch <benm@google.com> | Wed Jul 31 11:40:19 2024 +0000 |
tree | 21209c3c360809ba307ef6ef429745a02dd92506 | |
parent | ab4779e9007e392bb11212adf1739d053c0db45d [diff] |
Fix ModifierShortcutManagerTests on AOSP build. Stub PackageManager.resolveActivity() in the tests to always return an activity, even if there isn't something installed that could handle it. This makes the test independent of the state of the device which may have some typical apps for handling the shortcuts missing. Fixes: 356277860 Flag: TEST_ONLY Test: atest WmTests:com.android.server.policy.ModifierShortcutManagerTests Change-Id: Ie7d41a29f33d4c095f71472327523ddbe2bb7efe