summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorMichal Brzezinski <brzezinski@google.com>2022-01-20 14:00:42 +0000
committerMichal Brzezinski <brzezinski@google.com>2022-01-21 15:31:03 +0000
commit809b6fd75d122be5bc8c9572b308228fecbc1e8d (patch)
tree27f6b886008ce8fab30e7bc1267bb45f72bd4416 /core/java/android/widget/TextView.java
parent7b422dc1a1a4fdfac47c38587197e1d478981e0b (diff)
Fixing leaks in WindowMagnificationControllerTest
The main part of this fix is always using field of mWindowMagnificationController because it's always properly cleaned up in @After. Lack of cleaning in one test was causing the leak. Additionally, I switched mock of Handler to FakeHandler - this alone fixes the problem but only by hiding the symptom. Anyway it's likely safer to use fake instead of mock and errors should not spill to other tests. As an extra touch in the process this CL overrides default animator to use 0 time instead of the default one which takes some real time. Fixes: 214021969 Test: adb shell am instrument -w -e \ class com.android.systemui.accessibility.WindowMagnificationControllerTest,com.android.systemui.controls.management.ControlsRequestDialogTest \ com.android.systemui.tests/androidx.test.runner.AndroidJUnitRunner Change-Id: I9326e48dccd93acc82e271c9eb7f137090c83dd3
Diffstat (limited to 'core/java/android/widget/TextView.java')
0 files changed, 0 insertions, 0 deletions