Home
last modified time | relevance | path

Searched refs:NetworkNameModel (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/model/
DNetworkNameModel.kt31 sealed interface NetworkNameModel : Diffable<NetworkNameModel> { interface
35 data class Default(override val name: String) : NetworkNameModel {
36 override fun logDiffs(prevVal: NetworkNameModel, row: TableRowLogger) { in logDiffs()
51 data class IntentDerived(override val name: String) : NetworkNameModel {
52 override fun logDiffs(prevVal: NetworkNameModel, row: TableRowLogger) { in logDiffs()
64 data class SubscriptionDerived(override val name: String) : NetworkNameModel {
65 override fun logDiffs(prevVal: NetworkNameModel, row: TableRowLogger) { in logDiffs()
80 data class SimDerived(override val name: String) : NetworkNameModel {
81 override fun logDiffs(prevVal: NetworkNameModel, row: TableRowLogger) { in logDiffs()
97 fun Intent.toNetworkNameModel(separator: String): NetworkNameModel? { in toNetworkNameModel()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/
DFakeMobileConnectionRepository.kt22 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
58 override val networkName: MutableStateFlow<NetworkNameModel> =
59 MutableStateFlow(NetworkNameModel.Default(DEFAULT_NETWORK_NAME))
61 override val carrierName: MutableStateFlow<NetworkNameModel> =
62 MutableStateFlow(NetworkNameModel.Default(DEFAULT_NETWORK_NAME))
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/
DMobileConnectionRepository.kt24 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
140 val networkName: StateFlow<NetworkNameModel>
148 val carrierName: StateFlow<NetworkNameModel>
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DCarrierMergedConnectionRepository.kt28 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
103 override val networkName: StateFlow<NetworkNameModel> = in <lambda>()
108 .map { NetworkNameModel.SimDerived(telephonyManager.simOperatorName) } in <lambda>()
112 NetworkNameModel.SimDerived(telephonyManager.simOperatorName), in <lambda>()
115 override val carrierName: StateFlow<NetworkNameModel> = networkName in <lambda>()
DMobileConnectionRepositoryImpl.kt54 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
100 defaultNetworkName: NetworkNameModel, in <lambda>()
329 it?.let { model -> NetworkNameModel.SubscriptionDerived(model.carrierName) } in <lambda>()
379 override val networkName: StateFlow<NetworkNameModel> = in <lambda>()
479 defaultNetworkName: NetworkNameModel, in <lambda>()
DFullMobileConnectionRepository.kt25 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
55 private val defaultNetworkName: NetworkNameModel, in <lambda>()
404 defaultNetworkName: NetworkNameModel, in <lambda>()
DMobileConnectionsRepositoryImpl.kt51 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
120 NetworkNameModel.Default( in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionRepository.kt25 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
224 override val networkName = MutableStateFlow(NetworkNameModel.IntentDerived(DEMO_CARRIER_NAME)) in <lambda>()
227 MutableStateFlow(NetworkNameModel.SubscriptionDerived(DEMO_CARRIER_NAME)) in <lambda>()
246 networkName.value = NetworkNameModel.IntentDerived(event.name) in <lambda>()
247 carrierName.value = NetworkNameModel.SubscriptionDerived("${event.name} ${event.subId}") in <lambda>()
278 networkName.value = NetworkNameModel.IntentDerived(CARRIER_MERGED_NAME) in <lambda>()
279 carrierName.value = NetworkNameModel.SubscriptionDerived(CARRIER_MERGED_NAME) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DCarrierMergedConnectionRepositoryTest.kt26 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
292 var latest: NetworkNameModel? = null in networkName_usesSimOperatorNameAsInitial()
295 assertThat(latest).isEqualTo(NetworkNameModel.SimDerived("Test SIM name")) in networkName_usesSimOperatorNameAsInitial()
305 var latest: NetworkNameModel? = null in networkName_updatesOnNetworkUpdate()
308 assertThat(latest).isEqualTo(NetworkNameModel.SimDerived("Test SIM name")) in networkName_updatesOnNetworkUpdate()
319 assertThat(latest).isEqualTo(NetworkNameModel.SimDerived("New SIM name")) in networkName_updatesOnNetworkUpdate()
DMobileConnectionRepositoryTest.kt78 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
757 var latest: NetworkNameModel? = null in networkNameForSubId_updates()
785 var latest: NetworkNameModel? = null in networkNameForSubId_defaultWhenSubscriptionModelNull()
798 var latest: NetworkNameModel? = null in networkName_default()
809 var latest: NetworkNameModel? = null in networkName_usesBroadcastInfo_returnsDerived()
825 var latest: NetworkNameModel? = null in networkName_broadcastNotForThisSubId_keepsOldValue()
849 var latest: NetworkNameModel? = null in networkName_broadcastHasNoData_updatesToDefault()
1144 private val DEFAULT_NAME_MODEL = NetworkNameModel.Default(DEFAULT_NAME)
DMobileConnectionTelephonySmokeTests.kt40 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
356 private val DEFAULT_NAME = NetworkNameModel.Default("default name") in <lambda>()
DFullMobileConnectionRepositoryTest.kt33 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
754 private val DEFAULT_NAME_MODEL = NetworkNameModel.Default(DEFAULT_NAME)
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DFakeMobileIconInteractor.kt21 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
53 override val networkName = MutableStateFlow(NetworkNameModel.IntentDerived("demo mode"))
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconInteractor.kt29 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
101 val networkName: StateFlow<NetworkNameModel> in <lambda>()
176 if (networkName is NetworkNameModel.Default && operatorAlphaShort != null) { in operatorAlphaShort()
177 NetworkNameModel.IntentDerived(operatorAlphaShort) in operatorAlphaShort()
192 if (networkName is NetworkNameModel.Default && operatorAlphaShort != null) { in operatorAlphaShort()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconInteractorTest.kt30 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
461 var latest: NetworkNameModel? = null in networkName_usesOperatorAlphaShortWhenNonNullAndRepoIsDefault()
470 assertThat(latest).isEqualTo(NetworkNameModel.IntentDerived(testOperatorName)) in networkName_usesOperatorAlphaShortWhenNonNullAndRepoIsDefault()
507 NetworkNameModel.SubscriptionDerived(DERIVED_NAME) in networkNameForSubId_usesOperatorAlphaShortWhenNonNullAndRepoIsDefault()
764 private val DEFAULT_NAME_MODEL = NetworkNameModel.Default(DEFAULT_NAME) in createInteractor()
766 private val DERIVED_NAME_MODEL = NetworkNameModel.IntentDerived(DERIVED_NAME) in createInteractor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionParameterizedTest.kt28 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
167 .isEqualTo(NetworkNameModel.IntentDerived(model.name)) in TestScope()
169 .isEqualTo(NetworkNameModel.SubscriptionDerived("${model.name} ${model.subId}")) in TestScope()
DDemoMobileConnectionsRepositoryTest.kt29 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
578 .isEqualTo(NetworkNameModel.IntentDerived(model.name)) in <lambda>()
580 .isEqualTo(NetworkNameModel.SubscriptionDerived("${model.name} ${model.subId}")) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/internet/domain/interactor/
DInternetTileDataInteractorTest.kt44 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel in <lambda>()
463 networkName.value = NetworkNameModel.Default("test network") in <lambda>()
489 networkName.value = NetworkNameModel.Default("test network") in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/ui/viewmodel/
DInternetTileViewModelTest.kt35 import com.android.systemui.statusbar.pipeline.mobile.data.model.NetworkNameModel
338 networkName.value = NetworkNameModel.Default("test network") in mobileDefault_usesNetworkNameAndIcon()