/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...] |
/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/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);
|
/kernel/linux/linux-5.10/fs/jffs2/ |
H A D | compr_rtime.c | 89 int repeat; in jffs2_rtime_decompress() local 93 repeat = data_in[pos++]; in jffs2_rtime_decompress() 97 if (repeat) { in jffs2_rtime_decompress() 98 if (backoffs + repeat >= outpos) { in jffs2_rtime_decompress() 99 while(repeat) { in jffs2_rtime_decompress() 101 repeat--; in jffs2_rtime_decompress() 104 memcpy(&cpage_out[outpos],&cpage_out[backoffs],repeat); in jffs2_rtime_decompress() 105 outpos+=repeat; in jffs2_rtime_decompress()
|
/kernel/linux/linux-6.6/fs/jffs2/ |
H A D | compr_rtime.c | 89 int repeat; in jffs2_rtime_decompress() local 93 repeat = data_in[pos++]; in jffs2_rtime_decompress() 97 if (repeat) { in jffs2_rtime_decompress() 98 if (backoffs + repeat >= outpos) { in jffs2_rtime_decompress() 99 while(repeat) { in jffs2_rtime_decompress() 101 repeat--; in jffs2_rtime_decompress() 104 memcpy(&cpage_out[outpos],&cpage_out[backoffs],repeat); in jffs2_rtime_decompress() 105 outpos+=repeat; in jffs2_rtime_decompress()
|
/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()
|
/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...] |
/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()
|
/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()
|
/kernel/linux/linux-6.6/sound/core/ |
H A D | ump_convert.c | 33 u16 val, repeat; in upscale_7_to_16bit() local 38 repeat = src & 0x3f; in upscale_7_to_16bit() 39 return val | (repeat << 3) | (repeat >> 3); in upscale_7_to_16bit() 44 u32 val, repeat; in upscale_7_to_32bit() local 49 repeat = src & 0x3f; in upscale_7_to_32bit() 50 return val | (repeat << 19) | (repeat << 13) | in upscale_7_to_32bit() 51 (repeat << 7) | (repeat << in upscale_7_to_32bit() 56 u32 val, repeat; upscale_14_to_32bit() local [all...] |
/kernel/linux/linux-5.10/kernel/power/ |
H A D | suspend_test.c | 78 repeat: in test_wakealarm() 118 goto repeat; in test_wakealarm() 153 char *repeat; in setup_test_suspend() local 162 repeat = strsep(&value, ","); in setup_test_suspend() 163 if (repeat) { in setup_test_suspend() 164 if (kstrtou32(repeat, 0, &test_repeat_count_max)) in setup_test_suspend()
|
/kernel/linux/linux-6.6/kernel/power/ |
H A D | suspend_test.c | 78 repeat: in test_wakealarm() 118 goto repeat; in test_wakealarm() 153 char *repeat; in setup_test_suspend() local 162 repeat = strsep(&value, ","); in setup_test_suspend() 163 if (repeat) { in setup_test_suspend() 164 if (kstrtou32(repeat, 0, &test_repeat_count_max)) in setup_test_suspend()
|