Home
last modified time | relevance | path

Searched refs:getServiceState (Results 1 – 25 of 45) 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()
DTelephonyConnectionServiceTest.java942 testPhone.getServiceState().setRoaming(false); in testCreateOutgoingEmergencyConnection_delayDial_carrierconfig_dds()
1027 testPhone.getServiceState().setRoaming(false); in testCreateOutgoingEmergencyConnection_delayDial_nocarrierconfig()
1053 testPhone.getServiceState().setRoaming(false); in testCreateOutgoingEmergencyConnection_delayDial_supportsuplondds()
1079 testPhone.getServiceState().setRoaming(true); in testCreateOutgoingEmergencyConnection_delayDial_roaming_nocarrierconfig()
1104 testPhone.getServiceState().setRoaming(false); in testCreateOutgoingEmergencyConnection_delayDial_roamingcarrierconfig()
1105 testPhone.getServiceState().setOperatorName("TestTel", "TestTel", testRoamingOperator); in testCreateOutgoingEmergencyConnection_delayDial_roamingcarrierconfig()
1137 testPhone.getServiceState().setRoaming(true); in testCreateOutgoingEmergencyConnection_delayDial__roaming_roamingcarrierconfig()
1138 testPhone.getServiceState().setOperatorName("TestTel", "TestTel", testRoamingOperator); in testCreateOutgoingEmergencyConnection_delayDial__roaming_roamingcarrierconfig()
1271 when(phone.getServiceState()).thenReturn(testServiceState); in makeTestPhone()
/packages/services/Telephony/src/com/android/phone/
DServiceStateProvider.java274 public ServiceState getServiceState(int subId) { in getServiceState() method in ServiceStateProvider
316 ServiceState ss = getServiceState(subId); in insert()
364 ServiceState ss = getServiceState(subId); in query()
DNumberVerificationManager.java138 if (phone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { in checkNumberVerificationFeasibility()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/gsm/
DAutoSelectPreferenceControllerTest.java109 when(mTelephonyManager.getServiceState().getRoaming()).thenReturn(true); in updateState_isRoaming_enabled()
118 when(mTelephonyManager.getServiceState().getRoaming()).thenReturn(false); in updateState_notRoamingWithAutoSelectOn_disabled()
DOpenNetworkSelectPagePreferenceControllerTest.java83 when(mTelephonyManager.getServiceState()).thenReturn(mServiceState); in setUp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DPreferredNetworkModePreferenceController.java65 && !telephonyManager.getServiceState().getRoaming() in getAvailabilityStatus()
66 && telephonyManager.getServiceState().getDataRegState() in getAvailabilityStatus()
DEnabledNetworkModePreferenceController.java68 && !telephonyManager.getServiceState().getRoaming() in getAvailabilityStatus()
69 && telephonyManager.getServiceState().getDataRegState() in getAvailabilityStatus()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java767 if (phone == null || phone.getServiceState().getState() in onCreateOutgoingConnection()
1054 int state = phone.getServiceState().getState(); in getTelephonyConnection()
1056 int dataNetType = phone.getServiceState().getDataNetworkType(); in getTelephonyConnection()
1059 state = phone.getServiceState().getDataRegistrationState(); in getTelephonyConnection()
1535 if (phone == null || TextUtils.isEmpty(number) || !phone.getServiceState().getRoaming()) { in blockCallForwardingNumberWhileRoaming()
1954 boolean isRoaming = phone.getServiceState().getVoiceRoaming(); in possiblyOverrideDefaultDataForEmergencyCall()
1962 phone.getServiceState().getOperatorNumeric())) { in possiblyOverrideDefaultDataForEmergencyCall()
2214 return ServiceState.STATE_IN_SERVICE == phone.getServiceState().getState() || in isAvailableForEmergencyCalls()
2215 phone.getServiceState().isEmergencyOnly(); in isAvailableForEmergencyCalls()
DRadioOnStateListener.java200 ServiceState state = mPhone.getServiceState(); in onRadioOn()
222 int serviceState = mPhone.getServiceState().getState(); in onRetryTimeout()
/packages/services/Telephony/src/com/android/phone/vvm/
DVvmSimStateTracker.java161 if (telephonyManager.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { in onBootCompleted()
229 if (telephonyManager.getServiceState().getState() in onCarrierConfigChanged()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java137 && getServiceState(context) == ServiceState.STATE_POWER_OFF) { in onReceive()
213 private static int getServiceState(Context context) { in getServiceState() method in CellBroadcastReceiver
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceController.java77 final ServiceState ss = mTelephonyManager.getServiceState(); in getSummary()
DAutoSelectPreferenceController.java96 if (mTelephonyManager.getServiceState().getRoaming()) { in updateState()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DStatusCheckTask.java70 if (telephonyManager.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) { in onExecuteInBackgroundThread()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRadioInfo.java982 ServiceState ss = phone.getServiceState(); in updateNetworkType()
984 phone.getServiceState().getRilDataRadioTechnology())); in updateNetworkType()
986 phone.getServiceState().getRilVoiceRadioTechnology())); in updateNetworkType()
1254 return phone.getServiceState().getState() != ServiceState.STATE_POWER_OFF; in isRadioOn()
/packages/apps/Settings/src/com/android/settings/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceController.java112 final ServiceState ss = mTelephonyManager.getServiceState(); in getSummary()
DAutoSelectPreferenceController.java128 if (mTelephonyManager.getServiceState().getRoaming()) { in updateState()
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java144 if (mPhone.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) { in onStartOtaspCall()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java1126 ServiceState ss = mPhone.getServiceState(); in updateNetworkType()
1128 mPhone.getServiceState().getRilDataRadioTechnology())); in updateNetworkType()
1130 mPhone.getServiceState().getRilVoiceRadioTechnology())); in updateNetworkType()
1403 return mPhone.getServiceState().getState() != ServiceState.STATE_POWER_OFF; in isRadioOn()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java239 final ServiceState serviceState = mTelephonyManager.getServiceState(); in updateSubscriptionStatus()
474 ServiceState serviceState = mTelephonyManager.getServiceState(); in updateSignalStrength()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DPreferredNetworkModePreferenceControllerTest.java79 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
DRenameMobileNetworkDialogFragmentTest.java96 when(mTelephonyMgr.getServiceState()).thenReturn(mServiceState); in setUp()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java204 ServiceState getServiceState() { in getServiceState() method in HeadsetPhoneState

12