Home
last modified time | relevance | path

Searched refs:validEnabled (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/network/apn/
DApnStatus.kt54 val validEnabled: Boolean = false, constant in com.android.settings.network.apn.ApnData
274 fun validateMMSC(validEnabled: Boolean, mmsc: String, context: Context): String? { in validateMMSC()
275 return if (validEnabled && mmsc != "" && !mmsc.matches(Regex("^https?:\\/\\/.+"))) in validateMMSC()
280 fun validateName(validEnabled: Boolean, name: String, context: Context): String? { in validateName()
281 return if (validEnabled && (name == "")) context.resources.getString(R.string.error_name_empty) in validateName()
285 fun validateAPN(validEnabled: Boolean, apn: String, context: Context): String? { in validateAPN()
286 return if (validEnabled && (apn == "")) context.resources.getString(R.string.error_apn_empty) in validateAPN()
DApnEditPageProvider.kt129 else if (!apnData.validEnabled) apnData = apnData.copy(validEnabled = true) in ApnPage()
147 if (apnData.validEnabled) { in ApnPage()
163 errorMessage = validateName(apnData.validEnabled, apnData.name, context) in ApnPage()
169 errorMessage = validateAPN(apnData.validEnabled, apnData.apn, context) in ApnPage()
205 errorMessage = validateMMSC(apnData.validEnabled, apnData.mmsc, context), in ApnPage()