Home
last modified time | relevance | path

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

12

/packages/apps/Messaging/src/com/android/messaging/util/
DConnectivityUtil.java45 public void onPhoneStateChanged(int serviceState); in onPhoneStateChanged() argument
65 public void onServiceStateChanged(final ServiceState serviceState) {
66 if (mCurrentServiceState != serviceState.getState()) {
67 mCurrentServiceState = serviceState.getState();
79 private void onPhoneStateChanged(final int serviceState) { in onPhoneStateChanged() argument
82 listener.onPhoneStateChanged(serviceState); in onPhoneStateChanged()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/about/
DUtils.java224 public static boolean isInService(ServiceState serviceState) { in isInService() argument
225 if (serviceState == null) { in isInService()
228 int state = getCombinedServiceState(serviceState); in isInService()
240 public static int getCombinedServiceState(ServiceState serviceState) { in getCombinedServiceState() argument
241 if (serviceState == null) { in getCombinedServiceState()
252 final int state = serviceState.getState(); in getCombinedServiceState()
253 final int dataState = serviceState.getDataRegistrationState(); in getCombinedServiceState()
257 if (dataState == ServiceState.STATE_IN_SERVICE && isNotInIwlan(serviceState)) { in getCombinedServiceState()
264 private static boolean isNotInIwlan(ServiceState serviceState) { in isNotInIwlan() argument
265 final NetworkRegistrationInfo networkRegWlan = serviceState.getNetworkRegistrationInfo( in isNotInIwlan()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java254 final ServiceState serviceState = getTelephonyManager().getServiceState(); in updateSubscriptionStatus() local
258 updateServiceState(serviceState); in updateSubscriptionStatus()
261 updateRoamingStatus(serviceState); in updateSubscriptionStatus()
454 private void updateServiceState(ServiceState serviceState) { in updateServiceState() argument
455 final int state = Utils.getCombinedServiceState(serviceState); in updateServiceState()
456 if (!Utils.isInService(serviceState)) { in updateServiceState()
507 ServiceState serviceState = getTelephonyManager().getServiceState(); in updateSignalStrength() local
508 if (!Utils.isInService(serviceState)) { in updateSignalStrength()
586 private void updateRoamingStatus(ServiceState serviceState) { in updateRoamingStatus() argument
588 if (serviceState == null) { in updateRoamingStatus()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnStateListener.java45 boolean isOkToCall(Phone phone, int serviceState); in isOkToCall() argument
213 private boolean isOkToCall(int serviceState) { in isOkToCall() argument
214 return (mCallback == null) ? false : mCallback.isOkToCall(mPhone, serviceState); in isOkToCall()
222 int serviceState = mPhone.getServiceState().getState(); in onRetryTimeout() local
224 mPhone.getState(), serviceState, mNumRetriesSoFar); in onRetryTimeout()
232 if (isOkToCall(serviceState)) { in onRetryTimeout()
DRadioOnHelper.java151 public boolean isOkToCall(Phone phone, int serviceState) { in isOkToCall() argument
152 return (mCallback == null) ? false : mCallback.isOkToCall(phone, serviceState); in isOkToCall()
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSliceHelper.java112 final ServiceState serviceState = mTelephonyManager.getServiceState(); in isDataStateInService() local
114 (serviceState == null) ? null : serviceState.getNetworkRegistrationInfo( in isDataStateInService()
124 final ServiceState serviceState = mTelephonyManager.getServiceState(); in isVoiceStateInService() local
125 return serviceState != null in isVoiceStateInService()
126 && serviceState.getState() == serviceState.STATE_IN_SERVICE; in isVoiceStateInService()
DSubscriptionsPreferenceController.java267 final ServiceState serviceState = tmForSubId.getServiceState(); in getMobilePreferenceSummary() local
268 final NetworkRegistrationInfo regInfo = (serviceState == null) in getMobilePreferenceSummary()
270 : serviceState.getNetworkRegistrationInfo( in getMobilePreferenceSummary()
310 final ServiceState serviceState = tmForSubId.getServiceState(); in getIcon() local
311 final NetworkRegistrationInfo regInfo = (serviceState == null) in getIcon()
313 : serviceState.getNetworkRegistrationInfo( in getIcon()
320 final boolean isVoiceInService = (serviceState == null) in getIcon()
322 : (serviceState.getState() == ServiceState.STATE_IN_SERVICE); in getIcon()
DNetworkProviderCallsSmsController.java225 ServiceState serviceState = in isInService() local
227 return Utils.isInService(serviceState); in isInService()
DMobileNetworkPreferenceController.java105 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
/packages/apps/Settings/src/com/android/settings/network/telephony/gsm/
DAutoSelectPreferenceController.java149 final ServiceState serviceState = mTelephonyManager.getServiceState(); in updateState() local
150 if (serviceState == null) { in updateState()
155 if (serviceState.getRoaming()) { in updateState()
328 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
329 updateUiAutoSelectValue(serviceState); in onServiceStateChanged()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java820 void updateNetworkSelection(int serviceState, int subId) { in updateNetworkSelection() argument
848 log("updateNetworkSelection()..." + "state = " + serviceState + " new network " in updateNetworkSelection()
854 shouldShowNotification(serviceState, subId); in updateNetworkSelection()
861 serviceState + " not updating network due to invalid subId " + subId); in updateNetworkSelection()
901 private void shouldShowNotification(int serviceState, int subId) { in shouldShowNotification() argument
916 if (serviceState == ServiceState.STATE_OUT_OF_SERVICE) { in shouldShowNotification()
933 mPreviousServiceState.put(subId, serviceState); in shouldShowNotification()
936 + " serviceState = " + serviceState in shouldShowNotification()
1045 final ServiceState serviceState = telephonyManager.getServiceState(); in isTdscdmaSupported() local
1047 (serviceState != null) ? serviceState.getOperatorNumeric() : null; in isTdscdmaSupported()
DPhoneGlobals.java226 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
229 handleServiceStateChanged(serviceState, mSubId); in onServiceStateChanged()
855 private void handleServiceStateChanged(ServiceState serviceState, int subId) { in handleServiceStateChanged() argument
857 int state = serviceState.getState(); in handleServiceStateChanged()
862 + mDefaultDataSubId + ", ss roaming=" + serviceState.getDataRoaming()); in handleServiceStateChanged()
DServiceStateProvider.java714 /* package */ static ServiceState getLocationRedactedServiceState(ServiceState serviceState) { in getLocationRedactedServiceState() argument
716 serviceState.createLocationInfoSanitizedCopy(true /*removeCoarseLocation*/); in getLocationRedactedServiceState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java296 public synchronized void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
297 mServiceState = serviceState; in onServiceStateChanged()
298 int cindService = (serviceState.getState() == ServiceState.STATE_IN_SERVICE) in onServiceStateChanged()
301 int newRoam = serviceState.getRoaming() ? HeadsetHalConstants.SERVICE_TYPE_ROAMING in onServiceStateChanged()
/packages/services/Mms/src/com/android/mms/service/metrics/
DMmsStats.java163 ServiceState serviceState = mTelephonyManager.getServiceState(); in getDataRoamingType() local
164 return (serviceState != null) ? serviceState.getDataRoamingType() : in getDataRoamingType()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettings.java241 final CharSequence serviceState; in getServiceSummary() local
249 serviceState = shortcutEnabled in getServiceSummary()
253 serviceState = serviceEnabled in getServiceSummary()
261 serviceState, serviceSummary); in getServiceSummary()
263 return TextUtils.isEmpty(serviceSummary) ? serviceState : stateSummaryCombo; in getServiceSummary()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVvmPhoneStateListener.java47 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
57 int state = serviceState.getState(); in onServiceStateChanged()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmCellBroadcastHandler.java218 public void onServiceStateChanged(@NonNull ServiceState serviceState) { in onServiceStateChanged() argument
219 int state = serviceState.getState(); in onServiceStateChanged()
578 ServiceState serviceState = tm.getServiceState(); in getLacAndCid() local
580 if (serviceState == null) return null; in getLacAndCid()
587 NetworkRegistrationInfo nri = serviceState.getNetworkRegistrationInfo( in getLacAndCid()
594 nri = serviceState.getNetworkRegistrationInfo( in getLacAndCid()
/packages/services/Mms/tests/unittests/src/com/android/mms/service/metrics/
DMmsStatsTest.java118 ServiceState serviceState = mock(ServiceState.class); in getDataRoamingType_serviceState_notNull() local
119 doReturn(serviceState).when(mTelephonyManager).getServiceState(); in getDataRoamingType_serviceState_notNull()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java371 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
372 log("onServiceStateChanged: ServiceState=" + serviceState); in onServiceStateChanged()
373 updateServiceState(serviceState); in onServiceStateChanged()
377 updateNrStats(serviceState); in onServiceStateChanged()
1108 private void updateServiceState(ServiceState serviceState) { in updateServiceState() argument
1109 int state = serviceState.getState(); in updateServiceState()
1130 if (serviceState.getRoaming()) { in updateServiceState()
1136 mOperatorName.setText(serviceState.getOperatorAlphaLong()); in updateServiceState()
1194 private void updateNrStats(ServiceState serviceState) { in updateNrStats() argument
1199 ServiceState ss = serviceState; in updateNrStats()
/packages/services/Telephony/src/com/android/phone/vvm/
DVvmSimStateTracker.java105 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
106 if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) { in onServiceStateChanged()
/packages/apps/Traceur/src/com/android/traceur/
DPerfettoUtils.java381 TracingServiceState serviceState = in perfettoListCategories() local
398 for (DataSource dataSource : serviceState.getDataSourcesList()) { in perfettoListCategories()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceHelperTest.java271 private void mockConnections(boolean isDataEnabled, int serviceState, String expectDisplayName, in mockConnections() argument
276 when(mServiceState.getState()).thenReturn(serviceState); in mockConnections()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DProcessPendingMessagesAction.java117 public void onPhoneStateChanged(final int serviceState) { in scheduleProcessPendingMessagesAction()
118 if (serviceState == ServiceState.STATE_IN_SERVICE) { in scheduleProcessPendingMessagesAction()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailErrorManager.java187 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument

12