Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DPreferredNetworkModePreferenceControllerTest.java64 private ServiceState mServiceState; field in PreferredNetworkModePreferenceControllerTest
84 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
116 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
117 when(mServiceState.getDataRegistrationState()).thenReturn( in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
121 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
122 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
124 when(mServiceState.getRoaming()).thenReturn(false); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
127 when(mServiceState.getRoaming()).thenReturn(true); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogControllerTest.java89 private ServiceState mServiceState; field in SimStatusDialogControllerTest
166 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setup()
199 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in initialize_updateServiceStateWithInService_shouldUpdateTextToBeCInService()
210 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in initialize_updateServiceStateWithPowerOff_shouldUpdateTextAndResetSignalStrength()
222 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in initialize_updateVoiceDataOutOfService_shouldUpdateSettingAndResetSignalStrength()
223 when(mServiceState.getDataRegistrationState()).thenReturn( in initialize_updateVoiceDataOutOfService_shouldUpdateSettingAndResetSignalStrength()
236 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateTextToBeInService()
237 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateTextToBeInService()
278 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateSignalStrengthTo50()
279 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateSignalStrengthTo50()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceControllerTest.java59 private ServiceState mServiceState; field in OpenNetworkSelectPagePreferenceControllerTest
81 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
112 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getSummary_inService_returnOperatorName()
119 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getSummary_notInService_returnDisconnect()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DEnabledNetworkModePreferenceControllerTest.java78 private ServiceState mServiceState; field in EnabledNetworkModePreferenceControllerTest
102 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
130 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
131 when(mServiceState.getDataRegistrationState()).thenReturn( in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
135 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
136 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
138 when(mServiceState.getRoaming()).thenReturn(false); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
141 when(mServiceState.getRoaming()).thenReturn(true); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
DProviderModelSliceHelperTest.java87 private ServiceState mServiceState; field in ProviderModelSliceHelperTest
115 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
275 when(mServiceState.getState()).thenReturn(serviceState); in mockConnections()
284 when(mServiceState.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in mockConnections()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java55 private ServiceState mServiceState; field in HeadsetPhoneState
207 return mServiceState; in getServiceState()
263 mServiceState = null; in onSubscriptionsChanged()
282 mServiceState = serviceState; in onServiceStateChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragmentTest.java76 private ServiceState mServiceState; field in RenameMobileNetworkDialogFragmentTest
98 when(mTelephonyMgr.getServiceState()).thenReturn(mServiceState); in setUp()
99 when(mServiceState.getOperatorAlphaLong()).thenReturn("fake carrier name"); in setUp()
/packages/services/Telephony/src/com/android/services/telephony/
DTelecomAccountRegistry.java1095 if (newState == ServiceState.STATE_IN_SERVICE && mServiceState != newState) { in onServiceStateChanged()
1105 mServiceState = newState; in onServiceStateChanged()
1128 private int mServiceState = ServiceState.STATE_POWER_OFF; field in TelecomAccountRegistry