/external/guava/guava-tests/test/com/google/common/io/ |
PackageSanityTests.java | 32 setDefault(BaseEncoding.class, BaseEncoding.base64());
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Credentials.java | 31 String encoded = ByteString.of(bytes).base64();
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
Credentials.java | 33 String encoded = ByteString.of(bytes).base64();
|
/external/python/oauth2client/oauth2client/ |
_helpers.py | 16 import base64 98 return base64.urlsafe_b64encode(raw_bytes).rstrip(b'=') 102 # Guard against unicode strings, which base64 can't handle. 105 return base64.urlsafe_b64decode(padded)
|
/external/python/oauth2client/oauth2client/contrib/django_util/ |
models.py | 17 import base64 51 return pickle.loads(base64.b64decode(encoding.smart_bytes(value))) 61 return encoding.smart_text(base64.b64encode(pickle.dumps(value)))
|
/external/python/rsa/rsa/ |
pem.py | 19 import base64 44 :return: the base64-decoded content between the start and end markers. 97 # Base64-decode the contents 99 return base64.standard_b64decode(pem) 110 :return: the base64-encoded content between the start and end markers, as bytes. 116 b64 = base64.standard_b64encode(contents).replace(b'\n', b'')
|
/external/autotest/client/cros/image_comparison/ |
publisher.py | 5 import base64 39 Move viewer files to the results folder and base64 encode the images. 48 # Encode the images to base64 51 base64_images["golden"] = base64.b64encode(image_file.read()) 53 base64_images["test"] = base64.b64encode(image_file.read()) 55 base64_images["diff"] = base64.b64encode(image_file.read()) 68 Move viewer files to the results folder and base64 encode the images. 78 b64img = base64.b64encode(image_file.read()) 79 b64imgsrc = "data:image/png;base64, " + b64img
|
/frameworks/av/media/libstagefright/foundation/tests/ |
Base64_test.cpp | 23 #include <media/stagefright/foundation/base64.h> 75 const AString base64[] = { local 87 verifyDecode(clearText, base64); 128 const AString base64[] = { local 134 verifyEncode(base64, clearText);
|
/external/dynamic_depth/internal/strings/ |
escaping.cc | 11 // ptrdiff_t Base64Unescape() - base64 decoder 12 // ptrdiff_t Base64Escape() - base64 encoder 13 // ptrdiff_t WebSafeBase64Unescape() - Google's variation of base64 decoder 14 // ptrdiff_t WebSafeBase64Escape() - Google's variation of base64 encoder 249 LOG(FATAL) << "This can't happen; base64 decoder state = " << state; 278 // static const char Base64[] = 285 // pos = strchr(Base64, j); 289 // idx = pos - Base64; 299 // where the value of "Base64[]" was replaced by one of the base-64 conversion 380 // Determine the size of the output string. Base64 encodes every 3 bytes int [all...] |
/external/curl/tests/ |
getpart.pm | 31 tr:A-Za-z0-9+/::cd; # remove non-base64 chars 82 my $base64=0; 95 elsif($_ =~ /$part [^>]*base64=/) { 96 # attempt to detect our base64 encoded part 97 $base64=1; 114 if($base64) { 213 # we cannot compare arrays index per index since with the base64 chunks,
|
/external/python/oauth2client/oauth2client/contrib/ |
xsrfutil.py | 17 import base64 61 token = base64.urlsafe_b64encode(digest + DELIMITER + when) 86 decoded = base64.urlsafe_b64decode(token)
|
/external/ipsec-tools/src/racoon/ |
prsa_tok.l | 54 base64 [A-Za-z0-9+/=] 69 0s{base64}+ { 71 return BASE64;
|
/bionic/tools/bionicbb/ |
gmail.py | 16 import base64 27 return base64.urlsafe_b64decode(b64_body.encode('ASCII'))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/ |
encoders.py | 14 import base64
28 # We can't quite use base64.encodestring() since it tacks on a "courtesy
33 value = base64.encodestring(s)
42 """Encode the message's payload in Base64.
49 msg['Content-Transfer-Encoding'] = 'base64'
|
/external/ImageMagick/coders/ |
inline.c | 84 % ReadINLINEImage() reads base64-encoded inlines images. 216 entry=AcquireMagickInfo("INLINE","DATA","Base64-encoded inline images"); 221 entry=AcquireMagickInfo("INLINE","INLINE","Base64-encoded inline images"); 267 % WriteINLINEImage() writes an image to a file in INLINE format (Base64). 287 *base64, 310 Convert image to base64-encoding. 345 base64=Base64Encode(blob,blob_length,&encode_length); 347 if (base64 == (char *) NULL) 350 Write base64-encoded image. 355 base64=DestroyString(base64) 281 *base64, local [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/ |
CommandLineSerializer.java | 30 * Serializes and deserializes WorkerSpecs as base64 encoded strings so they can be passed on the 41 /** Returns the given serializable object as a base64 encoded String. */ 48 return BaseEncoding.base64().encode(bytes.toByteArray()); 54 /** Parses the given base64 encoded string as an object of the given type. */ 57 ByteArrayInputStream bais = new ByteArrayInputStream(BaseEncoding.base64().decode(arg));
|
/external/perfetto/infra/perfetto-get.appspot.com/ |
main.py | 19 import base64 55 contents = base64.b64decode(result.content)
|
/external/python/cpython2/Lib/email/ |
encoders.py | 14 import base64 28 # We can't quite use base64.encodestring() since it tacks on a "courtesy 33 value = base64.encodestring(s) 42 """Encode the message's payload in Base64. 49 msg['Content-Transfer-Encoding'] = 'base64'
|
/external/protobuf/src/google/protobuf/util/internal/ |
json_objectwriter.cc | 147 string base64; local 150 WebSafeBase64Escape(value.ToString(), &base64); 152 Base64Escape(value, &base64); 155 // TODO(wpoon): Consider a ByteSink solution that writes the base64 bytes 158 stream_->WriteRaw(base64.data(), base64.size());
|
/external/python/cpython3/Lib/email/ |
_encoded_words.py | 18 # Base64. The meaning of encoded_string should be obvious. 'lang' is optional 43 import base64 97 # Base64 107 base64.b64decode(encoded + missing_padding, validate=True), 118 base64.b64decode(encoded, validate=False), 126 base64.b64decode(encoded + b'==', validate=False), 139 return base64.b64encode(bstring).decode('ascii')
|
/external/scapy/scapy/ |
compat.py | 12 import base64 126 """Turn base64 into bytes""" 128 return base64.decodestring(x) 129 return base64.decodebytes(raw(x)) 132 """Turn bytes into base64""" 134 return base64.encodestring(x).replace('\n', '') 135 return base64.encodebytes(raw(x)).replace(b'\n', b'')
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
base64_ops_test.py | 22 import base64 65 base64_msg = [base64.urlsafe_b64encode(m) for m in msg] 109 enc = base64.urlsafe_b64encode(msg) 115 enc = base64.urlsafe_b64encode(msg) 128 enc = base64.urlsafe_b64encode(msg) 135 enc = base64.urlsafe_b64encode(msg) 146 enc = base64.urlsafe_b64encode(msg)
|
/external/python/oauth2client/tests/contrib/ |
test_xsrfutil.py | 17 import base64 74 expected_token = base64.urlsafe_b64encode( 109 expected_token = base64.urlsafe_b64encode( 135 token = base64.b64encode(b'abc' + xsrfutil.DELIMITER + b'xyz') 143 token = base64.b64encode(_helpers._to_bytes(str(token_time))) 154 token = base64.b64encode(_helpers._to_bytes(str(token_time))) 166 token = base64.b64encode(_helpers._to_bytes(str(token_time))) 187 token = base64.b64encode(_helpers._to_bytes(str(token_time))) 211 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
|
/external/boringssl/src/decrepit/bio/ |
base64_bio.c | 62 #include <openssl/base64.h> 86 EVP_ENCODE_CTX base64; member in struct:b64_struct 141 EVP_DecodeInit(&ctx->base64); 210 // '\n' before we even start looking for base64 encoded stuff. 217 k = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &num, p, 221 EVP_DecodeInit(&ctx->base64); 229 EVP_DecodeInit(&ctx->base64); 288 i = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, 332 EVP_EncodeInit(&(ctx->base64)); 401 EVP_EncodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &ctx->buf_len [all...] |
/external/grpc-grpc/test/core/transport/chttp2/ |
bin_encoder_test.cc | 70 grpc_slice base64 = grpc_chttp2_base64_encode(input); local 71 grpc_slice expect = grpc_chttp2_huffman_compress(base64); 85 grpc_slice_unref(base64); 104 /* Base64 test vectors from RFC 4648, with padding removed */ 105 /* BASE64("") = "" */ 107 /* BASE64("f") = "Zg" */ 109 /* BASE64("fo") = "Zm8" */ 111 /* BASE64("foo") = "Zm9v" */ 113 /* BASE64("foob") = "Zm9vYg" */ 115 /* BASE64("fooba") = "Zm9vYmE" * [all...] |