Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java55 @VisibleForTesting static final String VALUE_DELIMITER = "\0"; field in VpnProfile
246 String[] values = new String(value, StandardCharsets.UTF_8).split(VALUE_DELIMITER, -1); in decode()
321 builder.append(VALUE_DELIMITER).append(type); in encode()
322 builder.append(VALUE_DELIMITER).append(server); in encode()
323 builder.append(VALUE_DELIMITER).append(saveLogin ? username : ""); in encode()
324 builder.append(VALUE_DELIMITER).append(saveLogin ? password : ""); in encode()
325 builder.append(VALUE_DELIMITER).append(dnsServers); in encode()
326 builder.append(VALUE_DELIMITER).append(searchDomains); in encode()
327 builder.append(VALUE_DELIMITER).append(routes); in encode()
328 builder.append(VALUE_DELIMITER).append(mppe); in encode()
[all …]
/frameworks/base/tests/net/java/com/android/internal/net/
DVpnProfileTest.java134 Arrays.asList("test" + VpnProfile.VALUE_DELIMITER + "test")); in testSetInvalidAlgorithmValueDelimiter()
163 (new String(profile.encode()) + VpnProfile.VALUE_DELIMITER + "invalid").getBytes(); in testEncodeDecodeTooManyValues()
174 new ArrayList<>(Arrays.asList(encoded.split(VpnProfile.VALUE_DELIMITER))); in getEncodedDecodedIkev2ProfileMissingValues()
181 return String.join(VpnProfile.VALUE_DELIMITER, parts.toArray(new String[0])); in getEncodedDecodedIkev2ProfileMissingValues()