Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 1013) sorted by relevance

12345678910>>...41

/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/test/codec/ber/
Dtest_encoder.py21 assert encoder.encode(self.o) == ints2octs((127, 141, 245, 182, 253, 47, 3, 2, 1, 1))
25 assert encoder.encode(univ.Integer(12)) == ints2octs((2, 1, 12))
28 assert encoder.encode(univ.Integer(-12)) == ints2octs((2, 1, 244))
31 assert encoder.encode(univ.Integer(0)) == ints2octs((2, 1, 0))
35 substrate = encoder.encode(univ.Integer(0))
40 assert encoder.encode(univ.Integer(-1)) == ints2octs((2, 1, 255))
43 assert encoder.encode(
48 assert encoder.encode(
54 assert encoder.encode(univ.Boolean(1)) == ints2octs((1, 1, 1))
57 assert encoder.encode(univ.Boolean(0)) == ints2octs((1, 1, 0))
[all …]
/external/nanopb-c/tests/alltypes_callback/
Dencode_alltypes_callback.c208 alltypes.req_int32.funcs.encode = &write_varint; in main()
211 alltypes.req_int64.funcs.encode = &write_varint; in main()
214 alltypes.req_uint32.funcs.encode = &write_varint; in main()
217 alltypes.req_uint32.funcs.encode = &write_varint; in main()
220 alltypes.req_uint64.funcs.encode = &write_varint; in main()
223 alltypes.req_sint32.funcs.encode = &write_svarint; in main()
226 alltypes.req_sint64.funcs.encode = &write_svarint; in main()
229 alltypes.req_bool.funcs.encode = &write_varint; in main()
232 alltypes.req_fixed32.funcs.encode = &write_fixed32; in main()
235 alltypes.req_sfixed32.funcs.encode = &write_fixed32; in main()
[all …]
/external/clang/test/CodeGenObjC/
Dencode-test-3.m6 const char * inc = @encode(int[]);
9 const char * vla = @encode(int[n]);
15 int a[sizeof(@encode(int)) == 2 ? 1 : -1]; // Type is char[2]
16 const char *B = @encode(int);
17 char (*c)[2] = &@encode(int); // @encode is an lvalue
19 char d[] = @encode(int); // infer size.
20 char e[1] = @encode(int); // truncate
21 char f[2] = @encode(int); // fits
22 char g[3] = @encode(int); // zero fill
Dencode-test.m88 const char *en = @encode(Derived);
89 const char *eb = @encode(B1);
90 const char *es = @encode(const struct S *);
91 const char *ec = @encode(const struct S);
92 const char *ee = @encode(MyObj *const);
96 const char g0[] = @encode(struct Innermost);
99 const char g1[] = @encode(Derived);
102 const char g2[] = @encode(B1);
105 const char g3[] = @encode(const struct S *);
108 const char g4[] = @encode(const struct S);
[all …]
Dencode-test-4.m7 return @encode(int) == @encode(int) &&
8 @encode(Color) == @encode(long) &&
9 @encode(PrintColor) == @encode(int);
/external/chromium-trace/catapult/third_party/gsutil/third_party/socksipy-branch/
Dsocks.py177 if chosenauth[0:1] != chr(0x05).encode():
181 if chosenauth[1:2] == chr(0x00).encode():
184 elif chosenauth[1:2] == chr(0x02).encode():
187 …self.sendall(chr(0x01).encode() + chr(len(self.__proxy[4])) + self.__proxy[4] + chr(len(self.__pro…
189 if authstat[0:1] != chr(0x01).encode():
193 if authstat[1:2] != chr(0x00).encode():
201 if chosenauth[1] == chr(0xFF).encode():
211 req = req + chr(0x01).encode() + ipaddr
217 req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + destaddr
221 req = req + chr(0x01).encode() + ipaddr
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb/
Dtest_types.py37 self.assertEqual(dynamizer.encode('foo'), {'S': 'foo'})
38 self.assertEqual(dynamizer.encode(54), {'N': '54'})
39 self.assertEqual(dynamizer.encode(Decimal('1.1')), {'N': '1.1'})
40 self.assertEqual(dynamizer.encode(set([1, 2, 3])),
42 self.assertIn(dynamizer.encode(set(['foo', 'bar'])),
44 self.assertEqual(dynamizer.encode(types.Binary(b'\x01')),
46 self.assertEqual(dynamizer.encode(set([types.Binary(b'\x01')])),
48 self.assertEqual(dynamizer.encode(['foo', 54, [1]]),
50 self.assertEqual(dynamizer.encode({'foo': 'bar', 'hoge': {'sub': 1}}),
52 self.assertEqual(dynamizer.encode(None), {'NULL': True})
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/
Dsocks.py216 if chosenauth[0:1] != chr(0x05).encode():
220 if chosenauth[1:2] == chr(0x00).encode():
223 elif chosenauth[1:2] == chr(0x02).encode():
226 …self.sendall(chr(0x01).encode() + chr(len(self.__proxy[4])) + self.__proxy[4] + chr(len(self.__pro…
228 if authstat[0:1] != chr(0x01).encode():
232 if authstat[1:2] != chr(0x00).encode():
240 if chosenauth[1] == chr(0xFF).encode():
250 req = req + chr(0x01).encode() + ipaddr
256 req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + destaddr
260 req = req + chr(0x01).encode() + ipaddr
[all …]
/external/skia/src/utils/
DSkBase64.cpp113 const char* encode; in Encode() local
115 encode = default_encode; in Encode()
117 encode = encodeMap; in Encode()
132 *dst++ = encode[a]; in Encode()
133 *dst++ = encode[b]; in Encode()
134 *dst++ = encode[c]; in Encode()
135 *dst++ = encode[d]; in Encode()
147 *dst++ = encode[a >> 2]; in Encode()
148 *dst++ = encode[(k1 | a << 4) & 0x3F]; in Encode()
149 *dst++ = encode[k2]; in Encode()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DHex.java27 byte[] encoded = encode(data, off, length); in toHexString()
36 public static byte[] encode( in encode() method in Hex
39 return encode(data, 0, data.length); in encode()
47 public static byte[] encode( in encode() method in Hex
56 encoder.encode(data, off, length, bOut); in encode()
71 public static int encode( in encode() method in Hex
76 return encoder.encode(data, 0, data.length, out); in encode()
84 public static int encode( in encode() method in Hex
91 return encoder.encode(data, off, length, out); in encode()
DBase64.java27 byte[] encoded = encode(data, off, length); in toBase64String()
36 public static byte[] encode( in encode() method in Base64
39 return encode(data, 0, data.length); in encode()
47 public static byte[] encode( in encode() method in Base64
57 encoder.encode(data, off, length, bOut); in encode()
72 public static int encode( in encode() method in Base64
77 return encoder.encode(data, 0, data.length, out); in encode()
85 public static int encode( in encode() method in Base64
92 return encoder.encode(data, off, length, out); in encode()
/external/nanopb-c/tests/callbacks/
Dencode_callbacks.c71 testmessage.stringvalue.funcs.encode = &encode_string; in main()
72 testmessage.int32value.funcs.encode = &encode_int32; in main()
73 testmessage.fixed32value.funcs.encode = &encode_fixed32; in main()
74 testmessage.fixed64value.funcs.encode = &encode_fixed64; in main()
77 testmessage.submsg.stringvalue.funcs.encode = &encode_string; in main()
78 testmessage.submsg.int32value.funcs.encode = &encode_int32; in main()
79 testmessage.submsg.fixed32value.funcs.encode = &encode_fixed32; in main()
80 testmessage.submsg.fixed64value.funcs.encode = &encode_fixed64; in main()
82 testmessage.repeatedstring.funcs.encode = &encode_repeatedstring; in main()
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/test/codec/cer/
Dtest_encoder.py17 assert encoder.encode(univ.Boolean(1)) == ints2octs((1, 1, 255))
19 assert encoder.encode(univ.Boolean(0)) == ints2octs((1, 1, 0))
23 assert encoder.encode(
28 assert encoder.encode(
34 assert encoder.encode(
38 assert encoder.encode(
71 assert encoder.encode(self.s) == ints2octs((49, 128, 5, 0, 0, 0))
75 assert encoder.encode(
81 assert encoder.encode(
87 assert encoder.encode(
[all …]
/external/opencv3/3rdparty/libjasper/
Djas_init.c84 fmtops.encode = mif_encode; in jas_init()
92 fmtops.encode = pnm_encode; in jas_init()
105 fmtops.encode = bmp_encode; in jas_init()
113 fmtops.encode = ras_encode; in jas_init()
121 fmtops.encode = jp2_encode; in jas_init()
127 fmtops.encode = jpc_encode; in jas_init()
136 fmtops.encode = jpg_encode; in jas_init()
144 fmtops.encode = pgx_encode; in jas_init()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sqs/
Dmessage.py95 return len(self.encode(self._body))
121 def encode(self, value): member in RawMessage
142 return self.encode(self.get_body())
166 def encode(self, value): member in Message
168 value = value.encode('utf-8')
173 value = base64.b64decode(value.encode('utf-8')).decode('utf-8')
211 def encode(self, value): member in MHMessage
263 value = base64.b64decode(value.encode('utf-8')).decode('utf-8')
268 def encode(self, value): member in EncodedMHMessage
269 value = super(EncodedMHMessage, self).encode(value)
[all …]
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/
DInstructionCodec.java40 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_00X() method
55 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_10X() method
72 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_12X() method
91 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_11N() method
109 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_11X() method
125 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_10T() method
143 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_20T() method
161 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_20BC() method
180 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_22X() method
200 @Override public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_21T() method
[all …]
/external/nanopb-c/examples/using_union_messages/
DMakefile8 all: encode decode
9 ./encode 1 | ./decode
10 ./encode 2 | ./decode
11 ./encode 3 | ./decode
16 rm -f encode unionproto.pb.h unionproto.pb.c
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/
Dtesting.py114 soup.encode("utf-8").replace(b"\n", b""),
264 self.assertEqual(markup, soup.encode())
348 … expected = u"<p>&lt;&lt;sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!&gt;&gt;</p>".encode("utf-8")
350 self.assertEqual(soup.p.encode("utf-8"), expected)
361 iso_latin_html = unicode_html.encode("iso-8859-1")
366 result = soup.encode("utf-8")
374 expected = expected.encode("utf-8")
393 self.assertEqual(soup.encode("utf-8"), unicode_html.encode("utf-8"))
394 self.assertEqual(soup.encode("euc_jp"), unicode_html.encode("euc_jp"))
404 soup.encode('utf-8'),
[all …]
/external/elfutils/libelf/
Dversion_xlate.h37 elf_cvt_Verdef (void *dest, const void *src, size_t len, int encode) in elf_cvt_Verdef() argument
77 if (! encode) in elf_cvt_Verdef()
104 if (encode) in elf_cvt_Verdef()
110 if (! encode) in elf_cvt_Verdef()
116 if (encode) in elf_cvt_Verdef()
136 elf_cvt_Verneed (void *dest, const void *src, size_t len, int encode) in elf_cvt_Verneed() argument
176 if (! encode) in elf_cvt_Verneed()
201 if (encode) in elf_cvt_Verneed()
210 if (! encode) in elf_cvt_Verneed()
216 if (encode) in elf_cvt_Verneed()
/external/v8/src/ast/
Dscopeinfo.cc90 int flags = ScopeTypeField::encode(scope->scope_type()) | in Create()
91 CallsEvalField::encode(scope->calls_eval()) | in Create()
92 LanguageModeField::encode(scope->language_mode()) | in Create()
93 DeclarationScopeField::encode(scope->is_declaration_scope()) | in Create()
94 ReceiverVariableField::encode(receiver_info) | in Create()
95 HasNewTargetField::encode(has_new_target) | in Create()
96 FunctionVariableField::encode(function_name_info) | in Create()
97 FunctionVariableMode::encode(function_variable_mode) | in Create()
98 AsmModuleField::encode(scope->asm_module()) | in Create()
99 AsmFunctionField::encode(scope->asm_function()) | in Create()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/address/
DAuthority.java58 public String encode() { in encode() method in Authority
59 return encode(new StringBuffer()).toString(); in encode()
62 public StringBuffer encode(StringBuffer buffer) { in encode() method in Authority
64 userInfo.encode(buffer); in encode()
66 hostPort.encode(buffer); in encode()
68 hostPort.encode(buffer); in encode()
234 return this.hostPort.encode().hashCode(); in hashCode()
/external/clang/test/CodeGenObjCXX/
Dencode.mm91 extern const char gg[] = @encode(vector4f);
101 extern const char gg[] = @encode(S);
105 extern const char g2[] = @encode(S2);
126 extern const char ecd[] = @encode(Zoo);
147 extern const char g1[] = @encode(Base1);
150 extern const char g2[] = @encode(DBase);
153 extern const char g3[] = @encode(Sub_with_virt);
156 extern const char g4[] = @encode(Sub2);
169 extern const char g5[] = @encode(basic_string);
179 extern const char g6[] = @encode(CefBrowserImpl);
[all …]
/external/clang/test/SemaObjC/
Dexprs.m20 …if (@encode(int) == "foo") { } // expected-warning {{result of comparison against @encode is unsp…
40 (void)@encode(Incomplete_ObjC_class); // expected-error {{incomplete type}}
41 (void)@encode(struct Incomplete_struct); // expected-error {{incomplete type}}
42 (void)@encode(Incomplete_ObjC_class*);
43 (void)@encode(id);
/external/markdown/markdown/
Dhtml4.py76 return text.encode(encoding, "xmlcharrefreplace")
92 return text.encode(encoding, "xmlcharrefreplace")
110 return text.encode(encoding, "xmlcharrefreplace")
123 return text.encode(encoding, "xmlcharrefreplace")
163 k.encode(encoding),
211 def encode(text): function
212 return text.encode(encoding)
227 qnames[qname] = encode("%s:%s" % (prefix, tag))
229 qnames[qname] = encode(tag) # default element
237 qnames[qname] = encode(qname)
/external/apache-http/src/org/apache/commons/codec/net/
DQuotedPrintableCodec.java215 public byte[] encode(byte[] bytes) { in encode() method in QuotedPrintableCodec
255 public String encode(String pString) throws EncoderException { in encode() method in QuotedPrintableCodec
260 return encode(pString, getDefaultCharset()); in encode()
321 public Object encode(Object pObject) throws EncoderException { in encode() method in QuotedPrintableCodec
325 return encode((byte[]) pObject); in encode()
327 return encode((String) pObject); in encode()
386 public String encode(String pString, String charset) throws UnsupportedEncodingException { in encode() method in QuotedPrintableCodec
390 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII); in encode()

12345678910>>...41