diff options
| author | 2023-11-08 12:07:11 -0500 | |
|---|---|---|
| committer | 2023-11-08 14:13:13 -0500 | |
| commit | 670412c1483ba7ccd4bb23fbcf4159b129449065 (patch) | |
| tree | c4f2048ff88a9c0e2b86dc9143f5825dec13f2d1 /libs/androidfw/FileStream.cpp | |
| parent | 3129fc5b55ca9238d212152409dd5c3daeb4ec17 (diff) | |
Update dream state controller to hold weak ref to callbacks.
This avoids memory leaks caused by callers of this state controller not
properly removing callbacks.
This change also creates a WeakReferenceFactory util so that weak
references may be cleared in tests.
Bug: 309396474
Flag: NONE
Test: atest DreamOverlayStateControllerTest
Change-Id: If8f3331a8d943d18bb305c73c8bc29f4777cb97a
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions