Home
last modified time | relevance | path

Searched refs:idle (Results 1 - 25 of 108) sorted by relevance

12345

/third_party/node/test/parallel/
H A Dtest-performance-eventlooputil.js18 assert.deepStrictEqual(elu, { idle: 0, active: 0, utilization: 0 });
20 { idle: 0, active: 0, utilization: 0 });
22 { idle: 0, active: 0, utilization: 0 });
35 // Force idle time to accumulate before allowing test to continue.
36 if (elu1.idle <= 0)
46 assert.strictEqual(elu2.idle, 0);
47 assert.strictEqual(elu4.idle, 0);
62 const sum = elu1.idle + elu1.active;
64 assert.ok(sum >= elu1.idle && sum >= elu1.active,
65 `idle
[all...]
/third_party/node/lib/internal/perf/
H A Devent_loop_utilization.js11 return { idle: 0, active: 0, utilization: 0 };
15 const idle = util1.idle - util2.idle;
17 return { idle, active, utilization: active / (idle + active) };
20 const idle = nodeTiming.idleTime;
21 const active = now() - ls - idle;
24 return { idle, active, utilization: active / (idle
[all...]
/test/xts/acts/multimedia/media/media_js_standard/
H A DAVRecorderTestBase.js40 export async function idle(avRecorder) {
56 IDLE : 'idle',
356 console.info(`case avRecorderWithCallBack is idle`);
357 expect(avRecorder.state).assertEqual("idle");
441 avRecorder = await idle(avRecorder)
447 avRecorder = await idle(avRecorder);
463 avRecorder = await idle(avRecorder);
480 avRecorder = await idle(avRecorder);
495 avRecorder = await idle(avRecorder);
511 avRecorder = await idle(avRecorde
[all...]
H A DAVPlayerTestBase.js20 IDLE : 'idle',
490 async function idle(src, avPlayer) {
505 avPlayer = await idle(src, avPlayer)
534 avPlayer = await idle(src, avPlayer)
560 avPlayer = await idle(src, avPlayer)
567 avPlayer = await idle(src, avPlayer)
636 avPlayer = await idle(src, avPlayer)
736 avPlayer = await idle(src, avPlayer)
795 avPlayer = await idle(src, avPlayer)
821 // step 2: idle
[all...]
/foundation/arkui/ace_engine/test/unittest/core/accessibility/
H A Daccessibility_manager_ng_test_ng.cpp91 accessibilityManagerNg.hoverState_.idle = false; in HWTEST_F()
96 accessibilityManagerNg.hoverState_.idle = true; in HWTEST_F()
156 accessibilityManagerNg.hoverState_.idle = false; in HWTEST_F()
158 accessibilityManagerNg.hoverState_.idle = true; in HWTEST_F()
184 accessibilityManagerNg.hoverState_.idle = false; in HWTEST_F()
187 EXPECT_EQ(accessibilityManagerNg.hoverState_.idle, false); in HWTEST_F()
198 EXPECT_EQ(accessibilityManagerNg.hoverState_.idle, false); in HWTEST_F()
201 accessibilityManagerNg.hoverState_.idle = false; in HWTEST_F()
204 accessibilityManagerNg.hoverState_.idle = true; in HWTEST_F()
208 accessibilityManagerNg.hoverState_.idle in HWTEST_F()
[all...]
/third_party/libuv/src/unix/
H A Dtcp.c456 int idle; in uv__tcp_keepalive() local
460 (void) &idle; in uv__tcp_keepalive()
479 * - By default, the first keep-alive probe is sent out after a TCP connection is idle for two hours. in uv__tcp_keepalive()
496 idle = delay; in uv__tcp_keepalive()
498 if (idle < 10) in uv__tcp_keepalive()
499 idle = 10; in uv__tcp_keepalive()
501 if (idle > 10*24*60*60) in uv__tcp_keepalive()
502 idle = 10*24*60*60; in uv__tcp_keepalive()
507 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle))) in uv__tcp_keepalive()
[all...]
/third_party/node/lib/internal/
H A Dworker.js503 return { idle: 0, active: 0, utilization: 0 };
510 return { idle: 0, active: 0, utilization: 0 };
514 const idle = util1.idle - util2.idle;
516 return { idle, active, utilization: active / (idle + active) };
519 const idle = this[kHandle].loopIdleTime();
525 const active = now() - this[kLoopStartTime] - idle;
528 return { idle, activ
[all...]
/third_party/libuv/test/
H A Dtest-tcp-oob.c34 static uv_idle_t idle; variable
47 static void idle_cb(uv_idle_t* idle) { in idle_cb() argument
54 uv_close((uv_handle_t*) idle, NULL); in idle_cb()
66 ASSERT_OK(uv_idle_start(&idle, idle_cb)); in read_cb()
123 ASSERT_OK(uv_idle_init(loop, &idle)); in TEST_IMPL()
H A Dtest-poll-oob.c37 static uv_idle_t idle; variable
55 static void idle_cb(uv_idle_t* idle) { in idle_cb() argument
65 uv_close((uv_handle_t*) idle, NULL); in idle_cb()
163 ASSERT_OK(uv_idle_start(&idle, idle_cb)); in connection_cb()
178 ASSERT_OK(uv_idle_init(loop, &idle)); in TEST_IMPL()
H A Dtest-handle-fileno.c55 uv_idle_t idle; in TEST_IMPL() local
61 r = uv_idle_init(loop, &idle); in TEST_IMPL()
63 r = uv_fileno((uv_handle_t*) &idle, &fd); in TEST_IMPL()
65 uv_close((uv_handle_t*) &idle, NULL); in TEST_IMPL()
H A Dtest-queue-foreach-delete.c122 DEFINE_GLOBALS_AND_CBS(idle, uv_idle_t* handle)
176 INIT_AND_START(idle, loop); in TEST_IMPL()
194 END_ASSERTS(idle); in TEST_IMPL()
/third_party/node/test/node-api/test_uv_loop/
H A Dtest_uv_loop.cc30 uv_idle_t* idle = new uv_idle_t; in SetImmediate() local
31 uv_idle_init(loop, idle); in SetImmediate()
32 uv_idle_start(idle, [](uv_idle_t* idle) { in SetImmediate()
33 uv_close(reinterpret_cast<uv_handle_t*>(idle), [](uv_handle_t* handle) { in SetImmediate()
/third_party/node/test/sequential/
H A Dtest-worker-eventlooputil.js50 // Force some idle time to accumulate before proceeding with test.
51 if (eventLoopUtilization().idle <= 0)
67 { idle: 0, active: 0, utilization: 0 });
88 // Cutting the idle time in half since it's possible that the call took a
90 assert.ok(wElu.idle >= 25, `${wElu.idle} < 25`);
113 return elu.idle + elu.active;
/third_party/backends/backend/escl/
H A Descl_status.c35 struct idle struct
51 struct idle *mem = (struct idle *)userp; in memory_callback_s()
200 struct idle *var = NULL; in escl_status()
213 var = (struct idle*)calloc(1, sizeof(struct idle)); in escl_status()
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_gpu_load.c30 * frequency and the "busy" or "idle" counter is incremented based on
79 p_atomic_inc(&counters->named.field.idle); \
172 unsigned idle = p_atomic_read(&rscreen->mmio_counters.array[busy_index + 1]); in r600_read_mmio_counter() local
174 return busy | ((uint64_t)idle << 32); in r600_read_mmio_counter()
182 unsigned idle = (end >> 32) - (begin >> 32); in r600_end_mmio_counter() local
190 if (idle || busy) { in r600_end_mmio_counter()
191 return busy*100 / (busy + idle); in r600_end_mmio_counter()
/third_party/python/PCbuild/
H A Didle.bat2 rem start idle
3 rem Usage: idle [-d]
16 set cmd=%exedir%\%exe% %PCBUILD%\..\Lib\idlelib\idle.py %1 %2 %3 %4 %5 %6 %7 %8 %9
/third_party/libwebsockets/lib/event-libs/glib/
H A Dglib.c76 if (lws_gs_valid(pt_to_priv_glib(pt)->idle)) in lws_glib_set_idle()
79 pt_to_priv_glib(pt)->idle.gs = g_idle_source_new(); in lws_glib_set_idle()
80 if (!pt_to_priv_glib(pt)->idle.gs) in lws_glib_set_idle()
83 g_source_set_callback(pt_to_priv_glib(pt)->idle.gs, in lws_glib_set_idle()
85 pt_to_priv_glib(pt)->idle.tag = g_source_attach( in lws_glib_set_idle()
86 pt_to_priv_glib(pt)->idle.gs, pt_to_g_main_context(pt)); in lws_glib_set_idle()
144 if (!lws_gs_valid(pt_to_priv_glib(pt)->idle)) in lws_glib_dispatch()
220 * For glib, this disables the idle callback. Otherwise we keep in lws_glib_idle_timer_cb()
223 * We reenable the idle callback on the next network or scheduled event in lws_glib_idle_timer_cb()
226 lws_gs_destroy(pt_to_priv_glib(pt)->idle); in lws_glib_idle_timer_cb()
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_gpu_load.c28 * frequency and the "busy" or "idle" counter is incremented based on
77 p_atomic_inc(&counters->named.field.idle); \
185 unsigned idle = p_atomic_read(&sscreen->mmio_counters.array[busy_index + 1]); in si_read_mmio_counter() local
187 return busy | ((uint64_t)idle << 32); in si_read_mmio_counter()
194 unsigned idle = (end >> 32) - (begin >> 32); in si_end_mmio_counter() local
202 if (idle || busy) { in si_end_mmio_counter()
203 return busy * 100 / (busy + idle); in si_end_mmio_counter()
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/
H A Dhgm_idle_detector.cpp99 bool idle = true; in GetSurfaceIdleState() local
104 idle = false; in GetSurfaceIdleState()
109 return idle; in GetSurfaceIdleState()
/foundation/resourceschedule/ffrt/src/eu/
H A Dworker_thread.h78 return idle; in Idle()
83 this->idle = var; in SetIdle()
196 std::atomic_bool idle; member in ffrt::WorkerThread
/third_party/node/benchmark/perf_hooks/
H A Dbench-eventlooputil.js44 assert(elu.active + elu.idle > 0);
57 assert(elu.active + elu.idle > 0);
/third_party/libwebsockets/lib/event-libs/libuv/
H A Dlibuv.c61 struct lws_pt_eventlibs_libuv, idle); in lws_uv_idle()
85 /* if there is nobody who needs service forcing, shut down idle */ in lws_uv_idle()
155 uv_idle_start(&ptpriv->idle, lws_uv_idle); in lws_io_cb()
694 uv_idle_stop(&pt_to_priv_uv(pt)->idle); in elops_destroy_pt_uv()
695 uv_close((uv_handle_t *)&pt_to_priv_uv(pt)->idle, lws_uv_close_cb_sa); in elops_destroy_pt_uv()
746 uv_idle_init(loop, &ptpriv->idle); in elops_init_pt_uv()
747 LWS_UV_REFCOUNT_STATIC_HANDLE_NEW(&ptpriv->idle, pt); in elops_init_pt_uv()
748 uv_idle_start(&ptpriv->idle, lws_uv_idle); in elops_init_pt_uv()
/foundation/multimodalinput/input/test/unittest/common/src/
H A Dsystem_info.cpp159 second.idle + second.lowait + second.irq + second.softirq); in GetCpuUsage()
161 first.idle + first.lowait + first.irq + first.softirq); in GetCpuUsage()
189 ss >> info.name >> info.user >> info.nice >> info.system >> info.idle >> info.lowait \ in GetSystemCpuStatInfo()
223 return (occupy.user + occupy.nice + occupy.system + occupy.idle); in GetSystemTotalOccupy()
/third_party/mbedtls/programs/ssl/
H A Dssl_client2.c2232 ret = idle(&server_fd, &timer, ret); in main()
2234 ret = idle(&server_fd, ret); in main()
2475 idle(&server_fd, &timer, ret); in main()
2477 idle(&server_fd, ret); in main()
2524 idle(&server_fd, &timer, ret); in main()
2526 idle(&server_fd, ret); in main()
2552 idle(&server_fd, &timer, ret); in main()
2554 idle(&server_fd, ret); in main()
2614 idle(&server_fd, &timer, ret); in main()
2616 idle( in main()
[all...]
/third_party/python/Lib/idlelib/
H A Didle.bat4 start "IDLE" "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9

Completed in 16 milliseconds

12345