Home
last modified time | relevance | path

Searched refs:DataConnectionState (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/model/
DDataConnectionState.kt31 enum class DataConnectionState : Diffable<DataConnectionState> { class
41 override fun logDiffs(prevVal: DataConnectionState, row: TableRowLogger) { in logDiffs()
52 fun @receiver:DataState Int.toDataConnectionType(): DataConnectionState = in toDataConnectionType()
54 DATA_CONNECTED -> DataConnectionState.Connected in toDataConnectionType()
55 DATA_CONNECTING -> DataConnectionState.Connecting in toDataConnectionType()
56 DATA_DISCONNECTED -> DataConnectionState.Disconnected in toDataConnectionType()
57 DATA_DISCONNECTING -> DataConnectionState.Disconnecting in toDataConnectionType()
58 DATA_SUSPENDED -> DataConnectionState.Suspended in toDataConnectionType()
59 DATA_HANDOVER_IN_PROGRESS -> DataConnectionState.HandoverInProgress in toDataConnectionType()
60 DATA_UNKNOWN -> DataConnectionState.Unknown in toDataConnectionType()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DCarrierMergedConnectionRepository.kt27 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState in <lambda>()
159 DataConnectionState.Connected in <lambda>()
161 DataConnectionState.Disconnected in <lambda>()
164 .stateIn(scope, SharingStarted.WhileSubscribed(), DataConnectionState.Disconnected) in <lambda>()
DMobileConnectionRepositoryImpl.kt53 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState.Disconnected in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileConnectionRepositoryTest.kt77 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
273 var latest: DataConnectionState? = null in dataConnectionState_connected()
280 assertThat(latest).isEqualTo(DataConnectionState.Connected) in dataConnectionState_connected()
288 var latest: DataConnectionState? = null in dataConnectionState_connecting()
295 assertThat(latest).isEqualTo(DataConnectionState.Connecting) in dataConnectionState_connecting()
303 var latest: DataConnectionState? = null in dataConnectionState_disconnected()
310 assertThat(latest).isEqualTo(DataConnectionState.Disconnected) in dataConnectionState_disconnected()
318 var latest: DataConnectionState? = null in dataConnectionState_disconnecting()
325 assertThat(latest).isEqualTo(DataConnectionState.Disconnecting) in dataConnectionState_disconnecting()
333 var latest: DataConnectionState? = null in dataConnectionState_suspended()
[all …]
DCarrierMergedConnectionRepositoryTest.kt25 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
81 var latestConnState: DataConnectionState? = null in inactiveWifi_isDefault()
90 assertThat(latestConnState).isEqualTo(DataConnectionState.Disconnected) in inactiveWifi_isDefault()
100 var latestConnState: DataConnectionState? = null in activeWifi_isDefault()
109 assertThat(latestConnState).isEqualTo(DataConnectionState.Disconnected) in activeWifi_isDefault()
DMobileConnectionTelephonySmokeTests.kt39 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState in <lambda>()
212 var latest: DataConnectionState? = null in <lambda>()
229 assertThat(latest).isEqualTo(DataConnectionState.Connected) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/
DMobileConnectionRepository.kt23 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
111 val dataConnectionState: StateFlow<DataConnectionState>
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/
DFakeMobileConnectionRepository.kt21 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
44 override val dataConnectionState = MutableStateFlow(DataConnectionState.Disconnected)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionRepository.kt24 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState in <lambda>()
173 private val _dataConnectionState = MutableStateFlow(DataConnectionState.Disconnected) in <lambda>()
264 _dataConnectionState.value = DataConnectionState.Connected in <lambda>()
289 _dataConnectionState.value = DataConnectionState.Connected in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DLocationBasedMobileIconViewModelTest.kt29 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
106 dataConnectionState.value = DataConnectionState.Connected in setUp()
DMobileIconViewModelTest.kt42 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
110 dataConnectionState.value = DataConnectionState.Connected in setUp()
409 repository.dataConnectionState.value = DataConnectionState.Connected in networkTypeIcon_notNull_whenEnabled()
434 repository.dataConnectionState.value = DataConnectionState.Disconnected in networkType_nullWhenDataDisconnects()
487 repository.dataConnectionState.value = DataConnectionState.Disconnected in networkType_alwaysShow_shownEvenWhenDisconnected()
574 repository.dataConnectionState.value = DataConnectionState.Connected in networkType_notShownWhenNotDefault()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionParameterizedTest.kt27 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
176 assertThat(conn.dataConnectionState.value).isEqualTo(DataConnectionState.Connected) in TestScope()
DDemoMobileConnectionsRepositoryTest.kt28 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState in <lambda>()
587 assertThat(conn.dataConnectionState.value).isEqualTo(DataConnectionState.Connected) in <lambda>()
607 assertThat(conn.dataConnectionState.value).isEqualTo(DataConnectionState.Connected) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconInteractorTest.kt29 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
360 connectionRepository.dataConnectionState.value = DataConnectionState.Connected in dataState_connected()
373 connectionRepository.dataConnectionState.value = DataConnectionState.Disconnected in dataState_notConnected()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/ui/viewmodel/
DInternetTileViewModelTest.kt34 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState
93 dataConnectionState.value = DataConnectionState.Connected in setUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/internet/domain/interactor/
DInternetTileDataInteractorTest.kt43 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState in <lambda>()
109 dataConnectionState.value = DataConnectionState.Connected in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconInteractor.kt28 import com.android.systemui.statusbar.pipeline.mobile.data.model.DataConnectionState.Connected in <lambda>()