Home
last modified time | relevance | path

Searched refs:serviceState (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java320 ServiceState serviceState = userState.serviceStateMap.get(component); in buildTvInputListLocked() local
321 if (serviceState == null) { in buildTvInputListLocked()
324 serviceState = new ServiceState(component, userId); in buildTvInputListLocked()
325 userState.serviceStateMap.put(component, serviceState); in buildTvInputListLocked()
328 inputList.addAll(serviceState.hardwareInputList); in buildTvInputListLocked()
374 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent()); in buildTvInputListLocked() local
375 if (serviceState != null) { in buildTvInputListLocked()
376 abortPendingCreateSessionRequestsLocked(serviceState, inputId, userId); in buildTvInputListLocked()
437 ServiceState serviceState = userState.serviceStateMap.get(component); in switchUser() local
438 if (serviceState != null && serviceState.sessionTokens.isEmpty()) { in switchUser()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyEventLog.java207 public void writeServiceStateChanged(ServiceState serviceState) { in writeServiceStateChanged() argument
210 if (mVoiceRegState != serviceState.getVoiceRegState()) { in writeServiceStateChanged()
211 mVoiceRegState = serviceState.getVoiceRegState(); in writeServiceStateChanged()
215 if (mDataRegState != serviceState.getDataRegState()) { in writeServiceStateChanged()
216 mDataRegState = serviceState.getDataRegState(); in writeServiceStateChanged()
220 if (mVoiceRoamingType != serviceState.getVoiceRoamingType()) { in writeServiceStateChanged()
221 mVoiceRoamingType = serviceState.getVoiceRoamingType(); in writeServiceStateChanged()
225 if (mDataRoamingType != serviceState.getDataRoamingType()) { in writeServiceStateChanged()
226 mDataRoamingType = serviceState.getDataRoamingType(); in writeServiceStateChanged()
230 if (!equals(mVoiceOperatorAlphaShort, serviceState.getVoiceOperatorAlphaShort()) in writeServiceStateChanged()
[all …]
DCallManager.java283 int serviceState = phone.getServiceState().getState(); in getServiceState() local
284 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState()
286 resultState = serviceState; in getServiceState()
288 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { in getServiceState()
293 resultState = serviceState; in getServiceState()
295 } else if (serviceState == ServiceState.STATE_EMERGENCY_ONLY) { in getServiceState()
297 resultState = serviceState; in getServiceState()
312 int serviceState = phone.getServiceState().getState(); in getServiceState() local
313 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState()
315 resultState = serviceState; in getServiceState()
[all …]
DGsmCdmaConnection.java488 int serviceState = phone.getServiceState().getState(); in disconnectCauseFromCode() local
492 if (serviceState == ServiceState.STATE_POWER_OFF) { in disconnectCauseFromCode()
494 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE in disconnectCauseFromCode()
495 || serviceState == ServiceState.STATE_EMERGENCY_ONLY ) { in disconnectCauseFromCode()
DGsmCdmaCallTracker.java591 int serviceState = mPhone.getServiceState().getState(); in canDial() local
595 ret = (serviceState != ServiceState.STATE_POWER_OFF) in canDial()
613 serviceState, in canDial()
614 serviceState != ServiceState.STATE_POWER_OFF, in canDial()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyEventLogTest.java115 ServiceState serviceState = new ServiceState(); in testWriteServiceStateChanged() local
116 serviceState.setVoiceRegState(ServiceState.STATE_IN_SERVICE); in testWriteServiceStateChanged()
117 serviceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in testWriteServiceStateChanged()
118 serviceState.setVoiceRoamingType(ServiceState.ROAMING_TYPE_NOT_ROAMING); in testWriteServiceStateChanged()
119 serviceState.setDataRoamingType(ServiceState.ROAMING_TYPE_NOT_ROAMING); in testWriteServiceStateChanged()
120 serviceState.setVoiceOperatorName("Test Voice Long", "TestVoice", "12345"); in testWriteServiceStateChanged()
121 serviceState.setDataOperatorName("Test Date Long", "TestData", "67890"); in testWriteServiceStateChanged()
122 serviceState.setRilVoiceRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testWriteServiceStateChanged()
123 serviceState.setRilDataRadioTechnology(ServiceState.RIL_RADIO_TECHNOLOGY_LTE); in testWriteServiceStateChanged()
125 mEventLog.writeServiceStateChanged(serviceState); in testWriteServiceStateChanged()
DPhoneStateListenerTest.java41 public void onServiceStateChanged(ServiceState serviceState) { in onLooperPrepared()
43 mServiceState.setVoiceRegState(serviceState.getVoiceRegState()); in onLooperPrepared()
44 mServiceState.setDataRegState(serviceState.getDataRegState()); in onLooperPrepared()
DGsmCdmaPhoneTest.java159 ServiceState serviceState = new ServiceState(); in testGetServiceState() local
160 mSST.mSS = serviceState; in testGetServiceState()
161 assertEquals(serviceState, mPhoneUT.getServiceState()); in testGetServiceState()
/frameworks/base/telephony/java/android/telephony/
DPhoneStateListener.java350 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
559 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
560 send(LISTEN_SERVICE_STATE, 0, 0, serviceState); in onServiceStateChanged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhoneBase.java205 int serviceState = getServiceState().getState(); in canDial() local
206 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); in canDial()
207 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
/frameworks/base/telephony/java/com/android/internal/telephony/
DIPhoneStateListener.aidl29 void onServiceStateChanged(in ServiceState serviceState); in onServiceStateChanged() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java242 int serviceState = getServiceState().getState(); in canDial() local
243 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); in canDial()
244 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
DImsPhoneCallTracker.java704 int serviceState = mPhone.getServiceState().getState(); in canDial() local
708 ret = (serviceState != ServiceState.STATE_POWER_OFF) in canDial()
/frameworks/base/services/core/java/com/android/server/location/
DComprehensiveCountryDetector.java439 public void onServiceStateChanged(ServiceState serviceState) { in addPhoneStateListener()
446 if (DEBUG) Slog.d(TAG, "onServiceStateChanged: " + serviceState.getState()); in addPhoneStateListener()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardUpdateMonitor.java663 ServiceState serviceState = ServiceState.newFromBundle(intent.getExtras());
667 Log.v(TAG, "action " + action + " serviceState=" + serviceState + " subId="
671 mHandler.obtainMessage(MSG_SERVICE_STATE_CHANGE, subId, 0, serviceState));
1347 private void handleServiceStateChange(int subId, ServiceState serviceState) { in handleServiceStateChange() argument
1350 "handleServiceStateChange(subId=" + subId + ", serviceState=" + serviceState); in handleServiceStateChange()
1358 mServiceStates.put(subId, serviceState); in handleServiceStateChange()
/frameworks/base/services/core/java/com/android/server/policy/
DGlobalActions.java1055 public void onServiceStateChanged(ServiceState serviceState) {
1057 final boolean inAirplaneMode = serviceState.getState() == ServiceState.STATE_POWER_OFF;