/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 285 ServiceState serviceState = userState.serviceStateMap.get(component); in buildTvInputListLocked() local 286 if (serviceState == null) { in buildTvInputListLocked() 289 serviceState = new ServiceState(component, userId); in buildTvInputListLocked() 290 userState.serviceStateMap.put(component, serviceState); in buildTvInputListLocked() 293 inputList.addAll(serviceState.hardwareInputMap.values()); in buildTvInputListLocked() 339 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent()); in buildTvInputListLocked() local 340 if (serviceState != null) { in buildTvInputListLocked() 341 abortPendingCreateSessionRequestsLocked(serviceState, inputId, userId); in buildTvInputListLocked() 402 ServiceState serviceState = userState.serviceStateMap.get(component); in switchUser() local 403 if (serviceState != null && serviceState.sessionTokens.isEmpty()) { in switchUser() [all …]
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 116 final ServiceState serviceState = mock(ServiceState.class); in setRatTypeForSub() local 117 when(serviceState.getDataNetworkType()).thenReturn(type); in setRatTypeForSub() 123 match.onServiceStateChanged(serviceState); in setRatTypeForSub() 239 final ServiceState serviceState = mock(ServiceState.class); in test5g() local 240 when(serviceState.getDataNetworkType()).thenReturn(TelephonyManager.NETWORK_TYPE_LTE); in test5g() 241 when(serviceState.getNrState()).thenReturn(NetworkRegistrationInfo.NR_STATE_CONNECTED); in test5g() 242 listener.onServiceStateChanged(serviceState); in test5g() 247 when(serviceState.getNrState()).thenReturn(NetworkRegistrationInfo.NR_STATE_NONE); in test5g() 248 listener.onServiceStateChanged(serviceState); in test5g() 253 when(serviceState.getDataNetworkType()).thenReturn(TelephonyManager.NETWORK_TYPE_UMTS); in test5g() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | Utils.java | 391 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 final int state = serviceState.getState(); in getCombinedServiceState() 424 final int dataState = serviceState.getDataRegistrationState(); in getCombinedServiceState() 428 if (dataState == ServiceState.STATE_IN_SERVICE && isNotInIwlan(serviceState)) { in getCombinedServiceState() 435 private static boolean isNotInIwlan(ServiceState serviceState) { in isNotInIwlan() argument 436 final NetworkRegistrationInfo networkRegWlan = serviceState.getNetworkRegistrationInfo( in isNotInIwlan()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | TelephonyMetrics.java | 447 + "(" + "Data RAT " + event.serviceState.dataRat in printAllMetrics() 448 + " Voice RAT " + event.serviceState.voiceRat in printAllMetrics() 449 + " Channel Number " + event.serviceState.channelNumber in printAllMetrics() 450 + " NR Frequency Range " + event.serviceState.nrFrequencyRange in printAllMetrics() 451 + " NR State " + event.serviceState.nrState in printAllMetrics() 453 for (int i = 0; i < event.serviceState.networkRegistrationInfo.length; i++) { in printAllMetrics() 455 + event.serviceState.networkRegistrationInfo[i].domain in printAllMetrics() 456 + ", rat=" + event.serviceState.networkRegistrationInfo[i].rat); in printAllMetrics() 483 + "(" + "Data RAT " + event.serviceState.dataRat in printAllMetrics() 484 + " Voice RAT " + event.serviceState.voiceRat in printAllMetrics() [all …]
|
D | VoiceCallSessionStats.java | 339 ServiceState serviceState = getServiceState(); in addCall() local 340 int rat = getRat(serviceState); in addCall() 365 proto.isRoaming = serviceState != null ? serviceState.getVoiceRoaming() : false; in addCall() 374 updateRatTracker(serviceState); in addCall()
|
D | SmsSessionEventBuilder.java | 68 mEvent.serviceState = state; in setServiceState()
|
D | CallSessionEventBuilder.java | 103 mEvent.serviceState = state; in setServiceState()
|
D | TelephonyEventBuilder.java | 75 mEvent.serviceState = state; in setServiceState()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneStateListenerExecutorTest.java | 52 public void onServiceStateChanged(ServiceState serviceState) { in setUp() 54 mServiceState.setVoiceRegState(serviceState.getState()); in setUp() 55 mServiceState.setDataRegState(serviceState.getDataRegistrationState()); in setUp()
|
D | PhoneStateListenerTest.java | 52 public void onServiceStateChanged(ServiceState serviceState) { in setUp() 54 mServiceState.setVoiceRegState(serviceState.getState()); in setUp() 55 mServiceState.setDataRegState(serviceState.getDataRegistrationState()); in setUp()
|
D | GsmCdmaPhoneTest.java | 165 ServiceState serviceState = new ServiceState(); in testGetServiceState() local 166 mSST.mSS = serviceState; in testGetServiceState() 167 assertEquals(serviceState, mPhoneUT.getServiceState()); in testGetServiceState() 203 ServiceState serviceState = new ServiceState(); in testGetMergedServiceState() local 229 serviceState.addNetworkRegistrationInfo(csWwanRegInfo); in testGetMergedServiceState() 230 serviceState.addNetworkRegistrationInfo(psWwanRegInfo); in testGetMergedServiceState() 231 serviceState.addNetworkRegistrationInfo(psWlanRegInfo); in testGetMergedServiceState() 232 serviceState.setVoiceRegState(ServiceState.STATE_OUT_OF_SERVICE); in testGetMergedServiceState() 233 serviceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in testGetMergedServiceState() 234 serviceState.setIwlanPreferred(true); in testGetMergedServiceState() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CallManager.java | 280 int serviceState = phone.getServiceState().getState(); in getServiceState() local 281 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState() 283 resultState = serviceState; in getServiceState() 285 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { in getServiceState() 290 resultState = serviceState; in getServiceState() 292 } else if (serviceState == ServiceState.STATE_EMERGENCY_ONLY) { in getServiceState() 294 resultState = serviceState; in getServiceState() 309 int serviceState = phone.getServiceState().getState(); in getServiceState() local 310 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState() 312 resultState = serviceState; in getServiceState() [all …]
|
D | RatRatcheter.java | 64 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()
|
D | GsmCdmaConnection.java | 554 int serviceState = phone.getServiceState().getState(); in disconnectCauseFromCode() local 558 if (serviceState == ServiceState.STATE_POWER_OFF) { in disconnectCauseFromCode() 566 if ((serviceState == ServiceState.STATE_OUT_OF_SERVICE in disconnectCauseFromCode() 567 || serviceState == ServiceState.STATE_EMERGENCY_ONLY)) { in disconnectCauseFromCode()
|
D | SmsDispatchersController.java | 354 ServiceState serviceState = mPhone.getServiceState(); in isInService() local 355 return serviceState != null && serviceState.getState() == ServiceState.STATE_IN_SERVICE; in isInService()
|
D | LocaleTracker.java | 370 private void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument 371 mLastServiceState = serviceState.getState(); in onServiceStateChanged()
|
D | ServiceStateTracker.java | 2092 private void combinePsRegistrationStates(ServiceState serviceState) { in combinePsRegistrationStates() argument 2093 NetworkRegistrationInfo wlanPsRegState = serviceState.getNetworkRegistrationInfo( in combinePsRegistrationStates() 2095 NetworkRegistrationInfo wwanPsRegState = serviceState.getNetworkRegistrationInfo( in combinePsRegistrationStates() 2100 serviceState.setIwlanPreferred(isIwlanPreferred); in combinePsRegistrationStates() 2107 serviceState.setDataRegState(ServiceState.STATE_IN_SERVICE); in combinePsRegistrationStates() 2112 serviceState.setDataRegState(regCodeToServiceState(regState)); in combinePsRegistrationStates() 2115 log("combinePsRegistrationStates: " + serviceState); in combinePsRegistrationStates() 2209 int serviceState = regCodeToServiceState(registrationState); in handlePollStateResultMessage() local 2221 if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { in handlePollStateResultMessage() 4888 private void updateServiceStateLteEarfcnBoost(ServiceState serviceState, int lteEarfcn) { in updateServiceStateLteEarfcnBoost() argument [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhoneBase.java | 184 int serviceState = getServiceState().getState(); in canDial() local 185 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); in canDial() 186 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneBase.java | 230 int serviceState = getServiceState().getState(); in canDial() local 231 Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState); in canDial() 232 if (serviceState == ServiceState.STATE_POWER_OFF) return false; in canDial()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssNetworkConnectivityHandler.java | 601 ServiceState serviceState = phone.getServiceState(); 607 if (serviceState != null && serviceState.getDataRoamingFromRegistration()) {
|
D | ComprehensiveCountryDetector.java | 439 public void onServiceStateChanged(ServiceState serviceState) { in addPhoneStateListener() 446 if (DEBUG) Slog.d(TAG, "onServiceStateChanged: " + serviceState.getState()); in addPhoneStateListener()
|
/frameworks/base/core/java/com/android/internal/telephony/ |
D | IPhoneStateListener.aidl | 37 void onServiceStateChanged(in ServiceState serviceState); in onServiceStateChanged() argument
|
/frameworks/base/core/java/android/telephony/ |
D | PhoneStateListener.java | 573 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument 1119 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument 1124 () -> mExecutor.execute(() -> psl.onServiceStateChanged(serviceState))); in onServiceStateChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 1129 ServiceState serviceState = ServiceState.newFromBundle(intent.getExtras()); 1133 Log.v(TAG, "action " + action + " serviceState=" + serviceState + " subId=" 1137 mHandler.obtainMessage(MSG_SERVICE_STATE_CHANGE, subId, 0, serviceState)); 2179 void handleServiceStateChange(int subId, ServiceState serviceState) { in handleServiceStateChange() argument 2182 "handleServiceStateChange(subId=" + subId + ", serviceState=" + serviceState); in handleServiceStateChange() 2192 mServiceStates.put(subId, serviceState); in handleServiceStateChange()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | LegacyGlobalActions.java | 760 public void onServiceStateChanged(ServiceState serviceState) { 762 final boolean inAirplaneMode = serviceState.getState() == ServiceState.STATE_POWER_OFF;
|