Home
last modified time | relevance | path

Searched refs:Base64 (Results 1 – 25 of 91) 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/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.java29 private final Base64.Coder coder;
66 coder = new Base64.Encoder(flags, null); in Base64OutputStream()
68 coder = new Base64.Decoder(flags, null); in Base64OutputStream()
116 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DTelephonyUtilTest.java26 import android.util.Base64;
140 String encryptedImsi = Base64.encodeToString(permanentIdentity.getBytes(), 0, in getEncryptedIdentity_WithRfc4648()
141 permanentIdentity.getBytes().length, Base64.NO_WRAP); in getEncryptedIdentity_WithRfc4648()
300 return Base64.encodeToString(challengeLengthAndValue, android.util.Base64.NO_WRAP); in createSimChallengeRequest()
307 return Base64.encodeToString(challengeValue, android.util.Base64.NO_WRAP); in create2gUsimChallengeRequest()
325 return Base64.encodeToString(result, Base64.NO_WRAP); in createGsmSimAuthResponse()
341 return Base64.encodeToString(result, Base64.NO_WRAP); in create2gUsimAuthResponse()
465 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAuthResponse()
476 return Base64.encodeToString(result, Base64.NO_WRAP); in create3GSimAuthUmtsAutsResponse()
504 .thenReturn(Base64.encodeToString(new byte[] {(byte) 0xdc}, Base64.NO_WRAP)); in get3GAuthResponseIccAuthenticationTooShort()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java25 import android.util.Base64;
188 return Base64.encodeToString(encryptedBytes, 0, encryptedBytes.length, encodingFlag); in encryptDataUsingPublicKey()
223 imsiEncryptionInfo.getPublicKey(), identity.getBytes(), Base64.NO_WRAP); in buildEncryptedIdentity()
498 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmAuthResponseWithLength()
509 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in getGsmAuthResponseWithLength()
571 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimpleSimNoLengthAuthResponse()
582 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in getGsmSimpleSimNoLengthAuthResponse()
650 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse()
664 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in get3GAuthResponse()
/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/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.java38 import android.util.Base64;
264 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING); in generateNonce()
/frameworks/base/telephony/java/android/telephony/
DRlog.java24 import android.util.Base64;
159 return Base64.encodeToString( in secureHash()
160 result, Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in secureHash()
/frameworks/base/services/core/java/com/android/server/signedconfig/
DSignatureVerifier.java33 import java.util.Base64;
63 byte[] key = Base64.getDecoder().decode(base64); in createKey()
97 signature = Base64.getDecoder().decode(base64Signature); in verifySignature()
104 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/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/
DIkeCertX509CertPayloadTest.java31 import java.util.Base64;
141 Base64.Decoder bs64Decoder = Base64.getDecoder(); in pemStringToCertificate()
/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/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/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;
129 builder.append(Base64.encodeToString(array, Base64.DEFAULT)); in toString()
/frameworks/base/core/java/android/security/keystore/recovery/
DX509CertificateParsingUtils.java24 import java.util.Base64;
51 return Base64.getDecoder().decode(string); in decodeBase64()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DTestData.java33 import java.util.Base64;
455 byte[] keyBytes = Base64.getDecoder().decode(INSECURE_PRIVATE_KEY_FOR_ENDPOINT1_BASE64); in getInsecurePrivateKeyForEndpoint1()
462 byte[] certPathBytes = Base64.getDecoder().decode(base64CertPath); in decodeCertPath()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisioningTestUtil.java23 import android.util.Base64;
135 Base64.decode(certString, Base64.DEFAULT)); in getOsuCertsForTest()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunk/
DChunkHash.java21 import java.util.Base64;
72 return Base64.getEncoder().encodeToString(mHash); in toString()
/frameworks/base/services/core/java/com/android/server/updates/
DCertificateTransparencyLogInstallReceiver.java23 import android.util.Base64;
151 byte[] keyBytes = Base64.decode(base64PublicKey, Base64.DEFAULT); in getLogFileName()
/frameworks/base/core/java/android/view/textclassifier/
DActionsModelParamsSupplier.java24 import android.util.Base64;
117 Base64.decode(serializedPreconditionsStr, Base64.NO_WRAP); in parse()

1234