Home
last modified time | relevance | path

Searched refs:mSST (Results 1 – 24 of 24) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierServiceStateTracker.java70 private ServiceStateTracker mSST; field in CarrierServiceStateTracker
115 this.mSST = sst; in CarrierServiceStateTracker()
244 if (mSST.mSS == null) { in isPhoneStillRegistered()
247 return (mSST.mSS.getState() == ServiceState.STATE_IN_SERVICE in isPhoneStillRegistered()
248 || mSST.mSS.getDataRegistrationState() == ServiceState.STATE_IN_SERVICE); in isPhoneStillRegistered()
270 return (!mSST.isRadioOn() || (airplaneMode != 0)); in isRadioOffOrAirplaneMode()
580 + "," + isGlobalMode() + "," + mSST.isRadioOn()); in sendMessage()
675 + mSST.isRadioOn()); in sendMessage()
DGsmCdmaPhone.java232 public ServiceStateTracker mSST; field in GsmCdmaPhone
372 mSST = mTelephonyComponentFactory.inject(ServiceStateTracker.class.getName()) in GsmCdmaPhone()
400 mSST.registerForNetworkAttached(this, EVENT_REGISTERED_TO_NETWORK, null); in GsmCdmaPhone()
401 mSST.registerForVoiceRegStateOrRatChanged(this, EVENT_VRS_OR_RAT_CHANGED, null); in GsmCdmaPhone()
402 mSST.getServiceStateStats().registerDataNetworkControllerCallback(); in GsmCdmaPhone()
697 mSST.updatePhoneType(); in switchPhoneType()
744 ServiceState baseSs = mSST != null ? mSST.getServiceState() : new ServiceState(); in getServiceState()
755 if (changed && mSST != null) { in setVoiceServiceStateOverride()
756 mSST.onTelecomVoiceServiceStateOverrideChanged(); in setVoiceServiceStateOverride()
757 mSST.getServiceStateStats().onVoiceServiceStateOverrideChanged(hasService); in setVoiceServiceStateOverride()
[all …]
DCallWaitingController.java108 private final ServiceStateTracker mSST; field in CallWaitingController
114 mSST = phone.getServiceStateTracker(); in CallWaitingController()
583 + (mSST.getServiceState().getState() == ServiceState.STATE_IN_SERVICE)); in isCircuitSwitchedNetworkAvailable()
584 return mSST.getServiceState().getState() == ServiceState.STATE_IN_SERVICE; in isCircuitSwitchedNetworkAvailable()
605 mSST.registerForNetworkAttached(this, EVENT_REGISTERED_TO_NETWORK, null); in registerForNetworkAttached()
613 mSST.unregisterForNetworkAttached(this); in unregisterForNetworkAttached()
DGsmCdmaConnection.java613 if (phone.mSST.mRestrictedState.isCsRestricted()) { in disconnectCauseFromCode()
615 } else if (phone.mSST.mRestrictedState.isCsEmergencyRestricted()) { in disconnectCauseFromCode()
617 } else if (phone.mSST.mRestrictedState.isCsNormalRestricted()) { in disconnectCauseFromCode()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java181 doReturn(false).when(mSST).isDeviceShuttingDown(); in setUp()
223 mSST.mSS = serviceState; in testGetServiceState()
224 doReturn(serviceState).when(mSST).getServiceState(); in testGetServiceState()
294 mSST.mSS = serviceState; in testGetMergedServiceState()
295 doReturn(serviceState).when(mSST).getServiceState(); in testGetMergedServiceState()
296 mPhoneUT.mSST = mSST; in testGetMergedServiceState()
377 mSST.mSS = serviceState; in testGetMergedServiceStateNoCsfb()
378 doReturn(serviceState).when(mSST).getServiceState(); in testGetMergedServiceStateNoCsfb()
379 mPhoneUT.mSST = mSST; in testGetMergedServiceStateNoCsfb()
428 doReturn(subscriberId).when(mSST).getImsi(); in testGetSubscriberIdForCdmaPhone()
[all …]
DCarrierServiceStateTrackerTest.java92 mCarrierSST = new CarrierServiceStateTracker(mPhone, mSST, mFeatureFlags); in setUp()
178 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSST.mSS).getState(); in testSendPrefNetworkNotification()
179 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSST.mSS).getDataRegistrationState(); in testSendPrefNetworkNotification()
180 doReturn(true).when(mSST).isRadioOn(); in testSendPrefNetworkNotification()
317 CarrierServiceStateTracker tracker = new CarrierServiceStateTracker(mPhone, mSST, in testNotificationMapWhenDeviceIsWatch()
DTelephonyCountryDetectorTest.java99 when(mPhone.getServiceStateTracker()).thenReturn(mSST); in setUp()
101 when(mSST.getLocaleTracker()).thenReturn(mMockLocaleTracker); in setUp()
159 when(mPhone.getServiceStateTracker()).thenReturn(mSST); in testGetCurrentNetworkCountryIso()
160 when(mSST.getLocaleTracker()).thenReturn(null); in testGetCurrentNetworkCountryIso()
166 when(mSST.getLocaleTracker()).thenReturn(mMockLocaleTracker); in testGetCurrentNetworkCountryIso()
DNetworkTypeControllerTest.java379 doReturn(new ArrayList<>()).when(mSST).getPhysicalChannelConfigList(); in testTransitionToCurrentStateNrConnectedIdle()
424 doReturn(lastPhysicalChannelConfigList).when(mSST).getPhysicalChannelConfigList(); in testTransitionToCurrentStateNrConnectedMmwaveWithAdditionalBandAndNoMmwave()
454 doReturn(lastPhysicalChannelConfigList).when(mSST).getPhysicalChannelConfigList(); in testTransitionToCurrentStateNrConnectedMmwaveWithAdditionalBandAndNoMmwaveNrNsa()
476 doReturn(lastPhysicalChannelConfigList).when(mSST).getPhysicalChannelConfigList(); in testTransitionToCurrentStateNrConnectedWithNoAdditionalBandAndNoMmwave()
631 doReturn(physicalChannelConfigs).when(mSST).getPhysicalChannelConfigList(); in testEventPhysicalChannelConfigChangedWithRatcheting()
639 doReturn(new ArrayList<>()).when(mSST).getPhysicalChannelConfigList(); in testEventPhysicalChannelConfigChangedWithRatcheting()
647 doReturn(physicalChannelConfigs).when(mSST).getPhysicalChannelConfigList(); in testEventPhysicalChannelConfigChangedWithRatcheting()
695 doReturn(physicalChannelConfigs).when(mSST).getPhysicalChannelConfigList(); in testEventPhysicalChannelConfigChangedWithoutRatcheting()
703 doReturn(new ArrayList<>()).when(mSST).getPhysicalChannelConfigList(); in testEventPhysicalChannelConfigChangedWithoutRatcheting()
711 doReturn(physicalChannelConfigs).when(mSST).getPhysicalChannelConfigList(); in testEventPhysicalChannelConfigChangedWithoutRatcheting()
[all …]
DTelephonyTest.java198 protected ServiceStateTracker mSST; field in TelephonyTest
485 mSST = Mockito.mock(ServiceStateTracker.class); in setUp()
644 doReturn(mSST).when(mTelephonyComponentFactory) in setUp()
718 doReturn(mSST).when(mPhone).getServiceStateTracker(); in setUp()
837 doReturn(mServiceState).when(mSST).getServiceState(); in setUp()
838 doReturn(mServiceStateStats).when(mSST).getServiceStateStats(); in setUp()
839 mSST.mSS = mServiceState; in setUp()
840 mSST.mRestrictedState = mRestrictedState; in setUp()
DCarrierDisplayNameResolverTest.java78 doReturn(mSS).when(mSST).getServiceState(); in setUp()
DServiceStateTrackerTest.java448 doReturn(mSST).when(phone2).getServiceStateTracker(); in testSetRadioPowerWaitForAllDataDisconnected()
503 doReturn(mSST).when(phone2).getServiceStateTracker(); in testSetRadioPowerExitEmergencyMode()
2979 doReturn(ss).when(mSST).getServiceState(); in testUpdateSpnDisplay_noService_displayEmergencyCallOnly()
2980 doReturn(ServiceState.STATE_IN_SERVICE).when(mSST).getCombinedRegState(ss); in testUpdateSpnDisplay_noService_displayEmergencyCallOnly()
3346 assertEquals(1, (long) method.invoke(mSST, gsmCi)); in testGetCidFromCellIdentity()
3347 assertEquals(2, (long) method.invoke(mSST, wcdmaCi)); in testGetCidFromCellIdentity()
3348 assertEquals(3, (long) method.invoke(mSST, tdscdmaCi)); in testGetCidFromCellIdentity()
3349 assertEquals(4, (long) method.invoke(mSST, lteCi)); in testGetCidFromCellIdentity()
3350 assertEquals(5, (long) method.invoke(mSST, nrCi)); in testGetCidFromCellIdentity()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DAutoDataSwitchControllerTest.java133 doReturn(mSST).when(phone).getServiceStateTracker(); in setUp()
658 verify(mSST).unregisterForServiceStateChanged(any()); in testMultiSimConfigChanged()
660 clearInvocations(mDisplayInfoController, mSignalStrengthController, mSST); in testMultiSimConfigChanged()
668 verify(mSST).registerForServiceStateChanged(any(), in testMultiSimConfigChanged()
686 verify(mSST, times(modemCount)).unregisterForServiceStateChanged(any()); in testSubscriptionChangedUnregister()
689 clearInvocations(mDisplayInfoController, mSignalStrengthController, mSST); in testSubscriptionChangedUnregister()
701 verify(mSST).registerForServiceStateChanged(any(), in testSubscriptionChangedUnregister()
DDataNetworkTest.java416 doReturn(true).when(mSST).isConcurrentVoiceAndDataAllowed(); in setUp()
1342 verify(mSST).registerForCssIndicatorChanged(any(Handler.class), anyInt(), eq(null)); in testRegisterUnregisterEvents()
1343 verify(mSST).registerForServiceStateChanged(any(Handler.class), anyInt(), any()); in testRegisterUnregisterEvents()
1362 verify(mSST).unregisterForCssIndicatorChanged(any(Handler.class)); in testRegisterUnregisterEvents()
1363 verify(mSST).unregisterForServiceStateChanged(any(Handler.class)); in testRegisterUnregisterEvents()
1739 doReturn(false).when(mSST).isConcurrentVoiceAndDataAllowed(); in testCssIndicatorChanged()
1747 doReturn(true).when(mSST).isConcurrentVoiceAndDataAllowed(); in testCssIndicatorChanged()
1757 doReturn(false).when(mSST).isConcurrentVoiceAndDataAllowed(); in testNonConcurrentDataSuspended()
DDataNetworkControllerTest.java648 doReturn(ss).when(mSST).getServiceState(); in serviceStateChanged()
662 doReturn(ss).when(mSST).getServiceState(); in serviceStateChanged()
885 doReturn(true).when(mSST).getDesiredPowerState(); in setUp()
886 doReturn(true).when(mSST).getPowerStateFromCarrier(); in setUp()
887 doReturn(true).when(mSST).isConcurrentVoiceAndDataAllowed(); in setUp()
1677 doReturn(false).when(mSST).isConcurrentVoiceAndDataAllowed(); in testVoiceCallEndedOnVoiceDataNonConcurrentNetwork()
3247 doReturn(false).when(mSST).getPowerStateFromCarrier(); in testSetupDataNetworkRetryFailed()
3261 doReturn(true).when(mSST).getPowerStateFromCarrier(); in testSetupDataNetworkRetryFailed()
4561 doReturn(ss).when(mSST).getServiceState(); in updateServiceStateForDatatNetwork()
4976 doReturn(ss).when(mSST).getServiceState(); in testSetupDataOnNonDds()
[all …]
DDataStallRecoveryManagerTest.java209 verify(mSST, times(1)).powerOffRadioSafely(); in testRecoveryStepRestartRadio()
DDataProfileManagerTest.java1666 doReturn(ss).when(mSST).getServiceState(); in testTetheringApnDisabledForRoaming()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java354 verify(mSST, times(2)).unregisterForDataRegStateOrRatChanged(anyInt(), eq(mImsPhoneUT)); in testDispose()
570 reset(mSST); in testShouldSendNotificationWhenServiceStateIsChanged()
573 verify(mSST).onImsServiceStateChanged(); in testShouldSendNotificationWhenServiceStateIsChanged()
579 reset(mSST); in testShouldNotSendNotificationWhenServiceStateIsNotChanged()
582 verify(mSST, never()).onImsServiceStateChanged(); in testShouldNotSendNotificationWhenServiceStateIsNotChanged()
877 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSST.mSS).getState(); in testSendUssdAllowUssdOverImsInOutOfService()
896 doReturn(ServiceState.STATE_IN_SERVICE).when(mSST.mSS).getState(); in testSendUssdAllowUssdOverImsInService()
946 doReturn(ServiceState.STATE_IN_SERVICE).when(mSST.mSS).getState(); in testSendUssdAllowUssdOverImsWithImsPreferred()
965 doReturn(ServiceState.STATE_IN_SERVICE).when(mSST.mSS).getState(); in testSendUssdAllowUssdOverImsWithCsOnly()
991 doReturn(ServiceState.STATE_IN_SERVICE).when(mSST.mSS).getState(); in testSendUssdAllowUssdOverImsWithImsOnly()
DImsPhoneCallTrackerTest.java1606 doReturn(true).when(mSST.mRestrictedState).isCsRestricted(); in testCallRestrictedDisconnect()
1614 doReturn(true).when(mSST.mRestrictedState).isCsEmergencyRestricted(); in testCallRestrictedEmergencyDisconnect()
1623 doReturn(true).when(mSST.mRestrictedState).isCsNormalRestricted(); in testCallRestrictedNormal()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DImsStatsTest.java130 doReturn(mSST).when(mImsPhone).getServiceStateTracker(); in setUp()
131 doReturn(mServiceStateStats).when(mSST).getServiceStateStats(); in setUp()
1072 doReturn(mSST).when(mSecondPhone).getServiceStateTracker(); in secondSimMockSetup()
1073 doReturn(mSST).when(mSecondImsPhone).getServiceStateTracker(); in secondSimMockSetup()
DMetricsCollectorTest.java127 doReturn(mSST).when(mSecondPhone).getServiceStateTracker(); in setUp()
128 doReturn(mServiceStateStats).when(mSST).getServiceStateStats(); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DRadioOnStateListenerTest.java68 doReturn(mSST).when(mMockPhone).getServiceStateTracker(); in setUp()
DEmergencyStateTrackerTest.java168 doReturn(ss).when(mSST).getServiceState(); in startEmergencyCall_radioOff_turnOnRadioSwitchDdsAndSetEmergencyMode()
187 when(mSST.isRadioOn()).thenReturn(true); in startEmergencyCall_radioOff_turnOnRadioSwitchDdsAndSetEmergencyMode()
227 doReturn(ss).when(mSST).getServiceState(); in startEmergencyCall_radioOff_turnOnRadioTimeoutSwitchDdsAndSetEmergencyMode()
248 when(mSST.isRadioOn()).thenReturn(true); in startEmergencyCall_radioOff_turnOnRadioTimeoutSwitchDdsAndSetEmergencyMode()
277 doReturn(ss).when(mSST).getServiceState(); in startEmergencyCall_radioOff_turnOnRadioHangupCallTurnOffRadio()
347 when(mSST.isRadioOn()).thenReturn(true); in startEmergencyCall_satelliteEnabled_turnOnRadioSwitchDdsAndSetEmergencyMode()
3169 verify(mSST, times(2)).registerForVoiceRegStateOrRatChanged(any(), anyInt(), any()); in startEmergencyCall_delayedRadioOff_waitForRadioOff()
3416 when(phone.getServiceStateTracker()).thenReturn(mSST); in makeTestPhone()
DEmergencyNumberTrackerTest.java403 doReturn(mLocaleTracker).when(mSST).getLocaleTracker(); in testUpdateEmergencyCountryIso()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/
DSatelliteControllerTest.java550 doReturn(mSST).when(mPhone).getServiceStateTracker(); in setUp()
551 doReturn(mSST).when(mPhone2).getServiceStateTracker(); in setUp()
552 doReturn(mServiceState).when(mSST).getServiceState(); in setUp()