Home
last modified time | relevance | path

Searched refs:ts (Results 1 - 25 of 60) sorted by relevance

123

/foundation/multimedia/media_lite/services/player_lite/impl/player_control/player/fsm/src/
H A Dfsm_common.cpp29 struct timespec ts = { 0, 0 }; in FsmGetCurTimeUs() local
31 (void)clock_gettime(CLOCK_MONOTONIC, &ts); in FsmGetCurTimeUs()
33 uint64_t curT = (((uint64_t)ts.tv_sec) * SEC2USEC) + (((uint64_t)ts.tv_nsec) / USEC2NSEC); in FsmGetCurTimeUs()
53 struct timespec ts = { 0, 0 }; in FsmCondTimewait() local
56 (void)clock_gettime(CLOCK_MONOTONIC, &ts); in FsmCondTimewait()
58 ts.tv_sec = 0; in FsmCondTimewait()
59 ts.tv_nsec = 0; in FsmCondTimewait()
65 ts.tv_sec += (delayNs / SEC2NSEC); in FsmCondTimewait()
68 if (ts in FsmCondTimewait()
[all...]
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
H A Dsys_timer.c94 struct itimerspec ts; in TimerSetTimeout() local
101 (void)memset_s(&ts, sizeof(ts), 0, sizeof(ts)); in TimerSetTimeout()
103 ts.it_value.tv_sec = timeoutMs / NSTACKX_MILLI_TICKS; in TimerSetTimeout()
104 ts.it_value.tv_nsec = (timeoutMs % NSTACKX_MILLI_TICKS) * NSTACKX_NANO_SEC_PER_MILLI_SEC; in TimerSetTimeout()
106 ts.it_interval.tv_sec = ts.it_value.tv_sec; in TimerSetTimeout()
107 ts.it_interval.tv_nsec = ts in TimerSetTimeout()
[all...]
/foundation/resourceschedule/background_task_mgr/services/common/src/
H A Dtime_provider.cpp22 struct timespec ts; in GetCurrentTime() local
23 clock_gettime(type, &ts); in GetCurrentTime()
24 return ((static_cast<int64_t>(ts.tv_sec) * MSEC_PER_SEC) + (static_cast<int64_t>(ts.tv_nsec) / NSEC_PER_MSEC)); in GetCurrentTime()
/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/common/
H A Dbloom_common.h132 const vec2 ts = invTexSize; in bloomDownscaleWeighted() local
136 vec3 colSample = textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y - ts.y), 0).xyz; in bloomDownscaleWeighted()
141 colSample = textureLod(sampler2D(tex, sampl), vec2(uv.x, uv.y - ts.y), 0).xyz; in bloomDownscaleWeighted()
146 colSample = textureLod(sampler2D(tex, sampl), vec2(uv.x + ts.x, uv.y - ts.y), 0).xyz; in bloomDownscaleWeighted()
152 colSample = textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y), 0).xyz; in bloomDownscaleWeighted()
162 colSample = textureLod(sampler2D(tex, sampl), vec2(uv.x + ts.x, uv.y), 0).xyz; in bloomDownscaleWeighted()
168 colSample = textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y + ts in bloomDownscaleWeighted()
262 const vec2 ts = invTexSize; bloomDownscale() local
307 const vec2 ts = invTexSize * 2.0; bloomUpscale() local
[all...]
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/
H A Dsys_timer.c90 struct itimerspec ts; in TimerSetTimeout() local
97 (void)memset_s(&ts, sizeof(ts), 0, sizeof(ts)); in TimerSetTimeout()
99 ts.it_value.tv_sec = timeoutMs / NSTACKX_MILLI_TICKS; in TimerSetTimeout()
100 ts.it_value.tv_nsec = (timeoutMs % NSTACKX_MILLI_TICKS) * NSTACKX_NANO_SEC_PER_MILLI_SEC; in TimerSetTimeout()
102 ts.it_interval.tv_sec = ts.it_value.tv_sec; in TimerSetTimeout()
103 ts.it_interval.tv_nsec = ts in TimerSetTimeout()
[all...]
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/
H A Dtime_adapter.c40 struct timespec ts = {0, 0}; in SAMGR_GetProcessTime() local
41 clock_gettime(CLOCK_REALTIME, &ts); in SAMGR_GetProcessTime()
42 return ((ts.tv_sec * MS_PER_SECOND) + (ts.tv_nsec / NS_PER_MS)); in SAMGR_GetProcessTime()
/foundation/ability/ability_runtime/test/unittest/lifecycle_test/
H A Dlifecycle_test_base.h89 struct timespec ts = { 0, 0 }; in SemTimedWaitMillis() local
90 clock_gettime(CLOCK_REALTIME, &ts); in SemTimedWaitMillis()
91 msecs = msecs * MILLISECONDS * MILLISECONDS + ts.tv_nsec; in SemTimedWaitMillis()
93 ts.tv_sec += (add + secs); in SemTimedWaitMillis()
94 ts.tv_nsec = msecs % NANOSECONDS; in SemTimedWaitMillis()
95 return sem_timedwait(&sem, &ts); in SemTimedWaitMillis()
/foundation/resourceschedule/ffrt/src/sync/
H A Drecord_condition_variable.h28 timespec ts; variable
31 ts.tv_sec = std::chrono::duration_cast<std::chrono::seconds>(ns).count();
32 ns -= std::chrono::seconds(ts.tv_sec);
33 ts.tv_nsec = static_cast<long>(ns.count());
35 auto ret = ffrt_cond_timedwait(&cv_, lk.mutex()->GetMutex(), &ts);
/foundation/multimedia/media_lite/services/player_lite/impl/player_control/player/
H A Dliteplayer_comm.cpp42 struct timespec ts = { 0, 0 }; in PlayerControlGetCurRelativeTime() local
43 (void)clock_gettime(CLOCK_MONOTONIC, &ts); in PlayerControlGetCurRelativeTime()
44 uint64_t curTime = ((uint64_t)ts.tv_sec) * AV_SEC2MS_SCALE + ((uint64_t)ts.tv_nsec) / AV_NS2MS_SCALE; in PlayerControlGetCurRelativeTime()
/foundation/window/window_manager/window_scene/intention_event/utils/src/
H A Dutil.cpp33 struct timespec ts = { 0, 0 }; in GetSysClockTime() local
34 if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { in GetSysClockTime()
38 return (ts.tv_sec * 1000 * 1000) + (ts.tv_nsec / 1000); // 1000 is for convert time units. in GetSysClockTime()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/
H A Drs_vsync_client_darwin.cpp61 struct timespec ts; in VsyncThreadMain() local
62 clock_gettime(CLOCK_MONOTONIC, &ts); in VsyncThreadMain()
63 int64_t now = ts.tv_sec * SEC_TO_NANOSEC + ts.tv_nsec; in VsyncThreadMain()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/
H A Drs_vsync_client_windows.cpp61 struct timespec ts; in VsyncThreadMain() local
62 clock_gettime(CLOCK_MONOTONIC, &ts); in VsyncThreadMain()
63 int64_t now = ts.tv_sec * SEC_TO_NANOSEC + ts.tv_nsec; in VsyncThreadMain()
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/
H A Drender_blur_common.h250 const vec2 ts = invTexSize; in SoftDownscaleRGB() local
252 vec3 color = textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y - ts.y), 0).xyz * diagCoeff; in SoftDownscaleRGB()
253 color += textureLod(sampler2D(tex, sampl), vec2(uv.x, uv.y - ts.y), 0).xyz * stepCoeff; in SoftDownscaleRGB()
254 color += textureLod(sampler2D(tex, sampl), vec2(uv.x + ts.x, uv.y - ts.y), 0).xyz * diagCoeff; in SoftDownscaleRGB()
256 color += textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y), 0).xyz * stepCoeff; in SoftDownscaleRGB()
258 color += textureLod(sampler2D(tex, sampl), vec2(uv.x + ts.x, uv.y), 0).xyz * stepCoeff; in SoftDownscaleRGB()
260 color += textureLod(sampler2D(tex, sampl), vec2(uv.x - ts.x, uv.y + ts in SoftDownscaleRGB()
372 const vec2 ts = invTexSize; SoftDownscaleRGBLayer() local
[all...]
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dtime_util.cpp47 struct timespec ts; in GetMicroTickCount() local
48 clock_gettime(CLOCK_MONOTONIC, &ts); in GetMicroTickCount()
49 return (ts.tv_sec * SEC_TO_MICROSEC + ts.tv_nsec / MICROSEC_TO_NANOSEC); in GetMicroTickCount()
54 struct timespec ts; in GetSysTimestamp() local
55 clock_gettime(CLOCK_MONOTONIC, &ts); in GetSysTimestamp()
56 return ts.tv_sec * SEC_TO_NANOSEC + ts.tv_nsec; in GetSysTimestamp()
/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gatt_utils.cpp50 struct timespec ts = {}; in GetBootMillis() local
51 clock_gettime(CLOCK_BOOTTIME, &ts); in GetBootMillis()
52 return ts.tv_sec * MS_PER_SECOND + ts.tv_nsec / NS_PER_MS; in GetBootMillis()
/foundation/resourceschedule/ffrt/interfaces/kits/cpp/
H A Dcondition_variable.h107 timespec ts; variable
110 ts.tv_sec = std::chrono::duration_cast<std::chrono::seconds>(ns).count();
111 ns -= std::chrono::seconds(ts.tv_sec);
112 ts.tv_nsec = static_cast<long>(ns.count());
114 auto ret = ffrt_cond_timedwait(this, lk.mutex(), &ts);
/foundation/ability/form_fwk/services/src/
H A Dform_util.cpp142 struct timespec ts; in GetCurrentNanosecond() local
143 ts.tv_sec = 0; in GetCurrentNanosecond()
144 ts.tv_nsec = 0; in GetCurrentNanosecond()
145 clock_gettime(CLOCK_MONOTONIC, &ts); in GetCurrentNanosecond()
146 return (ts.tv_sec * SEC_TO_NANOSEC + ts.tv_nsec); in GetCurrentNanosecond()
154 struct timespec ts; in GetCurrentMillisecond() local
155 clock_gettime(CLOCK_REALTIME, &ts); in GetCurrentMillisecond()
156 return (ts.tv_sec * SEC_TO_MILLISEC + ts in GetCurrentMillisecond()
[all...]
/foundation/multimodalinput/input/service/event_resample/test/
H A Devent_resample_test.cpp822 EventResample::TouchState ts; in HWTEST_F() local
823 ts.deviceId = 9; in HWTEST_F()
824 ts.source = 8; in HWTEST_F()
825 ts.historyCurrent = 3; in HWTEST_F()
826 ts.historySize = 4; in HWTEST_F()
854 EventResample::TouchState ts; in HWTEST_F() local
855 ts.deviceId = 5; in HWTEST_F()
856 ts.source = 2; in HWTEST_F()
857 ts.historyCurrent = 3; in HWTEST_F()
858 ts in HWTEST_F()
885 EventResample::TouchState ts; HWTEST_F() local
930 EventResample::TouchState ts; HWTEST_F() local
960 EventResample::TouchState ts; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/adapter/ohos/tools/raw_input_injector/
H A Dinjector_utils.cpp33 struct timespec ts = { 0, 0 }; in GetSysClockTime() local
34 if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { in GetSysClockTime()
37 return (ts.tv_sec * TIME_TRANSITION * TIME_TRANSITION) + (ts.tv_nsec / TIME_TRANSITION); in GetSysClockTime()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/test/unittest/
H A Ddistributeddata_dfx_ut_test.cpp211 auto ts = Reporter::GetInstance()->TrafficStatistic(); in HWTEST_F() local
212 EXPECT_NE(nullptr, ts); in HWTEST_F()
214 auto tsRet = ts->Report(tss); in HWTEST_F()
442 auto ts = Reporter::GetInstance()->TrafficStatistic(); in HWTEST_F() local
443 EXPECT_NE(nullptr, ts); in HWTEST_F()
445 auto tsRet = ts->Report(tss); in HWTEST_F()
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtcp/src/
H A Drtcp.cpp121 char ts[30] = {0}; in GetNtpStamp() local
126 if (strftime(ts, sizeof(ts), "%Y-%m-%d %H:%M:%S", tm) < 0) { in GetNtpStamp()
129 if (sprintf_s(ts + strlen(ts), sizeof(ts) - strlen(ts), ".%06lld", static_cast<long long>(tv.tv_usec)) < 0) { in GetNtpStamp()
133 return std::string(ts); in GetNtpStamp()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dpower_device.cpp311 struct timespec ts = {}; in Start() local
312 clock_gettime(CLOCK_BOOTTIME, &ts); in Start()
313 deadLineMs_ = ts.tv_sec * MS_PER_SECOND + ts.tv_nsec / NS_PER_MS + ms; in Start()
325 struct timespec ts = {}; in GetRemainMs() local
326 clock_gettime(CLOCK_BOOTTIME, &ts); in GetRemainMs()
327 uint64_t presentMs = ts.tv_sec * MS_PER_SECOND + ts.tv_nsec / NS_PER_MS; in GetRemainMs()
/foundation/multimodalinput/input/frameworks/proxy/events/test/
H A Dinput_manager_filter_manual_test.cpp293 struct timespec ts; in WaitPointerEnd() local
294 int32_t ret = clock_gettime(CLOCK_REALTIME, &ts); in WaitPointerEnd()
297 ts.tv_sec += waitForSeconds; in WaitPointerEnd()
298 ret = sem_timedwait(&sem, &ts); in WaitPointerEnd()
369 struct timespec ts; in WaitKeyEnd() local
370 int32_t ret = clock_gettime(CLOCK_REALTIME, &ts); in WaitKeyEnd()
373 ts.tv_sec += waitForSeconds; in WaitKeyEnd()
374 ret = sem_timedwait(&sem, &ts); in WaitKeyEnd()
/foundation/ability/ability_lite/services/abilitymgr_lite/tools/src/
H A Dability_tool.cpp230 struct timespec ts = { 0, 0 }; in Dump() local
231 clock_gettime(CLOCK_REALTIME, &ts); in Dump()
232 ts.tv_sec += WAIT_TIMEOUT; in Dump()
233 sem_timedwait(&g_sem, &ts); in Dump()
/foundation/ability/ability_lite/services/abilitymgr_lite/unittest/utils/
H A Dability_test_helper.cpp237 struct timespec ts = {}; in SemWait() local
238 clock_gettime(CLOCK_REALTIME, &ts); in SemWait()
239 ts.tv_sec += WAIT_TIMEOUT; in SemWait()
240 sem_timedwait(&g_sem, &ts); in SemWait()

Completed in 13 milliseconds

123