diff options
| author | Kevin Han <kevhan@google.com> | 2019-12-13 16:28:54 -0800 |
|---|---|---|
| committer | Kevin Han <kevhan@google.com> | 2020-01-10 15:18:37 -0800 |
| commit | 0f98a6d1141be3f1fbc7ff308bf2bfa7b14cc989 (patch) | |
| tree | b1f2ceaa73b3ca67699621b142599258de32c1d8 /opengl/tests/gl_basic/gl_basic.cpp | |
| parent | c69dd0b1d20f26adeff5f15641f2c8fe1e7931ca (diff) | |
Convert NotificationContentInflater to singleton
Convert NotificationContentInflater into a singleton since it has
almost no state, making it easier to inject and re-use.
Move the only per-row state it has, cached remote views, to a separate
class NotifRemoteViewCacheImpl that manages the lifetime of the cached
remote views based off the notification's lifecycle. This has the added
benefit of being re-usable for content recycling later on.
Bug: 145749521
Test: atest SystemUITests
Test: atest NotificationContentInflaterTest w/o @Suppress locally
Test: smoke test (add, remove, cancel, expand, groups, HUN)
Change-Id: I7c05b19a0e12bced02bfdaa21e0243f35d64029f
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
