summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-03-07 14:22:38 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-03-17 16:49:57 +0800
commit4c03bb0cbbdf92a336a3dd2edd813ef00d8fc41a (patch)
tree2ef27ccd78e35cc6aa1ab7b4805ca3e22ec09992 /libs/androidfw/AttributeResolution.cpp
parentb1c7853e29b761d01ef8ed2e7cb4d445b0aeca52 (diff)
Fix WMS instance leakage of WmTests
It may be common to register a non-static inner class object to DeviceConfig.addOnPropertiesChangedListener: WindowManagerConstants HighRefreshRateDenylist SplashScreenExceptionList WindowOrientationListener.OrientationSensorJudge That may hold reference chain to WindowManagerService. It may be annoying to add test-only code to dispose them once a new path is added, so hook the registration to make sure that all listeners can be released after a test method is finished. For test using FakeDeviceConfig, it only registers to the local fake instance, so it doesn't need to dispose. Bug: 219640050 Test: atest SystemServicesTestRuleTest Change-Id: Ic06d85978886caaea3a9eb123a7a59712b58bb92
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions