Home
last modified time | relevance | path

Searched refs:mServiceState (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNetworkTypeControllerTest.java131 doReturn(NetworkRegistrationInfo.NR_STATE_NONE).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
137 doReturn(NetworkRegistrationInfo.NR_STATE_RESTRICTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
143 doReturn(NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
149 doReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
150 doReturn(ServiceState.FREQUENCY_RANGE_LOW).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrNsa()
156 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrNsa()
165 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getDataNetworkType(); in testUpdateOverrideNetworkTypeNrSa()
166 doReturn(NetworkRegistrationInfo.NR_STATE_NONE).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrSa()
176 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testUpdateOverrideNetworkTypeNrSa()
188 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getDataNetworkType(); in testUpdateOverrideNetworkTypeNrSaMmwave()
[all …]
DRatRatcheterTest.java38 private ServiceState mServiceState; field in RatRatcheterTest
44 mServiceState = new ServiceState(); in setUp()
55 mServiceState.setCellBandwidths(new int[] {5000}); in testUpdateBandwidthsSuccess()
57 boolean updated = RatRatcheter.updateBandwidths(bandwidths, mServiceState); in testUpdateBandwidthsSuccess()
60 assertTrue(Arrays.equals(mServiceState.getCellBandwidths(), bandwidths)); in testUpdateBandwidthsSuccess()
67 mServiceState.setCellBandwidths(originalBandwidths); in testUpdateBandwidthsFailure()
69 boolean updated = RatRatcheter.updateBandwidths(newBandwidths, mServiceState); in testUpdateBandwidthsFailure()
72 assertTrue(Arrays.equals(mServiceState.getCellBandwidths(), originalBandwidths)); in testUpdateBandwidthsFailure()
78 mServiceState.setCellBandwidths(originalBandwidths); in testUpdateBandwidthsNull()
80 boolean updated = RatRatcheter.updateBandwidths(null, mServiceState); in testUpdateBandwidthsNull()
[all …]
DPhoneStateListenerExecutorTest.java54 mServiceState.setVoiceRegState(serviceState.getState()); in setUp()
55 mServiceState.setDataRegState(serviceState.getDataRegistrationState()); in setUp()
82 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
83 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
DPhoneStateListenerTest.java55 mServiceState.setVoiceRegState(serviceState.getState()); in setUp()
56 mServiceState.setDataRegState(serviceState.getDataRegistrationState()); in setUp()
96 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
97 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
DCellularNetworkValidatorTest.java170 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testSkipRecentlyValidatedNetwork()
193 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testDoNotSkipIfValidationFailed()
215 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testDoNotSkipIfCacheExpires()
241 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testNetworkCachingOfMultipleSub()
283 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testNetworkCachingOfMultipleSub()
296 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testNetworkCachingOfMultipleNetworks()
312 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testNetworkCachingOfMultipleNetworks()
328 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testNetworkCachingOverflow()
DServiceStateTrackerTest.java2736 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getVoiceRegState(); in testUpdateSpnDisplay_flightModeNoWifiCalling_showSpnAndPlmn()
2737 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getDataRegState(); in testUpdateSpnDisplay_flightModeNoWifiCalling_showSpnAndPlmn()
2738 doReturn(TelephonyManager.NETWORK_TYPE_IWLAN).when(mServiceState).getDataNetworkType(); in testUpdateSpnDisplay_flightModeNoWifiCalling_showSpnAndPlmn()
2739 sst.mSS = mServiceState; in testUpdateSpnDisplay_flightModeNoWifiCalling_showSpnAndPlmn()
2909 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mServiceState).getState(); in testUpdateSpnDisplayLegacy_WlanServiceNoWifiCalling_displayOOS()
2910 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getDataRegistrationState(); in testUpdateSpnDisplayLegacy_WlanServiceNoWifiCalling_displayOOS()
2911 doReturn(TelephonyManager.NETWORK_TYPE_IWLAN).when(mServiceState).getDataNetworkType(); in testUpdateSpnDisplayLegacy_WlanServiceNoWifiCalling_displayOOS()
2912 sst.mSS = mServiceState; in testUpdateSpnDisplayLegacy_WlanServiceNoWifiCalling_displayOOS()
3037 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mServiceState).getState(); in testGetCombinedRegState()
3038 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mServiceState).getDataRegistrationState(); in testGetCombinedRegState()
[all …]
DCallManagerTest.java69 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp()
258 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mServiceState).getState(); in testGetServiceState()
263 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getState(); in testGetServiceState()
DTelephonyTest.java210 protected ServiceState mServiceState; field in TelephonyTest
554 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp()
555 doReturn(mServiceState).when(mImsPhone).getServiceState(); in setUp()
638 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_UMTS).when(mServiceState). in setUp()
653 doReturn(mServiceState).when(mSST).getServiceState(); in setUp()
654 mSST.mSS = mServiceState; in setUp()
668 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java74 private ServiceState mServiceState; field in UtilsTest
215 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceInService_returnTrue()
217 assertThat(Utils.isInService(mServiceState)).isTrue(); in isInService_voiceInService_returnTrue()
222 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue()
223 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue()
224 when(mServiceState.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isInService_voiceOutOfServiceDataInService_returnTrue()
229 assertThat(Utils.isInService(mServiceState)).isTrue(); in isInService_voiceOutOfServiceDataInService_returnTrue()
234 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse()
235 when(mServiceState.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse()
239 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DServiceStateStatsTest.java99 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in setUp()
100 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getDataNetworkType(); in setUp()
115 mServiceStateStats.onServiceStateChanged(mServiceState); in conclude_inService()
141 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mServiceState).getVoiceRegState(); in conclude_outOfService()
142 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mServiceState).getDataRegState(); in conclude_outOfService()
143 doReturn(TelephonyManager.NETWORK_TYPE_UNKNOWN).when(mServiceState).getVoiceNetworkType(); in conclude_outOfService()
144 doReturn(TelephonyManager.NETWORK_TYPE_UNKNOWN).when(mServiceState).getDataNetworkType(); in conclude_outOfService()
146 mServiceStateStats.onServiceStateChanged(mServiceState); in conclude_outOfService()
172 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getVoiceRegState(); in conclude_airplaneMode()
173 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getDataRegState(); in conclude_airplaneMode()
[all …]
DVoiceCallSessionStatsTest.java141 doReturn(TelephonyManager.NETWORK_TYPE_UNKNOWN).when(mServiceState).getDataNetworkType(); in setUp()
142 doReturn(TelephonyManager.NETWORK_TYPE_UNKNOWN).when(mServiceState).getVoiceNetworkType(); in setUp()
143 doReturn(false).when(mServiceState).getVoiceRoaming(); in setUp()
180 mVoiceCallSessionStats0.onServiceStateChanged(mServiceState); in setUp()
193 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_moRejected()
246 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_moFailed()
285 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_moAccepted()
343 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_mtRejected()
388 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_mtAccepted()
445 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_dsdsModeSingleSim()
[all …]
DTelephonyMetricsTest.java97 private ServiceState mServiceState; field in TelephonyMetricsTest
120 doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getVoiceRoamingType(); in setUp()
121 doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getDataRoamingType(); in setUp()
122 doReturn("short").when(mServiceState).getOperatorAlphaShort(); in setUp()
123 doReturn("long").when(mServiceState).getOperatorAlphaLong(); in setUp()
124 doReturn("123456").when(mServiceState).getOperatorNumeric(); in setUp()
125 doReturn(RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState).getRilVoiceRadioTechnology(); in setUp()
126 doReturn(RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState).getRilDataRadioTechnology(); in setUp()
127 doReturn(FREQUENCY_RANGE_UNKNOWN).when(mServiceState).getNrFrequencyRange(); in setUp()
128 doReturn(NR_STATE_NONE).when(mServiceState).getNrState(); in setUp()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DDataConnectionStats.java53 private ServiceState mServiceState; field in DataConnectionStats
89 if (mServiceState == null) { in notePhoneDataConnectionState()
98 mServiceState.getNetworkRegistrationInfo(DOMAIN_PS, TRANSPORT_TYPE_WWAN); in notePhoneDataConnectionState()
112 mServiceState.getState()); in notePhoneDataConnectionState()
144 return mServiceState != null in hasService()
145 && mServiceState.getState() != ServiceState.STATE_OUT_OF_SERVICE in hasService()
146 && mServiceState.getState() != ServiceState.STATE_POWER_OFF; in hasService()
176 mServiceState = state; in onServiceStateChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java104 private ServiceState mServiceState; field in MobileSignalController
483 return (mServiceState != null && mServiceState.isEmergencyOnly()); in isEmergencyOnly()
487 return Utils.isInService(mServiceState); in isInService()
503 return mServiceState != null && mServiceState.getRoaming(); in isRoaming()
603 int lastVoiceState = mServiceState != null ? mServiceState.getState() : -1; in updateMobileStatus()
604 mServiceState = mobileStatus.serviceState; in updateMobileStatus()
605 int currentVoiceState = mServiceState != null ? mServiceState.getState() : -1; in updateMobileStatus()
625 int currentVoiceState = mServiceState != null ? mServiceState.getState() : -1; in updateNoCallingState()
653 boolean isNoCalling = mServiceState != null in refreshCallIndicator()
654 && mServiceState.getState() != ServiceState.STATE_IN_SERVICE; in refreshCallIndicator()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DServiceStateStats.java57 state -> new TimestampedServiceState(state.mServiceState, now)); in conclude()
81 prevState, now, getDataServiceSwitch(prevState.mServiceState, newState)); in onServiceStateChanged()
93 if (prevState.mServiceState == null) { in addServiceStateAndSwitch()
98 CellularServiceState state = copyOf(prevState.mServiceState); in addServiceStateAndSwitch()
236 private final CellularServiceState mServiceState; field in ServiceStateStats.TimestampedServiceState
240 mServiceState = serviceState; in TimestampedServiceState()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneMmiCodeTest.java53 @Mock private ServiceState mServiceState; field in ImsPhoneMmiCodeTest
68 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp()
69 doReturn(false).when(mServiceState).getVoiceRoaming(); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DLinkBandwidthEstimatorTest.java102 when(mServiceState.getNetworkRegistrationInfo(anyInt(), anyInt())).thenReturn(mNri); in setUp()
103 when(mServiceState.getOperatorNumeric()).thenReturn("310260"); in setUp()
306 when(mServiceState.getNetworkRegistrationInfo(anyInt(), anyInt())).thenReturn(mNri); in testRatChangeTriggerBandwidthUpdate()
376 when(mServiceState.getNrState()).thenReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED); in testAvgBwForAllPossibleRat()
377 when(mServiceState.getNrFrequencyRange()).thenReturn(ServiceState.FREQUENCY_RANGE_MMWAVE); in testAvgBwForAllPossibleRat()
380 when(mServiceState.getNrFrequencyRange()).thenReturn(ServiceState.FREQUENCY_RANGE_UNKNOWN); in testAvgBwForAllPossibleRat()
385 when(mServiceState.getNrFrequencyRange()).thenReturn(ServiceState.FREQUENCY_RANGE_MMWAVE); in testAvgBwForAllPossibleRat()
402 when(mServiceState.getNrState()).thenReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED); in testSwitchToNrMmwaveTriggerBandwidthUpdate()
403 when(mServiceState.getNrFrequencyRange()).thenReturn(ServiceState.FREQUENCY_RANGE_MMWAVE); in testSwitchToNrMmwaveTriggerBandwidthUpdate()
557 when(mServiceState.getOperatorNumeric()).thenReturn("320265"); in testSwitchCarrierFallbackToColdStartValue()
[all …]
DApnSettingTest.java329 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMetered()
377 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMetered()
418 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMeteredAnother()
450 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMeteredAnother()
491 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMeteredNothingCharged()
511 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMeteredNothingCharged()
DDcTrackerTest.java669 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState) in setUp()
1180 doReturn(true).when(mServiceState).getDataRoaming(); in testUserDisableRoaming()
1209 doReturn(true).when(mServiceState).getDataRoaming(); in testDataCallOnUserDisableRoaming()
1362 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testTrySetupDataEnterpriseApn()
1386 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testTrySetupDataEnterpriseApnNoDefaultData()
1412 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testTrySetupDataEnterpriseApnNoDefaultData()
1437 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testTrySetupDataEnterpriseApnNoDefaultData()
1472 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testTrySetupDataEnterpriseApnDuplicateCid()
1621 doReturn(true).when(mServiceState).getDataRoaming(); in testTrySetupRestrictedRoamingDisabled()
1666 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testTrySetupDefaultOnIWLAN()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java112 protected ServiceState mServiceState; field in NetworkControllerBaseTest
200 mServiceState = mock(ServiceState.class); in setUp()
208 doReturn(mFakeRegInfo).when(mServiceState) in setUp()
422 when(mServiceState.getRoaming()).thenReturn(isRoaming); in setGsmRoaming()
432 when(mServiceState.getState()).thenReturn(voiceRegState); in setVoiceRegState()
437 when(mServiceState.getDataRegistrationState()).thenReturn(dataRegState); in setDataRegState()
442 when(mServiceState.isEmergencyOnly()).thenReturn(isEmergency); in setIsEmergencyOnly()
476 Log.d(TAG, "Sending Service State: " + mServiceState); in updateServiceState()
478 .onServiceStateChanged(mServiceState); in updateServiceState()
489 when(mServiceState.getNetworkRegistrationInfo(DOMAIN_PS, TRANSPORT_TYPE_WWAN)) in updateDataConnectionState()
DNetworkControllerDataTest.java253 when(mServiceState.getNetworkRegistrationInfo(DOMAIN_PS, TRANSPORT_TYPE_WWAN)) in testDataChangeWithoutConnectionState()
274 when(mServiceState.getOperatorAlphaShort()).thenReturn(newDataName); in testUpdateDataNetworkName()
DNetworkControllerSignalTest.java83 when(mServiceState.isEmergencyOnly()).thenReturn(true); in testServiceStateInitialState()
84 when(mMockTm.getServiceState()).thenReturn(mServiceState); in testServiceStateInitialState()
237 mServiceState = null; in testRoamingNoService_DoesNotCrash()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsDispatcherTest.java81 doReturn(mServiceState).when(mPhone).getServiceState(); in testSendSms()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java304 private ServiceState[] mServiceState; field in TelephonyRegistry
646 mServiceState = copyOf(mServiceState, mNumPhones); in onMultiSimConfigChanged()
695 mServiceState[i] = new ServiceState(); in onMultiSimConfigChanged()
755 mServiceState = new ServiceState[numPhones]; in TelephonyRegistry()
795 mServiceState[i] = new ServiceState(); in TelephonyRegistry()
1064 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen()
1065 ServiceState rawSs = new ServiceState(mServiceState[phoneId]); in listen()
1571 mServiceState[phoneId] = state; in notifyServiceStateForPhoneId()
2754 pw.println("mServiceState=" + mServiceState[i]); in dump()
3272 mServiceState[phoneId]);
[all …]
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java571 private final ServiceState mServiceState; field in TextClassificationManagerService.PendingRequest
598 mServiceState = Objects.requireNonNull(serviceState); in PendingRequest()
619 mServiceState.mPendingRequests.remove(this); in removeLocked()

12