Home
last modified time | relevance | path

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

1234

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTest.java23 import android.telephony.ServiceState;
37 ServiceState ss = new ServiceState(); in testRoaming()
51 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming()
53 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getDataRoamingType()); in testRoaming()
58 ss.setVoiceRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming()
60 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getVoiceRoamingType()); in testRoaming()
65 ServiceState ss = new ServiceState(); in testRegState()
67 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testRegState()
68 assertEquals(ServiceState.STATE_IN_SERVICE, ss.getDataRegState()); in testRegState()
70 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testRegState()
[all …]
DPhoneStateListenerTest.java26 import android.telephony.ServiceState;
53 public void onServiceStateChanged(ServiceState serviceState) { in onLooperPrepared()
98 ServiceState ss = new ServiceState(); in testTriggerServiceStateChanged()
99 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
100 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
106 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged()
107 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
DCallManagerTest.java22 import android.telephony.ServiceState;
103 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp()
323 ServiceState mSecondServiceState = mock(ServiceState.class); in testGetServiceState()
334 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState()
335 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState()
338 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState(); in testGetServiceState()
339 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState()
342 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState(); in testGetServiceState()
343 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState()
346 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState()
[all …]
DRatRatcheterTest.java21 import android.telephony.ServiceState;
31 private ServiceState mServiceState;
35 mServiceState = new ServiceState(); in setUp()
DCellularNetworkServiceTest.java36 import android.telephony.ServiceState;
97 int voiceRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_HSPA; in testGetNetworkRegistrationState()
98 int dataRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_HSPA; in testGetNetworkRegistrationState()
136 ServiceState.rilRadioTechnologyToNetworkType(voiceRadioTech), reasonForDenial, in testGetNetworkRegistrationState()
159 ServiceState.rilRadioTechnologyToNetworkType(voiceRadioTech), reasonForDenial, in testGetNetworkRegistrationState()
DServiceStateTrackerTest.java69 import android.telephony.ServiceState;
181 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp()
183 mSimulatedCommands.setDataRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp()
290 doReturn(0x02).when(mSimRecords).getDisplayRule(new ServiceState()); in testSpnUpdateShowPlmnOnly()
328 assertEquals(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA, in testSpnUpdateShowPlmnOnly()
382 ServiceState ss = new ServiceState(); in testOnImsServiceStateChanged()
383 ss.setVoiceRegState(ServiceState.STATE_OUT_OF_SERVICE); in testOnImsServiceStateChanged()
390 verify(mPhone).notifyServiceStateChanged(any(ServiceState.class)); in testOnImsServiceStateChanged()
393 ss = new ServiceState(); in testOnImsServiceStateChanged()
394 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testOnImsServiceStateChanged()
[all …]
DLocaleTrackerTest.java33 import android.telephony.ServiceState;
176 ServiceState ss = new ServiceState(); in testOutOfAirplaneMode()
177 ss.setState(ServiceState.STATE_IN_SERVICE); in testOutOfAirplaneMode()
/frameworks/base/telephony/java/android/telephony/
DServiceState.java46 public class ServiceState implements Parcelable { class
295 public static ServiceState newFromBundle(Bundle m) { in newFromBundle()
296 ServiceState ret; in newFromBundle()
297 ret = new ServiceState(); in newFromBundle()
305 public ServiceState() { in ServiceState() method in ServiceState
313 public ServiceState(ServiceState s) { in ServiceState() method in ServiceState
317 protected void copyFrom(ServiceState s) { in copyFrom()
350 public ServiceState(Parcel in) { in ServiceState() method in ServiceState
415 public static final Parcelable.Creator<ServiceState> CREATOR =
416 new Parcelable.Creator<ServiceState>() {
[all …]
DRadioAccessFamily.java33 public static final int RAF_UNKNOWN = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN);
34 public static final int RAF_GSM = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_GSM);
35 public static final int RAF_GPRS = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_GPRS);
36 public static final int RAF_EDGE = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EDGE);
37 public static final int RAF_IS95A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95A);
38 public static final int RAF_IS95B = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95B);
39 public static final int RAF_1xRTT = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT);
41 public static final int RAF_EVDO_0 = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0);
42 public static final int RAF_EVDO_A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A);
43 public static final int RAF_EVDO_B = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B);
[all …]
DAccessNetworkUtils.java3 import static android.telephony.ServiceState.DUPLEX_MODE_FDD;
4 import static android.telephony.ServiceState.DUPLEX_MODE_TDD;
5 import static android.telephony.ServiceState.DUPLEX_MODE_UNKNOWN;
8 import android.telephony.ServiceState.DuplexMode;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DServiceStateTracker.java69 import android.telephony.ServiceState;
128 public ServiceState mSS;
129 private ServiceState mNewSS;
300 ServiceState.rilRadioTechnologyToString( in onSubscriptionsChanged()
586 if (mSS != null && mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE) { in updatePhoneType()
591 if (mSS != null && mSS.getDataRegState() == ServiceState.STATE_IN_SERVICE) { in updatePhoneType()
595 mSS = new ServiceState(); in updatePhoneType()
596 mNewSS = new ServiceState(); in updatePhoneType()
647 ServiceState.rilRadioTechnologyToString(ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN)); in updatePhoneType()
718 ServiceState.rilRadioTechnologyToString(rat)); in notifyDataRegStateRilRadioTechnologyChanged()
[all …]
DRatRatcheter.java26 import android.telephony.ServiceState;
60 public static boolean updateBandwidths(int[] bandwidths, ServiceState serviceState) { in updateBandwidths()
103 public void ratchet(ServiceState oldSS, ServiceState newSS, boolean locationChange) { in ratchet()
137 private boolean isSameRatFamily(ServiceState ss1, ServiceState ss2) { in isSameRatFamily()
DPhoneStateIntentReceiver.java25 import android.telephony.ServiceState;
48 ServiceState mServiceState = new ServiceState();
86 public ServiceState getServiceState() { in getServiceState()
186 mServiceState = ServiceState.newFromBundle(intent.getExtras()); in onReceive()
DTelephonyTester.java28 import android.telephony.ServiceState;
239 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN, in handleHandoverFailedIntent()
335 void overrideServiceState(ServiceState ss) { in overrideServiceState()
354 ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN)); in overrideServiceState()
359 ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN)); in overrideServiceState()
364 ServiceState.ROAMING_TYPE_UNKNOWN)); in overrideServiceState()
369 ServiceState.ROAMING_TYPE_UNKNOWN)); in overrideServiceState()
DLocaleTracker.java38 import android.telephony.ServiceState;
139 onServiceStateChanged((ServiceState) ar.result); in handleMessage()
233 private void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged()
236 if (state != ServiceState.STATE_POWER_OFF && TextUtils.isEmpty(mOperatorNumeric)) { in onServiceStateChanged()
239 String msg = "Service state " + ServiceState.rilServiceStateToString(state) in onServiceStateChanged()
244 } else if (state == ServiceState.STATE_POWER_OFF) { in onServiceStateChanged()
DGsmCdmaPhone.java64 import android.telephony.ServiceState;
305 uiccProfile.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_UMTS); in initRatSpecific()
320 uiccProfile.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT); in initRatSpecific()
420 public ServiceState getServiceState() { in getServiceState()
421 if (mSST == null || mSST.mSS.getState() != ServiceState.STATE_IN_SERVICE) { in getServiceState()
423 return ServiceState.mergeServiceStates( in getServiceState()
424 (mSST == null) ? new ServiceState() : mSST.mSS, in getServiceState()
433 return new ServiceState(); in getServiceState()
525 } else if (mSST.getCurrentDataConnectionState() != ServiceState.STATE_IN_SERVICE in getDataConnectionState()
562 if (mSST.getCurrentDataConnectionState() == ServiceState.STATE_IN_SERVICE) { in getDataActivityState()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsCallTest.java20 import android.telephony.ServiceState;
59 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + ""); in testSetWifi()
69 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + ""); in testSetWifiAlt()
79 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + ""); in testSetLteNoWifi()
89 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + ""); in testSetLteNoWifiAlt()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DImsRegistrationTests.java30 import android.telephony.ServiceState;
122 mRegistration.onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackOnRegistered()
124 verify(mCallback).onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackOnRegistered()
130 mRegistration.onRegistering(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackOnRegistering()
132 verify(mCallback).onRegistering(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackOnRegistering()
171 mRegistration.onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackAfterUnregistered()
173 verify(mCallback, never()).onRegistered(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testRegistrationCallbackAfterUnregistered()
/frameworks/base/core/java/com/android/internal/app/procstats/
DServiceState.java46 public final class ServiceState { class
82 public ServiceState(ProcessStats processStats, String pkg, String name, in ServiceState() method in ServiceState
203 public void add(ServiceState other) { in add()
364 mRunCount, ServiceState.SERVICE_RUN, mRunState, in dumpStats()
367 mStartedCount, ServiceState.SERVICE_STARTED, mStartedState, in dumpStats()
370 mBoundCount, ServiceState.SERVICE_BOUND, mBoundState, in dumpStats()
373 mExecCount, ServiceState.SERVICE_EXEC, mExecState, in dumpStats()
447 ServiceState.SERVICE_RUN, mRunCount, mRunState, mRunStartTime, now); in dumpTimesCheckin()
449 ServiceState.SERVICE_STARTED, mStartedCount, mStartedState, mStartedStartTime, now); in dumpTimesCheckin()
451 ServiceState.SERVICE_BOUND, mBoundCount, mBoundState, mBoundStartTime, now); in dumpTimesCheckin()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java26 import android.telephony.ServiceState;
45 private ServiceState mServiceState;
127 && mServiceState.getState() != ServiceState.STATE_OUT_OF_SERVICE in hasService()
128 && mServiceState.getState() != ServiceState.STATE_POWER_OFF; in hasService()
138 public void onServiceStateChanged(ServiceState state) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java44 import android.telephony.ServiceState;
478 ServiceState ss = mPhone.getServiceState(); in DataConnection()
550 ServiceState.rilRadioTechnologyToAccessNetworkType(cp.mRilRat), dp, isModemRoaming, in onConnect()
813 if (rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_LTE_CA) { in updateTcpBufferSizes()
816 rilRat = ServiceState.RIL_RADIO_TECHNOLOGY_LTE; in updateTcpBufferSizes()
818 String ratName = ServiceState.rilRadioTechnologyToString(rilRat).toLowerCase(Locale.ROOT); in updateTcpBufferSizes()
821 if (rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0 || in updateTcpBufferSizes()
822 rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A || in updateTcpBufferSizes()
823 rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B) { in updateTcpBufferSizes()
843 case ServiceState.RIL_RADIO_TECHNOLOGY_GPRS: in updateTcpBufferSizes()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhoneBase.java32 import android.telephony.ServiceState;
99 public ServiceState getServiceState() { in getServiceState()
102 ServiceState s = new ServiceState(); in getServiceState()
103 s.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in getServiceState()
190 void notifyServiceStateChanged(ServiceState ss) { in notifyServiceStateChanged()
202 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java31 import android.telephony.ServiceState;
140 public ServiceState getServiceState() { in getServiceState()
143 ServiceState s = new ServiceState(); in getServiceState()
144 s.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in getServiceState()
238 void notifyServiceStateChanged(ServiceState ss) { in notifyServiceStateChanged()
250 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java63 import android.telephony.ServiceState;
110 private static final int LTE_BEARER_BITMASK = 1 << (ServiceState.RIL_RADIO_TECHNOLOGY_LTE - 1);
112 1 << (ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD - 1);
254 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, // bearer in query()
285 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, // bearer, in query()
347 ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD, // bearer in query()
421 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState) in setUp()
621 eq(ServiceState.rilRadioTechnologyToAccessNetworkType( in testDataSetup()
696 eq(ServiceState.rilRadioTechnologyToAccessNetworkType( in testDataRetry()
724 eq(ServiceState.rilRadioTechnologyToAccessNetworkType( in testDataRetry()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DIPhoneStateListener.aidl20 import android.telephony.ServiceState;
30 void onServiceStateChanged(in ServiceState serviceState); in onServiceStateChanged()

1234