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()
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.java103 when(mTelephonyManager.getServiceState().getRoaming()).thenReturn(true); in updateState_isRoaming_enabled()
112 when(mTelephonyManager.getServiceState().getRoaming()).thenReturn(false); in updateState_notRoamingWithAutoSelectOn_disabled()
DOpenNetworkSelectPagePreferenceControllerTest.java77 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.java772 if (phone == null || phone.getServiceState().getState() in onCreateOutgoingConnection()
1059 int state = phone.getServiceState().getState(); in getTelephonyConnection()
1061 int dataNetType = phone.getServiceState().getDataNetworkType(); in getTelephonyConnection()
1064 state = phone.getServiceState().getDataRegistrationState(); in getTelephonyConnection()
1540 if (phone == null || TextUtils.isEmpty(number) || !phone.getServiceState().getRoaming()) { in blockCallForwardingNumberWhileRoaming()
1966 boolean isRoaming = phone.getServiceState().getVoiceRoaming(); in possiblyOverrideDefaultDataForEmergencyCall()
1974 phone.getServiceState().getOperatorNumeric())) { in possiblyOverrideDefaultDataForEmergencyCall()
2226 return ServiceState.STATE_IN_SERVICE == phone.getServiceState().getState() || in isAvailableForEmergencyCalls()
2227 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.java133 && getServiceState(context) == ServiceState.STATE_POWER_OFF) { in onReceive()
206 private static int getServiceState(Context context) { in getServiceState() method in CellBroadcastReceiver
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java1156 ServiceState ss = mPhone.getServiceState(); in updateNetworkType()
1158 mPhone.getServiceState().getRilDataRadioTechnology())); in updateNetworkType()
1160 mPhone.getServiceState().getRilVoiceRadioTechnology())); in updateNetworkType()
1172 ss = mPhone.getServiceState(); in updateNrStats()
1459 return mPhone.getServiceState().getState() != ServiceState.STATE_POWER_OFF; in isRadioOn()
/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/Settings/src/com/android/settings/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceController.java75 final ServiceState ss = mTelephonyManager.getServiceState(); in getSummary()
DAutoSelectPreferenceController.java95 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/deviceinfo/simstatus/
DSimStatusDialogController.java237 final ServiceState serviceState = mTelephonyManager.getServiceState(); in updateSubscriptionStatus()
438 ServiceState serviceState = mTelephonyManager.getServiceState(); in updateSignalStrength()
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java144 if (mPhone.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) { in onStartOtaspCall()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DPreferredNetworkModePreferenceControllerTest.java78 doReturn(mServiceState).when(mTelephonyManager).getServiceState(); in setUp()
DRenameMobileNetworkDialogFragmentTest.java95 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