Home
last modified time | relevance | path

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

12

/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.java9 import android.util.Base64;
55 byte[] b64 = Base64.decode(new String(data, StandardCharsets.ISO_8859_1), Base64.DEFAULT); in buildConfig()
70 byte[] wrappedContent = Base64.decode(mimeContainer.getText(), Base64.DEFAULT); in buildConfig()
104 byte[] octets = Base64.decode(subContainer.getText(), Base64.DEFAULT); in parse()
116 byte[] octets = Base64.decode(subContainer.getText(), Base64.DEFAULT); in parse()
129 byte[] octets = Base64.decode(subContainer.getText(), Base64.DEFAULT); in parse()
291 String alias = Base64.encodeToString(reference, Base64.DEFAULT); in buildTLSConfig()
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java23 import android.util.Base64;
140 byte[] derKey = Base64.decode(TEST_KEY.getBytes(), Base64.DEFAULT); in createKey()
147 byte[] derCert = Base64.decode(TEST_CERT.getBytes(), Base64.DEFAULT); in createCertificate()
167 String sig = new String(Base64.encode(signer.sign(), Base64.DEFAULT)); in createSignature()
180 return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT)); in verifySignature()
/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()
DBase64.java27 public class Base64 { class
740 private Base64() { } // don't instantiate in Base64() method in Base64
/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/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/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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/
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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLogger.java23 import android.util.Base64;
431 result = android.util.Base64.encodeToString(input, Base64.DEFAULT); in compressToBase64()
441 result = android.util.Base64.encodeToString( in compressToBase64()
442 compressed.length < input.length ? compressed : input , Base64.DEFAULT); in compressToBase64()
DWifiStateMachine.java9834 String base64Challenge = android.util.Base64.encodeToString( in handleGsmAuthRequest()
9835 rand, android.util.Base64.NO_WRAP); in handleGsmAuthRequest()
9852 byte[] result = android.util.Base64.decode(tmResponse, in handleGsmAuthRequest()
9853 android.util.Base64.DEFAULT); in handleGsmAuthRequest()
9901 String base64Challenge = android.util.Base64.encodeToString( in handle3GAuthRequest()
9902 concatHex(rand,authn), android.util.Base64.NO_WRAP); in handle3GAuthRequest()
9916 byte[] result = android.util.Base64.decode(tmResponse, in handle3GAuthRequest()
9917 android.util.Base64.DEFAULT); in handle3GAuthRequest()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java26 import android.util.Base64;
624 return Base64.encodeToString(toBytes(s), Base64.NO_WRAP); in base64Encode()
628 return fromBytes(Base64.decode(s, Base64.DEFAULT)); in base64Decode()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java37 import android.util.Base64;
310 digest = digester.digest(Base64.decode(base64_data, Base64.DEFAULT)); in getFingerprints()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntryConstructor.java20 import android.util.Base64;
DVCardParserImpl_V21.java19 import android.util.Base64;
615 property.setByteValue(Base64.decode(base64Property, Base64.DEFAULT));
DVCardBuilder.java34 import android.util.Base64;
1315 final String photoString = new String(Base64.encode(data, Base64.NO_WRAP)); in appendPhotos()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DBase64.java20 public class Base64 { class
/frameworks/base/core/java/com/android/internal/backup/
DLocalTransport.java36 import com.android.org.bouncycastle.util.encoders.Base64;
184 String base64Key = new String(Base64.encode(key.getBytes())); in performBackup()
559 key = new String(Base64.decode(f.getName())); in DecodedFilename()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVNodeBuilder.java24 import android.util.Base64;
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java25 import android.util.Base64;
1629 return Base64.decode(value, Base64.DEFAULT); in readByteArrayAttribute()
1638 out.attribute(null, name, Base64.encodeToString(value, Base64.DEFAULT)); in writeByteArrayAttribute()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccRecords.java679 return android.util.Base64.encodeToString(auth_rsp.payload, android.util.Base64.NO_WRAP); in getIccSimChallengeResponse()
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetManagerService.java25 import android.util.Base64;
564 return new String(Base64.encode(k.getEncoded(), Base64.NO_WRAP)); in encodePublicKey()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMOManager.java3 import android.util.Base64;
430 Base64.encodeToString(cred.getPassword().getBytes(StandardCharsets.UTF_8), in buildHomeSPTree()
431 Base64.DEFAULT), null); in buildHomeSPTree()
/frameworks/base/docs/html/training/in-app-billing/
Dpreparing-iab-app.jd59 …c license key that Google Play generated for your application. This is a Base64 string that you wi…
73 <li>Modify the sample to create your own application. Remember to copy the Base64 public license ke…

12