Home
last modified time | relevance | path

Searched refs:encodeToString (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java41 private String encodeToString(String in, int flags) throws Exception { in encodeToString() method in Base64Test
42 String b64 = Base64.encodeToString(in.getBytes(), flags); in encodeToString()
150 assertEquals("", Base64.encodeToString(BYTES, 0, 0, Base64.URL_SAFE)); in testWebSafe()
151 assertEquals("_w==\n", Base64.encodeToString(BYTES, 0, 1, Base64.URL_SAFE)); in testWebSafe()
152 assertEquals("_-4=\n", Base64.encodeToString(BYTES, 0, 2, Base64.URL_SAFE)); in testWebSafe()
153 assertEquals("_-7d\n", Base64.encodeToString(BYTES, 0, 3, Base64.URL_SAFE)); in testWebSafe()
154 assertEquals("_-7dzA==\n", Base64.encodeToString(BYTES, 0, 4, Base64.URL_SAFE)); in testWebSafe()
155 assertEquals("_-7dzLs=\n", Base64.encodeToString(BYTES, 0, 5, Base64.URL_SAFE)); in testWebSafe()
156 assertEquals("_-7dzLuq\n", Base64.encodeToString(BYTES, 0, 6, Base64.URL_SAFE)); in testWebSafe()
157 assertEquals("_-7dzLuqmQ==\n", Base64.encodeToString(BYTES, 0, 7, Base64.URL_SAFE)); in testWebSafe()
[all …]
/frameworks/base/core/java/android/util/
DBase64.java454 public static String encodeToString(byte[] input, int flags) { in encodeToString() method in Base64
475 public static String encodeToString(byte[] input, int offset, int len, int flags) { in encodeToString() method in Base64
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java193 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadMockData()
223 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadRealData()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccRecords.java610 return android.util.Base64.encodeToString(auth_rsp.payload, android.util.Base64.NO_WRAP); in getIccSimChallengeResponse()
/frameworks/base/core/java/android/net/http/
DAndroidHttpClient.java450 String base64 = Base64.encodeToString(stream.toByteArray(), Base64.NO_WRAP); in toCurl()
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java1493 out.attribute(null, name, Base64.encodeToString(value, Base64.DEFAULT)); in writeByteArrayAttribute()
/frameworks/webview/chromium/java/com/android/webview/chromium/
DWebViewChromium.java665 Base64.encodeToString(data.getBytes("utf-8"), Base64.DEFAULT), mimeType,
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateMachine.java8202 String base64Challenge = android.util.Base64.encodeToString( in handleGsmAuthRequest()
/frameworks/base/api/
Dcurrent.txt31230 method public static java.lang.String encodeToString(byte[], int);
31231 method public static java.lang.String encodeToString(byte[], int, int, int);