/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ConnectivityUtil.java | 45 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/ |
D | Utils.java | 224 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/ |
D | SimStatusDialogController.java | 254 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/ |
D | RadioOnStateListener.java | 45 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()
|
D | RadioOnHelper.java | 151 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/ |
D | ProviderModelSliceHelper.java | 112 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()
|
D | SubscriptionsPreferenceController.java | 267 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()
|
D | NetworkProviderCallsSmsController.java | 225 ServiceState serviceState = in isInService() local 227 return Utils.isInService(serviceState); in isInService()
|
D | MobileNetworkPreferenceController.java | 105 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
|
/packages/apps/Settings/src/com/android/settings/network/telephony/gsm/ |
D | AutoSelectPreferenceController.java | 149 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/ |
D | NotificationMgr.java | 820 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()
|
D | PhoneGlobals.java | 226 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()
|
D | ServiceStateProvider.java | 714 /* 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/ |
D | HeadsetPhoneState.java | 296 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/ |
D | MmsStats.java | 163 ServiceState serviceState = mTelephonyManager.getServiceState(); in getDataRoamingType() local 164 return (serviceState != null) ? serviceState.getDataRoamingType() : in getDataRoamingType()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilitySettings.java | 241 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/ |
D | VvmPhoneStateListener.java | 47 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument 57 int state = serviceState.getState(); in onServiceStateChanged()
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | GsmCellBroadcastHandler.java | 218 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/ |
D | MmsStatsTest.java | 118 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/ |
D | RadioInfo.java | 371 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/ |
D | VvmSimStateTracker.java | 105 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/ |
D | PerfettoUtils.java | 381 TracingServiceState serviceState = in perfettoListCategories() local 398 for (DataSource dataSource : serviceState.getDataSourcesList()) { in perfettoListCategories()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ProviderModelSliceHelperTest.java | 271 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/ |
D | ProcessPendingMessagesAction.java | 117 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/ |
D | VoicemailErrorManager.java | 187 public void onServiceStateChanged(ServiceState serviceState) { in onServiceStateChanged() argument
|