/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...] |
/foundation/resourceschedule/device_standby/services/common/src/ |
H A D | timed_task.cpp | 32 TimedTask::TimedTask(bool repeat, uint64_t interval, bool isExact, bool isIdle) in TimedTask() argument 34 this->repeat = repeat; in TimedTask() 48 TimedTask::TimedTask(bool repeat, uint64_t interval, int type) in TimedTask() argument 50 this->repeat = repeat; in TimedTask() 73 void TimedTask::SetRepeat(bool repeat) in SetRepeat() argument 75 this->repeat = repeat; in SetRepeat() 93 uint64_t WEAK_FUNC TimedTask::CreateTimer(bool repeat, uint64_ argument 101 CreateTimer(bool repeat, uint64_t interval, int type, const std::function<void()>& callBack) CreateTimer() argument 126 RegisterDayNightSwitchTimer(uint64_t& timeId, bool repeat, uint64_t interval, const std::function<void()>& callBack) RegisterDayNightSwitchTimer() argument [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/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/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/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/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...] |
/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...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_system_timer.cpp | 30 WifiSysTimer::WifiSysTimer(bool repeat, uint64_t interval, bool isNoWakeUp, bool isIdle) in WifiSysTimer() argument 32 this->repeat = repeat; in WifiSysTimer() 60 void WifiSysTimer::SetRepeat(bool repeat) in SetRepeat() argument 62 this->repeat = repeat; in SetRepeat()
|
/foundation/communication/dhcp/services/utils/src/ |
H A D | dhcp_system_timer.cpp | 33 DhcpSysTimer::DhcpSysTimer(bool repeat, uint64_t interval, bool isNoWakeUp, bool isIdle) in DhcpSysTimer() argument 35 this->repeat = repeat; in DhcpSysTimer() 63 void DhcpSysTimer::SetRepeat(bool repeat) in SetRepeat() argument 65 this->repeat = repeat; in SetRepeat()
|
/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),
|
/foundation/resourceschedule/device_standby/services/common/include/ |
H A D | timed_task.h | 38 TimedTask(bool repeat, uint64_t interval, bool isExact, bool isIdle = false); 39 TimedTask(bool repeat, uint64_t interval, int type); 43 void SetRepeat(bool repeat) override; 48 static uint64_t CreateTimer(bool repeat, uint64_t interval, bool isExact, bool isIdle, 50 static uint64_t CreateTimer(bool repeat, uint64_t interval, int type, const std::function<void()>& callBack); 52 static bool RegisterDayNightSwitchTimer(uint64_t& timeId, bool repeat, uint64_t interval,
|
/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...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/common/ |
H A D | wifi_system_timer_test.cpp | 63 bool repeat = true;
in HWTEST_F() local 64 timer_->SetRepeat(repeat);
in HWTEST_F() 66 EXPECT_EQ(timer_->repeat, repeat);
in HWTEST_F() 88 bool repeat = true;
in HWTEST_F() local 92 WifiSysTimer WifiSysTimer(repeat, interval, isNoWakeUp, isIdle);
in HWTEST_F()
|
/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()
|