summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Ats Jenk <atsjenk@google.com> 2024-10-23 16:09:33 -0700
committer Ats Jenk <atsjenk@google.com> 2024-10-24 14:14:26 -0700
commitd78ec6b3f82215facb34e8cc7f1105a852284d33 (patch)
treea311abef185d9a13a070113f81a89e815782819a /libs/androidfw/StringPool.cpp
parent10b6512bcbcae066cc6f90527dcd6110e21cf6b3 (diff)
Use a weakref hashmap to store controllers
Protects against memory leaks. TaskViewTaskController adds itself to the map when the object is created. Bug: 369995920 Test: atest TaskViewTransitionsTest Test: revert change to fix memory leak with BubbleTaskView cleanup, trigger a bubble and swipe to dismiss without opening it, observe from dump that TaskViewTransitions is holding on to the TaskViewContorller for that task, trigger a gc for systemui, observe that after gc the TaskViewController is cleared up from TaskViewTransitions Flag: com.android.wm.shell.enable_task_view_controller_cleanup Change-Id: I180f432e6de5200b63ab17c09504b8ecc32a8292
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions