/third_party/json/tests/src/ |
H A D | unit-unicode1.cpp | 192 // check escape/unescape roundtrip 228 void roundtrip(bool success_expected, const std::string& s); 230 void roundtrip(bool success_expected, const std::string& s) in roundtrip() function 252 // roundtrip succeeds in roundtrip() 255 // after roundtrip, the same string is stored in roundtrip() 277 roundtrip(true, "κόσμε"); 285 roundtrip(true, std::string("\0", 1)); 287 roundtrip(true, "\xc2\x80"); 289 roundtrip(true, "\xe0\xa0\x80"); 291 roundtrip(tru [all...] |
/third_party/rust/crates/regex/regex-syntax/src/ast/ |
H A D | print.rs | 401 fn roundtrip(given: &str) { in roundtrip() functions 421 roundtrip("a"); in print_literal() 422 roundtrip(r"\["); in print_literal() 424 roundtrip(r"\x61"); in print_literal() 425 roundtrip(r"\x7F"); in print_literal() 426 roundtrip(r"\u0061"); in print_literal() 427 roundtrip(r"\U00000061"); in print_literal() 428 roundtrip(r"\x{61}"); in print_literal() 429 roundtrip(r"\x{7F}"); in print_literal() 430 roundtrip( in print_literal() [all...] |
/third_party/rust/crates/regex/regex-syntax/src/hir/ |
H A D | print.rs | 243 fn roundtrip(given: &str, expected: &str) { in roundtrip() functions 271 roundtrip("a", "a"); in print_literal() 272 roundtrip(r"\xff", "\u{FF}"); in print_literal() 275 roundtrip("☃", "☃"); in print_literal() 280 roundtrip(r"[a]", r"[a]"); in print_class() 281 roundtrip(r"[a-z]", r"[a-z]"); in print_class() 282 roundtrip(r"[a-z--b-c--x-y]", r"[ad-wz]"); in print_class() 283 roundtrip(r"[^\x01-\u{10FFFF}]", "[\u{0}]"); in print_class() 284 roundtrip(r"[-]", r"[\-]"); in print_class() 285 roundtrip( in print_class() [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | AbstractProto3SchemaTest.java | 102 roundtrip("Field 53", newBuilder().setFieldDouble53(100).build()); in oneofFieldsShouldRoundtrip() 103 roundtrip("Field 54", newBuilder().setFieldFloat54(100).build()); in oneofFieldsShouldRoundtrip() 104 roundtrip("Field 55", newBuilder().setFieldInt6455(100).build()); in oneofFieldsShouldRoundtrip() 105 roundtrip("Field 56", newBuilder().setFieldUint6456(100L).build()); in oneofFieldsShouldRoundtrip() 106 roundtrip("Field 57", newBuilder().setFieldInt3257(100).build()); in oneofFieldsShouldRoundtrip() 107 roundtrip("Field 58", newBuilder().setFieldFixed6458(100).build()); in oneofFieldsShouldRoundtrip() 108 roundtrip("Field 59", newBuilder().setFieldFixed3259(100).build()); in oneofFieldsShouldRoundtrip() 109 roundtrip("Field 60", newBuilder().setFieldBool60(true).build()); in oneofFieldsShouldRoundtrip() 110 roundtrip("Field 61", newBuilder().setFieldString61(data().getString()).build()); in oneofFieldsShouldRoundtrip() 111 roundtrip( in oneofFieldsShouldRoundtrip() [all...] |
H A D | AbstractProto3LiteSchemaTest.java | 103 roundtrip("Field 53", newBuilder().setFieldDouble53(100).build()); in oneofFieldsShouldRoundtrip() 104 roundtrip("Field 54", newBuilder().setFieldFloat54(100).build()); in oneofFieldsShouldRoundtrip() 105 roundtrip("Field 55", newBuilder().setFieldInt6455(100).build()); in oneofFieldsShouldRoundtrip() 106 roundtrip("Field 56", newBuilder().setFieldUint6456(100L).build()); in oneofFieldsShouldRoundtrip() 107 roundtrip("Field 57", newBuilder().setFieldInt3257(100).build()); in oneofFieldsShouldRoundtrip() 108 roundtrip("Field 58", newBuilder().setFieldFixed6458(100).build()); in oneofFieldsShouldRoundtrip() 109 roundtrip("Field 59", newBuilder().setFieldFixed3259(100).build()); in oneofFieldsShouldRoundtrip() 110 roundtrip("Field 60", newBuilder().setFieldBool60(true).build()); in oneofFieldsShouldRoundtrip() 111 roundtrip("Field 61", newBuilder().setFieldString61(data().getString()).build()); in oneofFieldsShouldRoundtrip() 112 roundtrip( in oneofFieldsShouldRoundtrip() [all...] |
H A D | AbstractProto2SchemaTest.java | 81 roundtrip("Field 53", newBuilder().setFieldDouble53(100).build()); in oneofFieldsShouldRoundtrip() 82 roundtrip("Field 54", newBuilder().setFieldFloat54(100).build()); in oneofFieldsShouldRoundtrip() 83 roundtrip("Field 55", newBuilder().setFieldInt6455(100).build()); in oneofFieldsShouldRoundtrip() 84 roundtrip("Field 56", newBuilder().setFieldUint6456(100L).build()); in oneofFieldsShouldRoundtrip() 85 roundtrip("Field 57", newBuilder().setFieldInt3257(100).build()); in oneofFieldsShouldRoundtrip() 86 roundtrip("Field 58", newBuilder().setFieldFixed6458(100).build()); in oneofFieldsShouldRoundtrip() 87 roundtrip("Field 59", newBuilder().setFieldFixed3259(100).build()); in oneofFieldsShouldRoundtrip() 88 roundtrip("Field 60", newBuilder().setFieldBool60(true).build()); in oneofFieldsShouldRoundtrip() 89 roundtrip("Field 61", newBuilder().setFieldString61(data().getString()).build()); in oneofFieldsShouldRoundtrip() 90 roundtrip( in oneofFieldsShouldRoundtrip() [all...] |
H A D | AbstractProto2LiteSchemaTest.java | 82 roundtrip("Field 53", newBuilder().setFieldDouble53(100).build()); in oneofFieldsShouldRoundtrip() 83 roundtrip("Field 54", newBuilder().setFieldFloat54(100).build()); in oneofFieldsShouldRoundtrip() 84 roundtrip("Field 55", newBuilder().setFieldInt6455(100).build()); in oneofFieldsShouldRoundtrip() 85 roundtrip("Field 56", newBuilder().setFieldUint6456(100L).build()); in oneofFieldsShouldRoundtrip() 86 roundtrip("Field 57", newBuilder().setFieldInt3257(100).build()); in oneofFieldsShouldRoundtrip() 87 roundtrip("Field 58", newBuilder().setFieldFixed6458(100).build()); in oneofFieldsShouldRoundtrip() 88 roundtrip("Field 59", newBuilder().setFieldFixed3259(100).build()); in oneofFieldsShouldRoundtrip() 89 roundtrip("Field 60", newBuilder().setFieldBool60(true).build()); in oneofFieldsShouldRoundtrip() 90 roundtrip("Field 61", newBuilder().setFieldString61(data().getString()).build()); in oneofFieldsShouldRoundtrip() 91 roundtrip( in oneofFieldsShouldRoundtrip() [all...] |
H A D | AbstractSchemaTest.java | 72 roundtrip("", messageFactory().newMessage()); in randomMessageShouldRoundtrip() 112 protected static final <M extends MessageLite> void roundtrip( in roundtrip() method in AbstractSchemaTest 134 protected final void roundtrip(String failureMessage, T msg) throws IOException { in roundtrip() method in AbstractSchemaTest 135 roundtrip(failureMessage, msg, schema); in roundtrip()
|
/third_party/skia/third_party/skcms/ |
H A D | skcms_internal.h | 43 float roundtrip = (float)((int)x); in floorf_() local 44 return roundtrip > x ? roundtrip - 1 : roundtrip; in floorf_()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_format_test.c | 16 enum pipe_format roundtrip = vk_format_to_pipe_format(vk_fmt); in main() local 17 if (roundtrip != pipe_fmt) { in main() 18 fprintf(stderr, "Format does not roundtrip\n" in main() 21 util_format_name(roundtrip), in main()
|
/third_party/rust/crates/proc-macro2/tests/ |
H A D | test.rs | 347 fn roundtrip() { in roundtrip() functions 348 fn roundtrip(p: &str) { in roundtrip() functions 355 roundtrip("a"); in roundtrip() 356 roundtrip("<<"); in roundtrip() 357 roundtrip("<<="); in roundtrip() 358 roundtrip( in roundtrip() 378 roundtrip("'a"); in roundtrip() 379 roundtrip("'_"); in roundtrip() 380 roundtrip("'static"); in roundtrip() 381 roundtrip("'\\ in roundtrip() [all...] |
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_cs.c | 276 uint32_t roundtrip; in vn_cs_encoder_reserve_internal() local 278 vn_instance_submit_roundtrip(enc->instance, &roundtrip); in vn_cs_encoder_reserve_internal() 284 enc->current_buffer_roundtrip = roundtrip; in vn_cs_encoder_reserve_internal()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_conversion_builder.h | 78 nir_ssa_def *roundtrip = in nir_round_float_to_float() local 80 nir_ssa_def *cmp = nir_flt(b, roundtrip, src); in nir_round_float_to_float() 89 nir_ssa_def *roundtrip = in nir_round_float_to_float() local 91 nir_ssa_def *cmp = nir_flt(b, src, roundtrip); in nir_round_float_to_float()
|
/third_party/python/Lib/test/ |
H A D | test_complex.py | 648 roundtrip = complex(repr(z)) 649 self.assertFloatsAreIdentical(z.real, roundtrip.real) 650 self.assertFloatsAreIdentical(z.imag, roundtrip.imag) 659 roundtrip = eval(repr(z)) 662 0.0 + roundtrip.real) 664 0.0 + roundtrip.imag)
|
H A D | test_tokenize.py | 1518 Test roundtrip for `untokenize`. `f` is an open file or a string. 1614 # Test roundtrip on random python modules. 1624 # With roundtrip extended to test the 5-tuple mode of untokenize, 1642 def roundtrip(self, code): member in TestRoundtrip 1649 Ensure that although whitespace might be mutated in a roundtrip, 1653 codelines = self.roundtrip(code).split('\n')
|
H A D | test_tempfile.py | 1434 def roundtrip(input, *args, **kwargs): function 1440 roundtrip(b"1234", "w+b") 1441 roundtrip("abdc\n", "w+") 1442 roundtrip("\u039B", "w+", encoding="utf-16") 1443 roundtrip("foo\r\n", "w+", newline="")
|
H A D | test_unparse.py | 668 """Test roundtrip behaviour on all files in Lib and Lib/test."""
|
H A D | test_float.py | 1467 def roundtrip(x): function 1471 self.identical(x, roundtrip(x)) 1472 self.identical(-x, roundtrip(-x))
|
/third_party/skia/include/private/ |
H A D | SkNx_neon.h | 16 // - roundtrip through integers via truncation 20 auto roundtrip = vcvtq_f32_s32(vcvtq_s32_f32(v)); in emulate_vrndmq_f32() local 21 auto too_big = vcgtq_f32(roundtrip, v); in emulate_vrndmq_f32() 22 return vsubq_f32(roundtrip, (float32x4_t)vandq_u32(too_big, (uint32x4_t)vdupq_n_f32(1))); in emulate_vrndmq_f32() 25 auto roundtrip = vcvt_f32_s32(vcvt_s32_f32(v)); in emulate_vrndm_f32() local 26 auto too_big = vcgt_f32(roundtrip, v); in emulate_vrndm_f32() 27 return vsub_f32(roundtrip, (float32x2_t)vand_u32(too_big, (uint32x2_t)vdup_n_f32(1))); in emulate_vrndm_f32()
|
H A D | SkNx_sse.h | 27 // - roundtrip through integers via truncation 32 __m128 roundtrip = _mm_cvtepi32_ps(_mm_cvttps_epi32(v)); in emulate_mm_floor_ps() local 33 __m128 too_big = _mm_cmpgt_ps(roundtrip, v); in emulate_mm_floor_ps() 34 return _mm_sub_ps(roundtrip, _mm_and_ps(too_big, _mm_set1_ps(1.0f))); in emulate_mm_floor_ps()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/ |
H A D | radius_client.c | 818 int len, roundtrip; in radius_client_receive() local 906 roundtrip = (now.sec - req->last_attempt.sec) * 100 + in radius_client_receive() 912 roundtrip / 100, roundtrip % 100); in radius_client_receive() 913 rconf->round_trip_time = roundtrip; in radius_client_receive()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/ |
H A D | radius_client.c | 825 int len, roundtrip; in radius_client_receive() local 922 roundtrip = (now.sec - req->last_attempt.sec) * 100 + in radius_client_receive() 928 roundtrip / 100, roundtrip % 100); in radius_client_receive() 929 rconf->round_trip_time = roundtrip; in radius_client_receive()
|
/third_party/mesa3d/src/egl/drivers/dri2/ |
H A D | platform_wayland.c | 239 roundtrip(struct dri2_egl_display *dri2_dpy) in roundtrip() function 737 if (roundtrip(dri2_dpy) < 0) in dri2_wl_create_window_surface() 1681 if (roundtrip(dri2_dpy) < 0) in dri2_wl_authenticate() 2114 if (roundtrip(dri2_dpy) < 0) in dri2_initialize_wayland_drm() 2127 if (roundtrip(dri2_dpy) < 0) in dri2_initialize_wayland_drm() 2147 if (roundtrip(dri2_dpy) < 0 || dri2_dpy->fd == -1) in dri2_initialize_wayland_drm() 2151 (roundtrip(dri2_dpy) < 0 || !dri2_dpy->authenticated)) in dri2_initialize_wayland_drm() 2723 if (roundtrip(dri2_dpy) < 0 || dri2_dpy->wl_shm == NULL) in dri2_initialize_wayland_swrast() 2726 if (roundtrip(dri2_dpy) < 0 || !BITSET_TEST_RANGE(dri2_dpy->formats.formats_bitmap, in dri2_initialize_wayland_swrast()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bidi/ |
H A D | TestReorderingMode.java | 316 static final byte roundtrip[][][][] = field in TestReorderingMode 450 if (roundtrip[tc][mode][option][level] == 1) { in assertRoundTrip()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
H A D | TestReorderingMode.java | 313 static final byte roundtrip[][][][] = field in TestReorderingMode 447 if (roundtrip[tc][mode][option][level] == 1) { in assertRoundTrip()
|