Home
last modified time | relevance | path

Searched refs:getServiceState (Results 1 – 25 of 47) 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/Mms/tests/unittests/src/com/android/mms/service/metrics/
DMmsStatsTest.java74 doReturn(null).when(mTelephonyManager).getServiceState(); in addAtomToStorage_incomingMms_default()
102 doReturn(null).when(mTelephonyManager).getServiceState(); in addAtomToStorage_outgoingMms_default()
132 doReturn(serviceState).when(mTelephonyManager).getServiceState(); in getDataRoamingType_serviceState_notNull()
165 doReturn(serviceState).when(mTelephonyManager).getServiceState(); in testIsNtn_serviceState_notNull()
197 doReturn(null).when(mTelephonyManager).getServiceState(); in testIsNtn_serviceState_Null()
/packages/services/Mms/tests/robotests/src/com/android/mms/service/
DMmsRequestRoboTest.java118 doReturn(ss).when(mTelephonyManager).getServiceState(); in sendRequest_connectedToSatellite_smallPdu_sendSuccessful()
137 doReturn(ss).when(mTelephonyManager).getServiceState(); in sendRequest_connectedToSatellite_largePdu_sendSFails()
/packages/services/Mms/src/com/android/mms/service/metrics/
DMmsStats.java188 ServiceState serviceState = mTelephonyManager.getServiceState(); in getDataRoamingType()
243 ServiceState ss = mTelephonyManager.getServiceState(); in isUsingNonTerrestrialNetwork()
/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.java318 public ServiceState getServiceState(int subId) { in getServiceState() method in ServiceStateProvider
360 ServiceState ss = getServiceState(subId); in insert()
408 ServiceState unredactedServiceState = getServiceState(subId); in query()
DNumberVerificationManager.java138 if (phone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { in checkNumberVerificationFeasibility()
DPhoneGlobals.java1052 ServiceState serviceState = phone.getServiceState(); in updateDataRoamingStatus()
1274 ? roamingOperatorNumeric : phone.getServiceState().getOperatorNumeric())) { in updateDataRoamingStatusForFeatureDisabled()
1311 return getPhone(subId).getServiceState().getDataRoaming(); in dataIsNowRoaming()
1407 notificationMgr.updateNetworkSelection(phone.getServiceState().getState(), subId); in onNetworkSelectionChanged()
DNotificationMgr.java162 if (telephonyManager.getServiceState() != null) {
163 shouldShowNotification(telephonyManager.getServiceState().getState(),
1093 final ServiceState serviceState = telephonyManager.getServiceState(); in isTdscdmaSupported()
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSliceHelper.java112 final ServiceState serviceState = mTelephonyManager.getServiceState(); in isDataStateInService()
124 final ServiceState serviceState = mTelephonyManager.getServiceState(); in isVoiceStateInService()
DSubscriptionsPreferenceController.java283 final ServiceState serviceState = tmForSubId.getServiceState(); in getMobilePreferenceSummary()
329 final ServiceState serviceState = tmForSubId.getServiceState(); in getIcon()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionServiceTest.java2718 when(testPhone.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_InService()
2719 when(mSST.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_InService()
2730 when(otherPhone.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_InService()
2757 when(testPhone.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_Timeout()
2758 when(mSST.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_Timeout()
2782 when(testPhone.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_CombinedAttach()
2783 when(mSST.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_CombinedAttach()
2818 when(testPhone.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_PsOnly()
2819 when(mSST.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_PsOnly()
2855 when(testPhone.getServiceState()).thenReturn(ss); in testDomainSelectionNormalRoutingEmergencyNumber_exitingApm_PsOnly_ImsRegistered()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DStatusCheckTask.java70 if (telephonyManager.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) { in onExecuteInBackgroundThread()
DActivationTask.java298 return telephonyManager.getServiceState().getState() == ServiceState.STATE_IN_SERVICE; in hasSignal()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java238 doReturn(mockSS).when(mMockedTelephonyManager).getServiceState(); in testHandleCellBroadcastIntentDomesticRoaming()
266 doReturn(mockSS).when(mMockedTelephonyManager).getServiceState(); in testHandleCellBroadcastIntentInternationalRoaming()
294 doReturn(mockSS).when(mMockedTelephonyManager).getServiceState(); in testHandleCellBroadcastIntentNonRoaming()
321 doReturn(mockSS).when(mMockedTelephonyManager).getServiceState(); in testHandleCellBroadcastIntentNonMatchedScope()
/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/
DSubscriptionsPreferenceControllerTest.java140 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
533 doReturn(ss).when(mTelephonyManagerForSub).getServiceState(); in getIcon_voiceInServiceAndMobileDataOff_iconIsSignalIcon()
601 doReturn(ss).when(mTelephonyManagerForSub).getServiceState(); in setupGetIconConditions()
DProviderModelSliceHelperTest.java114 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DPreferredNetworkModePreferenceControllerTest.java84 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java231 ServiceState getServiceState() { in getServiceState() method in HeadsetPhoneState
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java1144 if (phone == null || phone.getServiceState().getState() in onCreateOutgoingConnection()
1592 int state = phone.getServiceState().getState(); in getTelephonyConnection()
1594 int dataNetType = phone.getServiceState().getDataNetworkType(); in getTelephonyConnection()
1598 state = phone.getServiceState().getDataRegistrationState(); in getTelephonyConnection()
2090 if (phone == null || TextUtils.isEmpty(number) || !phone.getServiceState().getRoaming()) { in blockCallForwardingNumberWhileRoaming()
2123 && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE); in useImsForAudioOnlyCall()
3017 ServiceState ss = phone.getServiceStateTracker().getServiceState(); in isVoiceInService()
3686 boolean isRoaming = phone.getServiceState().getVoiceRoaming(); in possiblyOverrideDefaultDataForEmergencyCall()
3694 phone.getServiceState().getOperatorNumeric())) { in possiblyOverrideDefaultDataForEmergencyCall()
4106 if (ServiceState.STATE_IN_SERVICE == phone.getServiceState().getState()) { in isAvailableForEmergencyCalls()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DCrossSimRedialingController.java293 ServiceState ss = tm.getServiceState(); in isNetworkRegistered()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVoicemailStatus.java144 int state = telephonyManager.getServiceState().getState(); in getNotificationChannelStateFormTelephony()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java306 && getServiceState(context) == ServiceState.STATE_POWER_OFF) in onServiceStateChanged()
492 private static int getServiceState(Context context) { in getServiceState() method in CellBroadcastReceiver
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmCellBroadcastHandlerTest.java317 doReturn(ss).when(mMockedTelephonyManager).getServiceState(); in testSmsCbLocation()
457 doReturn(ss).when(mMockedTelephonyManager).getServiceState(); in testGeofencingDontSendWithMockCalculator()

12