Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DPreferredNetworkModePreferenceControllerTest.java60 private ServiceState mServiceState; field in PreferredNetworkModePreferenceControllerTest
78 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
112 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
113 when(mServiceState.getDataRegistrationState()).thenReturn( in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
117 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
118 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
120 when(mServiceState.getRoaming()).thenReturn(false); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
123 when(mServiceState.getRoaming()).thenReturn(true); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
DEnabledNetworkModePreferenceControllerTest.java70 private ServiceState mServiceState; field in EnabledNetworkModePreferenceControllerTest
92 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
117 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
118 when(mServiceState.getDataRegistrationState()).thenReturn( in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
122 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
123 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
125 when(mServiceState.getRoaming()).thenReturn(false); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
128 when(mServiceState.getRoaming()).thenReturn(true); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
DRenameMobileNetworkDialogFragmentTest.java73 private ServiceState mServiceState; field in RenameMobileNetworkDialogFragmentTest
95 when(mTelephonyMgr.getServiceState()).thenReturn(mServiceState); in setUp()
96 when(mServiceState.getOperatorAlphaLong()).thenReturn("fake carrier name"); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogControllerTest.java102 private ServiceState mServiceState; field in SimStatusDialogControllerTest
183 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setup()
232 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in initialize_updateServiceStateWithInService_shouldUpdateTextToBeCInService()
242 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in initialize_updateServiceStateWithPowerOff_shouldUpdateTextAndResetSignalStrength()
255 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in initialize_updateVoiceDataOutOfService_shouldUpdateSettingAndResetSignalStrength()
256 when(mServiceState.getDataRegistrationState()).thenReturn( in initialize_updateVoiceDataOutOfService_shouldUpdateSettingAndResetSignalStrength()
270 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateTextToBeInService()
271 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateTextToBeInService()
317 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateSignalStrengthTo50()
318 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateSignalStrengthTo50()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceControllerTest.java58 private ServiceState mServiceState; field in OpenNetworkSelectPagePreferenceControllerTest
77 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
110 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getSummary_inService_returnOperatorName()
117 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getSummary_notInService_returnDisconnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java53 private ServiceState mServiceState; field in HeadsetPhoneState
205 return mServiceState; in getServiceState()
260 mServiceState = null; in onSubscriptionsChanged()
278 mServiceState = serviceState; in onServiceStateChanged()
/packages/services/Telephony/src/com/android/services/telephony/
DTelecomAccountRegistry.java1047 if (newState == ServiceState.STATE_IN_SERVICE && mServiceState != newState) {
1057 mServiceState = newState;
1080 private int mServiceState = ServiceState.STATE_POWER_OFF; field in TelecomAccountRegistry