/third_party/googletest/googletest/test/ |
H A D | gtest_repeat_test.cc | 140 void TestRepeat(int repeat) { in TestRepeat() argument 141 GTEST_FLAG_SET(repeat, repeat); in TestRepeat() 145 GTEST_CHECK_INT_EQ_(repeat > 0 ? 1 : 0, RUN_ALL_TESTS()); in TestRepeat() 146 CheckCounts(repeat); in TestRepeat() 151 void TestRepeatWithEmptyFilter(int repeat) { in TestRepeatWithEmptyFilter() argument 152 GTEST_FLAG_SET(repeat, repeat); in TestRepeatWithEmptyFilter() 163 void TestRepeatWithFilterForSuccessfulTests(int repeat) { in TestRepeatWithFilterForSuccessfulTests() argument 164 GTEST_FLAG_SET(repeat, repea in TestRepeatWithFilterForSuccessfulTests() 180 TestRepeatWithFilterForFailedTests(int repeat) TestRepeatWithFilterForFailedTests() argument [all...] |
/third_party/rust/crates/regex/bench/src/ |
H A D | misc.rs | 3 use std::iter::repeat; 19 repeat("a?").take(100).collect::<String>(), 20 repeat("a").take(100).collect::<String>() 23 repeat("a").take(100).collect() 27 format!("{}y", repeat("x").take(50).collect::<String>()) 31 format!("{}y", repeat("x").take(50).collect::<String>()) 35 format!("{}w", repeat("xxxx").take(20).collect::<String>()) 39 format!("{}c", repeat("bbbb").take(20).collect::<String>()) 45 format!("{}a", repeat("☃5☃5").take(20).collect::<String>()) 53 repeat("abcdefghijklmnopqrstuvwxy [all...] |
/third_party/python/Tools/importbench/ |
H A D | importbench.py | 20 def bench(name, cleanup=lambda: None, *, seconds=1, repeat=3): 25 for x in range(repeat): 40 def from_cache(seconds, repeat): 48 yield from bench(name, repeat=repeat, seconds=seconds) 51 def builtin_mod(seconds, repeat): 57 yield from bench(name, lambda: sys.modules.pop(name), repeat=repeat, 61 def source_wo_bytecode(seconds, repeat): 73 yield from bench(name, lambda: sys.modules.pop(name), repeat [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | string-prototype-repeat.js | 19 z.repeat (-1); 28 print(z.repeat (Infinity)); 35 assert (z.repeat (0) === ""); 36 assert (z.repeat (NaN) === ""); 39 assert (y.repeat (3) === "I am batman I am batman I am batman "); 41 assert (String.prototype.repeat.call ("My cat is awesome. ", 3) === "My cat is awesome. My cat is awesome. My cat is awesome. "); 44 String.prototype.repeat.call (undefined); 51 String.prototype.repeat.call (null); 58 String.prototype.repeat.call (undefined, "Sylveon"); 66 String.prototype.repeat [all...] |
/third_party/python/Lib/ |
H A D | timeit.py | 16 -r/--repeat N: how many times to repeat the timer (default 5) 20 -v/--verbose: print raw timing results; repeat for more digits precision 47 repeat(string, string) -> list 57 __all__ = ["Timer", "timeit", "repeat", "default_timer"] 95 timeit() method. The repeat() method is a convenience to call 144 t.timeit(...) # or t.repeat(...) 174 it = itertools.repeat(None, number) 184 def repeat(self, repeat member in Timer 236 def repeat(stmt="pass", setup="pass", timer=default_timer, global() function [all...] |
/third_party/node/deps/uv/src/ |
H A D | timer.c | 62 handle->repeat = 0; in uv_timer_init() 70 uint64_t repeat) { in uv_timer_start() 85 handle->repeat = repeat; in uv_timer_start() 115 if (handle->repeat) { in uv_timer_again() 117 uv_timer_start(handle, handle->timer_cb, handle->repeat, handle->repeat); in uv_timer_again() 124 void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat) { in uv_timer_set_repeat() argument 125 handle->repeat = repeat; in uv_timer_set_repeat() 67 uv_timer_start(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat) uv_timer_start() argument [all...] |
/third_party/node/benchmark/buffers/ |
H A D | buffer-bytelength-string.js | 7 repeat: [1, 2, 16, 256], // x16 19 function getInput(type, repeat, encoding) { 20 const original = (repeat === 1) ? chars[type] : chars[type].repeat(repeat); 27 function main({ n, repeat, encoding, type }) { 28 const data = getInput(type, repeat, encoding);
|
/third_party/python/Lib/test/ |
H A D | test_timeit.py | 164 def repeat(self, stmt, setup, repeat=None, number=None): member in TestTimeit 168 if repeat is None: 169 repeat = DEFAULT_REPEAT 171 kwargs['repeat'] = repeat 176 delta_times = t.repeat(**kwargs) 177 self.assertEqual(self.fake_timer.setup_calls, repeat) 178 self.assertEqual(self.fake_timer.count, repeat * number) 179 self.assertEqual(delta_times, repeat * [floa [all...] |
/third_party/libuv/src/ |
H A D | timer.c | 65 handle->repeat = 0; in uv_timer_init() 73 uint64_t repeat) { in uv_timer_start() 88 handle->repeat = repeat; in uv_timer_start() 126 if (handle->repeat) { in uv_timer_again() 128 uv_timer_start(handle, handle->timer_cb, handle->repeat, handle->repeat); in uv_timer_again() 135 void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat) { in uv_timer_set_repeat() argument 136 handle->repeat = repeat; in uv_timer_set_repeat() 70 uv_timer_start(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat) uv_timer_start() argument [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/text/ |
H A D | text_radialgradient_test.cpp | 32 int32_t repeat = 0; in TestTextRadialGradient002() local 36 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestTextRadialGradient002() 44 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestTextRadialGradient002() 52 int32_t repeat = 0; in TestTextRadialGradient003() local 56 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestTextRadialGradient003() 64 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestTextRadialGradient003() 72 int32_t repeat = 1; in TestTextRadialGradient004() local 76 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestTextRadialGradient004() 84 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestTextRadialGradient004() 92 int32_t repeat in TestTextRadialGradient005() local [all...] |
H A D | text_sweepgradient_test.cpp | 37 int32_t repeat = 0; in TestTextSweepGradient002() local 42 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestTextSweepGradient002() 51 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestTextSweepGradient002() 66 int32_t repeat = 0; in TestTextSweepGradient003() local 71 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestTextSweepGradient003() 80 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestTextSweepGradient003() 95 int32_t repeat = 1; in TestTextSweepGradient004() local 100 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestTextSweepGradient004() 109 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestTextSweepGradient004() 124 int32_t repeat in TestTextSweepGradient005() local [all...] |
/third_party/node/benchmark/misc/ |
H A D | getstringwidth.js | 16 ascii: 'foobar'.repeat(100), 17 mixed: 'foo'.repeat(100) + '?' + 'bar'.repeat(100), 18 emojiseq: '????????????????'.repeat(10), 19 fullwidth: '你好'.repeat(150),
|
/third_party/node/test/parallel/ |
H A D | test-http2-backpressure.js | 22 assert.strictEqual(stream.write('A'.repeat(5)), true); 23 assert.strictEqual(stream.write('A'.repeat(40)), false); 24 assert.strictEqual(await event(req, 'data'), 'A'.repeat(5)); 25 assert.strictEqual(await event(req, 'data'), 'A'.repeat(40)); 27 assert.strictEqual(stream.write('A'.repeat(5)), true); 28 assert.strictEqual(stream.write('A'.repeat(40)), false);
|
H A D | test-buffer-alloc.js | 414 assert.strictEqual(Buffer.from('Kio=', encoding).toString(), '*'.repeat(2)); 415 assert.strictEqual(Buffer.from('Kioq', encoding).toString(), '*'.repeat(3)); 417 Buffer.from('KioqKg==', encoding).toString(), '*'.repeat(4)); 419 Buffer.from('KioqKio=', encoding).toString(), '*'.repeat(5)); 421 Buffer.from('KioqKioq', encoding).toString(), '*'.repeat(6)); 423 '*'.repeat(7)); 425 '*'.repeat(8)); 427 '*'.repeat(9)); 429 '*'.repeat(10)); 431 '*'.repeat(1 [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/customcomponent/ |
H A D | customcomponent_radialgradient_test.cpp | 32 int32_t repeat = 0; in TestCustomComponentRadialGradient002() local 36 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestCustomComponentRadialGradient002() 43 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestCustomComponentRadialGradient002() 52 int32_t repeat = 0; in TestCustomComponentRadialGradient003() local 56 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestCustomComponentRadialGradient003() 63 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestCustomComponentRadialGradient003() 72 int32_t repeat = 1; in TestCustomComponentRadialGradient004() local 76 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestCustomComponentRadialGradient004() 83 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestCustomComponentRadialGradient004()
|
H A D | customcomponent_sweepgradient_test.cpp | 37 int32_t repeat = 0; in TestCustomComponentSweepGradient002() local 42 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestCustomComponentSweepGradient002() 51 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestCustomComponentSweepGradient002() 63 int32_t repeat = 0; in TestCustomComponentSweepGradient003() local 68 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestCustomComponentSweepGradient003() 77 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestCustomComponentSweepGradient003() 89 int32_t repeat = 1; in TestCustomComponentSweepGradient004() local 94 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestCustomComponentSweepGradient004() 103 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestCustomComponentSweepGradient004() 115 int32_t repeat in TestCustomComponentSweepGradient005() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/commonattrs/ |
H A D | commonattrs_radialgradient_test.cpp | 32 int32_t repeat = 0; in TestCommonAttrsRadialGradient002() local 36 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestCommonAttrsRadialGradient002() 43 ASSERT_EQ(nodeAPI->getAttribute(row, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestCommonAttrsRadialGradient002() 52 int32_t repeat = 0; in TestCommonAttrsRadialGradient003() local 56 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestCommonAttrsRadialGradient003() 63 ASSERT_EQ(nodeAPI->getAttribute(row, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestCommonAttrsRadialGradient003() 72 int32_t repeat = 1; in TestCommonAttrsRadialGradient004() local 76 ArkUI_NumberValue value[] = {{.f32 = offsetValue}, {.f32 = offsetValue}, {.f32 = offsetValue}, {.i32 = repeat}}; in TestCommonAttrsRadialGradient004() 83 ASSERT_EQ(nodeAPI->getAttribute(row, NODE_RADIAL_GRADIENT)->value[PARAM_3].i32, repeat); in TestCommonAttrsRadialGradient004()
|
H A D | commonattrs_sweepgradient_test.cpp | 37 int32_t repeat = 0; in TestCommonAttrsSweepGradient002() local 42 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestCommonAttrsSweepGradient002() 51 ASSERT_EQ(nodeAPI->getAttribute(row, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestCommonAttrsSweepGradient002() 63 int32_t repeat = 0; in TestCommonAttrsSweepGradient003() local 68 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestCommonAttrsSweepGradient003() 77 ASSERT_EQ(nodeAPI->getAttribute(row, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestCommonAttrsSweepGradient003() 89 int32_t repeat = 1; in TestCommonAttrsSweepGradient004() local 94 {.f32 = endValue}, {.f32 = angleValue}, {.i32 = repeat}}; in TestCommonAttrsSweepGradient004() 103 ASSERT_EQ(nodeAPI->getAttribute(row, NODE_SWEEP_GRADIENT)->value[PARAM_5].i32, repeat); in TestCommonAttrsSweepGradient004() 115 int32_t repeat in TestCommonAttrsSweepGradient005() local [all...] |
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/ |
H A D | vpu_api_mlvec.cpp | 262 st_ref[0].repeat = 0; in vpu_api_mlvec_set_dy_max_tid() 274 st_ref[0].repeat = 0; in vpu_api_mlvec_set_dy_max_tid() 280 st_ref[1].repeat = 0; in vpu_api_mlvec_set_dy_max_tid() 286 st_ref[2].repeat = 0; // st 2 layer 0 - ref in vpu_api_mlvec_set_dy_max_tid() 298 st_ref[0].repeat = 0; in vpu_api_mlvec_set_dy_max_tid() 304 st_ref[1].repeat = 0; in vpu_api_mlvec_set_dy_max_tid() 310 st_ref[2].repeat = 0; // layer 2 in vpu_api_mlvec_set_dy_max_tid() 316 st_ref[3].repeat = 0; // layer 3 in vpu_api_mlvec_set_dy_max_tid() 322 st_ref[4].repeat = 0; // layer 4 in vpu_api_mlvec_set_dy_max_tid() 334 st_ref[0].repeat in vpu_api_mlvec_set_dy_max_tid() [all...] |
/third_party/skia/third_party/externals/tint/src/ |
H A D | source.cc | 56 auto repeat = [&](char c, size_t n) { in operator <<() local 72 repeat(' ', rng.begin.column - 1); in operator <<() 73 repeat('^', std::max<size_t>(rng.end.column - rng.begin.column, 1)); in operator <<() 76 repeat(' ', rng.begin.column - 1); in operator <<() 77 repeat('^', len - (rng.begin.column - 1)); in operator <<() 80 repeat('^', rng.end.column - 1); in operator <<() 83 repeat('^', len); in operator <<()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
H A D | ScalarizeVecAndMatConstructorArgs.cpp | 136 int repeat = std::min(size, originalArg->getNominalSize()); in scalarizeArgs() local 137 size -= repeat; in scalarizeArgs() 138 for (int index = 0; index < repeat; ++index) in scalarizeArgs() 157 int repeat = std::min(size, originalArg->getCols() * originalArg->getRows()); in scalarizeArgs() local 158 size -= repeat; in scalarizeArgs() 159 while (repeat > 0) in scalarizeArgs() 170 repeat--; in scalarizeArgs()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_split_prim.h | 47 int repeat = 0; in util_split_prim_next() local 70 repeat = 1; in util_split_prim_next() 89 repeat = 2; in util_split_prim_next() 93 repeat = 1; in util_split_prim_next() 100 repeat = 2; in util_split_prim_next() 110 s->p_start += (max_verts - repeat); in util_split_prim_next()
|
/third_party/python/Lib/lib2to3/ |
H A D | patcomp.py | 104 repeat = None 106 repeat = nodes[-1] 110 pattern = self.compile_basic(nodes, repeat) 112 if repeat is not None: 113 assert repeat.type == self.syms.Repeater 114 children = repeat.children 138 def compile_basic(self, nodes, repeat=None): 168 assert repeat is None
|
/third_party/skia/third_party/externals/tint/src/diagnostic/ |
H A D | formatter.cc | 96 /// repeat queues the character c to be written to the printer n times. 99 void repeat(char c, size_t n) { in repeat() function 206 state.repeat(' ', style_.tab_width); in format() 229 state.repeat(' ', num_glyphs(1, rng.begin.column)); in format() 230 state.repeat('^', std::max<size_t>( in format() 234 state.repeat(' ', num_glyphs(1, rng.begin.column)); in format() 235 state.repeat('^', num_glyphs(rng.begin.column, line_len + 1)); in format() 238 state.repeat('^', num_glyphs(1, rng.end.column)); in format() 241 state.repeat('^', num_glyphs(1, line_len + 1)); in format()
|
/device/soc/rockchip/rk3399/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 95 st_ref[REF_NUM_0].repeat = 0; in mpi_enc_gen_ref_cfg() 101 st_ref[REF_NUM_1].repeat = 0; in mpi_enc_gen_ref_cfg() 107 st_ref[REF_NUM_2].repeat = 0; in mpi_enc_gen_ref_cfg() 113 st_ref[REF_NUM_3].repeat = 0; in mpi_enc_gen_ref_cfg() 119 st_ref[REF_NUM_4].repeat = 0; in mpi_enc_gen_ref_cfg() 125 st_ref[REF_NUM_5].repeat = 0; in mpi_enc_gen_ref_cfg() 131 st_ref[REF_NUM_6].repeat = 0; in mpi_enc_gen_ref_cfg() 137 st_ref[REF_NUM_7].repeat = 0; in mpi_enc_gen_ref_cfg() 143 st_ref[REF_NUM_8].repeat = 0; in mpi_enc_gen_ref_cfg() 162 st_ref[REF_NUM_0].repeat in mpi_enc_gen_ref_cfg() [all...] |