Home
last modified time | relevance | path

Searched refs:networkMode (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkUtils.java395 final int networkMode = getNetworkTypeFromRaf( in isGsmOptions() local
399 if (networkMode == NETWORK_MODE_LTE_CDMA_EVDO in isGsmOptions()
400 || networkMode == NETWORK_MODE_LTE_GSM_WCDMA in isGsmOptions()
401 || networkMode == NETWORK_MODE_NR_LTE_CDMA_EVDO in isGsmOptions()
402 || networkMode == NETWORK_MODE_NR_LTE_GSM_WCDMA) { in isGsmOptions()
461 final int networkMode = getNetworkTypeFromRaf( in shouldDisplayNetworkSelectOptions() local
464 if (networkMode == TelephonyManagerConstants.NETWORK_MODE_LTE_CDMA_EVDO in shouldDisplayNetworkSelectOptions()
477 if (networkMode == TelephonyManagerConstants.NETWORK_MODE_LTE_GSM_WCDMA) { in shouldDisplayNetworkSelectOptions()
577 final int networkMode = getNetworkTypeFromRaf( in shouldSpeciallyUpdateGsmCdma() local
580 if (networkMode == TelephonyManagerConstants.NETWORK_MODE_LTE_TDSCDMA_GSM in shouldSpeciallyUpdateGsmCdma()
[all …]
DEnabledNetworkModePreferenceController.java386 int networkMode = MobileNetworkUtils.getNetworkTypeFromRaf( in getPreferredNetworkMode() local
390 Log.d(LOG_TAG, "Network mode :" + networkMode + " reduce NR"); in getPreferredNetworkMode()
391 networkMode = reduceNrToLteNetworkType(networkMode); in getPreferredNetworkMode()
393 Log.d(LOG_TAG, "getPreferredNetworkMode: " + networkMode); in getPreferredNetworkMode()
394 return networkMode; in getPreferredNetworkMode()
470 void setPreferenceValueAndSummary(int networkMode) { in setPreferenceValueAndSummary() argument
471 setSelectedEntry(networkMode); in setPreferenceValueAndSummary()
472 switch (networkMode) { in setPreferenceValueAndSummary()
622 R.string.mobile_network_mode_error, networkMode)); in setPreferenceValueAndSummary()
DPreferredNetworkModePreferenceController.java73 final int networkMode = getPreferredNetworkMode(); in updateState() local
74 listPreference.setValue(Integer.toString(networkMode)); in updateState()
75 listPreference.setSummary(getPreferredNetworkModeSummaryResId(networkMode)); in updateState()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DEnabledNetworkModePreferenceControllerTest.java445 private void mockEnabledNetworkMode(int networkMode) { in mockEnabledNetworkMode() argument
446 if (networkMode == TelephonyManagerConstants.NETWORK_MODE_TDSCDMA_GSM_WCDMA) { in mockEnabledNetworkMode()
449 } else if (networkMode == TelephonyManagerConstants.NETWORK_MODE_LTE_GSM_WCDMA in mockEnabledNetworkMode()
450 || networkMode == TelephonyManagerConstants.NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA) { in mockEnabledNetworkMode()
454 } else if (networkMode == TelephonyManagerConstants.NETWORK_MODE_NR_LTE_TDSCDMA_GSM_WCDMA) { in mockEnabledNetworkMode()
457 } else if (networkMode == TelephonyManagerConstants.NETWORK_MODE_NR_LTE_GSM_WCDMA in mockEnabledNetworkMode()
458 || networkMode in mockEnabledNetworkMode()
471 private void mockAccessFamily(int networkMode) { in mockAccessFamily() argument
472 doReturn(MobileNetworkUtils.getRafFromNetworkType(networkMode)) in mockAccessFamily()