/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | PreferredNetworkModePreferenceControllerTest.java | 64 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/ |
D | SimStatusDialogControllerTest.java | 89 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/ |
D | OpenNetworkSelectPagePreferenceControllerTest.java | 59 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/ |
D | EnabledNetworkModePreferenceControllerTest.java | 78 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()
|
D | ProviderModelSliceHelperTest.java | 87 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/ |
D | HeadsetPhoneState.java | 55 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/ |
D | RenameMobileNetworkDialogFragmentTest.java | 76 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/ |
D | TelecomAccountRegistry.java | 1095 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
|