Home
last modified time | relevance | path

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

123

/frameworks/base/telephony/java/android/telephony/
DRadioAccessFamily.java32 public static final int RAF_UNKNOWN = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN);
33 public static final int RAF_GPRS = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_GPRS);
34 public static final int RAF_EDGE = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EDGE);
35 public static final int RAF_UMTS = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_UMTS);
36 public static final int RAF_IS95A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95A);
37 public static final int RAF_IS95B = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95B);
38 public static final int RAF_1xRTT = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT);
39 public static final int RAF_EVDO_0 = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0);
40 public static final int RAF_EVDO_A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A);
41 public static final int RAF_HSDPA = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_HSDPA);
[all …]
DServiceState.java36 public class ServiceState implements Parcelable { class
252 public static ServiceState newFromBundle(Bundle m) { in newFromBundle()
253 ServiceState ret; in newFromBundle()
254 ret = new ServiceState(); in newFromBundle()
262 public ServiceState() { in ServiceState() method in ServiceState
270 public ServiceState(ServiceState s) { in ServiceState() method in ServiceState
274 protected void copyFrom(ServiceState s) { in copyFrom()
301 public ServiceState(Parcel in) { in ServiceState() method in ServiceState
353 public static final Parcelable.Creator<ServiceState> CREATOR =
354 new Parcelable.Creator<ServiceState>() {
[all …]
DPhoneStateListener.java28 import android.telephony.ServiceState;
278 PhoneStateListener.this.onServiceStateChanged((ServiceState)msg.obj); in PhoneStateListener()
342 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged()
511 public void onServiceStateChanged(ServiceState serviceState) {
DServiceState.aidl20 parcelable ServiceState;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaLteServiceStateTracker.java35 import android.telephony.ServiceState;
330 boolean hasRegistered = mSS.getVoiceRegState() != ServiceState.STATE_IN_SERVICE in pollStateDone()
331 && mNewSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE; in pollStateDone()
333 boolean hasDeregistered = mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE in pollStateDone()
334 && mNewSS.getVoiceRegState() != ServiceState.STATE_IN_SERVICE; in pollStateDone()
337 mSS.getDataRegState() != ServiceState.STATE_IN_SERVICE in pollStateDone()
338 && mNewSS.getDataRegState() == ServiceState.STATE_IN_SERVICE; in pollStateDone()
341 mSS.getDataRegState() == ServiceState.STATE_IN_SERVICE in pollStateDone()
342 && mNewSS.getDataRegState() != ServiceState.STATE_IN_SERVICE; in pollStateDone()
366 mNewSS.getDataRegState() == ServiceState.STATE_IN_SERVICE && in pollStateDone()
[all …]
DCdmaServiceStateTracker.java39 import android.telephony.ServiceState;
621 int regState = ServiceState.RIL_REG_STATE_UNKNOWN; in handlePollStateResultMessage()
849 (mNewSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE); in handlePollStateResult()
851 if (isVoiceInService && ServiceState.isCdma(dataRegType)) { in handlePollStateResult()
863 == ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN)) { in handlePollStateResult()
873 == ServiceState.RIL_RADIO_TECHNOLOGY_LTE) { in handlePollStateResult()
921 protected void setRoamingType(ServiceState currentServiceState) { in setRoamingType()
923 (currentServiceState.getVoiceRegState() == ServiceState.STATE_IN_SERVICE); in setRoamingType()
931 currentServiceState.setVoiceRoamingType(ServiceState.ROAMING_TYPE_DOMESTIC); in setRoamingType()
936 ServiceState.ROAMING_TYPE_INTERNATIONAL); in setRoamingType()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmServiceStateTracker.java50 import android.telephony.ServiceState;
599 if (mSS.getVoiceRegState() == ServiceState.STATE_OUT_OF_SERVICE in updateSpnDisplay()
600 || mSS.getVoiceRegState() == ServiceState.STATE_EMERGENCY_ONLY) { in updateSpnDisplay()
613 } else if (mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE) { in updateSpnDisplay()
637 if (mSS.getVoiceRegState() == ServiceState.STATE_POWER_OFF in updateSpnDisplay()
715 int type = ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN; in handlePollStateResult()
716 int regState = ServiceState.RIL_REG_STATE_UNKNOWN; in handlePollStateResult()
751 if ((regState == ServiceState.RIL_REG_STATE_DENIED_EMERGENCY_CALL_ENABLED in handlePollStateResult()
752 || regState == ServiceState.RIL_REG_STATE_NOT_REG_EMERGENCY_CALL_ENABLED in handlePollStateResult()
753 || regState == ServiceState.RIL_REG_STATE_SEARCHING_EMERGENCY_CALL_ENABLED in handlePollStateResult()
[all …]
DGSMPhone.java35 import android.telephony.ServiceState;
263 public ServiceState
265 if (mSST == null || mSST.mSS.getState() != ServiceState.STATE_IN_SERVICE) { in getServiceState()
267 return ServiceState.mergeServiceStates( in getServiceState()
268 (mSST == null) ? new ServiceState() : mSST.mSS, in getServiceState()
277 return new ServiceState(); in getServiceState()
346 mSST.getCurrentDataConnectionState() != ServiceState.STATE_IN_SERVICE) { in getDataConnectionState()
392 if (mSST.getCurrentDataConnectionState() == ServiceState.STATE_IN_SERVICE) { in getDataActivityState()
457 notifyServiceStateChanged(ServiceState ss) { in notifyServiceStateChanged()
745 && imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { in handleInCallMmiCommands()
[all …]
DGsmConnection.java29 import android.telephony.ServiceState;
350 if (serviceState == ServiceState.STATE_POWER_OFF) { in disconnectCauseFromCode()
352 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE in disconnectCauseFromCode()
353 || serviceState == ServiceState.STATE_EMERGENCY_ONLY ) { in disconnectCauseFromCode()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
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()
DServiceStateTracker.java33 import android.telephony.ServiceState;
75 public ServiceState mSS = new ServiceState();
76 protected ServiceState mNewSS = new ServiceState();
270 ServiceState.rilRadioTechnologyToString(mSS.getRilDataRadioTechnology())); in onSubscriptionsChanged()
320 ServiceState.rilRadioTechnologyToString(ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN)); in ServiceStateTracker()
370 ServiceState.rilRadioTechnologyToString(rat)); in notifyDataRegStateRilRadioTechnologyChanged()
393 boolean isRegistered = mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE || in updatePhoneObject()
394 mSS.getVoiceRegState() == ServiceState.STATE_EMERGENCY_ONLY; in updatePhoneObject()
650 if (getCurrentDataConnectionState() == ServiceState.STATE_IN_SERVICE) { in registerForDataConnectionAttached()
668 if (getCurrentDataConnectionState() != ServiceState.STATE_IN_SERVICE) { in registerForDataConnectionDetached()
[all …]
DPhoneProxy.java34 import android.telephony.ServiceState;
103 mIccCardProxy.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_UMTS); in PhoneProxy()
105 mIccCardProxy.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT); in PhoneProxy()
180 if ((newVoiceRadioTech == ServiceState.RIL_RADIO_TECHNOLOGY_LTE) || in phoneObjectUpdater()
181 (newVoiceRadioTech == ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN)) { in phoneObjectUpdater()
185 if (volteReplacementRat != ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN) { in phoneObjectUpdater()
204 newVoiceRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT; in phoneObjectUpdater()
207 boolean matchCdma = ServiceState.isCdma(newVoiceRadioTech); in phoneObjectUpdater()
208 boolean matchGsm = ServiceState.isGsm(newVoiceRadioTech); in phoneObjectUpdater()
227 if (newVoiceRadioTech == ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN) { in phoneObjectUpdater()
[all …]
DCallManager.java32 import android.telephony.ServiceState;
318 int resultState = ServiceState.STATE_OUT_OF_SERVICE; in getServiceState()
322 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState()
326 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { in getServiceState()
329 if ( resultState == ServiceState.STATE_EMERGENCY_ONLY || in getServiceState()
330 resultState == ServiceState.STATE_POWER_OFF) { in getServiceState()
333 } else if (serviceState == ServiceState.STATE_EMERGENCY_ONLY) { in getServiceState()
334 if (resultState == ServiceState.STATE_POWER_OFF) { in getServiceState()
346 int resultState = ServiceState.STATE_OUT_OF_SERVICE; in getServiceState()
351 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState()
[all …]
DDefaultPhoneNotifier.java28 import android.telephony.ServiceState;
77 ServiceState ss = sender.getServiceState(); in notifyServiceState()
84 ss = new ServiceState(); in notifyServiceState()
175 ServiceState ss = sender.getServiceState(); in doNotifyDataConnection()
/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.java50 import android.telephony.ServiceState;
422 ServiceState ss = mPhone.getServiceState(); in DataConnection()
826 String ratName = ServiceState.rilRadioTechnologyToString(rilRat).toLowerCase(Locale.ROOT); in updateTcpBufferSizes()
829 if (rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0 || in updateTcpBufferSizes()
830 rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A || in updateTcpBufferSizes()
831 rilRat == ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B) { in updateTcpBufferSizes()
851 case ServiceState.RIL_RADIO_TECHNOLOGY_GPRS: in updateTcpBufferSizes()
854 case ServiceState.RIL_RADIO_TECHNOLOGY_EDGE: in updateTcpBufferSizes()
857 case ServiceState.RIL_RADIO_TECHNOLOGY_UMTS: in updateTcpBufferSizes()
860 case ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT: in updateTcpBufferSizes()
[all …]
DDataProfile.java20 import android.telephony.ServiceState;
76 (ServiceState.isCdma(apn.bearer) ? TYPE_3GPP2 : TYPE_3GPP), apn.maxConnsTime, in DataProfile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhoneBase.java29 import android.telephony.ServiceState;
105 public ServiceState getServiceState() { in getServiceState()
108 ServiceState s = new ServiceState(); in getServiceState()
109 s.setState(ServiceState.STATE_IN_SERVICE); in getServiceState()
196 void notifyServiceStateChanged(ServiceState ss) { in notifyServiceStateChanged()
208 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java29 import android.telephony.ServiceState;
137 public ServiceState getServiceState() { in getServiceState()
140 ServiceState s = new ServiceState(); in getServiceState()
141 s.setState(ServiceState.STATE_IN_SERVICE); in getServiceState()
233 void notifyServiceStateChanged(ServiceState ss) { in notifyServiceStateChanged()
245 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
/frameworks/base/telephony/java/com/android/internal/telephony/
DIPhoneStateListener.aidl20 import android.telephony.ServiceState;
29 void onServiceStateChanged(in ServiceState serviceState); in onServiceStateChanged()
DITelephonyRegistry.aidl25 import android.telephony.ServiceState;
42 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); in notifyServiceStateForPhoneId()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java287 ServiceState serviceState = userState.serviceStateMap.get(component); in buildTvInputListLocked()
292 serviceState = new ServiceState(component, userId); in buildTvInputListLocked()
341 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent()); in buildTvInputListLocked()
418 for (ServiceState serviceState : userState.serviceStateMap.values()) { in removeUser()
450 private ServiceState getServiceStateLocked(ComponentName component, int userId) { in getServiceStateLocked()
452 ServiceState serviceState = userState.serviceStateMap.get(component); in getServiceStateLocked()
493 private static boolean shouldMaintainConnection(ServiceState serviceState) { in shouldMaintainConnection()
500 ServiceState serviceState = userState.serviceStateMap.get(component); in updateServiceConnectionLocked()
538 private void abortPendingCreateSessionRequestsLocked(ServiceState serviceState, in abortPendingCreateSessionRequestsLocked()
640 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent()); in removeSessionStateLocked()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerSignalTest.java12 import android.telephony.ServiceState;
145 setVoiceRegState(ServiceState.STATE_OUT_OF_SERVICE); in testNoRoamingWithoutSignal()
146 setDataRegState(ServiceState.STATE_OUT_OF_SERVICE); in testNoRoamingWithoutSignal()
DNetworkControllerBaseTest.java20 import android.telephony.ServiceState;
48 private ServiceState mServiceState;
74 mServiceState = mock(ServiceState.class); in setUp()
113 setVoiceRegState(ServiceState.STATE_IN_SERVICE); in setupDefaultSignal()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java40 import android.telephony.ServiceState;
136 private ServiceState[] mServiceState;
293 mServiceState = new ServiceState[numPhones]; in TelephonyRegistry()
309 mServiceState[i] = new ServiceState(); in TelephonyRegistry()
501 new ServiceState(mServiceState[phoneId])); in listen()
691 public void notifyServiceStateForPhoneId(int phoneId, int subId, ServiceState state) { in notifyServiceStateForPhoneId()
719 r.callback.onServiceStateChanged(new ServiceState(state)); in notifyServiceStateForPhoneId()
1291 private void broadcastServiceStateChanged(ServiceState state, int subId) { in broadcastServiceStateChanged()
1512 private ServiceState mState;
1514 public void set(Time t, String s, int subId, int phoneId, ServiceState state) { in set()
[all …]

123