From a2307ed7b170c6bafe5c033bd2a9e6c9ca7429e4 Mon Sep 17 00:00:00 2001 From: Caitlin Shkuratov Date: Mon, 30 Jan 2023 21:23:46 +0000 Subject: [PATCH] [SB Refactor] Remove "wifi" from the wifi table column names. The logs are already put into the "WifiTableLog", so we don't need to include "wifi" in all the column names too. Bug: 238425913 Test: manual: Dumped WifiTableLog and verified new column names Change-Id: I36555324c6f89a0981aecbd52a84d1273297ea02 --- .../wifi/data/repository/prod/WifiRepositoryImpl.kt | 6 +++--- .../systemui/statusbar/pipeline/wifi/ui/model/WifiIcon.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImpl.kt b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImpl.kt index 86690479f6794..c45b420780b91 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImpl.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/WifiRepositoryImpl.kt @@ -95,7 +95,7 @@ constructor( .logDiffsForTable( wifiTableLogBuffer, columnPrefix = "", - columnName = "isWifiEnabled", + columnName = "isEnabled", initialValue = wifiManager.isWifiEnabled, ) .stateIn( @@ -141,7 +141,7 @@ constructor( .logDiffsForTable( wifiTableLogBuffer, columnPrefix = "", - columnName = "isWifiDefault", + columnName = "isDefault", initialValue = false, ) .stateIn(scope, started = SharingStarted.WhileSubscribed(), initialValue = false) @@ -212,7 +212,7 @@ constructor( .distinctUntilChanged() .logDiffsForTable( wifiTableLogBuffer, - columnPrefix = "wifiNetwork", + columnPrefix = "", initialValue = WIFI_NETWORK_DEFAULT, ) // There will be multiple wifi icons in different places that will frequently diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/model/WifiIcon.kt b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/model/WifiIcon.kt index e491d2bbf0d66..094bcf96eef98 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/model/WifiIcon.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/model/WifiIcon.kt @@ -53,4 +53,4 @@ sealed interface WifiIcon : Diffable { } } -private const val COL_ICON = "wifiIcon" +private const val COL_ICON = "icon"