commit | 0a7550ba5542f569e328bae93ff2b931cd65160e | [log] [tgz] |
---|---|---|
author | Songchun Fan <schfan@google.com> | Wed Feb 09 01:37:21 2022 +0000 |
committer | Songchun Fan <schfan@google.com> | Sun Feb 13 20:18:05 2022 +0000 |
tree | decfc1f73940eb276194e215acafd2709b4f2d5b | |
parent | db33f67f8ddbfb29acbe6fb57763cc2f029ec83b [diff] |
[pm] use snapshot instead of deep-copy of PackageUserState When a snapshot of PackageSetting is requested, use the snapshot of PackageUserStateImpl in the copy constructor of PackageSetting. Otherwise, directly use the reference to avoid the overhead of deep copying. BUG: 218337678 Test: manual Change-Id: I8f6b8bfbb5066c1b3ea604178c923725636eb1b3