Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNetworkTypeControllerTest.java110 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getDataNetworkType(); in testUpdateOverrideNetworkTypeNrNsa()
113 doReturn(NetworkRegistrationInfo.NR_STATE_NONE).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
119 doReturn(NetworkRegistrationInfo.NR_STATE_RESTRICTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
125 doReturn(NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
131 doReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED).when(mServiceState).getNrState(); in testUpdateOverrideNetworkTypeNrNsa()
132 doReturn(ServiceState.FREQUENCY_RANGE_LOW).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrNsa()
138 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrNsa()
146 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getDataNetworkType(); in testUpdateOverrideNetworkTypeLte()
154 doReturn(true).when(mServiceState).isUsingCarrierAggregation(); in testUpdateOverrideNetworkTypeLte()
160 doReturn("test_patternShowAdvanced").when(mServiceState).getOperatorAlphaLongRaw(); in testUpdateOverrideNetworkTypeLte()
[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.java54 mServiceState.setVoiceRegState(serviceState.getState()); in setUp()
55 mServiceState.setDataRegState(serviceState.getDataRegistrationState()); in setUp()
94 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
95 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()
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.java194 protected ServiceState mServiceState; field in TelephonyTest
507 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp()
508 doReturn(mServiceState).when(mImsPhone).getServiceState(); in setUp()
582 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_UMTS).when(mServiceState). in setUp()
598 doReturn(mServiceState).when(mSST).getServiceState(); in setUp()
599 mSST.mSS = mServiceState; in setUp()
613 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in setUp()
DGsmCdmaCallTrackerTest.java87 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testMOCallDial()
DServiceStateTrackerTest.java2595 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mServiceState).getState(); in testUpdateSpnDisplayLegacy_WlanServiceNoWifiCalling_displayOOS()
2596 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getDataRegistrationState(); in testUpdateSpnDisplayLegacy_WlanServiceNoWifiCalling_displayOOS()
2597 doReturn(TelephonyManager.NETWORK_TYPE_IWLAN).when(mServiceState).getDataNetworkType(); in testUpdateSpnDisplayLegacy_WlanServiceNoWifiCalling_displayOOS()
2598 sst.mSS = mServiceState; in testUpdateSpnDisplayLegacy_WlanServiceNoWifiCalling_displayOOS()
DGsmCdmaPhoneTest.java477 mSST.mSS = mServiceState; in testDial()
478 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testDial()
DRILTest.java2379 .when(mServiceState).getRilVoiceRadioTechnology(); in testFixupSignalStrength10()
2397 .when(mServiceState).getRilVoiceRadioTechnology(); in testFixupSignalStrength10()
/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/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java51 private ServiceState mServiceState; field in DataConnectionStats
91 if (mServiceState == null) { in notePhoneDataConnectionState()
100 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()
161 mServiceState = state; in onServiceStateChanged()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DVoiceCallSessionStatsTest.java142 doReturn(TelephonyManager.NETWORK_TYPE_UNKNOWN).when(mServiceState).getDataNetworkType(); in setUp()
143 doReturn(TelephonyManager.NETWORK_TYPE_UNKNOWN).when(mServiceState).getVoiceNetworkType(); in setUp()
144 doReturn(false).when(mServiceState).getVoiceRoaming(); in setUp()
187 mVoiceCallSessionStats0.onServiceStateChanged(mServiceState); in setUp()
201 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_moRejected()
249 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_moFailed()
287 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_moAccepted()
342 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_mtRejected()
384 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_mtAccepted()
437 doReturn(TelephonyManager.NETWORK_TYPE_LTE).when(mServiceState).getVoiceNetworkType(); in singleImsCall_dsdsModeSingleSim()
[all …]
DTelephonyMetricsTest.java92 private ServiceState mServiceState; field in TelephonyMetricsTest
115 doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getVoiceRoamingType(); in setUp()
116 doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getDataRoamingType(); in setUp()
117 doReturn("short").when(mServiceState).getOperatorAlphaShort(); in setUp()
118 doReturn("long").when(mServiceState).getOperatorAlphaLong(); in setUp()
119 doReturn("123456").when(mServiceState).getOperatorNumeric(); in setUp()
120 doReturn(RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState).getRilVoiceRadioTechnology(); in setUp()
121 doReturn(RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState).getRilDataRadioTechnology(); in setUp()
122 doReturn(FREQUENCY_RANGE_UNKNOWN).when(mServiceState).getNrFrequencyRange(); in setUp()
123 doReturn(NR_STATE_NONE).when(mServiceState).getNrState(); in setUp()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java81 private ServiceState mServiceState; field in MobileSignalController
415 return (mServiceState != null && mServiceState.isEmergencyOnly()); in isEmergencyOnly()
423 if (isCdma() && mServiceState != null) { in isRoaming()
429 return mServiceState != null && mServiceState.getRoaming(); in isRoaming()
528 Utils.isInService(mServiceState) + " ss=" + mSignalStrength in updateTelephony()
532 mCurrentState.connected = Utils.isInService(mServiceState) && mSignalStrength != null; in updateTelephony()
565 if (mCurrentState.networkName.equals(mNetworkNameDefault) && mServiceState != null in updateTelephony()
566 && !TextUtils.isEmpty(mServiceState.getOperatorAlphaShort())) { in updateTelephony()
567 mCurrentState.networkName = mServiceState.getOperatorAlphaShort(); in updateTelephony()
570 if (mCurrentState.networkNameData.equals(mNetworkNameDefault) && mServiceState != null in updateTelephony()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java101 protected ServiceState mServiceState; field in NetworkControllerBaseTest
171 mServiceState = mock(ServiceState.class); in setUp()
179 doReturn(mFakeRegInfo).when(mServiceState) in setUp()
306 when(mServiceState.getRoaming()).thenReturn(isRoaming); in setGsmRoaming()
317 when(mServiceState.getState()).thenReturn(voiceRegState); in setVoiceRegState()
322 when(mServiceState.getDataRegistrationState()).thenReturn(dataRegState); in setDataRegState()
327 when(mServiceState.isEmergencyOnly()).thenReturn(isEmergency); in setIsEmergencyOnly()
356 Log.d(TAG, "Sending Service State: " + mServiceState); in updateServiceState()
357 mPhoneStateListener.onServiceStateChanged(mServiceState); in updateServiceState()
372 when(mServiceState.getNetworkRegistrationInfo(DOMAIN_PS, TRANSPORT_TYPE_WWAN)) in updateDataConnectionState()
DNetworkControllerDataTest.java236 when(mServiceState.getNetworkRegistrationInfo(DOMAIN_PS, TRANSPORT_TYPE_WWAN)) in testDataChangeWithoutConnectionState()
257 when(mServiceState.getOperatorAlphaShort()).thenReturn(newDataName); in testUpdateDataNetworkName()
DNetworkControllerSignalTest.java77 when(mServiceState.isEmergencyOnly()).thenReturn(true); in testServiceStateInitialState()
78 when(mMockTm.getServiceState()).thenReturn(mServiceState); in testServiceStateInitialState()
224 mServiceState = null; in testRoamingNoService_DoesNotCrash()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnSettingTest.java330 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMetered()
377 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMetered()
417 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMeteredAnother()
447 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMeteredAnother()
487 doReturn(false).when(mServiceState).getDataRoaming(); in testIsMeteredNothingCharged()
507 doReturn(true).when(mServiceState).getDataRoaming(); in testIsRoamingMeteredNothingCharged()
DDcTrackerTest.java470 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState) in setUp()
892 doReturn(true).when(mServiceState).getDataRoaming(); in testUserDisableRoaming()
921 doReturn(true).when(mServiceState).getDataRoaming(); in testDataCallOnUserDisableRoaming()
1172 doReturn(true).when(mServiceState).getDataRoaming(); in testTrySetupRestrictedRoamingDisabled()
1217 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testTrySetupDefaultOnIWLAN()
1257 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testUpdateWaitingApnListOnDataRatChange()
1281 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testUpdateWaitingApnListOnDataRatChange()
1378 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testDataRatChangeOOS()
1403 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testDataRatChangeOOS()
1420 doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( in testDataRatChangeOOS()
[all …]
DDataConnectionTest.java1017 doReturn(false).when(mServiceState).getDataRoaming(); in testIsUnmeteredUseOnly()
/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.java234 private ServiceState[] mServiceState; field in TelephonyRegistry
462 mServiceState = copyOf(mServiceState, mNumPhones); in onMultiSimConfigChanged()
505 mServiceState[i] = new ServiceState(); in onMultiSimConfigChanged()
561 mServiceState = new ServiceState[numPhones]; in TelephonyRegistry()
594 mServiceState[i] = new ServiceState(); in TelephonyRegistry()
861 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen()
862 ServiceState rawSs = new ServiceState(mServiceState[phoneId]); in listen()
1302 mServiceState[phoneId] = state; in notifyServiceStateForPhoneId()
2363 pw.println("mServiceState=" + mServiceState[i]); in dump()
2805 mServiceState[phoneId]);
[all …]
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java501 private final ServiceState mServiceState; field in TextClassificationManagerService.PendingRequest
527 mServiceState = Objects.requireNonNull(serviceState); in PendingRequest()
548 mServiceState.mPendingRequests.remove(this); in removeLocked()