commit | c8593984523978da380181cd15c3c496b9a5a65d | [log] [tgz] |
---|---|---|
author | Jared Duke <jdduke@google.com> | Wed Mar 02 13:10:19 2022 -0800 |
committer | Jared Duke <jdduke@google.com> | Wed Mar 02 13:10:19 2022 -0800 |
tree | 4b9c6a623b48ffffce70ee7f877c1efd6eb489e9 | |
parent | aa0ee6502b89864f03a48180abe7b61cc074d1da [diff] |
Avoid unnecessary Clock GC churn Avoid recreating SimpleDateFormat and DateTimePatternGenerator objects for each clock update. While the allocation sizes are relatively small, they are continuous, and potentially frequent when seconds are shown. Test: atest SystemUITests:StatusBarTest + visual inspection Bug: 204187068 Change-Id: Ia267c6df44002328c6c32115326dc092ee89393f