HomeSort by relevance Sort by last modified time
    Searched refs:encoded (Results 101 - 125 of 414) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
BerInputStreamTest.java 73 // length = 0xFFFFFF (encoded length has extra byte)
116 encoding[1] = (byte) 0x82; // length is encoded in two bytes
134 byte[] encoded = new byte[] { 0x01, 0x01, 0x03, // boolean bytes
140 BerInputStream in = new BerInputStream(encoded, 0, 3);
144 in = new BerInputStream(encoded, 3, 4);
148 in = new BerInputStream(encoded, 7, 2);
153 new BerInputStream(encoded, 3, 5);
161 new BerInputStream(encoded, 3, 3);
BooleanTest.java 61 assertTrue("Encoding false value", Arrays.equals(eFalse, out.encoded));
65 assertTrue("Encoding true value", Arrays.equals(eTrue, out.encoded));
ChoiceTest.java 118 (byte[]) testcases[i][1], out.encoded));
146 byte[] encoded = new byte[] {
154 assertTrue("Encoded: ", Arrays.equals(encoded, sequenceOf.encode(list)));
156 List values = (List) sequenceOf.decode(encoded);
186 byte[] encoded = new byte[] { (byte) 0xA0, 0x03, 0x01, 0x01, 0x00 };
188 assertEquals("False: ", Boolean.FALSE, explicit.decode(encoded));
190 encoded[4] = (byte) 0xFF;
192 assertEquals("True: ", Boolean.TRUE, explicit.decode(encoded));
SequenceTest.java 165 (byte[]) testcases[i][1], out.encoded));
213 byte[] encoded = s.encode(new Object[] { Boolean.TRUE });
214 assertTrue("Encoded boolean:", Arrays.equals(expectedArray, encoded));
229 encoded = s.encode(new Object[] { new byte[] { 0x01 } });
230 assertTrue("Encoded integer:", Arrays.equals(expectedArray, encoded));
270 byte[] encoded = s.encode(new Object[] { null });
271 assertTrue("Encoded boolean:", Arrays.equals(expectedArray, encoded));
    [all...]
  /libcore/luni/src/main/java/java/security/cert/
