Home
last modified time | relevance | path

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

123

/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java123 public final ServiceState serviceState; field in MediaBrowserService.ConnectionRecord
133 ServiceState serviceState, in ConnectionRecord() argument
140 this.serviceState = serviceState; in ConnectionRecord()
151 serviceState.postOnHandler( in binderDied()
152 () -> serviceState.mConnections.remove(callbacks.asBinder())); in binderDied()
226 private ServiceBinder(ServiceState serviceState) { in ServiceBinder() argument
228 setServiceState(serviceState); in ServiceBinder()
231 public void setServiceState(ServiceState serviceState) { in setServiceState() argument
232 mServiceState.set(new WeakReference<>(serviceState)); in setServiceState()
238 ServiceState serviceState = mServiceState.get().get(); in connect() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DMobileState.kt53 @JvmField var serviceState: ServiceState? = null variable in com.android.systemui.statusbar.connectivity.MobileState
100 serviceState = o.serviceState in copyFrom()
110 return serviceState?.state ?: -1 in getVoiceServiceState()
114 return serviceState?.state != ServiceState.STATE_IN_SERVICE in isNoCalling()
118 return serviceState?.operatorAlphaShort ?: "" in getOperatorAlphaShort()
126 return serviceState != null && serviceState!!.isEmergencyOnly in isEmergencyOnly()
130 return Utils.isInService(serviceState) in isInService()
160 serviceState = mobileStatus.serviceState in setFromMobileStatus()
235 serviceState?.minLog() ?: "(null)", in tableData()
263 if (serviceState != other.serviceState) return false in equals()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java370 ServiceState serviceState = userState.serviceStateMap.get(component); in buildTvInputListLocked() local
371 if (serviceState == null) { in buildTvInputListLocked()
374 serviceState = new ServiceState(component, userId); in buildTvInputListLocked()
375 userState.serviceStateMap.put(component, serviceState); in buildTvInputListLocked()
378 inputList.addAll(serviceState.hardwareInputMap.values()); in buildTvInputListLocked()
434 ServiceState serviceState = userState.serviceStateMap.get(info.getComponent()); in buildTvInputListLocked() local
435 if (serviceState != null) { in buildTvInputListLocked()
436 abortPendingCreateSessionRequestsLocked(serviceState, inputId, userId); in buildTvInputListLocked()
591 ServiceState serviceState = userState.serviceStateMap.get(component); in unbindServiceOfUserLocked() local
592 if (serviceState != null && serviceState.sessionTokens.isEmpty()) { in unbindServiceOfUserLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/interactive/
DTvInteractiveAppManagerService.java257 ServiceState serviceState = userState.mServiceStateMap.get(info.getComponent()); in buildTvInteractiveAppServiceListLocked() local
258 if (serviceState != null) { in buildTvInteractiveAppServiceListLocked()
259 abortPendingCreateSessionRequestsLocked(serviceState, iAppServiceId, userId); in buildTvInteractiveAppServiceListLocked()
344 AdServiceState serviceState = userState.mAdServiceStateMap.get(info.getComponent()); in buildTvAdServiceListLocked() local
345 if (serviceState != null) { in buildTvAdServiceListLocked()
346 abortPendingCreateAdSessionRequestsLocked(serviceState, serviceId, userId); in buildTvAdServiceListLocked()
671 for (ServiceState serviceState : userState.mServiceStateMap.values()) { in removeUser()
672 if (serviceState.mService != null) { in removeUser()
673 if (serviceState.mCallback != null) { in removeUser()
675 serviceState.mService.unregisterCallback(serviceState.mCallback); in removeUser()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DServiceStateStats.java121 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
123 if (isModemOff(serviceState)) { in onServiceStateChanged()
129 newState.voiceRat = getVoiceRat(mPhone, serviceState); in onServiceStateChanged()
130 newState.dataRat = getRat(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in onServiceStateChanged()
132 getNetworkRoamingState(serviceState, NetworkRegistrationInfo.DOMAIN_CS); in onServiceStateChanged()
134 getNetworkRoamingState(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in onServiceStateChanged()
135 newState.isEndc = isEndc(serviceState); in onServiceStateChanged()
139 newState.isEmergencyOnly = isEmergencyOnly(serviceState); in onServiceStateChanged()
154 writeDataRatAtom(serviceState); in onServiceStateChanged()
252 ServiceState serviceState = getServiceStateForPhone(phone); in getBand() local
[all …]
DTelephonyMetrics.java467 + "(" + "Data RAT " + event.serviceState.dataRat in printAllMetrics()
468 + " Voice RAT " + event.serviceState.voiceRat in printAllMetrics()
469 + " Channel Number " + event.serviceState.channelNumber in printAllMetrics()
470 + " NR Frequency Range " + event.serviceState.nrFrequencyRange in printAllMetrics()
471 + " NR State " + event.serviceState.nrState in printAllMetrics()
473 for (int i = 0; i < event.serviceState.networkRegistrationInfo.length; i++) { in printAllMetrics()
475 + event.serviceState.networkRegistrationInfo[i].domain in printAllMetrics()
476 + ", rat=" + event.serviceState.networkRegistrationInfo[i].rat); in printAllMetrics()
505 + "(" + "Data RAT " + event.serviceState.dataRat in printAllMetrics()
506 + " Voice RAT " + event.serviceState.voiceRat in printAllMetrics()
[all …]
DDataCallSessionStats.java349 ServiceState serviceState = in getIsRoaming() local
351 return ServiceStateStats.isNetworkRoaming(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in getIsRoaming()
373 ServiceState serviceState = in getIsOos() local
375 return serviceState != null in getIsOos()
376 && serviceState.getDataRegistrationState() == ServiceState.STATE_OUT_OF_SERVICE; in getIsOos()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java214 final ServiceState serviceState = userState.getServiceStateLocked(packageName); in startTrackingPackageChanges()
215 if (serviceState != null) { in startTrackingPackageChanges()
216 serviceState.onPackageModifiedLocked(); in startTrackingPackageChanges()
225 final ServiceState serviceState = userState.getServiceStateLocked(packageName); in startTrackingPackageChanges()
226 if (serviceState != null) { in startTrackingPackageChanges()
227 serviceState.onPackageInstallStatusChangeLocked(installed); in startTrackingPackageChanges()
506 ServiceState serviceState = in handleRequest() local
508 if (serviceState == null) { in handleRequest()
511 } else if (!serviceState.isInstalledLocked() || !serviceState.isEnabledLocked()) { in handleRequest()
514 serviceState.mPackageName + " is not available in user " + userId in handleRequest()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/mobile/
DMobileStatusTracker.java147 mMobileStatus.serviceState = state; in onServiceStateChanged()
230 public ServiceState serviceState; field in MobileStatusTracker.MobileStatus
257 serviceState = status.serviceState; in copyFrom()
270 .append("serviceState=").append(serviceState == null ? "" in toString()
271 : "mVoiceRegState=" + serviceState.getState() + "(" in toString()
272 + ServiceState.rilServiceStateToString(serviceState.getState()) in toString()
273 + ")" + ", mDataRegState=" + serviceState.getDataRegState() + "(" in toString()
275 serviceState.getDataRegState()) + ")") in toString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/telephony/
DTelephonyListenerManagerTest.java89 mTelephonyListenerManager.addServiceStateListener(serviceState -> {}); in testAddListenerRegisters_ServiceStateListener()
90 mTelephonyListenerManager.addServiceStateListener(serviceState -> {}); in testAddListenerRegisters_ServiceStateListener()
91 mTelephonyListenerManager.addServiceStateListener(serviceState -> {}); in testAddListenerRegisters_ServiceStateListener()
92 mTelephonyListenerManager.addServiceStateListener(serviceState -> {}); in testAddListenerRegisters_ServiceStateListener()
103 mTelephonyListenerManager.addServiceStateListener(serviceState -> {}); in testAddListenerRegisters_mixed()
106 mTelephonyListenerManager.addServiceStateListener(serviceState -> {}); in testAddListenerRegisters_mixed()
155 ServiceStateListener mListener = serviceState -> { }; in testRemoveListenerUnregisters_ServiceStateListener()
176 ServiceStateListener mListenerB = serviceState -> { }; in testRemoveListenerUnregisters_mixed()
DTelephonyCallbackTest.java60 mTelephonyCallback.addServiceStateListener(serviceState -> {}); in testAddListener_ServiceStateListener()
62 mTelephonyCallback.addServiceStateListener(serviceState -> {}); in testAddListener_ServiceStateListener()
92 ServiceStateListener listener = serviceState -> {}; in testRemoveListener_ServiceStateListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/
DMobileInputLogger.kt39 fun logOnServiceStateChanged(serviceState: ServiceState, subId: Int) { in logOnServiceStateChanged()
45 bool1 = serviceState.isEmergencyOnly in logOnServiceStateChanged()
46 bool2 = serviceState.roaming in logOnServiceStateChanged()
47 str1 = serviceState.operatorAlphaShort in logOnServiceStateChanged()
56 fun logTopLevelServiceStateBroadcastEmergencyOnly(subId: Int, serviceState: ServiceState) { in logTopLevelServiceStateBroadcastEmergencyOnly()
62 bool1 = serviceState.isEmergencyOnly in logTopLevelServiceStateBroadcastEmergencyOnly()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/
DRadioOnStateListener.java58 boolean isOkToCall(Phone phone, int serviceState, boolean imsVoiceCapable); in isOkToCall() argument
73 boolean onTimeout(Phone phone, int serviceState, boolean imsVoiceCapable); in onTimeout() argument
339 private boolean isOkToCall(int serviceState, boolean imsVoiceCapable) { in isOkToCall() argument
341 ? false : mCallback.isOkToCall(mPhone, serviceState, imsVoiceCapable); in isOkToCall()
347 private boolean onTimeout(int serviceState, boolean imsVoiceCapable) { in onTimeout() argument
349 ? false : mCallback.onTimeout(mPhone, serviceState, imsVoiceCapable); in onTimeout()
359 int serviceState = mPhone.getServiceState().getState(); in onRetryTimeout() local
363 mPhone.getState(), serviceState, mNumRetriesSoFar)); in onRetryTimeout()
371 if (isOkToCall(serviceState, mPhone.isVoiceOverCellularImsEnabled())) { in onRetryTimeout()
DRadioOnHelper.java179 public boolean isOkToCall(Phone phone, int serviceState, boolean imsVoiceCapable) { in isOkToCall() argument
181 ? false : mCallback.isOkToCall(phone, serviceState, imsVoiceCapable); in isOkToCall()
185 public boolean onTimeout(Phone phone, int serviceState, boolean imsVoiceCapable) { in onTimeout() argument
187 ? false : mCallback.onTimeout(phone, serviceState, imsVoiceCapable); in onTimeout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/model/
DServiceStateModel.kt27 fun fromServiceState(serviceState: ServiceState): ServiceStateModel { in fromServiceState()
28 return ServiceStateModel(isEmergencyOnly = serviceState.isEmergencyOnly) in fromServiceState()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneStateListenerExecutorTest.java47 public void onServiceStateChanged(ServiceState serviceState) { in setUp()
49 mServiceState.setVoiceRegState(serviceState.getState()); in setUp()
50 mServiceState.setDataRegState(serviceState.getDataRegistrationState()); in setUp()
DPhoneStateListenerTest.java54 public void onServiceStateChanged(ServiceState serviceState) { in setUp()
56 mServiceState.setVoiceRegState(serviceState.getState()); in setUp()
57 mServiceState.setDataRegState(serviceState.getDataRegistrationState()); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/
DSatelliteSOSMessageRecommender.java455 ServiceState serviceState = phone.getServiceState(); in isCellularAvailable() local
456 if (serviceState != null) { in isCellularAvailable()
457 int state = serviceState.getState(); in isCellularAvailable()
459 || serviceState.isEmergencyOnly()) in isCellularAvailable()
460 && !isSatellitePlmn(phone.getSubId(), serviceState)) { in isCellularAvailable()
470 private boolean isSatellitePlmn(int subId, @NonNull ServiceState serviceState) { in isSatellitePlmn() argument
479 serviceState.getNetworkRegistrationInfoListForTransportType( in isSatellitePlmn()
506 ServiceState serviceState = phone.getServiceState(); in getBestCellularServiceState() local
507 if (serviceState != null) { in getBestCellularServiceState()
508 int state = serviceState.getState(); in getBestCellularServiceState()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCallManager.java282 int serviceState = phone.getServiceState().getState(); in getServiceState() local
283 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState()
285 resultState = serviceState; in getServiceState()
287 } else if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { in getServiceState()
292 resultState = serviceState; in getServiceState()
294 } else if (serviceState == ServiceState.STATE_EMERGENCY_ONLY) { in getServiceState()
296 resultState = serviceState; in getServiceState()
311 int serviceState = phone.getServiceState().getState(); in getServiceState() local
312 if (serviceState == ServiceState.STATE_IN_SERVICE) { in getServiceState()
314 resultState = serviceState; in getServiceState()
[all …]
DRatRatcheter.java58 public static boolean updateBandwidths(int[] bandwidths, ServiceState serviceState) { in updateBandwidths() argument
63 int ssAggregateBandwidth = Arrays.stream(serviceState.getCellBandwidths()).sum(); in updateBandwidths()
67 serviceState.setCellBandwidths(bandwidths); in updateBandwidths()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileConnectionRepositoryImpl.kt189 override fun onServiceStateChanged(serviceState: ServiceState) { in <lambda>()
190 logger.logOnServiceStateChanged(serviceState, subId) in <lambda>()
191 trySend(CallbackEvent.OnServiceStateChanged(serviceState)) in <lambda>()
210 .map { it.serviceState.isEmergencyOnly } in <lambda>()
221 .map { it.serviceState.roaming } in <lambda>()
228 .map { it.serviceState.operatorAlphaShort } in <lambda>()
234 .map { Utils.isInService(it.serviceState) } in <lambda>()
523 data class OnServiceStateChanged(val serviceState: ServiceState) : CallbackEvent in Intent() constant in CallbackEvent.OnServiceStateChanged
/frameworks/base/packages/SystemUI/src/com/android/systemui/telephony/
DTelephonyCallback.java90 public void onServiceStateChanged(@NonNull ServiceState serviceState) { in onServiceStateChanged() argument
95 listeners.forEach(listener -> listener.onServiceStateChanged(serviceState)); in onServiceStateChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java616 public static boolean isInService(ServiceState serviceState) { in isInService() argument
617 if (serviceState == null) { in isInService()
620 int state = getCombinedServiceState(serviceState); in isInService()
640 public static int getCombinedServiceState(ServiceState serviceState) { in getCombinedServiceState() argument
641 if (serviceState == null) { in getCombinedServiceState()
645 final int voiceRegState = serviceState.getVoiceRegState(); in getCombinedServiceState()
655 if (isDataRegInWwanAndInService(serviceState)) { in getCombinedServiceState()
666 private static boolean isDataRegInWwanAndInService(ServiceState serviceState) { in isDataRegInWwanAndInService() argument
668 serviceState.getNetworkRegistrationInfo( in isDataRegInWwanAndInService()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileConnectionRepositoryTest.kt182 val serviceState = ServiceState() in emergencyOnly() constant
183 serviceState.isEmergencyOnly = true in emergencyOnly()
185 getTelephonyCallbackForType<ServiceStateListener>().onServiceStateChanged(serviceState) in emergencyOnly()
609 val serviceState = ServiceState() in cdmaRoaming_ignoresNegativeOne() constant
610 serviceState.roaming = false in cdmaRoaming_ignoresNegativeOne()
616 cb.onServiceStateChanged(serviceState) in cdmaRoaming_ignoresNegativeOne()
898 val serviceState = ServiceState() in operatorAlphaShort_tracked() constant
899 serviceState.setOperatorName( in operatorAlphaShort_tracked()
905 getTelephonyCallbackForType<ServiceStateListener>().onServiceStateChanged(serviceState) in operatorAlphaShort_tracked()
974 val serviceState = in isInService_isIwlan_voiceOutOfService_dataInService() constant
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DIDomainSelectionServiceController.aidl27 void updateServiceState(int slotId, int subId, in ServiceState serviceState); in updateServiceState() argument

123