/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
D | DerGeneralizedTimeEDTest.java | 54 byte[] encoded = in testGeneralizedEncoder() 55 new DerOutputStream(gTime, myDate).encoded; in testGeneralizedEncoder() 56 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testGeneralizedEncoder() 61 encoded = in testGeneralizedEncoder() 62 new DerOutputStream(gTime, myDate).encoded; in testGeneralizedEncoder() 63 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testGeneralizedEncoder() 68 encoded = in testGeneralizedEncoder() 69 new DerOutputStream(gTime, myDate).encoded; in testGeneralizedEncoder() 70 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testGeneralizedEncoder() 75 encoded = in testGeneralizedEncoder() [all …]
|
D | DerUTCTimeEDTest.java | 56 byte[] encoded = in testUTCEncoder() 57 new DerOutputStream(uTime, myDate).encoded; in testUTCEncoder() 58 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testUTCEncoder() 66 encoded = in testUTCEncoder() 67 new DerOutputStream(uTime, myDate).encoded; in testUTCEncoder() 68 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testUTCEncoder() 99 byte[] encoded = in runTest() 100 new DerOutputStream(uTime, myDate).encoded; in runTest() 102 ? new DerInputStream(new ByteArrayInputStream(encoded)) in runTest() 103 : new DerInputStream(encoded); in runTest() [all …]
|
D | AnyTest.java | 42 private static byte[] encoded = new byte[] { 0x01, 0x03, 0x11, 0x13, 0x15 }; field in AnyTest 45 DerInputStream in = new DerInputStream(encoded); in testDecode() 46 assertTrue(Arrays.equals(encoded, (byte[]) ASN1Any.getInstance() in testDecode() 52 encoded); in testEncode() 53 assertTrue("False", Arrays.equals(encoded, out.encoded)); in testEncode()
|
D | IntegerTest.java | 72 byte[] encoded = new byte[array.length + 2]; 73 encoded[0] = 0x02; 74 encoded[1] = (byte) (encoded.length - 2); 75 System.arraycopy(array, 0, encoded, 2, encoded[1]); in System.arraycopy() argument 79 validTestcase[i][2] = encoded; 113 out.encoded));//returned in testDecode_Encode()
|
/external/chromium/chrome/browser/metrics/ |
D | metrics_log_unittest.cc | 56 std::string encoded; in TEST() local 58 ASSERT_TRUE(log.GetEncodedLog(WriteInto(&encoded, size + 1), size)); in TEST() 59 TrimWhitespaceASCII(encoded, TRIM_ALL, &encoded); in TEST() 60 NormalizeBuildtime(&encoded); in TEST() 63 ASSERT_EQ(expected_output, encoded); in TEST() 80 std::string encoded; in TEST() local 82 ASSERT_TRUE(log.GetEncodedLog(WriteInto(&encoded, size + 1), size)); in TEST() 83 TrimWhitespaceASCII(encoded, TRIM_ALL, &encoded); in TEST() 84 NormalizeBuildtime(&encoded); in TEST() 87 ASSERT_EQ(expected_output, encoded); in TEST() [all …]
|
/external/chromium/base/i18n/ |
D | icu_string_conversions_unittest.cc | 109 const char* encoded; member 247 kConvertCodepageCases[i].encoded, in TEST() 251 bool success = CodepageToWide(kConvertCodepageCases[i].encoded, in TEST() 265 std::string encoded; in TEST() local 267 kConvertCodepageCases[i].on_error, &encoded); in TEST() 269 EXPECT_EQ(kConvertCodepageCases[i].encoded, encoded); in TEST() 275 std::string encoded("Temp data"); // Make sure the string gets cleared. in TEST() local 279 OnStringConversionError::FAIL, &encoded)); in TEST() 280 EXPECT_TRUE(encoded.empty()); in TEST() 282 OnStringConversionError::SKIP, &encoded)); in TEST() [all …]
|
D | icu_string_conversions.cc | 82 std::string* encoded) { in ConvertFromUTF16() argument 85 encoded->resize(encoded_max_length); in ConvertFromUTF16() 105 int actual_size = ucnv_fromUChars(converter, &(*encoded)[0], in ConvertFromUTF16() 107 encoded->resize(actual_size); in ConvertFromUTF16() 111 encoded->clear(); // Make sure the output is empty on error. in ConvertFromUTF16() 156 std::string* encoded) { in UTF16ToCodepage() argument 157 encoded->clear(); in UTF16ToCodepage() 165 static_cast<int>(utf16.length()), on_error, encoded); in UTF16ToCodepage() 168 bool CodepageToUTF16(const std::string& encoded, in CodepageToUTF16() argument 187 size_t uchar_max_length = encoded.length() + 1; in CodepageToUTF16() [all …]
|
/external/chromium/net/tools/dump_cache/ |
D | url_to_filename_encoder.cc | 93 char encoded[3]; in EncodeSegment() local 131 encoded[0] = ch; in EncodeSegment() 134 encoded[0] = kEscapeChar; in EncodeSegment() 135 encoded[1] = ch / 16; in EncodeSegment() 136 encoded[1] += (encoded[1] >= 10) ? 'A' - 10 : '0'; in EncodeSegment() 137 encoded[2] = ch % 16; in EncodeSegment() 138 encoded[2] += (encoded[2] >= 10) ? 'A' - 10 : '0'; in EncodeSegment() 141 segment.append(encoded, encoded_len); in EncodeSegment() 273 char encoded[3]; in LegacyEscape() local 274 encoded[0] = 'x'; in LegacyEscape() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/audio/ |
D | SDL_wave.c | 120 Uint8 *freeable, *encoded, *decoded; in MS_ADPCM_decode() local 128 encoded = *audio_buf; in MS_ADPCM_decode() 146 state[0]->hPredictor = *encoded++; in MS_ADPCM_decode() 148 state[1]->hPredictor = *encoded++; in MS_ADPCM_decode() 150 state[0]->iDelta = ((encoded[1]<<8)|encoded[0]); in MS_ADPCM_decode() 151 encoded += sizeof(Sint16); in MS_ADPCM_decode() 153 state[1]->iDelta = ((encoded[1]<<8)|encoded[0]); in MS_ADPCM_decode() 154 encoded += sizeof(Sint16); in MS_ADPCM_decode() 156 state[0]->iSamp1 = ((encoded[1]<<8)|encoded[0]); in MS_ADPCM_decode() 157 encoded += sizeof(Sint16); in MS_ADPCM_decode() [all …]
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
D | ClientKeyExchangeTest.java | 52 byte[] encoded = out.getData(1000); in testClientKeyExchangebyteArrayboolean() 54 encoded.length); in testClientKeyExchangebyteArrayboolean() 57 in.append(encoded); in testClientKeyExchangebyteArrayboolean() 66 in.append(encoded); in testClientKeyExchangebyteArrayboolean() 79 in.append(encoded); in testClientKeyExchangebyteArrayboolean() 111 byte[] encoded = out.getData(1000); in testClientKeyExchangeBigInteger() 113 encoded.length); in testClientKeyExchangeBigInteger() 116 in.append(encoded); in testClientKeyExchangeBigInteger() 125 in.append(encoded); in testClientKeyExchangeBigInteger() 133 in.append(encoded); in testClientKeyExchangeBigInteger() [all …]
|
D | ServerKeyExchangeTest.java | 52 byte[] encoded = out.getData(1000); in testServerKeyExchange_RSA_EXPORT() 54 encoded.length); in testServerKeyExchange_RSA_EXPORT() 57 in.append(encoded); in testServerKeyExchange_RSA_EXPORT() 69 in.append(encoded); in testServerKeyExchange_RSA_EXPORT() 77 in.append(encoded); in testServerKeyExchange_RSA_EXPORT() 106 byte[] encoded = out.getData(1000); in testServerKeyExchange_DHE_DSS() 108 encoded.length); in testServerKeyExchange_DHE_DSS() 111 in.append(encoded); in testServerKeyExchange_DHE_DSS() 121 in.append(encoded); in testServerKeyExchange_DHE_DSS() 129 in.append(encoded); in testServerKeyExchange_DHE_DSS() [all …]
|
D | CertificateMessageTest.java | 68 byte[] encoded = out.getData(1000); in testCertificateMessage1() 69 assertEquals("incorrect out data length", message.length(), encoded.length); in testCertificateMessage1() 72 in.append(encoded); in testCertificateMessage1() 98 byte[] encoded = out.getData(1000); in testCertificateMessage2() 99 assertEquals("incorrect out data length", message.length(), encoded.length); in testCertificateMessage2() 102 in.append(encoded); in testCertificateMessage2() 108 in.append(encoded); in testCertificateMessage2() 115 in.append(encoded); in testCertificateMessage2()
|
D | ClientHelloTest.java | 51 byte[] encoded = out.getData(1000); in testClientHello() 52 assertEquals("incorrect out data length", message.length(), encoded.length); in testClientHello() 55 in.append(encoded); in testClientHello() 63 in.append(encoded); in testClientHello() 70 in.append(encoded); in testClientHello() 77 in.append(encoded); in testClientHello()
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
D | LazyDERSequence.java | 9 private byte[] encoded; field in LazyDERSequence 14 byte[] encoded) in LazyDERSequence() argument 17 this.encoded = encoded; in LazyDERSequence() 22 Enumeration en = new LazyDERConstructionEnumeration(encoded); in parse() 49 return new LazyDERConstructionEnumeration(encoded); in getObjects() 56 Enumeration en = new LazyDERConstructionEnumeration(encoded); in size() 73 out.writeEncoded(SEQUENCE | CONSTRUCTED, encoded); in encode()
|
/external/bouncycastle/src/main/java/org/bouncycastle/math/ec/ |
D | ECCurve.java | 19 public abstract ECPoint decodePoint(byte[] encoded); in decodePoint() argument 75 public ECPoint decodePoint(byte[] encoded) in decodePoint() argument 79 switch (encoded[0]) in decodePoint() 83 if (encoded.length > 1) in decodePoint() 92 int ytilde = encoded[0] & 1; in decodePoint() 93 byte[] i = new byte[encoded.length - 1]; in decodePoint() 95 System.arraycopy(encoded, 1, i, 0, i.length); in decodePoint() 127 byte[] xEnc = new byte[(encoded.length - 1) / 2]; in decodePoint() 128 byte[] yEnc = new byte[(encoded.length - 1) / 2]; in decodePoint() 130 System.arraycopy(encoded, 1, xEnc, 0, xEnc.length); in decodePoint() [all …]
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
D | KeyStoreTestSupport.java | 66 private byte[] encoded; field in KeyStoreTestSupport.SKey 68 public SKey(String type, byte[] encoded) { in SKey() argument 70 this.encoded = encoded; in SKey() 78 return encoded; in getEncoded() 94 private byte[] encoded; field in KeyStoreTestSupport.MyPrivateKey 96 public MyPrivateKey(String algorithm, String format, byte[] encoded) { in MyPrivateKey() argument 99 this.encoded = encoded; in MyPrivateKey() 111 return encoded; in getEncoded()
|
D | PublicKeyStub.java | 39 byte [] encoded = null; field in PublicKeyStub 44 public PublicKeyStub(String algorithm, String format, byte[] encoded) { in PublicKeyStub() argument 47 this.encoded = encoded; in PublicKeyStub() 70 return encoded; in getEncoded()
|
D | PrivateKeyStub.java | 36 byte [] encoded = null; field in PrivateKeyStub 46 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { in PrivateKeyStub() argument 49 this.encoded = encoded; in PrivateKeyStub() 73 return encoded; in getEncoded()
|
D | MyKeyPairGenerator1.java | 98 private byte[] encoded; field in MyKeyPairGenerator1.PubKey 103 this.encoded = new byte[10]; in PubKey() 115 return encoded; in getEncoded() 124 private byte[] encoded; field in MyKeyPairGenerator1.PrivKey 129 this.encoded = new byte[10]; in PrivKey() 141 return encoded; in getEncoded()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/ |
D | EDIPartyNameTest.java | 62 byte[] encoded = ediPN.getEncoded(); in _testEDIPartyName1() 74 if (!Arrays.equals(encoded, _encoded)) { in _testEDIPartyName1() 76 printAsHex(16, "", " ", encoded); in _testEDIPartyName1() 84 encoded = gName.getEncoded(); in _testEDIPartyName1() 96 if (!Arrays.equals(encoded, _encoded)) { in _testEDIPartyName1() 98 printAsHex(16, "", " ", encoded); in _testEDIPartyName1() 107 encoded = gNames.getEncoded(); in _testEDIPartyName1() 120 if (!Arrays.equals(encoded, _encoded)) { in _testEDIPartyName1() 122 printAsHex(16, "", " ", encoded); in _testEDIPartyName1()
|
/external/dbus/dbus/ |
D | dbus-uuidgen.c | 51 DBusString encoded; in return_uuid() local 53 if (!_dbus_string_init (&encoded)) in return_uuid() 59 if (!_dbus_uuid_encode (uuid, &encoded) || in return_uuid() 60 !_dbus_string_steal_data (&encoded, uuid_p)) in return_uuid() 63 _dbus_string_free (&encoded); in return_uuid() 66 _dbus_string_free (&encoded); in return_uuid()
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
D | WrapCipherSpi.java | 290 byte[] encoded = key.getEncoded(); in engineWrap() 291 if (encoded == null) in engineWrap() 300 return engineDoFinal(encoded, 0, encoded.length); in engineWrap() 304 return wrapEngine.wrap(encoded, 0, encoded.length); in engineWrap() 324 byte[] encoded; in engineUnwrap() 329 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); in engineUnwrap() 333 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length); in engineUnwrap() 351 return new SecretKeySpec(encoded, wrappedKeyAlgorithm); in engineUnwrap() 359 ASN1InputStream bIn = new ASN1InputStream(encoded); in engineUnwrap() 411 return kf.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap() [all …]
|
/external/openssh/ |
D | uuencode.c | 58 char *encoded, *p; in uudecode() local 61 encoded = xstrdup(src); in uudecode() 63 for (p = encoded; *p == ' ' || *p == '\t'; p++) in uudecode() 69 len = __b64_pton(encoded, target, targsize); in uudecode() 70 xfree(encoded); in uudecode()
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | urlencode.cc | 154 InternalUrlDecodeString(const std::string & encoded, in InternalUrlDecodeString() argument 156 size_t needed_length = encoded.length() + 1; in InternalUrlDecodeString() 158 InternalUrlDecode(encoded.c_str(), buf, encode_space_as_plus); in InternalUrlDecodeString() 163 UrlDecodeString(const std::string & encoded) { in UrlDecodeString() argument 164 return InternalUrlDecodeString(encoded, true); in UrlDecodeString() 168 UrlDecodeStringWithoutEncodingSpaceAsPlus(const std::string & encoded) { in UrlDecodeStringWithoutEncodingSpaceAsPlus() argument 169 return InternalUrlDecodeString(encoded, false); in UrlDecodeStringWithoutEncodingSpaceAsPlus()
|
/external/chromium/base/ |
D | base64_unittest.cc | 19 std::string encoded, decoded; in TEST() local 22 ok = base::Base64Encode(kText, &encoded); in TEST() 24 EXPECT_EQ(kBase64Text, encoded); in TEST() 26 ok = base::Base64Decode(encoded, &decoded); in TEST()
|