Certificate.java 82 // check that encoded forms match
102 byte[] encoded = getEncoded();
104 for (int i=0; i<encoded.length; i++) {
105 hash += i*encoded[i];
114 * Returns the encoded representation for this certificate.
116 * @return the encoded representation for this certificate.
224 * certificate type and encoded data.
229 * the encoded data.
  /external/chromium_org/chrome/browser/extensions/api/
capture_web_contents_function.cc 117 bool encoded = false; local
121 encoded = gfx::JPEGCodec::Encode(
132 encoded = gfx::PNGCodec::EncodeBGRASkBitmap(
142 if (!encoded) {
  /external/chromium_org/chrome/common/metrics/
metrics_log_base_unittest.cc 37 std::string encoded; local
38 log.GetEncodedLog(&encoded);
43 ASSERT_TRUE(parsed.ParseFromString(encoded));
56 EXPECT_EQ(expected.SerializeAsString(), encoded);
  /external/chromium_org/courgette/
adjustment_method_unittest.cc 61 courgette::EncodedProgram* encoded = NULL; local
63 const courgette::Status encode_status = Encode(program, &encoded);
69 const courgette::Status write_status = WriteEncodedProgram(encoded, &sinks);
72 DeleteEncodedProgram(encoded);
encode_decode_unittest.cc 28 courgette::EncodedProgram* encoded = NULL; local
30 const courgette::Status encode_status = Encode(program, &encoded);
36 const courgette::Status write_status = WriteEncodedProgram(encoded, &sinks);
39 DeleteEncodedProgram(encoded);
encoded_program_fuzz_unittest.cc 47 courgette::EncodedProgram* encoded = NULL; local
49 const courgette::Status encode_status = Encode(program, &encoded);
55 const courgette::Status write_status = WriteEncodedProgram(encoded, &sinks);
58 DeleteEncodedProgram(encoded);
171 courgette::EncodedProgram *encoded = NULL; local
178 ReadEncodedProgram(&sources, &encoded);
181 const courgette::Status assemble_status = Assemble(encoded, &assembled);
195 DeleteEncodedProgram(encoded);
assembly_program.cc 28 REL32, // REL32 <label> - emit a rel32 encoded reference to 'label'.
29 ABS32, // REL32 <label> - emit am abs32 encoded reference to 'label'.
390 scoped_ptr<EncodedProgram> encoded(new(std::nothrow) EncodedProgram());
391 if (!encoded.get())
394 encoded->set_image_base(image_base_);
396 if (!DefineLabels(abs32_labels_, encoded.get(),
398 !DefineLabels(rel32_labels_, encoded.get(),
403 encoded->EndLabels();
411 if (!encoded->AddOrigin(org->origin_rva()))
417 if (!encoded->AddCopy(1, &b)
574 EncodedProgram *encoded = program->Encode(); local
    [all...]
  /external/chromium_org/mojo/examples/sample_app/
gles2_client_impl.h 27 virtual void DidCreateContext(uint64_t encoded,
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
base64.py 51 The encoded string is returned.
54 encoded = binascii.b2a_base64(s)[:-1]
56 return _translate(encoded, {'+': altchars[0], '/': altchars[1]})
57 return encoded
61 """Decode a Base64 encoded string.
83 s is the string to encode. The encoded string is returned.
88 """Decode a string encoded with the standard Base64 alphabet.
99 s is the string to encode. The encoded string is returned. The alphabet
105 """Decode a string encoded with the standard Base64 alphabet.
140 s is the string to encode. The encoded string is returned
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
base64.py 51 The encoded string is returned.
54 encoded = binascii.b2a_base64(s)[:-1]
56 return _translate(encoded, {'+': altchars[0], '/': altchars[1]})
57 return encoded
61 """Decode a Base64 encoded string.
83 s is the string to encode. The encoded string is returned.
88 """Decode a string encoded with the standard Base64 alphabet.
99 s is the string to encode. The encoded string is returned. The alphabet
105 """Decode a string encoded with the standard Base64 alphabet.
140 s is the string to encode. The encoded string is returned
    [all...]
  /external/robolectric/src/main/java/android/net/
Uri__FromAndroid.java 201 * Gets the encoded authority part of this URI. For
221 * Gets the encoded user information from the authority.
230 * Gets the encoded host from the authority for this URI. For example,
255 * Gets the encoded path.
257 * @return the encoded path, or null if this is not a hierarchical URI
273 * Gets the encoded query component from this URI. The query comes after
278 * @return the encoded query or null if there isn't one
290 * Gets the encoded fragment part of this URI, everything after the '#'.
292 * @return the encoded fragment or null if there isn't one
312 * encoded string representations of this Uri and the given Uri ar
1688 StringBuilder encoded = null; local
1904 volatile String encoded; field in class:Uri__FromAndroid.AbstractPart
2147 String encoded = encode(decoded); local
    [all...]
  /frameworks/base/core/java/android/net/
Uri.java 210 * Gets the encoded authority part of this URI. For
230 * Gets the encoded user information from the authority.
239 * Gets the encoded host from the authority for this URI. For example,
264 * Gets the encoded path.
266 * @return the encoded path, or null if this is not a hierarchical URI
282 * Gets the encoded query component from this URI. The query comes after
287 * @return the encoded query or null if there isn't one
299 * Gets the encoded fragment part of this URI, everything after the '#'.
301 * @return the encoded fragment or null if there isn't one
321 * encoded string representations of this Uri and the given Uri ar
1828 StringBuilder encoded = null; local
1947 volatile String encoded; field in class:Uri.AbstractPart
2191 String encoded = encode(decoded); local
    [all...]
  /external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/
isacfix.c 296 * - encoded : the encoded data vector
307 WebRtc_Word16 *encoded)
338 encoded[k] = (WebRtc_Word16)( ( (WebRtc_UWord16)(ISAC_inst->ISACenc_obj.bitstr_obj).stream[k] >> 8 )
343 WEBRTC_SPL_MEMCPY_W16(encoded, (ISAC_inst->ISACenc_obj.bitstr_obj).stream, (stream_len + 1)>>1);
371 * - encoded : the encoded data vector
382 WebRtc_Word16 *encoded)
428 encoded[k] = (WebRtc_Word16)(((WebRtc_UWord16)(ISAC_inst->ISACenc_obj.bitstr_obj).stream[k] >> 8)
433 WEBRTC_SPL_MEMCPY_W16(encoded, (ISAC_inst->ISACenc_obj.bitstr_obj).stream, (stream_len + 1)>>1)
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/cert/
SubjectAlternativeNameTest.java 67 byte[] encoded = certificate.getEncoded();
69 return (X509Certificate) factory.generateCertificate(new ByteArrayInputStream(encoded));
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
CipherThread.java 50 public void checkEncodedData(byte[] original, byte[] encoded)
53 if (original[i] != encoded[i]) {
54 throw new Exception("Source and encoded data not match " +
60 public void checkPaddedEncodedData(byte[] original, byte[] encoded, int offset)
63 if (encoded[i] != 0) {
64 throw new Exception("Encoded data is not properly padded at offset " + i);
68 if (original[i] != encoded[i + offset]) {
69 throw new Exception("Source and encoded data not match " + getCipherParameters());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
JCEStreamCipher.java 400 byte[] encoded = key.getEncoded();
401 if (encoded == null)
408 return engineDoFinal(encoded, 0, encoded.length);
422 byte[] encoded;
425 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length);
438 return new SecretKeySpec(encoded, wrappedKeyAlgorithm);
448 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded);
474 return kf.generatePublic(new X509EncodedKeySpec(encoded));
478 return kf.generatePrivate(new PKCS8EncodedKeySpec(encoded));
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
ECCurve.java 39 public ECPoint decodePoint(byte[] encoded)
44 switch (encoded[0])
48 if (encoded.length != 1)
59 if (encoded.length != (expectedLength + 1))
64 int yTilde = encoded[0] & 1;
65 BigInteger X1 = fromArray(encoded, 1, expectedLength);
74 if (encoded.length != (2 * expectedLength + 1))
79 BigInteger X1 = fromArray(encoded, 1, expectedLength);
80 BigInteger Y1 = fromArray(encoded, 1 + expectedLength, expectedLength);
86 throw new IllegalArgumentException("Invalid point encoding 0x" + Integer.toString(encoded[0], 16))
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
Base64Test.java 39 * gives the same string. Returns the encoded string.
322 byte[] encoded = Base64.encode(plain, flags);
330 // ----- test decoding ("encoded" -> "plain") -----
333 bais = new ByteArrayInputStream(encoded);
342 bais = new ByteArrayInputStream(encoded);
351 bais = new ByteArrayInputStream(encoded);
369 // ----- test encoding ("plain" -> "encoded") -----
378 assertEquals(actual, ap, encoded);
387 assertEquals(actual, ap, encoded);
406 assertEquals(actual, ap, encoded);
    [all...]
  /external/skia/tests/
CachedDecodingPixelRefTest.cpp 92 typedef bool (*InstallEncoded)(SkData* encoded, SkBitmap* dst);
95 This function tests three differently encoded images against the
113 SkAutoDataUnref encoded(create_data_from_bitmap(original, type));
114 REPORTER_ASSERT(reporter, encoded.get() != NULL);
115 if (NULL == encoded.get()) {
119 bool installSuccess = install(encoded.get(), &lazy);
147 static bool install_skCachingPixelRef(SkData* encoded, SkBitmap* dst) {
149 SkNEW_ARGS(SkDecodingImageGenerator, (encoded)), dst);
151 static bool install_skDiscardablePixelRef(SkData* encoded, SkBitmap* dst) {
153 return SkDecodingImageGenerator::Install(encoded, dst, NULL)
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/x509/
SubjectPublicKeyInfo.java 61 /** the ASN.1 encoded form of SubjectPublicKeyInfo */
96 * Returns ASN.1 encoded form of this X.509 SubjectPublicKeyInfo value.
111 final byte[] encoded = getEncoded();
112 final KeySpec keySpec = new X509EncodedKeySpec(encoded);
133 publicKey = new X509PublicKey(algOid, encoded, subjectPublicKey);
  /dalvik/dexgen/src/com/android/dexgen/dex/file/
DebugInfoItem.java 40 private byte[] encoded; field in class:DebugInfoItem
76 encoded = encode(addedTo.getFile(), null, null, null, false);
77 setWriteSize(encoded.length);
127 out.write(encoded);
140 * @return {@code non-null;} the encoded array
171 * @return {@code non-null;} the encoded array

Completed in 4006 milliseconds

1 2 3 45 6 7 8 91011>>