/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 40 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/ |
D | CertPinInstallReceiverTest.java | 25 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TelephonyUtilTest.java | 26 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/base/core/java/android/util/ |
D | HashedStringCache.java | 117 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()
|
D | Base64OutputStream.java | 30 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()
|
D | Base64InputStream.java | 28 private final Base64.Coder coder; 66 coder = new Base64.Encoder(flags, null); in Base64InputStream() 68 coder = new Base64.Decoder(flags, null); in Base64InputStream()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractTest.java | 39 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/ |
D | BackupDataTest.java | 24 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/base/telephony/java/com/android/telephony/ |
D | Rlog.java | 19 import android.util.Base64; 151 return Base64.encodeToString( in secureHash() 152 result, Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in secureHash()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | TelephonyUtil.java | 26 import android.util.Base64; 189 return Base64.encodeToString(encryptedBytes, 0, encryptedBytes.length, encodingFlag); in encryptDataUsingPublicKey() 224 imsiEncryptionInfo.getPublicKey(), identity.getBytes(), Base64.NO_WRAP); in buildEncryptedIdentity() 499 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmAuthResponseWithLength() 510 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in getGsmAuthResponseWithLength() 572 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimpleSimNoLengthAuthResponse() 583 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in getGsmSimpleSimNoLengthAuthResponse() 651 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse() 665 byte[] result = Base64.decode(tmResponse, Base64.DEFAULT); in get3GAuthResponse()
|
/frameworks/base/core/java/android/telephony/ |
D | Rlog.java | 22 import android.util.Base64; 158 return Base64.encodeToString( in secureHash() 159 result, Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP); in secureHash()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PackageBasedTokenUtil.java | 24 import android.util.Base64; 104 token = Base64.encodeToString(hashSignatures, Base64.NO_PADDING | Base64.NO_WRAP); in generatePackageBasedToken()
|
D | AppSmsManager.java | 32 import android.util.Base64; 240 return Base64.encodeToString(bytes, Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING); in generateNonce()
|
/frameworks/base/services/core/java/com/android/server/signedconfig/ |
D | SignatureVerifier.java | 33 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/ |
D | WebViewProviderInfo.java | 24 import android.util.Base64; 43 this.signatures[n] = new Signature(Base64.decode(signatures[n], Base64.DEFAULT)); in WebViewProviderInfo()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | ImageUtils.java | 28 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/ |
D | ImsiEncryptionInfoTest.java | 24 import android.util.Base64; 74 byte[] derCert = Base64.decode(cert.getBytes(), Base64.DEFAULT); in createPublicKey()
|
/frameworks/base/core/java/android/provider/ |
D | FontRequest.java | 19 import android.util.Base64; 129 builder.append(Base64.encodeToString(array, Base64.DEFAULT)); in toString()
|
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/ |
D | TestData.java | 22 import java.util.Base64; 84 byte[] certPathBytes = Base64.getDecoder().decode(base64CertPath); in decodeCertPath()
|
/frameworks/base/core/java/android/security/keystore/recovery/ |
D | X509CertificateParsingUtils.java | 24 import java.util.Base64; 51 return Base64.getDecoder().decode(string); in decodeBase64()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | TestData.java | 33 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/ |
D | PasspointProvisioningTestUtil.java | 23 import android.util.Base64; 135 Base64.decode(certString, Base64.DEFAULT)); in getOsuCertsForTest()
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunk/ |
D | ChunkHash.java | 21 import java.util.Base64; 72 return Base64.getEncoder().encodeToString(mHash); in toString()
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/ |
D | PasspointConfigurationTest.java | 28 import android.util.Base64; 121 Base64.encodeToString("password".getBytes(), Base64.DEFAULT)); in createPolicy() 138 Base64.encodeToString("subPassword".getBytes(), Base64.DEFAULT)); in createSubscriptionUpdate()
|
/frameworks/base/services/core/java/com/android/server/updates/ |
D | CertificateTransparencyLogInstallReceiver.java | 23 import android.util.Base64; 151 byte[] keyBytes = Base64.decode(base64PublicKey, Base64.DEFAULT); in getLogFileName()
|