| /external/catch2/projects/SelfTest/IntrospectiveTests/ |
| D | Xml.tests.cpp | 6 inline std::string encode( std::string const& str, Catch::XmlEncode::ForWhat forWhat = Catch::XmlEn… in encode() function 14 REQUIRE( encode( "normal string" ) == "normal string" ); 17 REQUIRE( encode( "" ) == "" ); 20 REQUIRE( encode( "smith & jones" ) == "smith & jones" ); 23 REQUIRE( encode( "smith < jones" ) == "smith < jones" ); 26 REQUIRE( encode( "smith > jones" ) == "smith > jones" ); 27 REQUIRE( encode( "smith ]]> jones" ) == "smith ]]> jones" ); 31 REQUIRE( encode( stringWithQuotes ) == stringWithQuotes ); 32 …REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't "quote" m… 35 REQUIRE( encode( "[\x01]" ) == "[\\x01]" ); [all …]
|
| /external/python/pyasn1/tests/codec/ber/ |
| D | test_encoder.py | 36 assert encoder.encode(self.o) == ints2octs((127, 141, 245, 182, 253, 47, 3, 2, 1, 1)) 41 assert encoder.encode(univ.Integer(12)) == ints2octs((2, 1, 12)) 44 assert encoder.encode(univ.Integer(-12)) == ints2octs((2, 1, 244)) 47 assert encoder.encode(univ.Integer(0)) == ints2octs((2, 1, 0)) 51 substrate = encoder.encode(univ.Integer(0)) 56 assert encoder.encode(univ.Integer(-1)) == ints2octs((2, 1, 255)) 59 assert encoder.encode( 64 assert encoder.encode( 71 assert encoder.encode(12, asn1Spec=univ.Integer()) == ints2octs((2, 1, 12)) 74 assert encoder.encode(-12, asn1Spec=univ.Integer()) == ints2octs((2, 1, 244)) [all …]
|
| /external/XNNPACK/src/jit/ |
| D | aarch32-assembler.cc | 39 uint32_t encode(SRegister r, uint32_t single_bit_pos, uint32_t four_bits_pos) { in encode() function 43 uint32_t encode(DRegister r, uint32_t single_bit_pos, uint32_t four_bits_pos) { in encode() function 47 uint32_t encode(DRegisterLane r, uint32_t single_bit_pos, uint32_t four_bits_pos) { in encode() function 51 uint32_t encode(QRegister r, uint32_t single_bit_pos, uint32_t four_bits_pos) { in encode() function 55 uint32_t encode(SRegisterList regs, uint32_t single_bit_pos, uint32_t four_bits_pos) { in encode() function 60 uint32_t encode(DRegisterList regs, uint32_t single_bit_pos, uint32_t four_bits_pos) { in encode() function 254 emit32(kAL | 0x0EB40AC0 | encode(sd, 22, 12) | encode(sm, 5, 0)); in vcmpe_f32() 258 emit32(0xF3BB0640 | encode(qd, 22, 12) | encode(qm, 5, 0)); in vcvt_f32_s32() 262 emit32(0xF3BB0740 | encode(qd, 22, 12) | encode(qm, 5, 0)); in vcvt_s32_f32() 266 emit32(0xF3BB0140 | encode(qd, 22, 12) | encode(qm, 5, 0)); in vcvtn_s32_f32() [all …]
|
| /external/nanopb-c/tests/alltypes_callback/ |
| D | encode_alltypes_callback.c | 210 alltypes.req_int32.funcs.encode = &write_varint; in main() 213 alltypes.req_int64.funcs.encode = &write_varint; in main() 216 alltypes.req_uint32.funcs.encode = &write_varint; in main() 219 alltypes.req_uint32.funcs.encode = &write_varint; in main() 222 alltypes.req_uint64.funcs.encode = &write_varint; in main() 225 alltypes.req_sint32.funcs.encode = &write_svarint; in main() 228 alltypes.req_sint64.funcs.encode = &write_svarint; in main() 231 alltypes.req_bool.funcs.encode = &write_varint; in main() 234 alltypes.req_fixed32.funcs.encode = &write_fixed32; in main() 237 alltypes.req_sfixed32.funcs.encode = &write_fixed32; in main() [all …]
|
| /external/tensorflow/tensorflow/python/kernel_tests/ |
| D | unicode_encode_op_test.py | 80 expected_value = u"Heo".encode(encoding) 90 expected_value = u"He\U0000fffd\U0000fffdo".encode(encoding) 98 expected_value = u"Heooo".encode(encoding) 106 expected_value = u"He\U0000fffd\U0000fffdo".encode(encoding) 112 expected_value = u"A".encode(encoding) 119 expected_value = u"A".encode(encoding) 139 expected_value = u"Hello".encode(encoding) 144 expected_value = u"He\xc3\xc3\U0001f604".encode(encoding) 150 expected_value = u"H".encode(encoding) 155 expected_value = u"\U0001f604".encode(encoding) [all …]
|
| D | substr_op_test.py | 45 "UTF8_CHAR": u"He\xc3\xc3\U0001f604".encode("utf-8"), 49 "UTF8_CHAR": u"e\xc3\xc3".encode("utf-8"), 68 "UTF8_CHAR": u"".encode("utf-8"), 81 "UTF8_CHAR": u"H\xc3ll\U0001f604".encode("utf-8"), 93 "UTF8_CHAR": u"H\xc3ll\U0001f604".encode("utf-8"), 105 "UTF8_CHAR": u"H\xc3ll\U0001f604".encode("utf-8"), 109 "UTF8_CHAR": u"\xc3ll\U0001f604".encode("utf-8"), 131 "UTF8_CHAR": [x.encode("utf-8") for x in [u"H\xc3llo", 136 "UTF8_CHAR": [x.encode("utf-8") for x in [u"\xc3ll", u"\U0001f604rl"]], 156 "UTF8_CHAR": [[x.encode("utf-8") for x in [u"\U0001d229\U0001d227n", [all …]
|
| /external/tensorflow/tensorflow/python/ |
| D | pywrap_mlir.py | 36 str(graphdef).encode('utf-8'), pass_pipeline.encode('utf-8'), 37 show_debug_info, ','.join(input_names).encode('utf-8'), 38 ','.join(input_data_types).encode('utf-8'), 39 ':'.join(input_data_shapes).encode('utf-8'), 40 ','.join(output_names).encode('utf-8')) 42 str(graphdef).encode('utf-8'), pass_pipeline.encode('utf-8'), 50 str(concrete_function.function_def).encode('utf-8'), 51 pass_pipeline.encode('utf-8'), show_debug_info) 57 str(saved_model_path).encode('utf-8'), 58 str(exported_names).encode('utf-8'), show_debug_info) [all …]
|
| /external/grpc-grpc/third_party/nanopb/tests/alltypes_callback/ |
| D | encode_alltypes_callback.c | 210 alltypes.req_int32.funcs.encode = &write_varint; in main() 213 alltypes.req_int64.funcs.encode = &write_varint; in main() 216 alltypes.req_uint32.funcs.encode = &write_varint; in main() 219 alltypes.req_uint32.funcs.encode = &write_varint; in main() 222 alltypes.req_uint64.funcs.encode = &write_varint; in main() 225 alltypes.req_sint32.funcs.encode = &write_svarint; in main() 228 alltypes.req_sint64.funcs.encode = &write_svarint; in main() 231 alltypes.req_bool.funcs.encode = &write_varint; in main() 234 alltypes.req_fixed32.funcs.encode = &write_fixed32; in main() 237 alltypes.req_sfixed32.funcs.encode = &write_fixed32; in main() [all …]
|
| /external/nanopb-c/tests/alltypes_proto3_callback/ |
| D | encode_alltypes_callback.c | 202 alltypes.rep_int32.funcs.encode = &write_repeated_varint; in main() 205 alltypes.rep_int64.funcs.encode = &write_repeated_varint; in main() 208 alltypes.rep_uint32.funcs.encode = &write_repeated_varint; in main() 211 alltypes.rep_uint64.funcs.encode = &write_repeated_varint; in main() 214 alltypes.rep_sint32.funcs.encode = &write_repeated_svarint; in main() 217 alltypes.rep_sint64.funcs.encode = &write_repeated_svarint; in main() 220 alltypes.rep_bool.funcs.encode = &write_repeated_varint; in main() 223 alltypes.rep_fixed32.funcs.encode = &write_repeated_fixed32; in main() 226 alltypes.rep_sfixed32.funcs.encode = &write_repeated_fixed32; in main() 229 alltypes.rep_float.funcs.encode = &write_repeated_fixed32; in main() [all …]
|
| /external/python/pyasn1/tests/codec/cer/ |
| D | test_encoder.py | 28 assert encoder.encode(univ.Boolean(1)) == ints2octs((1, 1, 255)) 31 assert encoder.encode(univ.Boolean(0)) == ints2octs((1, 1, 0)) 36 assert encoder.encode( 41 …assert encoder.encode(univ.BitString((1, 0) * 501)) == ints2octs((3, 127, 6) + (170,) * 125 + (128… 46 assert encoder.encode( 51 assert encoder.encode( 69 assert encoder.encode( 79 assert encoder.encode( 90 assert encoder.encode( 99 assert encoder.encode( [all …]
|
| /external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
| D | Encoder.java | 142 result.encode(dataHeader); in getEncoderAtDataOffset() 150 public void encode(DataHeader s) { in encode() method in Encoder 152 encode(s.size, DataHeader.SIZE_OFFSET); in encode() 153 encode(s.elementsOrVersion, DataHeader.ELEMENTS_OR_VERSION_OFFSET); in encode() 159 public void encode(byte v, int offset) { in encode() method in Encoder 166 public void encode(boolean v, int offset, int bit) { in encode() method in Encoder 177 public void encode(short v, int offset) { in encode() method in Encoder 184 public void encode(int v, int offset) { in encode() method in Encoder 191 public void encode(float v, int offset) { in encode() method in Encoder 198 public void encode(long v, int offset) { in encode() method in Encoder [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_multibytecodec.py | 39 self.assertEqual(''.encode(enc), b'') 43 self.assertEqual('abcd'.encode(enc), b'abcd') 57 self.assertEqual(data.encode(enc, "test.ignore"), b'') 84 self.assertEqual(encoder.encode('\ud30c\uc774\uc36c \ub9c8\uc744'), 87 self.assertEqual(encoder.encode('\u2606\u223c\u2606', True), 90 self.assertEqual(encoder.encode('', True), b'') 91 self.assertEqual(encoder.encode('', False), b'') 101 self.assertEqual(encoder.encode('\u00e6\u0300'), b'\xab\xc4') 102 self.assertEqual(encoder.encode('\u00e6'), b'') 103 self.assertEqual(encoder.encode('\u0300'), b'\xab\xc4') [all …]
|
| /external/pigweed/pw_hdlc/ts/ |
| D | encoder_test.ts | 44 const data = textEncoder.encode(''); 52 withFlags(withFCS(textEncoder.encode('\x35\x03'))) 57 const data = textEncoder.encode('A'); 59 withFlags(withFCS(textEncoder.encode('\x01\x03A'))) 64 const data = textEncoder.encode('123456789'); 66 withFlags(withFCS(textEncoder.encode('\x01\x03123456789'))) 71 const data = textEncoder.encode('123456789'); 73 withFlags(withFCS(textEncoder.encode('\x00\x03\x03123456789'))) 78 const data = textEncoder.encode('\x7d'); 80 textEncoder.encode('\x7d\x5d\x03\x7d\x5d'), [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_multibytecodec.py | 33 self.assertEqual(u''.encode(enc), '') 37 self.assertEqual('abcd'.encode(enc), 'abcd') 51 self.assertEqual(data.encode(enc, "test.ignore"), b'') 71 self.assertEqual(encoder.encode(u'\ud30c\uc774\uc36c \ub9c8\uc744'), 74 self.assertEqual(encoder.encode(u'\u2606\u223c\u2606', True), 77 self.assertEqual(encoder.encode(u'', True), '') 78 self.assertEqual(encoder.encode(u'', False), '') 88 self.assertEqual(encoder.encode(u'\u00e6\u0300'), '\xab\xc4') 89 self.assertEqual(encoder.encode(u'\u00e6'), '') 90 self.assertEqual(encoder.encode(u'\u0300'), '\xab\xc4') [all …]
|
| /external/python/pyasn1/tests/codec/native/ |
| D | test_encoder.py | 27 encoder.encode('not an Asn1Item') 38 assert encoder.encode(univ.Integer(12)) == 12 41 assert encoder.encode(univ.Integer(-12)) == -12 46 assert encoder.encode(univ.Boolean(1)) is True 49 assert encoder.encode(univ.Boolean(0)) is False 58 assert encoder.encode(self.b) == '101010011000101' 67 assert encoder.encode(self.o) == str2octs('Quick brown fox') 72 assert encoder.encode(univ.Null('')) is None 77 assert encoder.encode(univ.ObjectIdentifier((1, 3, 6, 0, 12345))) == '1.3.6.0.12345' 82 assert encoder.encode(univ.Real((123, 10, 11))) == 1.23e+13 [all …]
|
| /external/starlark-go/starlark/testdata/ |
| D | json.star | 6 assert.eq(dir(json), ["decode", "encode", "indent"]) 10 ## json.encode 12 assert.eq(json.encode(None), "null") 13 assert.eq(json.encode(True), "true") 14 assert.eq(json.encode(False), "false") 15 assert.eq(json.encode(-123), "-123") 16 assert.eq(json.encode(12345*12345*12345*12345*12345*12345), "3539537889086624823140625") 17 assert.eq(json.encode(float(12345*12345*12345*12345*12345*12345)), "3.539537889086625e+24") 18 assert.eq(json.encode(12.345e67), "1.2345e+68") 19 assert.eq(json.encode("hello"), '"hello"') [all …]
|
| /external/clang/test/CodeGenObjC/ |
| D | encode-test.m | 88 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 …]
|
| D | encode-test-3.m | 6 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
|
| /external/python/pyasn1/tests/codec/der/ |
| D | test_encoder.py | 27 assert encoder.encode( 32 assert encoder.encode( 39 assert encoder.encode( 44 assert encoder.encode( 60 assert encoder.encode(self.s) == ints2octs((49, 7, 4, 1, 97, 4, 2, 97, 98)) 67 assert encoder.encode(self.s) == ints2octs((49, 7, 4, 1, 97, 4, 2, 97, 98)) 74 assert encoder.encode(self.s) == ints2octs((49, 6, 4, 1, 97, 4, 1, 98)) 81 assert encoder.encode(self.s) == ints2octs((49, 6, 4, 1, 97, 4, 1, 98)) 101 assert encoder.encode(self.s) == ints2octs((49, 6, 2, 1, 5, 4, 1, 65)) 106 assert encoder.encode(self.s) == ints2octs((49, 6, 1, 1, 255, 2, 1, 5)) [all …]
|
| /external/python/httplib2/python2/httplib2/ |
| D | socks.py | 246 username.encode() if username else None, 247 password.encode() if password else None, 268 if chosenauth[0:1] != chr(0x05).encode(): 272 if chosenauth[1:2] == chr(0x00).encode(): 275 elif chosenauth[1:2] == chr(0x02).encode(): 279 chr(0x01).encode() 286 if authstat[0:1] != chr(0x01).encode(): 290 if authstat[1:2] != chr(0x00).encode(): 298 if chosenauth[1] == chr(0xFF).encode(): 308 req = req + chr(0x01).encode() + ipaddr [all …]
|
| /external/python/httplib2/python3/httplib2/ |
| D | socks.py | 246 username.encode() if username else None, 247 password.encode() if password else None, 268 if chosenauth[0:1] != chr(0x05).encode(): 272 if chosenauth[1:2] == chr(0x00).encode(): 275 elif chosenauth[1:2] == chr(0x02).encode(): 286 if authstat[0:1] != chr(0x01).encode(): 290 if authstat[1:2] != chr(0x00).encode(): 298 if chosenauth[1] == chr(0xFF).encode(): 308 req = req + chr(0x01).encode() + ipaddr 316 + chr(0x03).encode() [all …]
|
| /external/pigweed/pw_transfer/ts/ |
| D | transfer_test.ts | 123 chunk.setData(textEncoder.encode(data)); 149 expect(data).toEqual(textEncoder.encode('abcdef')); 192 expect(data).toEqual(textEncoder.encode('123456789')); 280 await manager.write(4, textEncoder.encode('hello')); 282 expect(receivedData()).toEqual(textEncoder.encode('hello')); 303 await manager.write(4, textEncoder.encode('hello world')); 305 expect(receivedData()).toEqual(textEncoder.encode('hello world')); 306 expect(sentChunks[1].getData()).toEqual(textEncoder.encode('hello wo')); 307 expect(sentChunks[2].getData()).toEqual(textEncoder.encode('rld')); 335 await manager.write(4, textEncoder.encode('data to write')); [all …]
|
| /external/skia/src/utils/ |
| D | SkBase64.cpp | 113 const char* encode; in Encode() local 115 encode = default_encode; in Encode() 117 encode = encodeMap; in Encode() 130 *dst++ = encode[a]; in Encode() 131 *dst++ = encode[b]; in Encode() 132 *dst++ = encode[c]; in Encode() 133 *dst++ = encode[d]; in Encode() 145 *dst++ = encode[a >> 2]; in Encode() 146 *dst++ = encode[(k1 | a << 4) & 0x3F]; in Encode() 147 *dst++ = encode[k2]; in Encode() [all …]
|
| /external/cbor-java/src/main/java/co/nstant/in/cbor/ |
| D | CborEncoder.java | 65 public void encode(List<DataItem> dataItems) throws CborException { in encode() method in CborEncoder 67 encode(dataItem); in encode() 81 public void encode(DataItem dataItem) throws CborException { in encode() method in CborEncoder 88 tagEncoder.encode(tagDi); in encode() 93 unsignedIntegerEncoder.encode((UnsignedInteger) dataItem); in encode() 96 negativeIntegerEncoder.encode((NegativeInteger) dataItem); in encode() 99 byteStringEncoder.encode((ByteString) dataItem); in encode() 102 unicodeStringEncoder.encode((UnicodeString) dataItem); in encode() 105 arrayEncoder.encode((Array) dataItem); in encode() 108 mapEncoder.encode((Map) dataItem); in encode() [all …]
|
| /external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/ |
| D | perfetto_proto_classes.py | 35 def encode(self): member in TracePacket 39 data = self.chrome_event.encode() 44 data = self.clock_snapshot.encode() 55 data = self.track_event.encode() 60 data = self.interned_data.encode() 68 data = self.thread_descriptor.encode() 73 data = self.chrome_benchmark_metadata.encode() 88 def encode(self): member in InternedData 92 data = self.event_category.encode() 97 data = self.legacy_event_name.encode() [all …]
|