/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
DerGeneralizedTimeEDTest.java | 54 byte[] encoded = 55 new DerOutputStream(gTime, myDate).encoded; 56 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); 61 encoded = 62 new DerOutputStream(gTime, myDate).encoded; 63 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); 68 encoded = 69 new DerOutputStream(gTime, myDate).encoded; [all...] |
AnyTest.java | 42 private static byte[] encoded = new byte[] { 0x01, 0x03, 0x11, 0x13, 0x15 }; field in class:AnyTest 45 DerInputStream in = new DerInputStream(encoded); 46 assertTrue(Arrays.equals(encoded, (byte[]) ASN1Any.getInstance() 52 encoded); 53 assertTrue("False", Arrays.equals(encoded, out.encoded));
|
DerUTCTimeEDTest.java | 56 byte[] encoded = 57 new DerOutputStream(uTime, myDate).encoded; 58 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); 66 encoded = 67 new DerOutputStream(uTime, myDate).encoded; 68 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); 99 byte[] encoded = 100 new DerOutputStream(uTime, myDate).encoded; [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
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); [all...] |
/external/chromium_org/base/ |
base64_unittest.cc | 15 std::string encoded; local 19 Base64Encode(kText, &encoded); 20 EXPECT_EQ(kBase64Text, encoded); 22 ok = Base64Decode(encoded, &decoded);
|
/external/chromium_org/ui/gfx/image/ |
image_util_unittest.cc | 17 std::vector<unsigned char> encoded; local 18 ASSERT_TRUE(gfx::JPEG1xEncodedDataFromImage(original, 80, &encoded)); 21 gfx::ImageFrom1xJPEGEncodedData(&encoded.front(), encoded.size());
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 36 byte [] encoded = null; field in class:PrivateKeyStub 44 * @param encoded 46 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 49 this.encoded = encoded; 69 * Returns encoded form 73 return encoded;
|
PublicKeyStub.java | 39 byte [] encoded = null; field in class:PublicKeyStub 44 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 47 this.encoded = encoded; 66 * returns encoded 70 return encoded;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 37 byte [] encoded = null; field in class:PrivateKeyStub 45 * @param encoded 47 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 50 this.encoded = encoded; 70 * Returns encoded form 74 return encoded;
|
PublicKeyStub.java | 40 byte [] encoded = null; field in class:PublicKeyStub 45 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 48 this.encoded = encoded; 67 * returns encoded 71 return encoded;
|
/libcore/luni/src/main/java/java/security/cert/ |
PolicyQualifierInfo.java | 31 private final byte[] encoded; field in class:PolicyQualifierInfo 36 // DER encoding of the policy qualifier - part of encoded 40 * Creates a new {@code PolicyQualifierInfo} from the specified encoded 43 * @param encoded 44 * the DER encoded policy qualifier. 48 public PolicyQualifierInfo(byte[] encoded) throws IOException { 49 if (encoded == null) { 50 throw new NullPointerException("encoded == null"); 52 if (encoded.length == 0) { 53 throw new IOException("encoded.length == 0") [all...] |
/external/chromium/base/ |
base64_unittest.cc | 19 std::string encoded, decoded; local 22 ok = base::Base64Encode(kText, &encoded); 24 EXPECT_EQ(kBase64Text, encoded); 26 ok = base::Base64Decode(encoded, &decoded);
|
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
crc.h | 29 * - encoded : payload bit stream 40 const WebRtc_Word16* encoded,
|
/external/chromium/net/base/ |
escape_icu.cc | 17 // behavior is wrong when the character can't be encoded properly. 18 std::string encoded; local 20 base::OnStringConversionError::SKIP, &encoded)) 23 escaped->assign(UTF8ToUTF16(EscapeQueryParamValue(encoded, use_plus)));
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
X509PublicKey.java | 24 private final byte[] encoded; field in class:X509PublicKey 27 public X509PublicKey(String algorithm, byte[] encoded, byte[] keyBytes) { 29 this.encoded = encoded; 42 return encoded;
|
/external/chromium/chrome/browser/metrics/ |
metrics_log_unittest.cc | 56 std::string encoded; local 58 ASSERT_TRUE(log.GetEncodedLog(WriteInto(&encoded, size + 1), size)); 59 TrimWhitespaceASCII(encoded, TRIM_ALL, &encoded); 60 NormalizeBuildtime(&encoded); 63 ASSERT_EQ(expected_output, encoded); 80 std::string encoded; local 82 ASSERT_TRUE(log.GetEncodedLog(WriteInto(&encoded, size + 1), size)); 83 TrimWhitespaceASCII(encoded, TRIM_ALL, &encoded); 131 std::string encoded; local 160 std::string encoded; local 190 std::string encoded; local 226 std::string encoded; local [all...] |
/external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/ |
UrlUtils.java | 40 // URLEncoder encodes into application/x-www-form-encoded, so 43 String encoded = local 46 encoded = encoded.replace("+", "%20"); 47 return encoded;
|
/libcore/crypto/src/main/java/org/conscrypt/ |
X509PublicKey.java | 31 private final byte[] encoded; field in class:X509PublicKey 33 public X509PublicKey(String algorithm, byte[] encoded) { 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...] |
OpenSSLSecretKey.java | 33 private final byte[] encoded; field in class:OpenSSLSecretKey 37 public OpenSSLSecretKey(String algorithm, byte[] encoded) { 39 this.encoded = encoded; 42 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(type, encoded)); 50 encoded = null; 82 return encoded; 116 return Arrays.equals(encoded, other.getEncoded()); 127 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(type, encoded));
|
/libcore/luni/src/main/java/java/security/ |
KeyRep.java | 44 private byte[] encoded; field in class:KeyRep 57 * @param encoded 58 * the encoded {@code byte[]} (obtained by 61 * if {@code type, algorithm, format or encoded} is {@code null} 64 public KeyRep(Type type, String algorithm, String format, byte[] encoded) { 68 this.encoded = encoded; 78 if(this.encoded == null) { 79 throw new NullPointerException("encoded == null"); 89 * is initialized with a {@link PKCS8EncodedKeySpec} using the encoded ke [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
BerOutputStream.java | 33 /** Encoded byte array */ 34 public byte[] encoded; field in class:BerOutputStream 39 /** Current encoded length */ 42 /** Current encoded content */ 46 encoded[offset++] = (byte) tag; //FIXME long form? 55 encoded[offset] = (byte) (numOctets | 0x80); 61 encoded[numOffset - i] = (byte) eLen; //FIXME long value? 65 encoded[offset++] = (byte) length; 70 System.arraycopy(content, 0, encoded, offset, length); 77 encoded[offset] = (byte) bStr.unusedBits [all...] |
/external/chromium_org/chrome/browser/chromeos/settings/ |
device_settings_cache.cc | 30 std::string encoded; local 31 base::Base64Encode(policy_string, &encoded); 32 local_state->SetString(prefs::kDeviceSettingsCache, encoded); 40 std::string encoded = local 43 if (!base::Base64Decode(encoded, &policy_string)) {
|
/external/chromium/base/i18n/ |
icu_string_conversions_unittest.cc | 109 const char* encoded; member in struct:base::__anon1373 246 "Test[%" PRIuS "]: <encoded: %s> <codepage: %s>", i, 247 kConvertCodepageCases[i].encoded, 251 bool success = CodepageToWide(kConvertCodepageCases[i].encoded, 265 std::string encoded; local 267 kConvertCodepageCases[i].on_error, &encoded); 269 EXPECT_EQ(kConvertCodepageCases[i].encoded, encoded); 275 std::string encoded("Temp data"); // Make sure the string gets cleared. 279 OnStringConversionError::FAIL, &encoded)); 335 std::string encoded; local 345 const char* encoded; member in struct:base::__anon1374 [all...] |
icu_string_conversions.h | 49 std::string* encoded); 50 bool CodepageToUTF16(const std::string& encoded, 61 std::string* encoded); 62 bool CodepageToWide(const std::string& encoded,
|
/external/chromium_org/base/i18n/ |
icu_string_conversions_unittest.cc | 109 const char* encoded; member in struct:base::__anon3472 253 "Test[%" PRIuS "]: <encoded: %s> <codepage: %s>", i, 254 kConvertCodepageCases[i].encoded, 258 bool success = CodepageToWide(kConvertCodepageCases[i].encoded, 272 std::string encoded; local 274 kConvertCodepageCases[i].on_error, &encoded); 276 EXPECT_EQ(kConvertCodepageCases[i].encoded, encoded); 282 std::string encoded("Temp data"); // Make sure the string gets cleared. 286 OnStringConversionError::FAIL, &encoded)); 342 std::string encoded; local 352 const char* encoded; member in struct:base::__anon3473 [all...] |