Home
last modified time | relevance | path

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

/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DEmergencySmsDomainSelector.java53 private ServiceState mServiceState; field in EmergencySmsDomainSelector
96 mServiceState = null; in finishSelection()
118 mServiceState = serviceState; in onServiceStateUpdated()
322 if (mServiceState == null) { in isLteEmergencyAvailableInService()
326 final NetworkRegistrationInfo regInfo = mServiceState.getNetworkRegistrationInfo( in isLteEmergencyAvailableInService()
341 if (mServiceState == null) { in isLteEmergencyAvailableInLimitedService()
345 final NetworkRegistrationInfo regInfo = mServiceState.getNetworkRegistrationInfo( in isLteEmergencyAvailableInLimitedService()
423 if (mServiceState == null) { in isNrEmergencyServiceFallbackRequired()
427 final NetworkRegistrationInfo regInfo = mServiceState.getNetworkRegistrationInfo( in isNrEmergencyServiceFallbackRequired()
443 if (mServiceState == null) { in isNrEmergencyAvailable()
[all …]
DNormalCallDomainSelector.java64 protected ServiceState mServiceState; field in NormalCallDomainSelector
233 mServiceState = serviceState; in onServiceStateUpdated()
267 loge("Cannot place call in current ServiceState: " + mServiceState.getState()); in notifyCsSelected()
303 return (mServiceState.getState() == ServiceState.STATE_OUT_OF_SERVICE in isOutOfService()
304 || mServiceState.getState() == ServiceState.STATE_POWER_OFF in isOutOfService()
305 || mServiceState.getState() == ServiceState.STATE_EMERGENCY_ONLY); in isOutOfService()
361 if (mServiceState == null) { in selectDomain()
DImsStateTracker.java115 private ServiceState mServiceState; field in ImsStateTracker
215 mServiceState = serviceState; in updateServiceState()
231 final ServiceState serviceState = mServiceState; in addServiceStateListener()
850 ipw.println("ServiceState: " + mServiceState); in dump()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DPreferredNetworkModePreferenceControllerTest.java65 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()
DEnabledNetworkModePreferenceControllerTest.java86 private ServiceState mServiceState; field in EnabledNetworkModePreferenceControllerTest
111 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
142 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
143 when(mServiceState.getDataRegistrationState()).thenReturn( in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
147 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
148 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
150 when(mServiceState.getRoaming()).thenReturn(false); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
153 when(mServiceState.getRoaming()).thenReturn(true); in getAvailabilityStatus_hidePreferredNetworkType_returnUnavailable()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogControllerTest.java79 private ServiceState mServiceState; field in SimStatusDialogControllerTest
149 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setup()
181 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in initialize_updateServiceStateWithInService_shouldUpdateTextToBeCInService()
193 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in initialize_updateServiceStateWithPowerOff_shouldUpdateText()
205 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in initialize_updateVoiceDataOutOfService_shouldUpdateSetting()
206 when(mServiceState.getDataRegistrationState()).thenReturn( in initialize_updateVoiceDataOutOfService_shouldUpdateSetting()
218 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateTextToBeInService()
219 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateTextToBeInService()
252 when(mServiceState.getRoaming()).thenReturn(true); in initialize_updateRoamingStatusIsRoaming_shouldSetSettingToRoaming()
263 when(mServiceState.getRoaming()).thenReturn(false); in initialize_updateRoamingStatusNotRoaming_shouldSetSettingToRoamingOff()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DEmergencySmsDomainSelectorTest.java76 @Mock private ServiceState mServiceState; field in EmergencySmsDomainSelectorTest
164 mServiceState = null; in tearDown()
175 mServiceStateListener.onServiceStateUpdated(mServiceState); in testFinishSelection()
194 mServiceStateListener.onServiceStateUpdated(mServiceState); in testIsDomainSelectionReady()
208 mServiceStateListener.onServiceStateUpdated(mServiceState); in testIsDomainSelectionReadyAndSelectDomain()
324 when(mServiceState.getNetworkRegistrationInfo( in testIsSmsOverImsAvailableWhenNoLteOrNr()
328 mServiceStateListener.onServiceStateUpdated(mServiceState); in testIsSmsOverImsAvailableWhenNoLteOrNr()
341 when(mServiceState.getNetworkRegistrationInfo( in testIsSmsOverImsAvailableWhenLteNotRegisteredOrEmergencyNotEnabled()
345 mServiceStateListener.onServiceStateUpdated(mServiceState); in testIsSmsOverImsAvailableWhenLteNotRegisteredOrEmergencyNotEnabled()
479 mServiceStateListener.onServiceStateUpdated(mServiceState); in testSelectDomainWhilePreviousRequestInProgress()
[all …]
DImsStateTrackerTest.java85 @Mock private ServiceState mServiceState; field in ImsStateTrackerTest
233 mImsStateTracker.updateServiceState(mServiceState); in testUpdateServiceStateBeforeAddingListener()
237 verify(mServiceStateListener).onServiceStateUpdated(eq(mServiceState)); in testUpdateServiceStateBeforeAddingListener()
251 mImsStateTracker.updateServiceState(mServiceState); in testUpdateServiceStateAfterAddingListener()
254 verify(mServiceStateListener).onServiceStateUpdated(eq(mServiceState)); in testUpdateServiceStateAfterAddingListener()
270 mImsStateTracker.updateServiceState(mServiceState); in testAddAndRemoveServiceStateListener()
275 verify(mServiceStateListener, never()).onServiceStateUpdated(eq(mServiceState)); in testAddAndRemoveServiceStateListener()
DTelephonyDomainSelectionServiceTest.java135 private final ServiceState mServiceState = new ServiceState(); field in TelephonyDomainSelectionServiceTest
301 mDomainSelectionService.onServiceStateUpdated(SLOT_0, SUB_1, mServiceState); in testOnServiceStateUpdated()
303 verify(mImsStateTracker).updateServiceState(eq(mServiceState)); in testOnServiceStateUpdated()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java52 private ServiceState mServiceState; field in HeadsetPhoneState
232 return mServiceState; in getServiceState()
295 mServiceState = null; in onSubscriptionsChanged()
314 mServiceState = serviceState; in onServiceStateChanged()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceHelperTest.java86 private ServiceState mServiceState; field in ProviderModelSliceHelperTest
114 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
268 when(mServiceState.getState()).thenReturn(serviceState); in mockConnections()
277 when(mServiceState.getNetworkRegistrationInfo(NetworkRegistrationInfo.DOMAIN_PS, in mockConnections()
DSubscriptionsPreferenceControllerTest.java111 private ServiceState mServiceState; field in SubscriptionsPreferenceControllerTest
140 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
142 when(mServiceState.getNetworkRegistrationInfo(anyInt(), anyInt())) in setUp()
546 when(mServiceState.getNetworkRegistrationInfo(anyInt(), anyInt())) in getIcon_carrierNetworkIsNotActive_useMobileDataLevel()
564 when(mServiceState.getNetworkRegistrationInfo(anyInt(), anyInt())) in getIcon_carrierNetworkIsActive_useCarrierNetworkLevel()
/packages/services/Telephony/tests/src/com/android/phone/
DNotificationMgrTest.java126 @Mock ServiceState mServiceState; field in NotificationMgrTest
145 when(mPhone.getServiceState()).thenReturn(mServiceState); in setUp()
146 when(mServiceState.getNetworkRegistrationInfo(anyInt(), anyInt())).thenReturn( in setUp()
152 mServiceStateTracker.mSS = mServiceState; in setUp()
188 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
629 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in prepareResourcesForNetworkSelection()
/packages/services/Telephony/tests/src/com/android/phone/slice/
DSlicePurchaseControllerTest.java99 @Mock ServiceState mServiceState; field in SlicePurchaseControllerTest
128 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp()
370 doReturn(TelephonyManager.NETWORK_TYPE_NR).when(mServiceState).getDataNetworkType(); in testPurchasePremiumCapabilityResultNetworkNotAvailable()
389 doReturn(TelephonyManager.NETWORK_TYPE_NR).when(mServiceState).getDataNetworkType(); in testPurchasePremiumCapabilityResultEntitlementCheckFailed()
824 doReturn(TelephonyManager.NETWORK_TYPE_NR).when(mServiceState).getDataNetworkType(); in sendValidPurchaseRequest()
/packages/services/Telephony/src/com/android/services/telephony/
DTelecomAccountRegistry.java1251 newState, mServiceState); in onServiceStateChanged()
1252 if (newState == ServiceState.STATE_IN_SERVICE && mServiceState != newState) { in onServiceStateChanged()
1263 mServiceState = newState; in onServiceStateChanged()
1286 private int mServiceState = ServiceState.STATE_POWER_OFF; field in TelecomAccountRegistry