Home
last modified time | relevance | path

Searched refs:cdmaLevel (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileTelephonyHelpers.kt40 fun signalStrength(gsmLevel: Int, cdmaLevel: Int, isGsm: Boolean): SignalStrength { in signalStrength()
45 mock<CellSignalStrengthCdma>().also { whenever(it.level).thenReturn(cdmaLevel) } in signalStrength()
DMobileConnectionRepositoryTest.kt213 val job = underTest.cdmaLevel.onEach { latest = it }.launchIn(this) in cdmaLevelUpdates()
216 var strength = signalStrength(gsmLevel = 1, cdmaLevel = 2, isGsm = true) in cdmaLevelUpdates()
222 strength = signalStrength(gsmLevel = 3, cdmaLevel = 2, isGsm = true) in cdmaLevelUpdates()
237 var strength = signalStrength(gsmLevel = 1, cdmaLevel = 2, isGsm = true) in gsmLevelUpdates()
242 strength = signalStrength(gsmLevel = 3, cdmaLevel = 2, isGsm = true) in gsmLevelUpdates()
257 var strength = signalStrength(gsmLevel = 1, cdmaLevel = 2, isGsm = true) in isGsm()
262 strength = signalStrength(gsmLevel = 1, cdmaLevel = 2, isGsm = false) in isGsm()
DMobileConnectionTelephonySmokeTests.kt320 val strength = signalStrength(gsmLevel = 1, cdmaLevel = 2, isGsm = true) in <lambda>()
325 val job = underTest.cdmaLevel.onEach { latest = it }.launchIn(this) in <lambda>()
/frameworks/base/telephony/java/android/telephony/
DCellSignalStrengthCdma.java122 int cdmaLevel = getCdmaLevel(); in updateLevel() local
127 } else if (cdmaLevel == SIGNAL_STRENGTH_NONE_OR_UNKNOWN) { in updateLevel()
132 mLevel = cdmaLevel < evdoLevel ? cdmaLevel : evdoLevel; in updateLevel()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/
DFakeMobileConnectionRepository.kt42 override val cdmaLevel = MutableStateFlow(0) constant in com.android.systemui.statusbar.pipeline.mobile.data.repository.FakeMobileConnectionRepository
80 cdmaLevel.value = level in setAllLevels()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DFullMobileConnectionRepository.kt206 override val cdmaLevel = in <lambda>() constant
208 .flatMapLatest { it.cdmaLevel } in <lambda>()
213 activeRepo.value.cdmaLevel.value in <lambda>()
215 .stateIn(scope, SharingStarted.WhileSubscribed(), activeRepo.value.cdmaLevel.value) in <lambda>()
DCarrierMergedConnectionRepository.kt133 override val cdmaLevel = in <lambda>() constant in com.android.systemui.statusbar.pipeline.mobile.data.repository.prod.CarrierMergedConnectionRepository
DMobileConnectionRepositoryImpl.kt249 override val cdmaLevel = in <lambda>() constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconInteractor.kt292 connectionRepository.cdmaLevel,
294 ) { isGsm, primaryLevel, cdmaLevel, alwaysUseCdmaLevel -> in primaryLevel() method
298 alwaysUseCdmaLevel -> cdmaLevel in primaryLevel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/
DMobileConnectionRepository.kt104 val cdmaLevel: StateFlow<Int> constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconInteractorTest.kt92 connectionRepository.cdmaLevel.value = CDMA_LEVEL in gsm_usesGsmLevel()
107 connectionRepository.cdmaLevel.value = CDMA_LEVEL in gsm_alwaysShowCdmaTrue_stillUsesGsmLevel()
135 connectionRepository.cdmaLevel.value = CDMA_LEVEL in notGsm_alwaysShowCdmaTrue_usesCdmaLevel()
151 connectionRepository.cdmaLevel.value = CDMA_LEVEL in notGsm_alwaysShowCdmaFalse_usesPrimaryLevel()
710 connectionRepository.cdmaLevel.value = 1 in cellBasedIcon_usesCarrierNetworkState_whenInCarrierNetworkChangeMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionParameterizedTest.kt137 launch { conn.cdmaLevel.collect {} } in TestScope()
159 assertThat(conn.cdmaLevel.value).isEqualTo(model.level) in TestScope()
DDemoMobileConnectionsRepositoryTest.kt546 launch { conn.cdmaLevel.collect {} } in <lambda>()
570 assertThat(conn.cdmaLevel.value).isEqualTo(model.level) in <lambda>()
601 assertThat(conn.cdmaLevel.value).isEqualTo(model.level) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DLocationBasedMobileIconViewModelTest.kt101 cdmaLevel.value = 1 in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionRepository.kt152 override val cdmaLevel = in <lambda>() constant in com.android.systemui.statusbar.pipeline.mobile.data.repository.demo.DemoMobileConnectionRepository