/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTest.java | 20 import android.telephony.ServiceState; 33 ServiceState ss = new ServiceState(); in testRoaming() 47 ss.setDataRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming() 49 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getDataRoamingType()); in testRoaming() 54 ss.setVoiceRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in testRoaming() 56 assertEquals(ServiceState.ROAMING_TYPE_DOMESTIC, ss.getVoiceRoamingType()); in testRoaming() 61 ServiceState ss = new ServiceState(); in testRegState() 63 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testRegState() 64 assertEquals(ServiceState.STATE_IN_SERVICE, ss.getDataRegState()); in testRegState() 66 ss.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testRegState() [all …]
|
D | ServiceStateTrackerTest.java | 56 import android.telephony.ServiceState; 137 mSimulatedCommands.setVoiceRegState(ServiceState.RIL_REG_STATE_HOME); in setUp() 138 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp() 139 mSimulatedCommands.setDataRegState(ServiceState.RIL_REG_STATE_HOME); in setUp() 140 mSimulatedCommands.setDataRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp() 285 assertEquals(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA, in testSpnUpdateShowPlmnOnly() 366 sst.mSS.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testSignalStrength() 374 sst.mSS.setRilVoiceRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT); in testSignalStrength() 375 sst.mSS.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD); in testSignalStrength() 453 mSimulatedCommands.setVoiceRegState(ServiceState.RIL_REG_STATE_ROAMING); in testRegAndUnregForVoiceRoamingOn() [all …]
|
D | PhoneStateListenerTest.java | 20 import android.telephony.ServiceState; 42 public void onServiceStateChanged(ServiceState serviceState) { in onLooperPrepared() 72 ServiceState ss = new ServiceState(); in testTriggerServiceStateChanged() 73 ss.setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 74 ss.setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged() 80 verify(mServiceState).setDataRegState(ServiceState.STATE_IN_SERVICE); in testTriggerServiceStateChanged() 81 verify(mServiceState).setVoiceRegState(ServiceState.STATE_EMERGENCY_ONLY); in testTriggerServiceStateChanged()
|
D | CallManagerTest.java | 22 import android.telephony.ServiceState; 103 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in setUp() 321 ServiceState mSecondServiceState = mock(ServiceState.class); in testGetServiceState() 332 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState() 333 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState() 336 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState(); in testGetServiceState() 337 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState() 340 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState(); in testGetServiceState() 341 assertEquals(ServiceState.STATE_IN_SERVICE, CallManager.getInstance().getServiceState()); in testGetServiceState() 344 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState(); in testGetServiceState() [all …]
|
D | GsmCdmaPhoneTest.java | 53 import android.telephony.ServiceState; 98 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_GSM); in switchToGsm() 100 new AsyncResult(null, new int[]{ServiceState.RIL_RADIO_TECHNOLOGY_GSM}, null))); in switchToGsm() 107 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_IS95A); in switchToCdma() 109 new AsyncResult(null, new int[]{ServiceState.RIL_RADIO_TECHNOLOGY_IS95A}, null))); in switchToCdma() 154 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT); in testHandleActionCarrierConfigChanged() 165 ServiceState serviceState = new ServiceState(); in testGetServiceState() 229 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSST).getCurrentDataConnectionState(); in testGetDataConnectionState() 294 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testDial()
|
/frameworks/base/telephony/java/android/telephony/ |
D | ServiceState.java | 37 public class ServiceState implements Parcelable { class 283 public static ServiceState newFromBundle(Bundle m) { in newFromBundle() 284 ServiceState ret; in newFromBundle() 285 ret = new ServiceState(); in newFromBundle() 293 public ServiceState() { in ServiceState() method in ServiceState 301 public ServiceState(ServiceState s) { in ServiceState() method in ServiceState 305 protected void copyFrom(ServiceState s) { in copyFrom() 335 public ServiceState(Parcel in) { in ServiceState() method in ServiceState 393 public static final Parcelable.Creator<ServiceState> CREATOR = 394 new Parcelable.Creator<ServiceState>() { [all …]
|
D | RadioAccessFamily.java | 33 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 …]
|
D | ServiceState.aidl | 20 parcelable ServiceState;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ServiceStateTracker.java | 65 import android.telephony.ServiceState; 121 public ServiceState mSS; 122 private ServiceState mNewSS; 315 ServiceState.rilRadioTechnologyToString( in onSubscriptionsChanged() 629 if (mSS != null && mSS.getDataRegState() == ServiceState.STATE_IN_SERVICE) { in updatePhoneType() 633 mSS = new ServiceState(); in updatePhoneType() 634 mNewSS = new ServiceState(); in updatePhoneType() 687 ServiceState.rilRadioTechnologyToString(ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN)); in updatePhoneType() 751 ServiceState.rilRadioTechnologyToString(rat)); in notifyDataRegStateRilRadioTechnologyChanged() 774 boolean isRegistered = mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE || in updatePhoneObject() [all …]
|
D | PhoneStateIntentReceiver.java | 25 import android.telephony.ServiceState; 48 ServiceState mServiceState = new ServiceState(); 86 public ServiceState getServiceState() { in getServiceState() 186 mServiceState = ServiceState.newFromBundle(intent.getExtras()); in onReceive()
|
D | RatRatcheter.java | 25 import android.telephony.ServiceState; 78 public void ratchetRat(ServiceState oldSS, ServiceState newSS) { in ratchetRat()
|
D | GsmCdmaPhone.java | 62 import android.telephony.ServiceState; 287 mIccCardProxy.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_UMTS); in initRatSpecific() 300 mIccCardProxy.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT); in initRatSpecific() 402 public ServiceState getServiceState() { in getServiceState() 403 if (mSST == null || mSST.mSS.getState() != ServiceState.STATE_IN_SERVICE) { in getServiceState() 405 return ServiceState.mergeServiceStates( in getServiceState() 406 (mSST == null) ? new ServiceState() : mSST.mSS, in getServiceState() 415 return new ServiceState(); in getServiceState() 507 } else if (mSST.getCurrentDataConnectionState() != ServiceState.STATE_IN_SERVICE in getDataConnectionState() 550 if (mSST.getCurrentDataConnectionState() == ServiceState.STATE_IN_SERVICE) { in getDataActivityState() [all …]
|
D | CallManager.java | 31 import android.telephony.ServiceState; 280 int resultState = ServiceState.STATE_OUT_OF_SERVICE; in getServiceState() 284 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState() 288 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { in getServiceState() 291 if ( resultState == ServiceState.STATE_EMERGENCY_ONLY || in getServiceState() 292 resultState == ServiceState.STATE_POWER_OFF) { in getServiceState() 295 } else if (serviceState == ServiceState.STATE_EMERGENCY_ONLY) { in getServiceState() 296 if (resultState == ServiceState.STATE_POWER_OFF) { in getServiceState() 308 int resultState = ServiceState.STATE_OUT_OF_SERVICE; in getServiceState() 313 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState() [all …]
|
D | CarrierServiceStateTracker.java | 32 import android.telephony.ServiceState; 101 return (mSST.mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE in isPhoneStillRegistered() 102 || mSST.mSS.getDataRegState() == ServiceState.STATE_IN_SERVICE); in isPhoneStillRegistered() 109 return (mSST.mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE); in isPhoneVoiceRegistered()
|
D | DefaultPhoneNotifier.java | 27 import android.telephony.ServiceState; 70 ServiceState ss = sender.getServiceState(); in notifyServiceState() 77 ss = new ServiceState(); in notifyServiceState() 176 ServiceState ss = sender.getServiceState(); in doNotifyDataConnection()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsCallTest.java | 22 import android.telephony.ServiceState; 61 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + ""); in testSetWifi() 71 ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN + ""); in testSetWifiAlt() 81 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + ""); in testSetLteNoWifi() 91 ServiceState.RIL_RADIO_TECHNOLOGY_LTE + ""); in testSetLteNoWifiAlt()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 35 import android.telephony.ServiceState; 406 ServiceState ss = mPhone.getServiceState(); in DataConnection() 739 if (rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_LTE_CA) { in updateTcpBufferSizes() 742 rilRat = ServiceState.RIL_RADIO_TECHNOLOGY_LTE; in updateTcpBufferSizes() 744 String ratName = ServiceState.rilRadioTechnologyToString(rilRat).toLowerCase(Locale.ROOT); in updateTcpBufferSizes() 747 if (rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0 || in updateTcpBufferSizes() 748 rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A || in updateTcpBufferSizes() 749 rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B) { in updateTcpBufferSizes() 769 case ServiceState.RIL_RADIO_TECHNOLOGY_GPRS: in updateTcpBufferSizes() 772 case ServiceState.RIL_RADIO_TECHNOLOGY_EDGE: in updateTcpBufferSizes() [all …]
|
D | DataProfile.java | 19 import android.telephony.ServiceState; 112 ? TYPE_COMMON : (ServiceState.bearerBitmapHasCdma(apn.bearerBitmask) in DataProfile()
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ServiceState.java | 46 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/ |
D | DataConnectionStats.java | 26 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/sip/ |
D | SipPhoneBase.java | 32 import android.telephony.ServiceState; 107 public ServiceState getServiceState() { in getServiceState() 110 ServiceState s = new ServiceState(); in getServiceState() 111 s.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in getServiceState() 198 void notifyServiceStateChanged(ServiceState ss) { in notifyServiceStateChanged() 210 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneBase.java | 31 import android.telephony.ServiceState; 138 public ServiceState getServiceState() { in getServiceState() 141 ServiceState s = new ServiceState(); in getServiceState() 142 s.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in getServiceState() 236 void notifyServiceStateChanged(ServiceState ss) { in notifyServiceStateChanged() 248 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | IPhoneStateListener.aidl | 20 import android.telephony.ServiceState; 29 void onServiceStateChanged(in ServiceState serviceState); in onServiceStateChanged()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DcTrackerTest.java | 57 import android.telephony.ServiceState; 98 private static final int LTE_BEARER_BITMASK = 1 << (ServiceState.RIL_RADIO_TECHNOLOGY_LTE - 1); 100 1 << (ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD - 1); 213 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, // bearer in query() 242 ServiceState.RIL_RADIO_TECHNOLOGY_LTE, // bearer, in query() 300 ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD, // bearer in query() 355 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState) in setUp() 1036 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN).when(mServiceState) in testTrySetupDefaultOnIWLAN() 1088 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD).when(mServiceState) in testUpdateWaitingApnListOnDataRatChange() 1114 doReturn(ServiceState.RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState) in testUpdateWaitingApnListOnDataRatChange() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileSignalController.java | 26 import android.telephony.ServiceState; 70 private ServiceState mServiceState; 322 case ServiceState.STATE_POWER_OFF: in hasService() 324 case ServiceState.STATE_OUT_OF_SERVICE: in hasService() 325 case ServiceState.STATE_EMERGENCY_ONLY: in hasService() 326 return mServiceState.getDataRegState() == ServiceState.STATE_IN_SERVICE; in hasService() 517 public void onServiceStateChanged(ServiceState state) { in onServiceStateChanged()
|