Home
last modified time | relevance | path

Searched refs:Base64 (Results 1 – 25 of 90) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java40 byte[] out = Base64.decode(in, 0); in decodeString()
49 String b64 = Base64.encodeToString(in.getBytes(), flags); in encodeToString()
58 byte[] out = Base64.decode(in, 0); in assertBad()
135 assertEquals(BYTES, 0, Base64.decode("", 0)); in testBinaryDecode()
136 assertEquals(BYTES, 1, Base64.decode("/w==", 0)); in testBinaryDecode()
137 assertEquals(BYTES, 2, Base64.decode("/+4=", 0)); in testBinaryDecode()
138 assertEquals(BYTES, 3, Base64.decode("/+7d", 0)); in testBinaryDecode()
139 assertEquals(BYTES, 4, Base64.decode("/+7dzA==", 0)); in testBinaryDecode()
140 assertEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0)); in testBinaryDecode()
141 assertEquals(BYTES, 6, Base64.decode("/+7dzLuq", 0)); in testBinaryDecode()
[all …]
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/
DEapAkaChallengeTest.java23 import android.util.Base64;
137 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withoutRand()
147 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withoutAutn()
157 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withoutRandAndAutn()
167 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withCodeResponse()
177 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withWrongLength()
187 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withEapType99()
197 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withSubType99()
207 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withLengthOverData()
217 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseEapAkaChallengeRequest_withRandLength16()
[all …]
DEapAkaSecurityContextTest.java24 import android.util.Base64;
96 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseResponseData_invalidWithWrongTag_throwsException()
112 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseResponseData_invalidWithWrongResLength_throwsException()
121 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseResponseData_invalidWithWrongCkLength_throwsException()
130 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseResponseData_invalidWithWrongIkLength_throwsException()
140 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseResponseData_validWithWrongKcLength()
152 String encodedData = Base64.encodeToString(data, Base64.NO_WRAP).trim(); in parseResponseData_noKcKey()
DEapAkaResponseTest.java29 import android.util.Base64;
105 Base64.encodeToString( in generateEapAkaChallengeResponse_authSuccess()
106 convertHexStringToBytes(EAP_AKA_CHALLENGE_RESPONSE), Base64.NO_WRAP); in generateEapAkaChallengeResponse_authSuccess()
123 Base64.encodeToString( in generateEapAkaChallengeResponse_syncFailure()
124 convertHexStringToBytes(EAP_AKA_CHALLENGE_SYNC_FAILURE), Base64.NO_WRAP); in generateEapAkaChallengeResponse_syncFailure()
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java25 import android.util.Base64;
142 byte[] derKey = Base64.decode(TEST_KEY.getBytes(), Base64.DEFAULT); in createKey()
149 byte[] derCert = Base64.decode(TEST_CERT.getBytes(), Base64.DEFAULT); in createCertificate()
169 String sig = new String(Base64.encode(signer.sign(), Base64.DEFAULT)); in createSignature()
182 return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT)); in verifySignature()
/frameworks/base/core/java/android/util/
DHashedStringCache.java117 hashText = Base64.encodeToString(bytes, 0, len, Base64.NO_PADDING | Base64.NO_WRAP); in hashString()
167 saltString = Base64.encodeToString(saltBytes, in populateSaltValues()
168 Base64.NO_PADDING | Base64.NO_WRAP); in populateSaltValues()
DBase64OutputStream.java30 private final Base64.Coder coder;
67 coder = new Base64.Encoder(flags, null); in Base64OutputStream()
69 coder = new Base64.Decoder(flags, null); in Base64OutputStream()
117 if ((flags & Base64.NO_CLOSE) == 0) { in close()
DBase64InputStream.java28 private final Base64.Coder coder;
66 coder = new Base64.Encoder(flags, null); in Base64InputStream()
68 coder = new Base64.Decoder(flags, null); in Base64InputStream()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/
DEapAkaChallenge.java23 import android.util.Base64;
64 data = Base64.decode(challenge.getBytes(UTF_8), Base64.DEFAULT); in parseEapAkaChallenge()
203 return Base64.encodeToString(challengeData, Base64.NO_WRAP).trim(); in getSimAuthChallengeData()
DEapAkaResponse.java25 import android.util.Base64;
131 result.mResponse = Base64.encodeToString(challengeResponse, Base64.NO_WRAP).trim(); in respondToEapAkaChallenge()
139 Base64.encodeToString(syncFailure, Base64.NO_WRAP).trim(); in respondToEapAkaChallenge()
DEapAkaSecurityContext.java23 import android.util.Base64;
76 data = Base64.decode(response.getBytes(UTF_8), Base64.DEFAULT); in parseResponseData()
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java39 import android.util.Base64;
53 Base64.decode("e04fd020ea3a6910a2d808002b30", Base64.DEFAULT);
56 Base64.decode("e04fd020ea3a6910a2d808002b30", Base64.DEFAULT);
58 Base64.decode("e04fd020ea3a6910a2d808002b32", Base64.DEFAULT);
284 byte[] wrongCert = Base64.decode("this is a wrong cert", Base64.DEFAULT); in testGetProvider_providerIsNonSystemAppWrongCerts()
309 byte[] wrongCert = Base64.decode("this is a wrong cert", Base64.DEFAULT); in testGetProvider_providerIsNonSystemAppMoreCerts()
344 byte[] wrongCert = Base64.decode("this is a wrong cert", Base64.DEFAULT); in testGetProvider_providerIsNonSystemAppCorrectCertsSeveralSets()
/frameworks/base/telephony/java/com/android/telephony/
DRlog.java19 import android.util.Base64;
151 return Base64.encodeToString( in secureHash()
152 result, Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in secureHash()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java24 import android.util.Base64;
174 expectedBytes = Base64.decode(expected[1], Base64.DEFAULT); in testReadMockData()
186 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadMockData()
204 expectedBytes = Base64.decode(expected[1], Base64.DEFAULT); in testReadRealData()
216 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadRealData()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPackageBasedTokenUtil.java24 import android.util.Base64;
104 token = Base64.encodeToString(hashSignatures, Base64.NO_PADDING | Base64.NO_WRAP); in generatePackageBasedToken()
DAppSmsManager.java32 import android.util.Base64;
242 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING); in generateNonce()
/frameworks/base/core/java/android/telephony/
DRlog.java22 import android.util.Base64;
158 return Base64.encodeToString( in secureHash()
159 result, Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in secureHash()
/frameworks/base/services/core/java/com/android/server/signedconfig/
DSignatureVerifier.java34 import java.util.Base64;
64 byte[] key = Base64.getDecoder().decode(base64); in createKey()
98 signature = Base64.getDecoder().decode(base64Signature); in verifySignature()
106 if (DBG) Slog.i(TAG, "Data: " + Base64.getEncoder().encodeToString(data)); in verifySignature()
/frameworks/base/core/java/android/webkit/
DWebViewProviderInfo.java24 import android.util.Base64;
43 this.signatures[n] = new Signature(Base64.decode(signatures[n], Base64.DEFAULT)); in WebViewProviderInfo()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DImsiEncryptionInfoTest.java24 import android.util.Base64;
74 byte[] derCert = Base64.decode(cert.getBytes(), Base64.DEFAULT); in createPublicKey()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java28 import android.util.Base64;
266 return Base64.decode(base64, Base64.URL_SAFE); in parseDataUri()
270 return Base64.decode(base64, Base64.DEFAULT); in parseDataUri()
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
DTestData.java22 import java.util.Base64;
84 byte[] certPathBytes = Base64.getDecoder().decode(base64CertPath); in decodeCertPath()
/frameworks/base/core/java/android/provider/
DFontRequest.java19 import android.util.Base64;
130 builder.append(Base64.encodeToString(array, Base64.DEFAULT)); in toString()
/frameworks/base/services/core/java/com/android/server/media/metrics/
DMediaMetricsManagerService.java30 import android.util.Base64;
174 .writeString(Base64.encodeToString(metrics.getDrmSessionId(), Base64.DEFAULT)) in reportPlaybackMetrics()
200 String id = Base64.encodeToString( in getSessionIdInternal()
201 byteId, Base64.NO_PADDING | Base64.NO_WRAP | Base64.URL_SAFE); in getSessionIdInternal()
/frameworks/base/core/java/android/security/keystore/recovery/
DX509CertificateParsingUtils.java24 import java.util.Base64;
51 return Base64.getDecoder().decode(string); in decodeBase64()

1234