Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_unparse.py125 code2 = ast.unparse(ast1)
126 ast2 = ast.parse(code2, **kwargs)
133 def get_source(self, code1, code2=None): argument
134 code2 = code2 or code1
136 return code1, code2
138 def check_src_roundtrip(self, code1, code2=None): argument
139 code1, code2 = self.get_source(code1, code2)
140 with self.subTest(code1=code1, code2=code2):
141 self.assertEqual(code2, code1)
143 def check_src_dont_roundtrip(self, code1, code2=None): argument
[all …]
Dtest_code.py243 code2 = func2.__code__
253 ("co_code", code2.co_code),
254 ("co_consts", code2.co_consts),
256 ("co_varnames", code2.co_varnames),
261 ("co_linetable", code2.co_linetable),
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITMemoryManagerTest.cpp22 uint8_t *code2 = MemMgr->allocateCodeSection(256, 0, 3, ""); in TEST() local
26 EXPECT_NE((uint8_t*)nullptr, code2); in TEST()
33 code2[i] = 2; in TEST()
41 EXPECT_EQ(2, code2[i]); in TEST()
55 uint8_t *code2 = MemMgr->allocateCodeSection(0x100000, 0, 3, ""); in TEST() local
59 EXPECT_NE((uint8_t*)nullptr, code2); in TEST()
66 code2[i] = 2; in TEST()
74 EXPECT_EQ(2, code2[i]); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/
Dperl_groups.cc11 static const URange16 code2[] = { /* \s */ variable
25 { "\\s", +1, code2, 3 },
26 { "\\S", -1, code2, 3 },
/external/strace/
Dioctlsort.c99 unsigned int code2 = code((struct ioctlent *) b); in compare_code_name() local
102 return (code1 > code2) ? in compare_code_name()
103 1 : (code1 < code2) ? -1 : strcmp(name1, name2); in compare_code_name()
Dioctl.c40 const unsigned int code2 = ((struct_ioctlent *) b)->code; in compare() local
41 return (code1 > code2) ? 1 : (code1 < code2) ? -1 : 0; in compare()
/external/python/cpython2/Lib/
Dcodeop.py79 code = code1 = code2 = None
92 code2 = compiler(source + "\n\n", filename, symbol)
Dsre_parse.py481 code2 = _class_escape(source, this, nested + 1)
483 code2 = LITERAL, ord(this)
484 if code1[0] != LITERAL or code2[0] != LITERAL:
487 hi = code2[1]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTestLocaleValidity.java330 …atasubtype expected, Datatype datatype, Set<Datasubtype> datasubtypes, String code, String code2) {
331 Datasubtype value = ValidIdentifiers.isValid(datatype, datasubtypes, code, code2);
332 assertEquals(datatype + ", " + datasubtypes + ", " + code + ", " + code2, expected, value);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTestLocaleValidity.java327 …atasubtype expected, Datatype datatype, Set<Datasubtype> datasubtypes, String code, String code2) {
328 Datasubtype value = ValidIdentifiers.isValid(datatype, datasubtypes, code, code2);
329 assertEquals(datatype + ", " + datasubtypes + ", " + code + ", " + code2, expected, value);
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
DShapeImmutableTest.java59 Code2 code2 = (Code2) yaml.load("!!org.yaml.snakeyaml.immutable.Code2 555"); in testCode2() local
60 assertEquals(new Integer(555), code2.getCode()); in testCode2()
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dadb_wrapper_devicetest.py58 (res2, code2) = pshell.RunCommand('echo TEST2')
63 self.assertEqual(code2, 0)
/external/python/cpython2/Demo/parser/
Dtest_unparse.py86 code2 = unparse_buffer.getvalue()
87 ast2 = compile(code2, filename, "exec", ast.PyCF_ONLY_AST)
/external/pdfium/fxbarcode/qrcode/
DBC_QRCoderEncoder.cpp108 int32_t code2 = GetAlphaNumericCode(content[i + 1]); in AppendAlphaNumericBytes() local
109 if (code2 == -1) in AppendAlphaNumericBytes()
112 bits->AppendBits(code1 * 45 + code2, 11); in AppendAlphaNumericBytes()
/external/freetype/src/pfr/
Dpfrobjs.c483 FT_UInt32 code1, code2, pair; in pfr_face_get_kerning() local
500 code2 = phy_font->chars[glyph2].char_code; in pfr_face_get_kerning()
501 pair = PFR_KERN_INDEX( code1, code2 ); in pfr_face_get_kerning()
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/
Dflatbuffer_to_proto_test.cc636 std::unique_ptr<ErrorCodeT> code2(new ErrorCodeT()); in TEST_F() local
637 code2->source = Delegate_NNAPI; in TEST_F()
638 code2->tflite_error = 4; in TEST_F()
639 code2->underlying_api_error = 404; in TEST_F()
640 error->error_code.emplace_back(std::move(code2)); in TEST_F()
/external/javassist/src/test/
DJassist150.java39 String code2 = "{ int n1 = java.lang.Integer.valueOf(1); " in implTestClassTailCache() local
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_run.py65 for (code1, exc1, msg1), (code2, exc2, msg2) in data2:
66 with self.subTest(codes=(code1,code2)):
71 eval(compile(code2, '', 'eval'))
/external/libchrome/base/
Dlogging_unittest.cc255 DWORD code2 = 0; in TEST_F() local
271 GetCheckExceptionData(GetExceptionInformation(), &code2, &addr2)) { in TEST_F()
283 EXPECT_EQ(STATUS_BREAKPOINT, code2); in TEST_F()
/external/python/cpython2/Lib/test/
Dtest_parser.py653 code2 = parser.compilest(st)
654 self.assertEqual(eval(code2), -3)
/external/cronet/base/
Dlogging_unittest.cc387 DWORD code2 = 0; in TEST_F() local
403 GetCheckExceptionData(GetExceptionInformation(), &code2, &addr2)) { in TEST_F()
415 EXPECT_EQ(STATUS_BREAKPOINT, code2); in TEST_F()
/external/python/cpython3/Lib/
Dsre_parse.py581 code2 = _class_escape(source, that)
590 code2 = LITERAL, _ord(that)
591 if code1[0] != LITERAL or code2[0] != LITERAL:
595 hi = code2[1]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResTable_config.java2208 private boolean areIdentical(final byte[] code1, final byte[] code2) { in areIdentical() argument
2209 return code1[0] == code2[0] && code1[1] == code2[1]; in areIdentical()
/external/robolectric/resources/src/main/java/org/robolectric/res/android/
DResTable_config.java2237 private boolean areIdentical(final byte[] code1, final byte[] code2) { in areIdentical() argument
2238 return code1[0] == code2[0] && code1[1] == code2[1]; in areIdentical()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dsg_err.c260 unsigned char code1, code2; member
998 if (additional[k].code1 == asc && additional[k].code2 == ascq) { in sg_print_asc_ascq()