Home
last modified time | relevance | path

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

/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DConfirmDialog.java92 final String sanitizedVpnLabel = Html.escapeHtml(vpnLabel); in getSanitizedVpnLabel() local
93 final boolean exceedMaxVpnLabelLength = sanitizedVpnLabel.codePointCount(0, in getSanitizedVpnLabel()
94 sanitizedVpnLabel.length()) > MAX_VPN_LABEL_LENGTH; in getSanitizedVpnLabel()
95 if (exceedMaxVpnLabelLength || !vpnLabel.equals(sanitizedVpnLabel)) { in getSanitizedVpnLabel()
96 return getSimplifiedLabel(sanitizedVpnLabel, packageName); in getSanitizedVpnLabel()
99 return sanitizedVpnLabel; in getSanitizedVpnLabel()
/frameworks/base/packages/VpnDialogs/tests/src/com/android/vpndialogs/
DVpnDialogTest.java121 final String sanitizedVpnLabel = in verifySanitizedVpnLabel()
123 assertTrue(sanitizedVpnLabel.codePointCount(0, sanitizedVpnLabel.length()) in verifySanitizedVpnLabel()
125 assertFalse(sanitizedVpnLabel.contains("<b>")); in verifySanitizedVpnLabel()