/device/google/atv/audio_proxy/ |
D | AudioProxyStreamOut.cpp | 33 struct timespec ts; in getPresentationPosition() local 35 reinterpret_cast<uint64_t*>(frames), &ts); in getPresentationPosition() 37 timestamp->tvSec = ts.tv_sec; in getPresentationPosition() 38 timestamp->tvNSec = ts.tv_nsec; in getPresentationPosition() 100 struct timespec ts = {0, 0}; in getMmapPosition() local 101 mStream->v2->get_mmap_position(mStream->v2, &frames, &ts); in getMmapPosition() 103 position.timestamp = {ts.tv_sec, ts.tv_nsec}; in getMmapPosition()
|
/device/linaro/hikey/power/ |
D | power_hikey.c | 150 struct timespec ts; in gettime_ns() local 152 clock_gettime(CLOCK_MONOTONIC, &ts); in gettime_ns() 153 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in gettime_ns() 158 struct timespec ts; in nanosleep_ns() local 159 ts.tv_sec = ns/NSEC_PER_SEC; in nanosleep_ns() 160 ts.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_ns() 161 nanosleep(&ts, NULL); in nanosleep_ns()
|
/device/google/cuttlefish/host/libs/input_connector/ |
D | socket_input_connector.cpp | 271 auto& ts = ts_it->second; in SendTouchEvent() local 272 ts.WriteEvents(std::move(buffer)); in SendTouchEvent() 289 auto& ts = ts_it->second; in SendMultiTouchEvent() local 296 auto is_new_contact = !ts.HasSlot(this, this_id); in SendMultiTouchEvent() 297 auto was_down = ts.NumActiveSlots() > 0; in SendMultiTouchEvent() 300 auto this_slot = ts.GetOrAcquireSlot(this, this_id); in SendMultiTouchEvent() 319 ts.ReleaseSlot(this, this_id); in SendMultiTouchEvent() 322 if (was_down && ts.NumActiveSlots() == 0) { in SendMultiTouchEvent() 328 ts.WriteEvents(std::move(buffer)); in SendMultiTouchEvent()
|
/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | atchannel.c | 107 struct timespec ts; in sleepMsec() local 110 ts.tv_sec = (msec / 1000); in sleepMsec() 111 ts.tv_nsec = (msec % 1000) * 1000 * 1000; in sleepMsec() 114 err = nanosleep (&ts, &ts); in sleepMsec() 677 struct timespec ts; in at_send_command_full_nolock() local 696 setTimespecRelative(&ts, timeoutMsec); in at_send_command_full_nolock() 701 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts); in at_send_command_full_nolock()
|
/device/generic/goldfish/audio/ |
D | util.cpp | 233 TimeSpec ts; in nsecs2TimeSpec() local 234 ts.tvSec = ns2s(ns); in nsecs2TimeSpec() 235 ts.tvNSec = ns - s2ns(ts.tvSec); in nsecs2TimeSpec() 236 return ts; in nsecs2TimeSpec()
|
D | stream_out.cpp | 106 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) const { in getPresentationPosition() 111 ts = util::nsecs2TimeSpec(systemTime(SYSTEM_TIME_MONOTONIC)); in getPresentationPosition() 114 return mSink->getPresentationPosition(frames, ts); in getPresentationPosition() 514 TimeSpec ts{}; in getPresentationPosition() local 515 const Result r = w->getPresentationPosition(frames, ts); in getPresentationPosition() 517 (unsigned long long) frames, (long long) util::timespec2Nsecs(ts)); in getPresentationPosition() 518 _hidl_cb(r, frames, ts); in getPresentationPosition()
|
D | util.h | 56 inline constexpr nsecs_t timespec2Nsecs(const TimeSpec &ts) { in timespec2Nsecs() argument 57 return s2ns(ts.tvSec) + ts.tvNSec; in timespec2Nsecs()
|
D | device_port_sink.cpp | 88 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition() 104 ts = util::nsecs2TimeSpec(nowNs); in getPresentationPosition() 272 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition() 288 ts = util::nsecs2TimeSpec(nowNs); in getPresentationPosition()
|
/device/google/trout/tools/tracing/time_utility/ |
D | ClocktimeMain.cpp | 49 struct timespec ts; in GetTime() local 50 int res = clock_gettime(type, &ts); in GetTime() 52 *ts_ns = s2ns(ts.tv_sec) + ts.tv_nsec; in GetTime()
|
/device/generic/goldfish/dhcp/client/ |
D | dhcpclient.cpp | 225 struct timespec ts; in waitAndReceive() local 226 ts.tv_sec = timeout / 1000; in waitAndReceive() 227 ts.tv_nsec = (timeout - ts.tv_sec * 1000) * 1000000; in waitAndReceive() 232 int res = ::ppoll(&fds, 1, &ts, &pollSignalMask); in waitAndReceive()
|
/device/google/contexthub/util/stm32_flash/ |
D | flash.c | 93 struct timespec ts; in main() local 171 ts.tv_sec = 0; in main() 172 ts.tv_nsec = 200000000; in main() 173 nanosleep(&ts, NULL); in main()
|
/device/google/comet/sensors/ |
D | sensors_dummy.c | 120 struct timespec ts; in now_ns() local 121 clock_gettime(CLOCK_MONOTONIC, &ts); in now_ns() 122 return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec; in now_ns()
|
/device/google/akita/sensors/ |
D | sensors_dummy.c | 120 struct timespec ts; in now_ns() local 121 clock_gettime(CLOCK_MONOTONIC, &ts); in now_ns() 122 return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec; in now_ns()
|
/device/google/cuttlefish/guest/hals/ril/reference-libril/ |
D | ril_event.cpp | 98 struct timespec ts; in getNow() local 99 clock_gettime(CLOCK_MONOTONIC, &ts); in getNow() 100 tv->tv_sec = ts.tv_sec; in getNow() 101 tv->tv_usec = ts.tv_nsec/1000; in getNow()
|
/device/amlogic/yukawa/hal/audio/ |
D | audio_hw.c | 118 static void timestamp_adjust(struct timespec* ts, ssize_t frames, uint32_t sampling_rate) { in timestamp_adjust() argument 123 ts->tv_nsec += adj_nsec; in timestamp_adjust() 124 while (ts->tv_nsec > 1E9L) { in timestamp_adjust() 125 ts->tv_sec++; in timestamp_adjust() 126 ts->tv_nsec -= 1E9L; in timestamp_adjust() 128 if (ts->tv_nsec < 0) { in timestamp_adjust() 129 ts->tv_sec--; in timestamp_adjust() 130 ts->tv_nsec += 1E9L; in timestamp_adjust()
|
/device/linaro/dragonboard/audio/ |
D | audio_hw.c | 91 static void timestamp_adjust(struct timespec* ts, ssize_t frames, uint32_t sampling_rate) { in timestamp_adjust() argument 96 ts->tv_nsec += adj_nsec; in timestamp_adjust() 97 while (ts->tv_nsec > 1E9L) { in timestamp_adjust() 98 ts->tv_sec++; in timestamp_adjust() 99 ts->tv_nsec -= 1E9L; in timestamp_adjust() 101 if (ts->tv_nsec < 0) { in timestamp_adjust() 102 ts->tv_sec--; in timestamp_adjust() 103 ts->tv_nsec += 1E9L; in timestamp_adjust()
|
/device/google/comet-kernels/6.1/24Q3-12157876/kernel-headers/drm/ |
D | samsung_drm.h | 28 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_EOTF_V2P2_LUT_LEN]; member 40 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_OETF_V2P2_LUT_LEN]; member 69 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_TM_V2P2_LUT_LEN]; member
|
/device/google/caimito-kernels/6.1/24Q3-12157876/kernel-headers/drm/ |
D | samsung_drm.h | 28 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_EOTF_V2P2_LUT_LEN]; member 40 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_OETF_V2P2_LUT_LEN]; member 69 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_TM_V2P2_LUT_LEN]; member
|
/device/google/akita-kernels/5.15/24Q3-12065098/kernel-headers/drm/ |
D | samsung_drm.h | 28 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_EOTF_V2P2_LUT_LEN]; member 40 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_OETF_V2P2_LUT_LEN]; member 69 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_TM_V2P2_LUT_LEN]; member
|
/device/google/comet-kernels/6.1/24Q3-12157876/original-kernel-headers/drm/ |
D | samsung_drm.h | 40 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_EOTF_V2P2_LUT_LEN]; member 65 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_OETF_V2P2_LUT_LEN]; member 130 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_TM_V2P2_LUT_LEN]; member
|
/device/google/shusky-kernels/5.15/24Q3-12065098/kernel-headers/drm/ |
D | samsung_drm.h | 28 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_EOTF_V2P2_LUT_LEN]; member 40 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_OETF_V2P2_LUT_LEN]; member 69 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_TM_V2P2_LUT_LEN]; member
|
/device/google/shusky-kernels/5.15/24Q3-12065098/original-kernel-headers/drm/ |
D | samsung_drm.h | 40 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_EOTF_V2P2_LUT_LEN]; member 65 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_OETF_V2P2_LUT_LEN]; member 130 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_TM_V2P2_LUT_LEN]; member
|
/device/google/akita-kernels/5.15/24Q3-12065098/original-kernel-headers/drm/ |
D | samsung_drm.h | 40 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_EOTF_V2P2_LUT_LEN]; member 65 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_OETF_V2P2_LUT_LEN]; member 130 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_TM_V2P2_LUT_LEN]; member
|
/device/google/caimito-kernels/6.1/24Q3-12157876/original-kernel-headers/drm/ |
D | samsung_drm.h | 40 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_EOTF_V2P2_LUT_LEN]; member 65 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_OETF_V2P2_LUT_LEN]; member 130 struct hdr_v2p2_element ts[DRM_SAMSUNG_HDR_TM_V2P2_LUT_LEN]; member
|
/device/google/cuttlefish/common/libs/utils/ |
D | unique_resource_allocator.h | 198 std::optional<ReservationSet> TakeAll(const Container& ts) { in TakeAll() argument 200 for (const auto& t : ts) { in TakeAll() 206 for (const auto& t : ts) { in TakeAll()
|