/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 33 byte[] out = Base64.decode(in, 0); in decodeString() 42 String b64 = Base64.encodeToString(in.getBytes(), flags); in encodeToString() 51 byte[] out = Base64.decode(in, 0); in assertBad() 128 assertEquals(BYTES, 0, Base64.decode("", 0)); in testBinaryDecode() 129 assertEquals(BYTES, 1, Base64.decode("/w==", 0)); in testBinaryDecode() 130 assertEquals(BYTES, 2, Base64.decode("/+4=", 0)); in testBinaryDecode() 131 assertEquals(BYTES, 3, Base64.decode("/+7d", 0)); in testBinaryDecode() 132 assertEquals(BYTES, 4, Base64.decode("/+7dzA==", 0)); in testBinaryDecode() 133 assertEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0)); in testBinaryDecode() 134 assertEquals(BYTES, 6, Base64.decode("/+7dzLuq", 0)); in testBinaryDecode() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/ |
D | ConfigBuilder.java | 8 import android.util.Base64; 54 byte[] b64 = Base64.decode(new String(data, StandardCharsets.ISO_8859_1), Base64.DEFAULT); in buildConfig() 69 byte[] wrappedContent = Base64.decode(mimeContainer.getText(), Base64.DEFAULT); in buildConfig() 107 byte[] octets = Base64.decode(subContainer.getText(), Base64.DEFAULT); in parse() 119 byte[] octets = Base64.decode(subContainer.getText(), Base64.DEFAULT); in parse() 132 byte[] octets = Base64.decode(subContainer.getText(), Base64.DEFAULT); in parse() 293 String alias = Base64.encodeToString(reference, Base64.DEFAULT); in buildTLSConfig()
|
/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/base/core/tests/coretests/src/android/app/backup/ |
D | BackupDataTest.java | 28 import android.util.Base64; 181 expectedBytes = Base64.decode(expected[1], Base64.DEFAULT); in testReadMockData() 193 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadMockData() 211 expectedBytes = Base64.decode(expected[1], Base64.DEFAULT); in testReadRealData() 223 Base64.encodeToString(buffer, 0, dataSize, Base64.NO_WRAP)); in testReadRealData()
|
/frameworks/base/core/java/android/util/ |
D | Base64OutputStream.java | 28 private final Base64.Coder coder; 64 coder = new Base64.Encoder(flags, null); in Base64OutputStream() 66 coder = new Base64.Decoder(flags, null); in Base64OutputStream() 114 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/packages/Osu/src/com/android/hotspot2/osu/commands/ |
D | GetCertData.java | 3 import android.util.Base64; 48 mPassword = Base64.decode(values.get("estpassword"), Base64.DEFAULT); in GetCertData()
|
/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/base/packages/Osu/src/com/android/hotspot2/pps/ |
D | UpdateInfo.java | 3 import android.util.Base64; 46 mPassword = new String(Base64.decode(pw.getBytes(StandardCharsets.US_ASCII), in UpdateInfo() 47 Base64.DEFAULT), StandardCharsets.UTF_8); in UpdateInfo()
|
D | Credential.java | 4 import android.util.Base64; 49 byte[] pwOctets = Base64.decode(password, Base64.DEFAULT); in Credential()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/ |
D | UpdateInfo.java | 3 import android.util.Base64; 48 mPassword = new String(Base64.decode(pw.getBytes(StandardCharsets.US_ASCII), in UpdateInfo() 49 Base64.DEFAULT), StandardCharsets.UTF_8); in UpdateInfo()
|
D | Credential.java | 7 import android.util.Base64; 58 byte[] pwOctets = Base64.decode(password, Base64.DEFAULT); in Credential() 167 fingerPrint = Base64.decode(enterpriseConfig.getClientCertificateAlias(), in Credential() 168 Base64.DEFAULT); in Credential()
|
/frameworks/base/services/core/java/com/android/server/updates/ |
D | SELinuxPolicyInstallReceiver.java | 24 import android.util.Base64; 74 writeUpdate(updateDir, destination, Base64.decode(chunk, Base64.DEFAULT)); in installFile()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageInfo.java | 24 import libcore.io.Base64; 146 ShortcutService.writeAttr(out, ATTR_SIGNATURE_HASH, Base64.encode(mSigHashes.get(i))); in saveToXml() 178 hashes.add(Base64.decode(hash.getBytes())); in loadFromXml()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/ |
D | HTTPResponse.java | 3 import android.util.Base64; 145 byte[] binary = Base64.decode(data, Base64.DEFAULT); in getBinaryPayload()
|
D | HTTPRequest.java | 3 import android.util.Base64; 252 byte[] binary = Base64.decode(mBody, Base64.DEFAULT); in getBinaryPayload()
|
/frameworks/base/packages/Osu/src/com/android/configparse/ |
D | ConfigBuilder.java | 7 import android.util.Base64; 155 String alias = Base64.encodeToString(reference, Base64.DEFAULT); in buildTLSConfig()
|
/frameworks/base/core/java/android/net/nsd/ |
D | NsdServiceInfo.java | 23 import android.util.Base64; 109 byte[] txtRecordsRawBytes = Base64.decode(rawRecords, Base64.DEFAULT); in setTxtRecords()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsState.java | 27 import android.util.Base64; 654 return Base64.encodeToString(toBytes(s), Base64.NO_WRAP); in base64Encode() 658 return fromBytes(Base64.decode(s, Base64.DEFAULT)); in base64Decode()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/est/ |
D | ESTHandler.java | 4 import android.util.Base64; 214 String data = Base64.encodeToString(csrData, Base64.DEFAULT); in execute() 355 Base64.encodeToString(tlsUnique, Base64.DEFAULT))); in buildCSR()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLogger.java | 19 import android.util.Base64; 555 result = android.util.Base64.encodeToString(input, Base64.DEFAULT); in compressToBase64() 565 result = android.util.Base64.encodeToString( in compressToBase64() 566 compressed.length < input.length ? compressed : input , Base64.DEFAULT); in compressToBase64()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarVerifier.java | 42 import libcore.io.Base64; 142 if (!MessageDigest.isEqual(d, Base64.decode(hash))) { in verify() 494 return MessageDigest.isEqual(b, Base64.decode(hashBytes)); in verify()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | OSUSocketFactory.java | 4 import android.util.Base64; 67 Base64.decode(b64, Base64.DEFAULT)); in buildCertSet()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDebuggingManager.java | 38 import android.util.Base64; 311 digest = digester.digest(Base64.decode(base64_data, Base64.DEFAULT)); in getFingerprints()
|
/frameworks/base/services/core/java/com/android/server/webkit/ |
D | WebViewUpdateServiceImpl.java | 24 import android.util.Base64; 646 final byte[] validSignature = Base64.decode(signature, Base64.DEFAULT); in providerHasValidSignature()
|