Home
last modified time | relevance | path

Searched refs:ServiceState (Results 1 – 25 of 132) sorted by relevance

123456

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTest.java24 import android.telephony.ServiceState;
38 ServiceState ss = new ServiceState(); in testRoaming()
52 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming()
54 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getDataRoamingType()); in testRoaming()
59 ss.setVoiceRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming()
61 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getVoiceRoamingType()); in testRoaming()
66 ServiceState ss = new ServiceState(); in testRegState()
68 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testRegState()
69 assertEquals(ServiceState.STATE_IN_SERVICE, ss.getDataRegistrationState()); in testRegState()
71 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testRegState()
[all …]
DRatRatcheterTest.java26 import android.telephony.ServiceState;
38 private ServiceState mServiceState;
44 mServiceState = new ServiceState(); in setUp()
110 private void setNetworkRegistrationInfo(ServiceState ss, int accessNetworkTechnology) { in setNetworkRegistrationInfo()
132 ServiceState oldSS = new ServiceState(); in testRatchetIsFamily()
133 ServiceState newSS = new ServiceState(); in testRatchetIsFamily()
150 ServiceState oldSS = new ServiceState(); in testRatchetIsNotFamily()
151 ServiceState newSS = new ServiceState(); in testRatchetIsNotFamily()
DPhoneStateListenerExecutorTest.java23 import android.telephony.ServiceState;
52 public void onServiceStateChanged(ServiceState serviceState) { in setUp()
76 ServiceState ss = new ServiceState(); in testTriggerServiceStateChanged()
77 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
78 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
82 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
83 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
DCallManagerTest.java37 import android.telephony.ServiceState;
69 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp()
237 ServiceState mSecondServiceState = mock(ServiceState.class); in testGetServiceState()
245 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState()
246 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState()
249 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState(); in testGetServiceState()
250 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState()
253 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState(); in testGetServiceState()
254 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState()
257 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState()
[all …]
DPhoneStateListenerTest.java24 import android.telephony.ServiceState;
52 public void onServiceStateChanged(ServiceState serviceState) { in setUp()
87 ServiceState ss = new ServiceState(); in testTriggerServiceStateChanged()
88 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
89 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
94 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
95 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
DLocaleTrackerTest.java35 import android.telephony.ServiceState;
100 ServiceState ss = new ServiceState(); in sendServiceState()
147 sendServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testNoSim()
154 sendServiceState(ServiceState.STATE_EMERGENCY_ONLY); in testNoSim()
164 sendServiceState(ServiceState.STATE_POWER_OFF); in testBootupInAirplaneModeOn()
173 sendServiceState(ServiceState.STATE_IN_SERVICE); in testToggleAirplaneModeOn()
186 sendServiceState(ServiceState.STATE_POWER_OFF); in testToggleAirplaneModeOn()
201 sendServiceState(ServiceState.STATE_POWER_OFF); in testToggleAirplaneModeOff()
208 sendServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testToggleAirplaneModeOff()
217 sendServiceState(ServiceState.STATE_POWER_OFF); in testToggleAirplaneModeOosPlmn()
[all …]
DGsmCdmaPhoneTest.java66 import android.telephony.ServiceState;
114 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_GSM); in switchToGsm()
116 new AsyncResult(null, new int[]{ServiceState.RIL_RADIO_TECHNOLOGY_GSM}, null))); in switchToGsm()
122 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_IS95A); in switchToCdma()
124 new AsyncResult(null, new int[]{ServiceState.RIL_RADIO_TECHNOLOGY_IS95A}, null))); in switchToCdma()
165 ServiceState serviceState = new ServiceState(); in testGetServiceState()
173 ServiceState imsServiceState = new ServiceState(); in testGetMergedServiceState()
196 imsServiceState.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceState()
197 imsServiceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceState()
203 ServiceState serviceState = new ServiceState(); in testGetMergedServiceState()
[all …]
DNetworkTypeControllerTest.java29 import android.telephony.ServiceState;
132 doReturn(ServiceState.FREQUENCY_RANGE_LOW).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrNsa()
138 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testUpdateOverrideNetworkTypeNrNsa()
230 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testTransitionToCurrentStateNrConnectedMmwave()
262 doReturn(ServiceState.FREQUENCY_RANGE_LOW).when(mServiceState).getNrFrequencyRange(); in testEventNrFrequencyRangeChangedFromNrConnectedMmwaveToNrConnected()
274 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testEventNrFrequencyRangeChangedFromNrConnectedToNrConnectedMmwave()
299 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testEventPhysicalLinkStateChanged()
419 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testPrimaryTimerExpireMmwave()
429 doReturn(ServiceState.FREQUENCY_RANGE_LOW).when(mServiceState).getNrFrequencyRange(); in testPrimaryTimerExpireMmwave()
451 doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(mServiceState).getNrFrequencyRange(); in testPrimaryTimerResetMmwave()
[all …]
DServiceStateTrackerTest.java82 import android.telephony.ServiceState;
234 doReturn(new ServiceState()).when(mPhone).getServiceState(); in setUp()
249 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp()
251 mSimulatedCommands.setDataRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp()
514 assertEquals(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA, in testSpnUpdateShowPlmnOnly()
623 ServiceState ss = new ServiceState(); in testOnImsServiceStateChanged()
624 ss.setVoiceRegState(ServiceState.STATE_OUT_OF_SERVICE); in testOnImsServiceStateChanged()
631 verify(mPhone).notifyServiceStateChanged(any(ServiceState.class)); in testOnImsServiceStateChanged()
634 ss = new ServiceState(); in testOnImsServiceStateChanged()
635 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testOnImsServiceStateChanged()
[all …]
DCellularNetworkServiceTest.java35 import android.telephony.ServiceState;
103 int voiceRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_HSPA; in testGetNetworkRegistrationInfo()
104 int dataRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_HSPA; in testGetNetworkRegistrationInfo()
140 ServiceState.rilRadioTechnologyToNetworkType(voiceRadioTech), reasonForDenial, in testGetNetworkRegistrationInfo()
165 ServiceState.rilRadioTechnologyToNetworkType(voiceRadioTech), reasonForDenial, in testGetNetworkRegistrationInfo()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java43 import android.telephony.ServiceState;
78 private ServiceState mServiceState;
222 when(mServiceState.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceInService_returnTrue()
229 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue()
230 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInService_returnTrue()
241 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse()
246 when(mServiceState.getDataRegistrationState()).thenReturn(ServiceState.STATE_IN_SERVICE); in isInService_voiceOutOfServiceDataInServiceOnIwLan_returnFalse()
253 when(mServiceState.getState()).thenReturn(ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataOutOfService_returnFalse()
255 ServiceState.STATE_OUT_OF_SERVICE); in isInService_voiceOutOfServiceDataOutOfService_returnFalse()
262 when(mServiceState.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in isInService_ServiceStatePowerOff_returnFalse()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRatRatcheter.java30 import android.telephony.ServiceState;
64 public static boolean updateBandwidths(int[] bandwidths, ServiceState serviceState) { in updateBandwidths()
99 int oldRat = ServiceState.networkTypeToRilRadioTechnology(oldNetworkType); in ratchetRat()
100 int newRat = ServiceState.networkTypeToRilRadioTechnology(newNetworkType); in ratchetRat()
115 return ServiceState.rilRadioTechnologyToNetworkType( in ratchetRat()
125 public void ratchet(@NonNull ServiceState oldSS, @NonNull ServiceState newSS) { in ratchet()
151 private boolean isSameRatFamily(ServiceState ss1, ServiceState ss2) { in isSameRatFamily()
155 int dataRat1 = ServiceState.networkTypeToRilRadioTechnology( in isSameRatFamily()
159 int dataRat2 = ServiceState.networkTypeToRilRadioTechnology( in isSameRatFamily()
168 if (dataRat1 == ServiceState.RIL_RADIO_TECHNOLOGY_LTE in isSameRatFamily()
[all …]
DServiceStateTracker.java75 import android.telephony.ServiceState;
76 import android.telephony.ServiceState.RilRadioTechnology;
159 public ServiceState mSS;
161 private ServiceState mNewSS;
724 if (mSS != null && mSS.getState() == ServiceState.STATE_IN_SERVICE) { in updatePhoneType()
740 mSS = new ServiceState(); in updatePhoneType()
742 mNewSS = new ServiceState(); in updatePhoneType()
790 setDataNetworkTypeForPhone(ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN); in updatePhoneType()
884 int rat = ServiceState.networkTypeToRilRadioTechnology( in getRegistrationInfo()
928 boolean isRegistered = mSS.getState() == ServiceState.STATE_IN_SERVICE in updatePhoneObject()
[all …]
DPhoneStateIntentReceiver.java26 import android.telephony.ServiceState;
50 ServiceState mServiceState = new ServiceState();
91 public ServiceState getServiceState() { in getServiceState()
196 mServiceState = ServiceState.newFromBundle(intent.getExtras()); in onReceive()
DTelephonyTester.java28 import android.telephony.ServiceState;
384 void overrideServiceState(ServiceState ss) { in overrideServiceState()
394 ServiceState.STATE_OUT_OF_SERVICE)); in overrideServiceState()
399 ServiceState.STATE_OUT_OF_SERVICE)); in overrideServiceState()
415 ServiceState.FREQUENCY_RANGE_UNKNOWN)); in overrideServiceState()
441 nri.setAccessNetworkTechnology(ServiceState.rilRadioTechnologyToNetworkType( in overrideServiceState()
443 ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN))); in overrideServiceState()
456 nri.setAccessNetworkTechnology(ServiceState.rilRadioTechnologyToNetworkType( in overrideServiceState()
458 ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN))); in overrideServiceState()
472 ServiceState.ROAMING_TYPE_UNKNOWN)); in overrideServiceState()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DImsCallSessionListenerTests.java22 import android.telephony.ServiceState;
48 mTestListener.callSessionMayHandover(ServiceState.RIL_RADIO_TECHNOLOGY_LTE, in testListenerMayHandoverDeprecated()
49 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN); in testListenerMayHandoverDeprecated()
59 mTestListener.callSessionHandover(ServiceState.RIL_RADIO_TECHNOLOGY_LTE, in testListenerHandoverDeprecated()
60 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN, imsReasonInfo); in testListenerHandoverDeprecated()
71 mTestListener.callSessionHandoverFailed(ServiceState.RIL_RADIO_TECHNOLOGY_LTE, in testListenerHandoverFailedDeprecated()
72 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN, imsReasonInfo); in testListenerHandoverFailedDeprecated()
DImsRegistrationTests.java29 import android.telephony.ServiceState;
124 mRegistration.onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackOnRegistered()
126 verify(mCallback).onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackOnRegistered()
132 mRegistration.onRegistering(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackOnRegistering()
134 verify(mCallback).onRegistering(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackOnRegistering()
173 mRegistration.onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackAfterUnregistered()
175 verify(mCallback, never()).onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackAfterUnregistered()
/frameworks/base/telephony/java/android/telephony/
DServiceState.java63 public class ServiceState implements Parcelable { class
238 ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN,
239 ServiceState.RIL_RADIO_TECHNOLOGY_GPRS,
240 ServiceState.RIL_RADIO_TECHNOLOGY_EDGE,
241 ServiceState.RIL_RADIO_TECHNOLOGY_UMTS,
242 ServiceState.RIL_RADIO_TECHNOLOGY_IS95A,
243 ServiceState.RIL_RADIO_TECHNOLOGY_IS95B,
244 ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT,
245 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0,
246 ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A,
[all …]
DPhysicalChannelConfig.java74 @ServiceState.FrequencyRange
135 @ServiceState.FrequencyRange
246 .append(ServiceState.frequencyRangeToString(mFrequencyRange)) in toString()
289 mRat = ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN; in Builder()
290 mFrequencyRange = ServiceState.FREQUENCY_RANGE_UNKNOWN; in Builder()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java47 import android.telephony.ServiceState;
194 ServiceState state = new ServiceState(); in testTelephonyCapable_SimInvalid_ServiceState_InService()
195 state.setState(ServiceState.STATE_IN_SERVICE); in testTelephonyCapable_SimInvalid_ServiceState_InService()
211 ServiceState state = new ServiceState(); in testTelephonyCapable_SimValid_ServiceState_PowerOff()
212 state.setState(ServiceState.STATE_POWER_OFF); in testTelephonyCapable_SimValid_ServiceState_PowerOff()
231 ServiceState state = new ServiceState(); in testTelephonyCapable_BootInitState_ServiceState_OutOfService()
232 state.setState(ServiceState.STATE_OUT_OF_SERVICE); in testTelephonyCapable_BootInitState_ServiceState_OutOfService()
244 ServiceState state = new ServiceState(); in testTelephonyCapable_BootInitState_SimState_NotReady()
245 state.setState(ServiceState.STATE_OUT_OF_SERVICE); in testTelephonyCapable_BootInitState_SimState_NotReady()
259 ServiceState state = new ServiceState(); in testTelephonyCapable_BootInitState_SimState_Ready()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java56 import android.telephony.ServiceState;
533 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldSendNotificationWhenServiceStateIsChanged()
536 mImsPhoneUT.setServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testShouldSendNotificationWhenServiceStateIsChanged()
542 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldNotSendNotificationWhenServiceStateIsNotChanged()
545 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testShouldNotSendNotificationWhenServiceStateIsNotChanged()
676 mImsPhoneUT.setServiceState(ServiceState.STATE_IN_SERVICE); in testImsRegistered()
690 mImsPhoneUT.setServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testImsRegistering()
704 mImsPhoneUT.setServiceState(ServiceState.STATE_OUT_OF_SERVICE); in testImsDeregistered()
738 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testRoamingDuplicateMessages()
761 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.STATE_IN_SERVICE, true)); in testRoamingToOutOfService()
[all …]
DImsCallTest.java25 import android.telephony.ServiceState;
62 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + ""); in testSetWifiDeprecated()
86 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + ""); in testSetWifiAlt()
98 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + ""); in testSetLteNoWifiDeprecated()
122 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + ""); in testSetLteNoWifiAlt()
/frameworks/base/core/java/com/android/internal/app/procstats/
DServiceState.java33 public final class ServiceState { class
74 public ServiceState(ProcessStats processStats, String pkg, String name, in ServiceState() method in ServiceState
214 public void add(ServiceState other) { in add()
404 mRunCount, ServiceState.SERVICE_RUN, mRunState, in dumpStats()
407 mStartedCount, ServiceState.SERVICE_STARTED, mStartedState, in dumpStats()
410 mForegroundCount, ServiceState.SERVICE_FOREGROUND, mForegroundState, in dumpStats()
413 mBoundCount, ServiceState.SERVICE_BOUND, mBoundState, in dumpStats()
416 mExecCount, ServiceState.SERVICE_EXEC, mExecState, in dumpStats()
505 ServiceState.SERVICE_RUN, mRunCount, mRunState, mRunStartTime, now);
507 ServiceState.SERVICE_STARTED, mStartedCount, mStartedState, mStartedStartTime, now);
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorGsmCdmaPhone.java24 import android.telephony.ServiceState;
146 public ServiceState getServiceState() { in getServiceState()
147 if (mSST == null || mSST.mSS.getState() != ServiceState.STATE_IN_SERVICE) { in getServiceState()
154 return ServiceState.mergeServiceStates( in getServiceState()
155 ((mSST == null) ? new ServiceState() : mSST.mSS), in getServiceState()
164 return new ServiceState(); in getServiceState()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java28 import android.telephony.ServiceState;
391 public static boolean isInService(ServiceState serviceState) { in isInService()
396 if (state == ServiceState.STATE_POWER_OFF in isInService()
397 || state == ServiceState.STATE_OUT_OF_SERVICE in isInService()
398 || state == ServiceState.STATE_EMERGENCY_ONLY) { in isInService()
411 public static int getCombinedServiceState(ServiceState serviceState) { in getCombinedServiceState()
413 return ServiceState.STATE_OUT_OF_SERVICE; in getCombinedServiceState()
426 if (state == ServiceState.STATE_OUT_OF_SERVICE in getCombinedServiceState()
427 || state == ServiceState.STATE_EMERGENCY_ONLY) { in getCombinedServiceState()
428 if (dataState == ServiceState.STATE_IN_SERVICE && isNotInIwlan(serviceState)) { in getCombinedServiceState()
[all …]

123456