Don't destroy the FalsingManager in Wallet.
When FalsingManager#cleanupInternal is called, it no longer produces
valid results. With this change, we check that the FalsingManager
is not used after being destroyed, and also avoid destroying it in
WalletScreenController.
Fixes: 188174214
Test: manual
Change-Id: I0ce67de5a326b56dee11c1d63c1d592640c0713d
diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp
index 4f587eb..b357a94 100644
--- a/packages/SystemUI/Android.bp
+++ b/packages/SystemUI/Android.bp
@@ -105,11 +105,21 @@
filegroup {
name: "SystemUI-tests-utils",
srcs: [
+ "tests/src/com/android/systemui/SysuiTestCase.java",
+ "tests/src/com/android/systemui/TestableDependency.java",
+ "tests/src/com/android/systemui/classifier/FalsingManagerFake.java",
"tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
"tests/src/com/android/systemui/statusbar/RankingBuilder.java",
"tests/src/com/android/systemui/statusbar/SbnBuilder.java",
- "tests/src/com/android/systemui/util/concurrency/FakeExecutor.java",
- "tests/src/com/android/systemui/util/time/FakeSystemClock.java",
+ "tests/src/com/android/systemui/SysuiTestableContext.java",
+ "tests/src/com/android/systemui/utils/leaks/BaseLeakChecker.java",
+ "tests/src/com/android/systemui/utils/leaks/LeakCheckedTest.java",
+ "tests/src/com/android/systemui/**/Fake*.java",
+ "tests/src/com/android/systemui/**/Fake*.kt",
+ ],
+ exclude_srcs: [
+ "tests/src/com/android/systemui/**/*Test.java",
+ "tests/src/com/android/systemui/**/*Test.kt",
],
path: "tests/src",
}