commit | 971c6c13156d33f48812be53fbe26a14e7b6822f | [log] [tgz] |
---|---|---|
author | Keun young Park <keunyoung@google.com> | Wed Jun 08 14:00:57 2022 -0700 |
committer | Keun young Park <keunyoung@google.com> | Wed Jun 08 14:11:52 2022 -0700 |
tree | 339a015b31e0b455acd97b02747c53927832b1ea | |
parent | 35d070c76d9ed56e32bdcd7ec833d16b291a5a8f [diff] |
Retain user Context as local val for the test duration - Previous impl did not retain as local variable and that can lead into the created Context GCed ranmdoly during the test and that leads into local broadcast receiver cleared inside the process. - Keep it as local val for the test duration so that it is not GCed. Bug: 234014686 Test: atest android.content.pm.cts.PackageManagerShellCommandMultiUserTest Change-Id: Icd9a67ed4b4ee9f2d4077a8cf2c8259090f7be2a