Home
last modified time | relevance | path

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

12

/packages/services/Telephony/tests/src/com/android/phone/
DNumberVerificationManagerTest.java61 when(mPhone1.getServiceState()).thenReturn(ss); in setUp()
65 when(mPhone2.getServiceState()).thenReturn(ss); in setUp()
111 when(mPhone1.getServiceState()).thenReturn(ss); in testNoPhoneInServiceFailure()
112 when(mPhone2.getServiceState()).thenReturn(ss); in testNoPhoneInServiceFailure()
142 when(mPhone1.getServiceState()).thenReturn(ss); in testVerificationWorksWithOnePhoneInService()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java110 when(mMockPhone.getServiceState()).thenReturn(state); in testPhoneChangeState_OkToCallTrue()
136 when(mMockPhone.getServiceState()).thenReturn(state); in testPhoneChangeState_NoOkToCall_Timeout()
160 when(mMockPhone.getServiceState()).thenReturn(state); in testTimeout_RetryFailure()
181 when(mMockPhone.getServiceState()).thenReturn(state); in testTimeout_RetryFailure_ForEmergency()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java181 doReturn(mockSS).when(mMockedTelephonyManager).getServiceState(); in testHandleCellBroadcastIntentDomesticRoaming()
209 doReturn(mockSS).when(mMockedTelephonyManager).getServiceState(); in testHandleCellBroadcastIntentInternationalRoaming()
237 doReturn(mockSS).when(mMockedTelephonyManager).getServiceState(); in testHandleCellBroadcastIntentNonRoaming()
264 doReturn(mockSS).when(mMockedTelephonyManager).getServiceState(); in testHandleCellBroadcastIntentNonMatchedScope()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/gsm/
DAutoSelectPreferenceControllerTest.java117 when(mTelephonyManager.getServiceState().getRoaming()).thenReturn(true); in updateState_isRoaming_enabled()
126 when(mTelephonyManager.getServiceState().getRoaming()).thenReturn(false); in updateState_notRoamingWithAutoSelectOn_disabled()
DOpenNetworkSelectPagePreferenceControllerTest.java81 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnStateListener.java200 ServiceState state = mPhone.getServiceState(); in onRadioOn()
222 int serviceState = mPhone.getServiceState().getState(); in onRetryTimeout()
DTelephonyConnectionService.java741 if (phone == null || phone.getServiceState().getState() in onCreateOutgoingConnection()
1034 int state = phone.getServiceState().getState(); in getTelephonyConnection()
1036 int dataNetType = phone.getServiceState().getDataNetworkType(); in getTelephonyConnection()
1040 state = phone.getServiceState().getDataRegistrationState(); in getTelephonyConnection()
1529 if (phone == null || TextUtils.isEmpty(number) || !phone.getServiceState().getRoaming()) { in blockCallForwardingNumberWhileRoaming()
1562 && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE); in useImsForAudioOnlyCall()
2015 boolean isRoaming = phone.getServiceState().getVoiceRoaming(); in possiblyOverrideDefaultDataForEmergencyCall()
2023 phone.getServiceState().getOperatorNumeric())) { in possiblyOverrideDefaultDataForEmergencyCall()
2275 return ServiceState.STATE_IN_SERVICE == phone.getServiceState().getState() || in isAvailableForEmergencyCalls()
2276 phone.getServiceState().isEmergencyOnly(); in isAvailableForEmergencyCalls()
/packages/services/Telephony/src/com/android/phone/vvm/
DVvmSimStateTracker.java166 if (telephonyManager.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { in onBootCompleted()
234 if (telephonyManager.getServiceState().getState() in onCarrierConfigChanged()
/packages/services/Telephony/src/com/android/phone/
DServiceStateProvider.java305 public ServiceState getServiceState(int subId) { in getServiceState() method in ServiceStateProvider
347 ServiceState ss = getServiceState(subId); in insert()
395 ServiceState unredactedServiceState = getServiceState(subId); in query()
DNumberVerificationManager.java138 if (phone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { in checkNumberVerificationFeasibility()
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSliceHelper.java111 final ServiceState serviceState = mTelephonyManager.getServiceState(); in isDataStateInService()
123 final ServiceState serviceState = mTelephonyManager.getServiceState(); in isVoiceStateInService()
DSubscriptionsPreferenceController.java279 final ServiceState serviceState = tmForSubId.getServiceState(); in getMobilePreferenceSummary()
324 final ServiceState serviceState = tmForSubId.getServiceState(); in getIcon()
DNetworkProviderCallsSmsController.java216 mTelephonyManager.createForSubscriptionId(subId).getServiceState(); in isInService()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java1108 ServiceState ss = mPhone.getServiceState(); in updateNetworkType()
1110 mPhone.getServiceState().getRilDataRadioTechnology())); in updateNetworkType()
1112 mPhone.getServiceState().getRilVoiceRadioTechnology())); in updateNetworkType()
1124 ss = mPhone.getServiceState(); in updateNrStats()
1421 return mPhone.getServiceState().getState() != ServiceState.STATE_POWER_OFF; in isRadioOn()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DStatusCheckTask.java70 if (telephonyManager.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) { in onExecuteInBackgroundThread()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java150 && getServiceState(context) == ServiceState.STATE_POWER_OFF) { in onReceive()
315 private static int getServiceState(Context context) { in getServiceState() method in CellBroadcastReceiver
/packages/apps/Settings/src/com/android/settings/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceController.java109 final ServiceState ss = mTelephonyManager.getServiceState(); in getSummary()
DAutoSelectPreferenceController.java132 final ServiceState serviceState = mTelephonyManager.getServiceState(); in updateState()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmCellBroadcastHandlerTest.java296 doReturn(ss).when(mMockedTelephonyManager).getServiceState(); in testSmsCbLocation()
436 doReturn(ss).when(mMockedTelephonyManager).getServiceState(); in testGeofencingDontSendWithMockCalculator()
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java150 if (mPhone.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) { in onStartOtaspCall()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DPreferredNetworkModePreferenceControllerTest.java84 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java206 ServiceState getServiceState() { in getServiceState() method in HeadsetPhoneState
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java249 final ServiceState serviceState = mTelephonyManager.getServiceState(); in updateSubscriptionStatus()
501 ServiceState serviceState = mTelephonyManager.getServiceState(); in updateSignalStrength()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragmentTest.java98 when(mTelephonyMgr.getServiceState()).thenReturn(mServiceState); in setUp()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVoicemailStatus.java144 int state = telephonyManager.getServiceState().getState(); in getNotificationChannelStateFormTelephony()

12