Commit Graph

6 Commits

Author SHA1 Message Date
Evan Laird
1bb401dd88 Re-internalize MobileState and State from SettingsLib
ConnectivityState (nee State) lived in SettingsLib because of the fact
that MobileMappings needed the MobileIconGroup class, which lived inside
of SignalIcon.java. The whole thing is a bit messy, but this CL moves
the state objects back into the connectivity package where they belong.

Also move MobileState and WifiState into their own kotlin classes.

Bug: 197851948
Test: atest SystemUITests
Change-Id: I2997c66dbffb5e44b8f53b9020cdeb8b614cea3b
2021-11-08 18:11:36 +00:00
Evan Laird
1b3972d7f8 Create QsInfo and SbInfo boxes for MobileSignalController
Simplify MobileSignalController#notifyListeners() by splitting the QS
and SB portions of the method into their own *Info objects and moving
those calls out to their own methods.

Also adds mNetworkToIconLookup, mProviderModelBehavior, and
mProviderModelSetting to the MobileSignalController logs.

Test: dumpsys
Bug 197851948

Change-Id: Ibdaec230c4a407d23804fb8250809cc877a7f183
Merged-In: Ibdaec230c4a407d23804fb8250809cc877a7f183
2021-09-23 15:13:23 -04:00
Evan Laird
d145f34cb1 Move some logic to MobileState
Some variables were being created in
MobileSignalController#notifyListeners() that were just an aggregation
of a few fields on MobileState. This CL replaces those with method
calls on MobileState to clean things up and make them loggable from the
state.

Test: atest SystemUITests
Test: m -j RunSettingsLibRoboTests ROBOTEST_FILTER="com.android.settingslib.MobileStateTest"
Bug: 197851948
Change-Id: I06d5e56923897cddb53189359dc9444cdfee6e78
Merged-In: I06d5e56923897cddb53189359dc9444cdfee6e78
2021-09-23 15:13:23 -04:00
Evan Laird
0b90863da9 Remove qsDataType since it was the same as dataType
This resolves a TODO and removes unused fields

Test: atest SystemUITests
Bug: 197851948
Change-Id: I5e2eb4896966516f34980863e18b99368f395b20
Merged-In: I5e2eb4896966516f34980863e18b99368f395b20
2021-09-23 15:13:23 -04:00
Evan Laird
379fc8cd51 Remove isWide from MobileIconGroup
This field was unused

Bug: 197851948
Test: atest SystemUITests
Change-Id: I116b5f639f601a99349ec60246f42d1f8ab83c6d
Merged-In: I116b5f639f601a99349ec60246f42d1f8ab83c6d
2021-09-23 15:13:23 -04:00
yinxu
865f44be76 Extract the SysUI Icons and Strings
Bug: 174582703
Test: Manual tests
Change-Id: I41f7043dc24ae9d091ae6a29d3be2d2ca3801b72
2020-12-11 13:47:35 -08:00