Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java33 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/
DConfigBuilder.java8 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/
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/tests/coretests/src/android/app/backup/
DBackupDataTest.java28 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/
DBase64OutputStream.java28 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()
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/base/packages/Osu/src/com/android/hotspot2/osu/commands/
DGetCertData.java3 import android.util.Base64;
48 mPassword = Base64.decode(values.get("estpassword"), Base64.DEFAULT); in GetCertData()
/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/packages/Osu/src/com/android/hotspot2/pps/
DUpdateInfo.java3 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()
DCredential.java4 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/
DUpdateInfo.java3 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()
DCredential.java7 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/
DSELinuxPolicyInstallReceiver.java24 import android.util.Base64;
74 writeUpdate(updateDir, destination, Base64.decode(chunk, Base64.DEFAULT)); in installFile()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java24 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/
DHTTPResponse.java3 import android.util.Base64;
145 byte[] binary = Base64.decode(data, Base64.DEFAULT); in getBinaryPayload()
DHTTPRequest.java3 import android.util.Base64;
252 byte[] binary = Base64.decode(mBody, Base64.DEFAULT); in getBinaryPayload()
/frameworks/base/packages/Osu/src/com/android/configparse/
DConfigBuilder.java7 import android.util.Base64;
155 String alias = Base64.encodeToString(reference, Base64.DEFAULT); in buildTLSConfig()
/frameworks/base/core/java/android/net/nsd/
DNsdServiceInfo.java23 import android.util.Base64;
109 byte[] txtRecordsRawBytes = Base64.decode(rawRecords, Base64.DEFAULT); in setTxtRecords()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java27 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/
DESTHandler.java4 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/
DWifiLogger.java19 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/
DStrictJarVerifier.java42 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/
DOSUSocketFactory.java4 import android.util.Base64;
67 Base64.decode(b64, Base64.DEFAULT)); in buildCertSet()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java38 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/
DWebViewUpdateServiceImpl.java24 import android.util.Base64;
646 final byte[] validSignature = Base64.decode(signature, Base64.DEFAULT); in providerHasValidSignature()

123