Home
last modified time | relevance | path

Searched refs:timespec (Results 1 – 25 of 107) sorted by relevance

12345

/frameworks/base/libs/androidfw/include/androidfw/
DZipUtils.h72 static inline void zipTimeToTimespec(uint32_t when, struct tm* timespec) { in zipTimeToTimespec() argument
75 memset(timespec, 0, sizeof(struct tm)); in zipTimeToTimespec()
76 timespec->tm_year = ((date >> 9) & 0x7F) + 80; // Zip is years since 1980 in zipTimeToTimespec()
77 timespec->tm_mon = ((date >> 5) & 0x0F) - 1; in zipTimeToTimespec()
78 timespec->tm_mday = date & 0x1F; in zipTimeToTimespec()
80 timespec->tm_hour = (when >> 11) & 0x1F; in zipTimeToTimespec()
81 timespec->tm_min = (when >> 5) & 0x3F; in zipTimeToTimespec()
82 timespec->tm_sec = (when & 0x1F) << 1; in zipTimeToTimespec()
83 timespec->tm_isdst = -1; in zipTimeToTimespec()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dclock_ns.h14 static inline timespec GetSystemClock() { in GetSystemClock()
15 timespec t; in GetSystemClock()
20 static inline timespec GetSystemClockRaw() { in GetSystemClockRaw()
21 timespec t; in GetSystemClockRaw()
27 timespec t = GetSystemClock(); in GetSystemClockNs()
33 timespec t = GetSystemClockRaw(); in GetSystemClockRawNs()
48 static inline timespec NsToTimespec(int64_t ns) { in NsToTimespec()
49 timespec t; in NsToTimespec()
/frameworks/libs/binary_translation/kernel_api/riscv64/
Dguest_types.h73 CHECK_STRUCT_LAYOUT(timespec, 128, 64);
74 CHECK_FIELD_LAYOUT(timespec, tv_sec, 0, 64);
75 CHECK_FIELD_LAYOUT(timespec, tv_nsec, 64, 64);
89 timespec st_atim;
90 timespec st_mtim;
91 timespec st_ctim;
/frameworks/av/media/libaaudio/src/utility/
DAudioClock.h35 struct timespec time;
55 struct timespec time;
84 struct timespec time;
/frameworks/av/media/libaaudio/examples/utils/
DAAudioExampleUtils.h111 void convertNanosecondsToTimespec(int64_t nanoseconds, struct timespec *time) { in convertNanosecondsToTimespec()
119 struct timespec time;
163 struct timespec *timeout, void *addr2, int val3) { in sys_futex()
177 android::status_t futex_wait(void *addr, int current, struct timespec *time) { in futex_wait()
202 struct timespec time; in wait()
/frameworks/av/services/audioflinger/fastpath/
DFastThread.h52 struct timespec mOldTs{};
70 struct timespec mOldLoad; // previous value of clock_gettime(CLOCK_THREAD_CPUTIME_ID)
81 struct timespec mMeasuredWarmupTs{}; // how long did it take for warmup to complete
DFastThread.cpp58 const struct timespec req = { in threadLoop()
182 struct timespec newTs; in threadLoop()
276 struct timespec newLoad; in threadLoop()
/frameworks/av/media/codec2/vndk/platform/
DC2SurfaceSyncObj.cpp30 static inline void timespec_add_ms(timespec& ts, size_t ms) { in timespec_add_ms()
45 static inline int timespec_compare(const timespec& lhs, const timespec& rhs) { in timespec_compare()
294 struct timespec tv; in waitForChange()
370 struct timespec wait{ in tryLockFor()
373 struct timespec end; in tryLockFor()
381 struct timespec now; in tryLockFor()
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dfutex_test.cc28 extern "C" int __futex_wait(volatile void* ftx, int value, const struct timespec* timeout)
36 struct timespec timeout; in TEST()
45 struct timespec time; in FutexThread()
Dtime_test.cc57 struct timespec res; in TEST()
63 struct timespec res; in TEST()
/frameworks/libs/binary_translation/base/
Draw_syscall_tests.cc39 struct timespec ts; in TEST()
44 struct timespec ts2; in TEST()
/frameworks/av/media/libcpustats/include/cpustats/
DThreadCpuUsage.h125 struct timespec mPreviousTs; // most recent thread CPU time, valid only if mIsEnabled is true
126 struct timespec mMonotonicTs; // most recent monotonic time
/frameworks/av/services/audioflinger/afutils/
DAudioWatchdog.h72 struct timespec mOldTs GUARDED_BY(mLock); // monotonic time when threadLoop last ran
73 struct timespec mLogTs GUARDED_BY(mLock); // time since last log (ctor init).
DAudioWatchdog.cpp56 struct timespec newTs; in threadLoop()
100 struct timespec req; in threadLoop()
/frameworks/base/apex/jobscheduler/service/jni/
Dcom_android_server_alarm_AlarmManagerService.cpp83 int set(int type, struct timespec *ts);
102 int AlarmImpl::set(int type, struct timespec *ts) in set()
250 struct timespec nextTimespec = spec.it_value; in android_server_alarm_AlarmManagerService_getNextAlarm()
265 struct timespec ts; in android_server_alarm_AlarmManagerService_set()
/frameworks/native/libs/binder/include/binder/
DRecordedTransaction.h40 const String16& interfaceName, uint32_t code, uint32_t flags, timespec timestamp,
50 LIBBINDER_EXPORTED timespec getTimestamp() const;
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp64 struct timespec ts; in setEnabled()
106 struct timespec ts; in sample()
137 struct timespec ts; in elapsed()
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp117 const struct timespec ClientProxy::kForever = {INT_MAX /*tv_sec*/, 0 /*tv_nsec*/};
118 const struct timespec ClientProxy::kNonBlocking = {0 /*tv_sec*/, 0 /*tv_nsec*/};
150 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, in obtainBuffer()
151 struct timespec *elapsed) in obtainBuffer()
155 struct timespec total; // total elapsed time spent waiting in obtainBuffer()
179 struct timespec before; in obtainBuffer()
274 struct timespec remaining; in obtainBuffer()
275 const struct timespec *ts; in obtainBuffer()
325 struct timespec after; in obtainBuffer()
490 status_t AudioTrackClientProxy::waitStreamEndDone(const struct timespec *requested) in waitStreamEndDone()
[all …]
/frameworks/base/libs/androidfw/
DResourceTimer.cpp51 unsigned int diffInNs(timespec const &a, timespec const &b) { in diffInNs()
52 timespec r = { 0, 0 }; in diffInNs()
91 struct timespec end; in record()
/frameworks/native/libs/binder/tests/
DbinderRecordedTransactionTest.cpp33 timespec ts = {1232456, 567890}; in TEST()
70 timespec ts = {1232456, 567890}; in TEST()
106 timespec ts = {1232456, 567890}; in TEST()
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor_callback.cpp76 const struct timespec request = { .tv_sec = 0, in main()
112 const struct timespec request = { .tv_sec = 0, in main()
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/service/
Dmain.rs23 use libc::{c_long, nanosleep, timespec};
147 let ts = timespec { in sleepMs()
152 let mut rem = timespec { tv_sec: 0, tv_nsec: 0 }; in sleepMs()
/frameworks/av/media/mtp/
DPosixAsyncIO.h59 int aio_suspend(struct aiocb *[], int, const struct timespec *);
/frameworks/av/include/private/media/
DAudioTrackShared.h330 static const struct timespec kForever;
331 static const struct timespec kNonBlocking;
366 status_t obtainBuffer(Buffer* buffer, const struct timespec *requested = NULL,
367 struct timespec *elapsed = NULL);
496 status_t waitStreamEndDone(const struct timespec *requested);
/frameworks/native/cmds/servicemanager/
Dmain.cpp83 itimerspec timespec { in setupTo() local
94 int timeRes = timerfd_settime(fdTimer, 0 /*flags*/, &timespec, nullptr); in setupTo()

12345