Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java286 ServiceState serviceState = userState.serviceStateMap.get(component); in buildTvInputListLocked() local
287 if (serviceState == null) { in buildTvInputListLocked()
290 serviceState = new ServiceState(component, userId); in buildTvInputListLocked()
291 userState.serviceStateMap.put(component, serviceState); in buildTvInputListLocked()
294 inputList.addAll(serviceState.hardwareInputMap.values()); in buildTvInputListLocked()
340 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent()); in buildTvInputListLocked() local
341 if (serviceState != null) { in buildTvInputListLocked()
342 abortPendingCreateSessionRequestsLocked(serviceState, inputId, userId); in buildTvInputListLocked()
403 ServiceState serviceState = userState.serviceStateMap.get(component); in switchUser() local
404 if (serviceState != null && serviceState.sessionTokens.isEmpty()) { in switchUser()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneStateListenerExecutorTest.java57 public void onServiceStateChanged(ServiceState serviceState) { in setUp()
59 mServiceState.setVoiceRegState(serviceState.getVoiceRegState()); in setUp()
60 mServiceState.setDataRegState(serviceState.getDataRegState()); in setUp()
DPhoneStateListenerTest.java53 public void onServiceStateChanged(ServiceState serviceState) { in onLooperPrepared()
55 mServiceState.setVoiceRegState(serviceState.getVoiceRegState()); in onLooperPrepared()
56 mServiceState.setDataRegState(serviceState.getDataRegState()); in onLooperPrepared()
DGsmCdmaPhoneTest.java165 ServiceState serviceState = new ServiceState(); in testGetServiceState() local
166 mSST.mSS = serviceState; in testGetServiceState()
167 assertEquals(serviceState, mPhoneUT.getServiceState()); in testGetServiceState()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java391 public static boolean isInService(ServiceState serviceState) { in isInService() argument
392 if (serviceState == null) { in isInService()
395 int state = getCombinedServiceState(serviceState); in isInService()
411 public static int getCombinedServiceState(ServiceState serviceState) { in getCombinedServiceState() argument
412 if (serviceState == null) { in getCombinedServiceState()
423 int state = serviceState.getState(); in getCombinedServiceState()
424 int dataState = serviceState.getDataRegState(); in getCombinedServiceState()
428 && serviceState.getDataNetworkType() != RIL_RADIO_TECHNOLOGY_IWLAN) { in getCombinedServiceState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java433 + "(" + "Data RAT " + event.serviceState.dataRat in printAllMetrics()
434 + " Voice RAT " + event.serviceState.voiceRat in printAllMetrics()
435 + " Channel Number " + event.serviceState.channelNumber in printAllMetrics()
462 + "(" + "Data RAT " + event.serviceState.dataRat in printAllMetrics()
463 + " Voice RAT " + event.serviceState.voiceRat in printAllMetrics()
464 + " Channel Number " + event.serviceState.channelNumber in printAllMetrics()
877 private TelephonyServiceState toServiceStateProto(ServiceState serviceState) { in toServiceStateProto() argument
880 ssProto.voiceRoamingType = serviceState.getVoiceRoamingType(); in toServiceStateProto()
881 ssProto.dataRoamingType = serviceState.getDataRoamingType(); in toServiceStateProto()
885 if (serviceState.getVoiceOperatorAlphaLong() != null) { in toServiceStateProto()
[all …]
DSmsSessionEventBuilder.java68 mEvent.serviceState = state; in setServiceState()
DCallSessionEventBuilder.java103 mEvent.serviceState = state; in setServiceState()
DTelephonyEventBuilder.java74 mEvent.serviceState = state; in setServiceState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
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 …]
DRatRatcheter.java64 public static boolean updateBandwidths(int[] bandwidths, ServiceState serviceState) { in updateBandwidths() argument
69 int ssAggregateBandwidth = Arrays.stream(serviceState.getCellBandwidths()).sum(); in updateBandwidths()
73 serviceState.setCellBandwidths(bandwidths); in updateBandwidths()
DLocaleTracker.java261 private void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
262 mLastServiceState = serviceState.getState(); in onServiceStateChanged()
DGsmCdmaConnection.java544 int serviceState = phone.getServiceState().getState(); in disconnectCauseFromCode() local
548 if (serviceState == ServiceState.STATE_POWER_OFF) { in disconnectCauseFromCode()
556 if ((serviceState == ServiceState.STATE_OUT_OF_SERVICE in disconnectCauseFromCode()
557 || serviceState == ServiceState.STATE_EMERGENCY_ONLY)) { in disconnectCauseFromCode()
DSmsDispatchersController.java332 ServiceState serviceState = mPhone.getServiceState(); in isInService() local
333 return serviceState != null && serviceState.getState() == ServiceState.STATE_IN_SERVICE; in isInService()
DServiceStateTracker.java1994 private void combinePsRegistrationStates(ServiceState serviceState) { in combinePsRegistrationStates() argument
1995 NetworkRegistrationInfo wlanPsRegState = serviceState.getNetworkRegistrationInfo( in combinePsRegistrationStates()
1997 NetworkRegistrationInfo wwanPsRegState = serviceState.getNetworkRegistrationInfo( in combinePsRegistrationStates()
2002 serviceState.setIwlanPreferred(isIwlanPreferred); in combinePsRegistrationStates()
2009 serviceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in combinePsRegistrationStates()
2014 serviceState.setDataRegState(regCodeToServiceState(regState)); in combinePsRegistrationStates()
2017 log("combinePsRegistrationStates: " + serviceState); in combinePsRegistrationStates()
2116 int serviceState = regCodeToServiceState(registrationState); in handlePollStateResultMessage() local
2127 if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { in handlePollStateResultMessage()
4648 private void updateServiceStateLteEarfcnBoost(ServiceState serviceState, int lteEarfcn) { in updateServiceStateLteEarfcnBoost() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhoneBase.java185 int serviceState = getServiceState().getState(); in canDial() local
186 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); in canDial()
187 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
/frameworks/base/telephony/java/com/android/internal/telephony/
DIPhoneStateListener.aidl33 void onServiceStateChanged(in ServiceState serviceState); in onServiceStateChanged() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java236 int serviceState = getServiceState().getState(); in canDial() local
237 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); in canDial()
238 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
/frameworks/base/telephony/java/android/telephony/
DPhoneStateListener.java462 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
966 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
971 () -> mExecutor.execute(() -> psl.onServiceStateChanged(serviceState))); in onServiceStateChanged()
DServiceState.java1005 public static String rilServiceStateToString(int serviceState) { in rilServiceStateToString() argument
1006 switch(serviceState) { in rilServiceStateToString()
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java597 ServiceState serviceState = phone.getServiceState();
603 if (serviceState != null && serviceState.getDataRoamingFromRegistration()) {
DComprehensiveCountryDetector.java439 public void onServiceStateChanged(ServiceState serviceState) { in addPhoneStateListener()
446 if (DEBUG) Slog.d(TAG, "onServiceStateChanged: " + serviceState.getState()); in addPhoneStateListener()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java1038 ServiceState serviceState = ServiceState.newFromBundle(intent.getExtras());
1042 Log.v(TAG, "action " + action + " serviceState=" + serviceState + " subId="
1046 mHandler.obtainMessage(MSG_SERVICE_STATE_CHANGE, subId, 0, serviceState));
2044 void handleServiceStateChange(int subId, ServiceState serviceState) { in handleServiceStateChange() argument
2047 "handleServiceStateChange(subId=" + subId + ", serviceState=" + serviceState); in handleServiceStateChange()
2057 mServiceStates.put(subId, serviceState); in handleServiceStateChange()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java764 public void onServiceStateChanged(ServiceState serviceState) {
766 final boolean inAirplaneMode = serviceState.getState() == ServiceState.STATE_POWER_OFF;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DTelephonyMetricsTest.java668 TelephonyServiceState state = event.serviceState; in testWriteServiceStateChanged()
712 TelephonyServiceState state = event.serviceState; in testReset()

12