Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java43 private String encodeToString(String in, int flags) throws Exception { in encodeToString() method in Base64Test
44 String b64 = Base64.encodeToString(in.getBytes(), flags); in encodeToString()
152 assertEquals("", Base64.encodeToString(BYTES, 0, 0, Base64.URL_SAFE)); in testWebSafe()
153 assertEquals("_w==\n", Base64.encodeToString(BYTES, 0, 1, Base64.URL_SAFE)); in testWebSafe()
154 assertEquals("_-4=\n", Base64.encodeToString(BYTES, 0, 2, Base64.URL_SAFE)); in testWebSafe()
155 assertEquals("_-7d\n", Base64.encodeToString(BYTES, 0, 3, Base64.URL_SAFE)); in testWebSafe()
156 assertEquals("_-7dzA==\n", Base64.encodeToString(BYTES, 0, 4, Base64.URL_SAFE)); in testWebSafe()
157 assertEquals("_-7dzLs=\n", Base64.encodeToString(BYTES, 0, 5, Base64.URL_SAFE)); in testWebSafe()
158 assertEquals("_-7dzLuq\n", Base64.encodeToString(BYTES, 0, 6, Base64.URL_SAFE)); in testWebSafe()
159 assertEquals("_-7dzLuqmQ==\n", Base64.encodeToString(BYTES, 0, 7, Base64.URL_SAFE)); in testWebSafe()
[all …]
/frameworks/support/compat/src/androidTest/java/androidx/core/content/res/
DFontResourcesParserCompatTest.java167 String firstValue = Base64.encodeToString(firstSet.get(0), Base64.DEFAULT).trim(); in testReadCertsSingleArray()
169 String secondValue = Base64.encodeToString(firstSet.get(1), Base64.DEFAULT).trim(); in testReadCertsSingleArray()
181 String firstValue = Base64.encodeToString(firstSet.get(0), Base64.DEFAULT).trim(); in testReadCertsMultiArray()
183 String secondValue = Base64.encodeToString(firstSet.get(1), Base64.DEFAULT).trim(); in testReadCertsMultiArray()
187 String thirdValue = Base64.encodeToString(secondSet.get(0), Base64.DEFAULT).trim(); in testReadCertsMultiArray()
189 String fourthValue = Base64.encodeToString(secondSet.get(1), Base64.DEFAULT).trim(); in testReadCertsMultiArray()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DTelephonyUtilTest.java294 return Base64.encodeToString(challengeLengthAndValue, android.util.Base64.NO_WRAP); in createSimChallengeRequest()
312 return Base64.encodeToString(result, Base64.NO_WRAP); in createGsmSimAuthResponse()
396 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAuthResponse()
407 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAutsResponse()
438 .thenReturn(Base64.encodeToString(new byte[] {(byte) 0xdc}, Base64.NO_WRAP)); in get3GAuthResponseIccAuthenticationTooShort()
451 .thenReturn(Base64.encodeToString(new byte[] {0x31, 0x1, 0x2, 0x3, 0x4}, in get3GAuthResponseBadTag()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java117 return Base64.encodeToString(encryptedBytes, 0, encryptedBytes.length, Base64.DEFAULT); in encryptDataUsingPublicKey()
368 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimAuthResponse()
464 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse()
/frameworks/base/core/java/android/provider/
DFontRequest.java129 builder.append(Base64.encodeToString(array, Base64.DEFAULT)); in toString()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DPasspointConfigurationTest.java120 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy()
137 Base64.encodeToString("subPassword".getBytes(), Base64.DEFAULT)); in createSubscriptionUpdate()
/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/support/compat/src/main/java/androidx/core/provider/
DFontRequest.java160 builder.append(Base64.encodeToString(array, Base64.DEFAULT)); in toString()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java195 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadMockData()
225 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadRealData()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DAppSmsManager.java152 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING); in generateNonce()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DPackageValidator.java112 String signature = Base64.encodeToString( in isCallerAllowed()
/frameworks/base/telephony/java/android/telephony/
DRlog.java149 return Base64.encodeToString( in secureHash()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/
DPolicyTest.java85 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy()
DUpdateParameterTest.java59 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createUpdateParameter()
/frameworks/support/slices/view/src/main/java/androidx/slice/
DSliceXml.java311 text = Base64.encodeToString(text.getBytes(), Base64.NO_WRAP); in serialize()
318 text = Base64.encodeToString(text.getBytes(), Base64.NO_WRAP); in serialize()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java577 result = android.util.Base64.encodeToString(input, Base64.DEFAULT); in compressToBase64()
587 result = android.util.Base64.encodeToString( in compressToBase64()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/serialization/
DKeyChainSnapshotSerializer.java187 xmlSerializer.text(Base64.encodeToString(propertyValue, /*flags=*/ Base64.DEFAULT)); in writePropertyTag()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java213 return Base64.encodeToString(data, Base64.DEFAULT); in flushEncodedOutput()
/frameworks/base/telephony/java/android/telephony/mbms/
DDownloadRequest.java380 return Base64.encodeToString(digest.digest(), Base64.URL_SAFE | Base64.NO_WRAP); in getHash()
/frameworks/base/telecomm/java/android/telecom/Logging/
DSessionManager.java387 return Base64.encodeToString(idByteArray, Base64.NO_WRAP | Base64.NO_PADDING); in getBase64Encoding()
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java178 String s = Base64.encodeToString(GnssLog.toByteArray(msg), Base64.DEFAULT); in dumpGnssMetricsAsProtoString()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java232 final String encoded = Base64.getEncoder().encodeToString(mSigHashes.get(i)); in saveToXml()
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DWebViewUpdateServiceTest.java288 Base64.encodeToString( in testWithSignatures()
291 Base64.encodeToString( in testWithSignatures()
1127 Base64.encodeToString(signature.toByteArray(), Base64.DEFAULT); in checkPackageVersions()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccRecords.java926 return android.util.Base64.encodeToString(auth_rsp.payload, android.util.Base64.NO_WRAP); in getIccSimChallengeResponse()
/frameworks/base/services/core/java/com/android/server/
DNsdService.java723 String record = Base64.encodeToString(textRecord, Base64.DEFAULT).replace("\n", ""); in registerService()

12