Home
last modified time | relevance | path

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

12

/frameworks/base/include/androidfw/
DZipUtils.h67 static inline void zipTimeToTimespec(uint32_t when, struct tm* timespec) { in zipTimeToTimespec() argument
69 timespec->tm_year = ((date >> 9) & 0x7F) + 80; // Zip is years since 1980 in zipTimeToTimespec()
70 timespec->tm_mon = (date >> 5) & 0x0F; in zipTimeToTimespec()
71 timespec->tm_mday = date & 0x1F; in zipTimeToTimespec()
73 timespec->tm_hour = (when >> 11) & 0x1F; in zipTimeToTimespec()
74 timespec->tm_min = (when >> 5) & 0x3F; in zipTimeToTimespec()
75 timespec->tm_sec = (when & 0x1F) << 1; in zipTimeToTimespec()
/frameworks/av/media/libnbaio/
DNBLog.cpp136 struct timespec ts; in logTimestamp()
138 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec)); in logTimestamp()
142 void NBLog::Writer::logTimestamp(const struct timespec& ts) in logTimestamp()
147 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec)); in logTimestamp()
255 void NBLog::LockedWriter::logTimestamp(const struct timespec& ts) in logTimestamp()
321 struct timespec ts; in dump()
330 if (length != sizeof(struct timespec)) { in dump()
334 memcpy(&ts, &copy[i - length - 1], sizeof(struct timespec)); in dump()
371 memcpy(&ts, data, sizeof(struct timespec)); in dump()
378 j += sizeof(struct timespec) + 3; in dump()
[all …]
DMonoPipe.cpp182 struct timespec nowTs; in write()
204 const struct timespec req = {0, static_cast<long>(ns)}; in write()
/frameworks/av/services/audioflinger/
DFastThread.h54 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
DAudioWatchdog.h77 struct timespec mOldTs; // monotonic time when threadLoop last ran
78 struct timespec mLogTs; // time since last log
DAudioWatchdog.cpp56 struct timespec newTs; in threadLoop()
99 struct timespec req; in threadLoop()
DRecordTracks.h108 const struct timespec *timeOut = NULL);
116 struct timespec mPeerTimeout;
DFastThread.cpp94 const struct timespec req = {0, mSleepNs}; in threadLoop()
213 struct timespec newTs; in threadLoop()
302 struct timespec newLoad; in threadLoop()
DFastThreadDumpState.h38 struct timespec mMeasuredWarmupTs; // measured warmup time
DAudioStreamOut.h61 virtual status_t getPresentationPosition(uint64_t *frames, struct timespec *timestamp);
DStateQueue.cpp98 static const struct timespec req = {0, PUSH_BLOCK_ACK_NS}; in push()
DPlaybackTracks.h312 const struct timespec *timeOut = NULL);
320 struct timespec mPeerTimeout;
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp63 virtual int set(int type, struct timespec *ts) = 0;
77 int set(int type, struct timespec *ts);
89 int set(int type, struct timespec *ts);
112 int AlarmImplAlarmDriver::set(int type, struct timespec *ts) in set()
119 struct timespec ts; in setTime()
143 int AlarmImplTimerFd::set(int type, struct timespec *ts) in set()
431 struct timespec ts; in android_server_AlarmManagerService_set()
/frameworks/av/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/base/core/jni/
Dandroid_os_SystemClock.cpp63 struct timespec tm; in android_os_SystemClock_currentThreadTimeMillis()
76 struct timespec tm; in android_os_SystemClock_currentThreadTimeMicro()
/frameworks/av/include/private/media/
DAudioTrackShared.h230 static const struct timespec kForever;
231 static const struct timespec kNonBlocking;
264 status_t obtainBuffer(Buffer* buffer, const struct timespec *requested = NULL,
265 struct timespec *elapsed = NULL);
356 status_t waitStreamEndDone(const struct timespec *requested);
/frameworks/av/media/libmedia/
DAudioTrackShared.cpp73 const struct timespec ClientProxy::kForever = {INT_MAX /*tv_sec*/, 0 /*tv_nsec*/};
74 const struct timespec ClientProxy::kNonBlocking = {0 /*tv_sec*/, 0 /*tv_nsec*/};
84 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, in obtainBuffer()
85 struct timespec *elapsed) in obtainBuffer()
88 struct timespec total; // total elapsed time spent waiting in obtainBuffer()
112 struct timespec before; in obtainBuffer()
195 struct timespec remaining; in obtainBuffer()
196 const struct timespec *ts; in obtainBuffer()
245 struct timespec after; in obtainBuffer()
393 status_t AudioTrackClientProxy::waitStreamEndDone(const struct timespec *requested) in waitStreamEndDone()
[all …]
DAudioRecord.cpp687 const struct timespec *requested; in obtainBuffer()
688 struct timespec timeout; in obtainBuffer()
705 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer()
706 struct timespec *elapsed, size_t *nonContig) in obtainBuffer()
977 struct timespec timeout; in processAudioBuffer()
978 const struct timespec *requested = &ClientProxy::kForever; in processAudioBuffer()
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp58 struct timespec ts; in setEnabled()
100 struct timespec ts; in sample()
131 struct timespec ts; in elapsed()
/frameworks/av/include/media/
DAudioTimestamp.h32 struct timespec mTime; // corresponding CLOCK_MONOTONIC when frame is expected to present
DAudioRecord.h440 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested,
441 struct timespec *elapsed = NULL, size_t *nonContig = NULL);
/frameworks/av/include/media/nbaio/
DNBLog.h129 virtual void logTimestamp(const struct timespec& ts);
163 virtual void logTimestamp(const struct timespec& ts);
DMonoPipe.h128 struct timespec mWriteTs; // time that the previous write() completed
/frameworks/wilhelm/src/
Dlocks.c34 void init_time_spec(timespec* ts, long delta) { in init_time_spec()
55 timespec ts; in object_lock_exclusive_()
56 memset(&ts, 0, sizeof(timespec)); in object_lock_exclusive_()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h36 const struct timespec *request,
37 struct timespec *remain);

12