/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBase64.java | 6 import org.apache.commons.codec.binary.Base64; 8 @Implements(android.util.Base64.class) 13 Base64 base64 = new Base64(); local 14 return base64.encodeBase64String(bytes); 19 Base64 base64 = new Base64(); local 20 return base64.decodeBase64(str) [all...] |
/external/smack/src/org/jivesoftware/smack/util/ |
Base64FileUrlEncoder.java | 41 return Base64.encodeBytes(s.getBytes(), Base64.URL_SAFE); 45 return new String(Base64.decode(s, Base64.URL_SAFE));
|
Base64Encoder.java | 35 return Base64.encodeBytes(s.getBytes()); 39 return new String(Base64.decode(s));
|
/frameworks/base/services/java/com/android/server/updates/ |
TZInfoInstallReceiver.java | 19 import android.util.Base64; 32 super.install(Base64.decode(encodedContent, Base64.DEFAULT), version);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.java | 33 byte[] out = Base64.decode(in, 0); 42 String b64 = Base64.encodeToString(in.getBytes(), flags); 51 byte[] out = Base64.decode(in, 0); 128 assertEquals(BYTES, 0, Base64.decode("", 0)); 129 assertEquals(BYTES, 1, Base64.decode("/w==", 0)); 130 assertEquals(BYTES, 2, Base64.decode("/+4=", 0)); 131 assertEquals(BYTES, 3, Base64.decode("/+7d", 0)); 132 assertEquals(BYTES, 4, Base64.decode("/+7dzA==", 0)); 133 assertEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0)); 134 assertEquals(BYTES, 6, Base64.decode("/+7dzLuq", 0)) [all...] |
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/provider/cert/ |
CertFactoryTestData.java | 26 import org.apache.harmony.luni.util.Base64; 36 // by org.apache.harmony.misc.Base64 class. 298 return Base64.decode(certPathPKCS7Base64.getBytes("UTF-8")); 302 return Base64.decode(certPathPkiPathBase64.getBytes("UTF-8")); 306 return Base64.decode(certEncodingBase64.getBytes("UTF-8")); 318 return Base64.decode(crlEncodingBase64.getBytes("UTF-8"));
|
/external/chromium/third_party/libjingle/source/talk/xmpp/ |
saslmechanism.cc | 28 #include "talk/base/base64.h" 33 using talk_base::Base64; 57 return Base64::Encode(plain); 62 return Base64::Decode(encoded, Base64::DO_LAX); 68 Base64::EncodeFromArray(plain, length, &result);
|
/external/chromium_org/third_party/libjingle/source/talk/xmpp/ |
saslmechanism.cc | 28 #include "talk/base/base64.h" 33 using talk_base::Base64; 57 return Base64::Encode(plain); 62 return Base64::Decode(encoded, Base64::DO_LAX); 68 Base64::EncodeFromArray(plain, length, &result);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
Base64Test.java | 3 import android.util.Base64; 17 private static final String base64Decoded = "base64 encoded string"; 21 String result = Base64.encodeToString(base64Decoded.getBytes(), Base64.DEFAULT); 28 byte[] result = Base64.decode(base64Encoded, Base64.DEFAULT);
|
/bionic/libc/netbsd/net/ |
base64.c | 1 /* $NetBSD: base64.c,v 1.8 2002/11/11 01:15:17 thorpej Exp $ */ 47 __RCSID("$NetBSD: base64.c,v 1.8 2002/11/11 01:15:17 thorpej Exp $"); 69 static const char Base64[] = 86 of which is translated into a single digit in the base64 alphabet. 92 Table 1: The Base64 Alphabet 120 Since all base64 input is an integral number of octets, only the 170 target[datalength++] = Base64[output[0]]; 171 target[datalength++] = Base64[output[1]]; 172 target[datalength++] = Base64[output[2]]; 173 target[datalength++] = Base64[output[3]] [all...] |
/external/openssh/openbsd-compat/ |
base64.c | 1 /* $OpenBSD: base64.c,v 1.5 2006/10/21 09:55:03 otto Exp $ */ 45 /* OPENBSD ORIGINAL: lib/libc/net/base64.c */ 63 #include "base64.h" 65 static const char Base64[] = 82 of which is translated into a single digit in the base64 alphabet. 88 Table 1: The Base64 Alphabet 116 Since all base64 input is an integral number of octets, only the 154 target[datalength++] = Base64[output[0]]; 155 target[datalength++] = Base64[output[1]]; 156 target[datalength++] = Base64[output[2]] [all...] |
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
TextBody.java | 22 import android.util.Base64; 40 out.write(Base64.encode(bytes, Base64.CRLF));
|
BinaryTempFileBody.java | 25 import android.util.Base64; 74 out, Base64.CRLF | Base64.NO_CLOSE);
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
base64_unittest.cc | 29 #include "talk/base/base64.h" 268 // lc[:i].encode('base64').strip()) 353 Base64::EncodeFromArray((const char *)src, szsrc, &escaped); 361 EXPECT_TRUE(Base64::DecodeFromArray(src, szsrc, Base64::DO_LAX, &unescaped, 368 EXPECT_TRUE(Base64::DecodeFromArray(src, szsrc, Base64::DO_LAX, s, NULL)); 372 TEST(Base64, EncodeDecodeBattery) { 464 // here's a weird case: a giant base64 encoded stream which broke our base64 [all...] |
sslidentity.cc | 37 #include "talk/base/base64.h" 77 *der = Base64::Decode(inner, Base64::DO_PARSE_WHITE | 78 Base64::DO_PAD_ANY | 79 Base64::DO_TERM_BUFFER); 91 Base64::EncodeFromArray(data, length, &b64_encoded);
|
/libcore/luni/src/test/java/libcore/io/ |
Base64Test.java | 26 assertEquals("[]", Arrays.toString(Base64.decode(new byte[0]))); 52 assertEquals(expected, Base64.encode(dataBytes));
|
/packages/apps/Browser/src/com/android/browser/ |
DataUri.java | 20 import libcore.io.Base64; 26 * data:[<MIME-type>][;charset=<encoding>][;base64],<data> 31 private static final String BASE_64_ENCODING = ";base64"; 49 mData = Base64.decode(mData);
|
/frameworks/base/core/java/android/util/ |
Base64OutputStream.java | 24 * An OutputStream that does Base64 encoding on the data written to 28 private final Base64.Coder coder; 37 * Performs Base64 encoding on the data written to the stream, 42 * constants in {@link Base64} 49 * Performs Base64 encoding or decoding on the data written to the 55 * constants in {@link Base64} 64 coder = new Base64.Encoder(flags, null); 66 coder = new Base64.Decoder(flags, null); 114 if ((flags & Base64.NO_CLOSE) == 0) {
|
Base64InputStream.java | 24 * An InputStream that does Base64 decoding on the data read through 28 private final Base64.Coder coder; 39 * An InputStream that performs Base64 decoding on the data read 44 * constants in {@link Base64} 51 * Performs Base64 encoding or decoding on the data read from the 56 * constants in {@link Base64} 66 coder = new Base64.Encoder(flags, null); 68 coder = new Base64.Decoder(flags, null);
|
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/ |
InvalidationPreferences.java | 11 import android.util.Base64; 133 return Base64.decode(base64State, Base64.DEFAULT); 139 Base64.encodeToString(state, Base64.DEFAULT));
|
/external/apache-http/src/org/apache/commons/codec/net/ |
BCodec.java | 24 import org.apache.commons.codec.binary.Base64; 28 * Identical to the Base64 encoding defined by <a href="http://www.ietf.org/rfc/rfc1521.txt">RFC 80 return Base64.encodeBase64(bytes); 87 return Base64.decodeBase64(bytes); 91 * Encodes a string into its Base64 form using the specified charset. Unsafe characters are escaped. 94 * string to convert to Base64 form 97 * @return Base64 string 114 * Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped. 117 * string to convert to Base64 form 118 * @return Base64 strin [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/ |
CertPinInstallReceiverTest.java | 23 import android.util.Base64; 140 byte[] derKey = Base64.decode(TEST_KEY.getBytes(), Base64.DEFAULT); 147 byte[] derCert = Base64.decode(TEST_CERT.getBytes(), Base64.DEFAULT); 167 String sig = new String(Base64.encode(signer.sign(), Base64.DEFAULT)); 180 return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
PEMUtil.java | 7 import org.bouncycastle.util.encoders.Base64; 83 return ASN1Sequence.getInstance(Base64.decode(pemBuf.toString()));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
PEMUtil.java | 9 import org.bouncycastle.util.encoders.Base64; 83 ASN1Primitive o = new ASN1InputStream(Base64.decode(pemBuf.toString())).readObject();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/pem/ |
PemReader.java | 9 import org.bouncycastle.util.encoders.Base64; 81 return new PemObject(type, headers, Base64.decode(buf.toString()));
|