/external/tensorflow/tensorflow/core/lib/strings/ |
H A D | base64_test.cc | 24 string encoded; local 25 TF_EXPECT_OK(Base64Encode(original, &encoded)); 26 EXPECT_EQ("YSBzaW1wbGUgdGVzdCBtZXNzYWdlIQ", encoded); 29 TF_EXPECT_OK(Base64Decode(encoded, &decoded));
|
/external/libchrome/base/ |
H A D | base64_unittest.cc | 15 std::string encoded; local 19 Base64Encode(kText, &encoded); 20 EXPECT_EQ(kBase64Text, encoded); 22 ok = Base64Decode(encoded, &decoded);
|
/external/pdfium/fxbarcode/oned/ |
H A D | BC_OnedEAN13Writer_unittest.cpp | 14 uint8_t* encoded; local 19 encoded = writer.Encode("", BCFORMAT_EAN_13, width, height); 20 EXPECT_EQ(nullptr, encoded); 21 FX_Free(encoded); 23 encoded = writer.Encode("123", BCFORMAT_EAN_13, width, height); 24 EXPECT_EQ(nullptr, encoded); 25 FX_Free(encoded); 27 encoded = writer.Encode("123456789012", BCFORMAT_EAN_13, width, height); 28 EXPECT_EQ(nullptr, encoded); 29 FX_Free(encoded); [all...] |
H A D | BC_OnedEAN8Writer_unittest.cpp | 14 uint8_t* encoded; local 19 encoded = writer.Encode("", BCFORMAT_EAN_8, width, height); 20 EXPECT_EQ(nullptr, encoded); 21 FX_Free(encoded); 23 encoded = writer.Encode("123", BCFORMAT_EAN_8, width, height); 24 EXPECT_EQ(nullptr, encoded); 25 FX_Free(encoded); 27 encoded = writer.Encode("1234567", BCFORMAT_EAN_8, width, height); 28 EXPECT_EQ(nullptr, encoded); 29 FX_Free(encoded); [all...] |
H A D | BC_OnedUPCAWriter_unittest.cpp | 21 uint8_t* encoded = writer.Encode("", BCFORMAT_UPC_A, width, height); local 22 EXPECT_EQ(nullptr, encoded); 23 FX_Free(encoded); 25 encoded = writer.Encode("123", BCFORMAT_UPC_A, width, height); 26 EXPECT_EQ(nullptr, encoded); 27 FX_Free(encoded); 29 encoded = writer.Encode("12345678901", BCFORMAT_UPC_A, width, height); 30 EXPECT_EQ(nullptr, encoded); 31 FX_Free(encoded); 33 encoded [all...] |
H A D | BC_OnedCodaBarWriter_unittest.cpp | 24 uint8_t* encoded = writer.Encode("", BCFORMAT_CODABAR, width, height); local 31 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; 33 FX_Free(encoded); 35 encoded = writer.Encode("123", BCFORMAT_CODABAR, width, height); 45 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; 47 FX_Free(encoded); 49 encoded = writer.Encode("-$./:+", BCFORMAT_CODABAR, width, height); 64 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; 66 FX_Free(encoded); 68 encoded 133 uint8_t* encoded = writer.Encode("987", BCFORMAT_CODABAR, width, height); local [all...] |
H A D | BC_OnedCode39Writer_unittest.cpp | 39 uint8_t* encoded; local 42 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height); 52 FX_Free(encoded); 56 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height); 66 FX_Free(encoded); 73 uint8_t* encoded; local 76 encoded = writer.Encode("", BCFORMAT_CODE_39, width, height); 83 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; 85 FX_Free(encoded); 87 encoded 143 uint8_t* encoded; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/pcm16b/ |
H A D | pcm16b.c | 17 uint8_t* encoded) { 21 encoded[2 * i] = s >> 8; 22 encoded[2 * i + 1] = s; 27 size_t WebRtcPcm16b_Decode(const uint8_t* encoded, argument 32 speech[i] = encoded[2 * i] << 8 | encoded[2 * i + 1]; 15 WebRtcPcm16b_Encode(const int16_t* speech, size_t len, uint8_t* encoded) argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
H A D | LazyConstructionEnumeration.java | 12 public LazyConstructionEnumeration(byte[] encoded) argument 14 aIn = new ASN1InputStream(encoded, true);
|
H A D | LazyEncodedSequence.java | 7 * Note: this class is for processing DER/DL encoded sequences only. 12 private byte[] encoded; field in class:LazyEncodedSequence 15 byte[] encoded) 18 this.encoded = encoded; 23 Enumeration en = new LazyConstructionEnumeration(encoded); 30 encoded = null; 35 if (encoded != null) 45 if (encoded == null) 50 return new LazyConstructionEnumeration(encoded); 14 LazyEncodedSequence( byte[] encoded) argument [all...] |
/external/skia/tools/viewer/ |
H A D | ImageSlide.cpp | 28 sk_sp<SkData> encoded = SkData::MakeFromFileName(fPath.c_str()); local 29 fImage = SkImage::MakeFromEncoded(encoded);
|
/external/skqp/tools/viewer/ |
H A D | ImageSlide.cpp | 28 sk_sp<SkData> encoded = SkData::MakeFromFileName(fPath.c_str()); local 29 fImage = SkImage::MakeFromEncoded(encoded);
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/openssl/ |
H A D | CertificateTrustBlock.java | 41 CertificateTrustBlock(byte[] encoded) argument 43 ASN1Sequence seq = ASN1Sequence.getInstance(encoded);
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
H A D | X509PublicKey.java | 31 private final byte[] encoded; field in class:X509PublicKey 33 X509PublicKey(String algorithm, byte[] encoded) { argument 35 this.encoded = encoded; 50 return encoded; 55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) 64 result = prime * result + Arrays.hashCode(encoded); 82 if (!Arrays.equals(encoded, other.encoded)) [all...] |
/external/guava/guava/src/com/google/thirdparty/publicsuffix/ |
H A D | TrieParser.java | 38 static ImmutableMap<String, PublicSuffixType> parseTrie(CharSequence encoded) { argument 40 int encodedLen = encoded.length(); 45 encoded.subSequence(idx, encodedLen), 56 * @param encoded The serialized trie. 58 * @return The number of characters consumed from {@code encoded}. 62 CharSequence encoded, 65 int encodedLen = encoded.length(); 71 c = encoded.charAt(idx); 77 stack.add(0, reverse(encoded.subSequence(0, idx))); 94 idx += doParseTrieToBuilder(stack, encoded 60 doParseTrieToBuilder( List<CharSequence> stack, CharSequence encoded, ImmutableMap.Builder<String, PublicSuffixType> builder) argument [all...] |
/external/libbrillo/brillo/ |
H A D | data_encoding_unittest.cc | 17 std::string encoded = UrlEncode(test.c_str()); local 18 EXPECT_EQ("%22http%3A%2F%2Fsample%2Fpath%2F0014.html+%22", encoded); 19 EXPECT_EQ(test, UrlDecode(encoded.c_str())); 22 encoded = UrlEncode(test.c_str(), false); 23 EXPECT_EQ("%22http%3A%2F%2Fsample%2Fpath%2F0014.html%20%22", encoded); 24 EXPECT_EQ(test, UrlDecode(encoded.c_str())); 28 std::string encoded = local 30 EXPECT_EQ("q=test&path=%2Fusr%2Fbin&%23=%25", encoded); 32 auto params = WebParamsDecode(encoded);
|
/external/sfntly/cpp/src/test/ |
H A D | test_utils_test.cc | 41 int32_t encoded = TestUtils::EncodeOneChar(conv, (int16_t)from[i]); local 42 for (; encoded; encoded <<= 8) { 43 byte_t b = (encoded & 0xff000000) >> 24;
|
/external/skia/bench/ |
H A D | AndroidCodecBench.cpp | 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize) argument 16 : fData(SkRef(encoded))
|
H A D | CodecBench.cpp | 18 CodecBench::CodecBench(SkString baseName, SkData* encoded, SkColorType colorType, argument 22 , fData(SkRef(encoded))
|
/external/skqp/bench/ |
H A D | AndroidCodecBench.cpp | 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize) argument 16 : fData(SkRef(encoded))
|
H A D | BitmapRegionDecoderBench.cpp | 13 BitmapRegionDecoderBench::BitmapRegionDecoderBench(const char* baseName, SkData* encoded, argument 16 , fData(SkRef(encoded))
|
H A D | CodecBench.cpp | 18 CodecBench::CodecBench(SkString baseName, SkData* encoded, SkColorType colorType, argument 22 , fData(SkRef(encoded))
|
/external/snakeyaml/src/test/java/biz/source_code/base64Coder/ |
H A D | Base64CoderTest.java | 39 assertEquals("Length of Base64 encoded input string is not a multiple of 4.", 56 private void checkInvalid(String encoded) { argument 58 Base64Coder.decode(encoded.toCharArray()); 61 assertEquals("Illegal character in Base64 encoded data.", e.getMessage()); 65 private void check(String text, String encoded) throws UnsupportedEncodingException { argument 68 assertEquals(encoded, t1); 69 byte[] s2 = Base64Coder.decode(encoded.toCharArray());
|
/external/tensorflow/tensorflow/contrib/coder/kernels/ |
H A D | range_coder_test.cc | 68 string encoded; local 71 encoder.Encode(cdf[x], cdf[x + 1], &encoded); 74 encoder.Finalize(&encoded); 76 LOG(INFO) << "Encoded string length (bits): " << 8 * encoded.size() 78 << (8 * encoded.size()) / ideal_length << " of ideal) " 82 RangeDecoder decoder(encoded, precision);
|
/external/webrtc/webrtc/libjingle/xmpp/ |
H A D | saslmechanism.cc | 44 SaslMechanism::Base64Decode(const std::string & encoded) { argument 45 return Base64::Decode(encoded, Base64::DO_LAX);
|