[Sb refactor] Mobile icon view model logging
Add logging to the mobile icon view models. In order to keep the logs from duplicating, this CL also adds: 1. The reuse of a single instance of the MobileIconsViewModel (top-level), which 2. Caches the individual MobileIconViewModel common implementations on a per-subscription basis. There is now a 1-1 correspondence of the common mobile icon view model implementations and the number of subscriptions. Also updated the MobileIconViewModelTest and LocationBasedMobileIconViewModelTest classes to use the TestScope method of running tests. Test: adb logcat | grep SbConnectivity Test: tests in tests/src/com/android/systemui/statusbar/pipeline/mobile/* Bug: 238425913 Change-Id: I5157cdcfb054d4629db0f9b11da8b583760ce471
Loading
Please register or sign in to comment