Home
last modified time | relevance | path

Searched refs:MobileNetworkUtils (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DMobileNetworkUtilsTest.java149 MobileNetworkUtils.setMobileDataEnabled(mContext, SUB_ID_1, true, false); in setMobileDataEnabled_setEnabled_enabled()
157 MobileNetworkUtils.setMobileDataEnabled(mContext, SUB_ID_2, true, false); in setMobileDataEnabled_setDisabled_disabled()
165 MobileNetworkUtils.setMobileDataEnabled(mContext, SUB_ID_1, true, true); in setMobileDataEnabled_disableOtherSubscriptions()
173 assertThat(MobileNetworkUtils.buildPhoneAccountConfigureIntent(mContext, null)).isNull(); in buildConfigureIntent_nullHandle_returnNull()
180 assertThat(MobileNetworkUtils.buildPhoneAccountConfigureIntent(mContext, in buildConfigureIntent_noActivityHandleIntent_returnNull()
188 assertThat(MobileNetworkUtils.buildPhoneAccountConfigureIntent(mContext, in buildConfigureIntent_hasActivityHandleIntent_returnIntent()
196 assertThat(MobileNetworkUtils.isCdmaOptions(mContext, SUB_ID_1)).isTrue(); in isCdmaOptions_phoneTypeCdma_returnTrue()
208 assertThat(MobileNetworkUtils.isCdmaOptions(mContext, SUB_ID_1)).isTrue(); in isCdmaOptions_worldModeWithGsmWcdma_returnTrue()
218 assertThat(MobileNetworkUtils.isCdmaOptions(mContext, SUB_ID_1)).isTrue(); in isCdmaOptions_carrierWorldModeWithoutHideCarrier_returnTrue()
225 assertThat(MobileNetworkUtils.getSearchableSubscriptionId(mContext)).isEqualTo(SUB_ID_1); in getSearchableSubscriptionId_oneActive_returnValid()
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnabledNetworkModePreferenceController.java136 MobileNetworkUtils.getRafFromNetworkType(newPreferredNetworkMode))) { in onPreferenceChange()
386 int networkMode = MobileNetworkUtils.getNetworkTypeFromRaf( in getPreferredNetworkMode()
433 if (MobileNetworkUtils.isTdscdmaSupported(mContext, mSubId)) { in getEnabledNetworkType()
456 if (MobileNetworkUtils.isWorldMode(mContext, mSubId)) { in getEnabledNetworkType()
503 if (MobileNetworkUtils.isWorldMode(mContext, mSubId)) { in setPreferenceValueAndSummary()
527 if (MobileNetworkUtils.isWorldMode(mContext, mSubId)) { in setPreferenceValueAndSummary()
562 if (MobileNetworkUtils.isTdscdmaSupported(mContext, mSubId)) { in setPreferenceValueAndSummary()
572 || MobileNetworkUtils.isWorldMode(mContext, mSubId)) { in setPreferenceValueAndSummary()
612 || MobileNetworkUtils.isWorldMode(mContext, mSubId)) { in setPreferenceValueAndSummary()
DApnPreferenceController.java62 final boolean isCdmaApn = MobileNetworkUtils.isCdmaOptions(mContext, subId) in getAvailabilityStatus()
65 final boolean isGsmApn = MobileNetworkUtils.isGsmOptions(mContext, subId) in getAvailabilityStatus()
100 MobileNetworkUtils.isDpcApnEnforced(mContext) in updateState()
DPreferredNetworkModePreferenceController.java84 MobileNetworkUtils.getRafFromNetworkType(newPreferredNetworkMode)); in onPreferenceChange()
102 return MobileNetworkUtils.getNetworkTypeFromRaf( in getPreferredNetworkMode()
150 || MobileNetworkUtils.isWorldMode(mContext, mSubId)) { in getPreferredNetworkModeSummaryResId()
DCarrierPreferenceController.java55 && (MobileNetworkUtils.isCdmaOptions(mContext, subId) in getAvailabilityStatus()
56 || MobileNetworkUtils.isGsmOptions(mContext, subId)) in getAvailabilityStatus()
DContactDiscoveryPreferenceController.java73 return MobileNetworkUtils.isContactDiscoveryEnabled(mImsManager, mSubId); in isChecked()
93 MobileNetworkUtils.setContactDiscoveryEnabled(mImsManager, mSubId, false /*isEnabled*/); in setChecked()
DMobileDataDialogFragment.java132 MobileNetworkUtils.setMobileDataEnabled(getContext(), mSubId, false /* enabled */, in onClick()
141 MobileNetworkUtils.setMobileDataEnabled(getContext(), mSubId, true /* enabled */, in onClick()
DNetworkOperatorPreference.java211 return MobileNetworkUtils.NO_CELL_DATA_TYPE_ICON; in getIconIdForCell()
260 setIcon(MobileNetworkUtils.getSignalStrengthIcon(context, level, NUM_SIGNAL_STRENGTH_BINS, in updateIcon()
DWifiCallingPreferenceController.java75 && MobileNetworkUtils.isWifiCallingEnabled(mContext, subId, null, null) in getAvailabilityStatus()
109 final Intent intent = MobileNetworkUtils.buildPhoneAccountConfigureIntent(mContext, in updateState()
DNetworkProviderWifiCallingGroup.java207 final Intent intent = MobileNetworkUtils.buildPhoneAccountConfigureIntent( in setSubscriptionInfoForPreference()
264 && MobileNetworkUtils.isWifiCallingEnabled( in shouldShowWifiCallingForSub()
DMobileNetworkActivity.java326 && MobileNetworkUtils.isContactDiscoveryVisible(this, subId) in maybeShowContactDiscoveryDialog()
328 && !MobileNetworkUtils.isContactDiscoveryEnabled(this, subId); in maybeShowContactDiscoveryDialog()
DCallsDefaultSubscriptionController.java49 return MobileNetworkUtils.getPreferredStatus(mContext, mManager, true); in getSummary()
/packages/apps/Settings/src/com/android/settings/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceController.java40 import com.android.settings.network.telephony.MobileNetworkUtils;
78 return MobileNetworkUtils.shouldDisplayNetworkSelectOptions(mContext, subId) in getAvailabilityStatus()
111 return MobileNetworkUtils.getCurrentCarrierNameForDisplay(mContext, mSubId); in getSummary()
DAutoSelectPreferenceController.java48 import com.android.settings.network.telephony.MobileNetworkUtils;
109 return MobileNetworkUtils.shouldDisplayNetworkSelectOptions(mContext, subId) in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSliceHelper.java18 import static com.android.settings.network.telephony.MobileNetworkUtils.NO_CELL_DATA_TYPE_ICON;
46 import com.android.settings.network.telephony.MobileNetworkUtils;
104 return MobileNetworkUtils.activeNetworkIsCellular(mContext); in isDataSimActive()
142 return MobileNetworkUtils.getSignalStrengthIcon(mContext, level, numLevels, in getDrawableWithSignalStrength()
DProviderModelSlice.java49 import com.android.settings.network.telephony.MobileNetworkUtils;
218 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, newState, in onNotifyChange()
224 isToggleAction ? newState : MobileNetworkUtils.isMobileDataEnabled(mContext); in onNotifyChange()
247 MobileNetworkUtils.setMobileDataEnabled(mContext, defaultSubId, in getMobileDataDisableDialog()
DSubscriptionsPreferenceController.java22 import static com.android.settings.network.telephony.MobileNetworkUtils.NO_CELL_DATA_TYPE_ICON;
59 import com.android.settings.network.telephony.MobileNetworkUtils;
550 if (!MobileNetworkUtils.isMobileDataEnabled(mContext)) { in connectCarrierNetwork()
600 return MobileNetworkUtils.activeNetworkIsCellular(context); in isActiveCellularNetwork()
654 return MobileNetworkUtils.getSignalStrengthIcon(context, level, numLevels, in getIcon()
DMobileNetworkSummaryStatus.java27 import com.android.settings.network.telephony.MobileNetworkUtils;
174 return MobileNetworkUtils.showEuiccSettingsDetecting(context); in isEuiccConfiguable()
DMobileNetworkPreferenceController.java42 import com.android.settings.network.telephony.MobileNetworkUtils;
158 return MobileNetworkUtils.getCurrentCarrierNameForDisplay(mContext); in getSummary()
DMobileNetworkListController.java38 import com.android.settings.network.telephony.MobileNetworkUtils;
85 MobileNetworkUtils.showEuiccSettings(mContext)); in displayPreference()
DNetworkProviderDownloadedSimListController.java40 import com.android.settings.network.telephony.MobileNetworkUtils;
105 MobileNetworkUtils.showEuiccSettings(mContext)); in displayPreference()
/packages/apps/Settings/src/com/android/settings/network/telephony/cdma/
DCdmaSystemSelectPreferenceController.java29 import com.android.settings.network.telephony.MobileNetworkUtils;
56 final int settingsNetworkMode = MobileNetworkUtils.getNetworkTypeFromRaf( in updateState()
DCdmaBasePreferenceController.java28 import com.android.settings.network.telephony.MobileNetworkUtils;
66 return MobileNetworkUtils.isCdmaOptions(mContext, subId) in getAvailabilityStatus()
DCdmaSubscriptionPreferenceController.java29 import com.android.settings.network.telephony.MobileNetworkUtils;
48 return MobileNetworkUtils.isCdmaOptions(mContext, subId) && deviceSupportsNvAndRuim() in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/security/
DConfirmSimDeletionPreferenceController.java29 import com.android.settings.network.telephony.MobileNetworkUtils;
52 return MobileNetworkUtils.showEuiccSettings(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()

12