/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneStateListenerExecutorTest.java | 74 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 79 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
|
D | PhoneStateListenerTest.java | 94 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 100 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
|
D | CallManagerTest.java | 67 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp() 233 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState() 237 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState() 241 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState()
|
D | ServiceStateTrackerTest.java | 920 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testOnImsServiceStateChanged() 1374 sst.mSS.setState(ServiceState.STATE_IN_SERVICE); in testRegisterForVoiceRegStateOrRatChange() 1385 assertEquals(new Pair<Integer, Integer>(ServiceState.STATE_IN_SERVICE, in testRegisterForVoiceRegStateOrRatChange() 1409 assertEquals(new Pair<Integer, Integer>(ServiceState.STATE_IN_SERVICE, in testRegisterForDataRegStateOrRatChange() 1648 sst.mSS.setState(ServiceState.STATE_IN_SERVICE); in testSetPsNotifications() 1682 sst.mSS.setState(ServiceState.STATE_IN_SERVICE); in testSetCsNotifications() 1715 sst.mSS.setState(ServiceState.STATE_IN_SERVICE); in testSetCsNormalNotifications() 2136 assertEquals(ServiceState.STATE_IN_SERVICE, sst.getServiceState().getState()); in testPollStateExceptionRadioPowerOn() 2137 assertEquals(ServiceState.STATE_IN_SERVICE, in testPollStateExceptionRadioPowerOn() 2147 assertEquals(ServiceState.STATE_IN_SERVICE, sst.getServiceState().getState()); in testPollStateExceptionRadioPowerOn() [all …]
|
D | ServiceStateTest.java | 75 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testRegState() 76 assertEquals(ServiceState.STATE_IN_SERVICE, ss.getDataRegistrationState()); in testRegState() 78 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testRegState() 79 assertEquals(ServiceState.STATE_IN_SERVICE, ss.getState()); in testRegState() 240 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testParcel()
|
D | GsmCdmaPhoneTest.java | 254 imsServiceState.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceState() 255 imsServiceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceState() 291 serviceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceState() 300 assertEquals(ServiceState.STATE_IN_SERVICE, mergedServiceState.getState()); in testGetMergedServiceState() 301 assertEquals(ServiceState.STATE_IN_SERVICE, mergedServiceState.getDataRegistrationState()); in testGetMergedServiceState() 336 imsServiceState.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceStateNoCsfb() 337 imsServiceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceStateNoCsfb() 374 serviceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceStateNoCsfb() 383 assertEquals(ServiceState.STATE_IN_SERVICE, mergedServiceState.getState()); in testGetMergedServiceStateNoCsfb() 384 assertEquals(ServiceState.STATE_IN_SERVICE, mergedServiceState.getDataRegistrationState()); in testGetMergedServiceStateNoCsfb() [all …]
|
D | LocaleTrackerTest.java | 189 sendServiceState(ServiceState.STATE_IN_SERVICE); in testToggleAirplaneModeOn() 344 sendServiceState(ServiceState.STATE_IN_SERVICE); in testClearCellInfoForLostOperator() 363 sendServiceState(ServiceState.STATE_IN_SERVICE); in testNotifyCountryCodeChangedToTelephonyCountryDetector()
|
D | CarrierDisplayNameResolverTest.java | 90 mSS.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in setUp() 91 mSS.setDataRegState(ServiceState.STATE_IN_SERVICE); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | OperatorNameViewControllerTest.kt | 113 .thenReturn(ServiceState().also { it.state = ServiceState.STATE_IN_SERVICE }) in updateFromSubInfo_showsCarrieName() 138 .thenReturn(ServiceState().also { it.state = ServiceState.STATE_IN_SERVICE }) in notDataCapable_doesNotShowOperatorName() 162 .thenReturn(ServiceState().also { it.state = ServiceState.STATE_IN_SERVICE }) in airplaneMode_doesNotShowOperatorName()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 222 when(mServiceState.getVoiceRegState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceInService_returnTrue() 230 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue() 247 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse() 299 when(mServiceState.getVoiceRegState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getCombinedServiceState_voiceInService_returnInService() 302 .isEqualTo(ServiceState.STATE_IN_SERVICE); in getCombinedServiceState_voiceInService_returnInService() 315 .isEqualTo(ServiceState.STATE_IN_SERVICE); in getCombinedServiceState_voiceOutOfServiceDataInService_returnInService()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneTest.java | 569 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldSendNotificationWhenServiceStateIsChanged() 578 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldNotSendNotificationWhenServiceStateIsNotChanged() 581 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldNotSendNotificationWhenServiceStateIsNotChanged() 716 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testImsRegistered() 765 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testRoamingDuplicateMessages() 787 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testRoamingToAirplanModeIwlanInService() 797 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN, ServiceState.STATE_IN_SERVICE, false)); in testRoamingToAirplanModeIwlanInService() 814 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testRoamingToOutOfService() 843 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testSetWfcModeInRoaming() 855 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testSetWfcModeInRoaming() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | MobileRadioPowerCalculatorTest.java | 94 stats.notePhoneStateLocked(ServiceState.STATE_IN_SERVICE, TelephonyManager.SIM_STATE_READY, in testCounterBasedModel() 214 stats.notePhoneStateLocked(ServiceState.STATE_IN_SERVICE, TelephonyManager.SIM_STATE_READY, in testCounterBasedModel_multipleDefinedRat() 371 stats.notePhoneStateLocked(ServiceState.STATE_IN_SERVICE, TelephonyManager.SIM_STATE_READY, in testCounterBasedModel_legacyPowerProfile() 499 stats.notePhoneStateLocked(ServiceState.STATE_IN_SERVICE, TelephonyManager.SIM_STATE_READY, in testTimerBasedModel_byProcessState() 610 stats.notePhoneStateLocked(ServiceState.STATE_IN_SERVICE, TelephonyManager.SIM_STATE_READY, in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() 691 stats.notePhoneStateLocked(ServiceState.STATE_IN_SERVICE, TelephonyManager.SIM_STATE_READY, in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() 881 stats.notePhoneStateLocked(ServiceState.STATE_IN_SERVICE, TelephonyManager.SIM_STATE_READY, in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel_legacyPowerProfile() 979 stats.notePhoneStateLocked(ServiceState.STATE_IN_SERVICE, TelephonyManager.SIM_STATE_READY, in testMeasuredEnergyBasedModel_byProcessState()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ServiceStateTracker.java | 778 if (mSS != null && mSS.getState() == ServiceState.STATE_IN_SERVICE) { in updatePhoneType() 987 boolean isRegistered = mSS.getState() == ServiceState.STATE_IN_SERVICE in updatePhoneObject() 1531 if (mSS.getState() != ServiceState.STATE_IN_SERVICE) { in handleMessage() 1746 if (mSS.getState() != ServiceState.STATE_IN_SERVICE) { in handleMessage() 2007 (mNewSS.getState() == ServiceState.STATE_IN_SERVICE); in handlePollStateResult() 2200 serviceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in combinePsRegistrationStates() 2853 && (combinedRegState == ServiceState.STATE_IN_SERVICE in updateSpnDisplayLegacy() 2967 } else if (combinedRegState == ServiceState.STATE_IN_SERVICE) { in updateSpnDisplayLegacy() 3250 && mSS.getDataRegistrationState() != ServiceState.STATE_IN_SERVICE) { in isConcurrentVoiceAndDataAllowed() 3451 mSS.getState() != ServiceState.STATE_IN_SERVICE in pollStateDone() [all …]
|
D | CallWaitingController.java | 583 + (mSST.getServiceState().getState() == ServiceState.STATE_IN_SERVICE)); in isCircuitSwitchedNetworkAvailable() 584 return mSST.getServiceState().getState() == ServiceState.STATE_IN_SERVICE; in isCircuitSwitchedNetworkAvailable()
|
D | CarrierServiceStateTracker.java | 247 return (mSST.mSS.getState() == ServiceState.STATE_IN_SERVICE in isPhoneStillRegistered() 248 || mSST.mSS.getDataRegistrationState() == ServiceState.STATE_IN_SERVICE); in isPhoneStillRegistered()
|
D | TelephonyTester.java | 481 if (state == ServiceState.STATE_IN_SERVICE) { in overrideServiceState() 497 if (state == ServiceState.STATE_IN_SERVICE) { in overrideServiceState()
|
D | GsmCdmaPhone.java | 752 hasService ? ServiceState.STATE_IN_SERVICE : ServiceState.STATE_OUT_OF_SERVICE; in setVoiceServiceStateOverride() 1178 if (baseSs.getState() == ServiceState.STATE_IN_SERVICE) { in mergeVoiceServiceStates() 1185 if (telecomSs == ServiceState.STATE_IN_SERVICE) { in mergeVoiceServiceStates() 1191 } else if (imsSs.getState() == ServiceState.STATE_IN_SERVICE) { in mergeVoiceServiceStates() 1197 if (finalVoiceSs != ServiceState.STATE_IN_SERVICE) { in mergeVoiceServiceStates() 1357 && imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { in handleInCallMmiCommands() 1413 && (mImsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE); in useImsForCall() 1620 && mSST.mSS.getDataRegistrationState() != ServiceState.STATE_IN_SERVICE in dial() 1639 && !(mSST.mSS.getDataRegistrationState() == ServiceState.STATE_IN_SERVICE in dial() 1794 && ((imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) in handleUssdRequest() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/ |
D | SatelliteSOSMessageRecommender.java | 21 import static android.telephony.ServiceState.STATE_IN_SERVICE; 458 if ((state == STATE_IN_SERVICE || state == STATE_EMERGENCY_ONLY in isCellularAvailable() 510 if ((state == STATE_IN_SERVICE)) { in getBestCellularServiceState() 511 return STATE_IN_SERVICE; in getBestCellularServiceState()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/ |
D | RadioOnStateListenerTest.java | 126 state.setState(ServiceState.STATE_IN_SERVICE); in testPhoneChangeState_OkToCallTrue() 149 state.setState(ServiceState.STATE_IN_SERVICE); in testSatelliteChangeState_OkToCallTrue()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/ |
D | TelephonyAnalytics.java | 677 && dataRegState == ServiceState.STATE_IN_SERVICE) { in logServiceState() 689 if (voiceRegState == ServiceState.STATE_IN_SERVICE) { in logServiceState() 695 if (dataRegState == ServiceState.STATE_IN_SERVICE) { in logServiceState() 705 if (dataRegState == ServiceState.STATE_IN_SERVICE in logServiceState() 706 || voiceRegState == ServiceState.STATE_IN_SERVICE) { in logServiceState()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaSMSDispatcher.java | 130 if (!isIms() && ss != ServiceState.STATE_IN_SERVICE) { in sendSms()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | OperatorNameViewController.java | 238 && mServiceState.getState() == ServiceState.STATE_IN_SERVICE; in stateInService()
|
/frameworks/base/telephony/java/android/telephony/ |
D | ServiceState.java | 76 value = {STATE_IN_SERVICE, STATE_OUT_OF_SERVICE, STATE_EMERGENCY_ONLY, 84 public static final int STATE_IN_SERVICE = TelephonyProtoEnums.SERVICE_STATE_IN_SERVICE; // 0 field in ServiceState 1167 case STATE_IN_SERVICE: in rilServiceStateToString() 1986 if (voiceSs.mVoiceRegState != STATE_IN_SERVICE) { in mergeServiceStates()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmSMSDispatcher.java | 169 if (!isIms() && ss != ServiceState.STATE_IN_SERVICE) { in sendSms()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
D | MobileState.kt | 114 return serviceState?.state != ServiceState.STATE_IN_SERVICE in isNoCalling()
|