Home
last modified time | relevance | path

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

123

/frameworks/base/include/androidfw/
DZipUtils.h70 static inline void zipTimeToTimespec(uint32_t when, struct tm* timespec) { in zipTimeToTimespec() argument
73 memset(timespec, 0, sizeof(struct tm)); in zipTimeToTimespec()
74 timespec->tm_year = ((date >> 9) & 0x7F) + 80; // Zip is years since 1980 in zipTimeToTimespec()
75 timespec->tm_mon = ((date >> 5) & 0x0F) - 1; in zipTimeToTimespec()
76 timespec->tm_mday = date & 0x1F; in zipTimeToTimespec()
78 timespec->tm_hour = (when >> 11) & 0x1F; in zipTimeToTimespec()
79 timespec->tm_min = (when >> 5) & 0x3F; in zipTimeToTimespec()
80 timespec->tm_sec = (when & 0x1F) << 1; in zipTimeToTimespec()
81 timespec->tm_isdst = -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.cpp132 struct timespec nowTs; in write()
154 const struct timespec req = {0, static_cast<long>(ns)}; in write()
DAudioStreamOutSink.cpp76 struct timespec time; in getTimestamp()
/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.h114 const struct timespec *timeOut = NULL);
122 struct timespec mPeerTimeout;
DFastThread.cpp98 const struct timespec req = {0, mSleepNs}; in threadLoop()
217 struct timespec newTs; in threadLoop()
306 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);
DPlaybackTracks.h245 const struct timespec *timeOut = NULL);
255 struct timespec mPeerTimeout;
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp65 virtual int set(int type, struct timespec *ts) = 0;
79 int set(int type, struct timespec *ts);
91 int set(int type, struct timespec *ts);
114 int AlarmImplAlarmDriver::set(int type, struct timespec *ts) in set()
121 struct timespec ts; in setTime()
145 int AlarmImplTimerFd::set(int type, struct timespec *ts) in set()
433 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/media/libmedia/
DAudioTrackShared.cpp78 const struct timespec ClientProxy::kForever = {INT_MAX /*tv_sec*/, 0 /*tv_nsec*/};
79 const struct timespec ClientProxy::kNonBlocking = {0 /*tv_sec*/, 0 /*tv_nsec*/};
111 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, in obtainBuffer()
112 struct timespec *elapsed) in obtainBuffer()
115 struct timespec total; // total elapsed time spent waiting in obtainBuffer()
139 struct timespec before; in obtainBuffer()
234 struct timespec remaining; in obtainBuffer()
235 const struct timespec *ts; in obtainBuffer()
285 struct timespec after; in obtainBuffer()
414 status_t AudioTrackClientProxy::waitStreamEndDone(const struct timespec *requested) in waitStreamEndDone()
[all …]
DAudioRecord.cpp757 const struct timespec *requested; in obtainBuffer()
758 struct timespec timeout; in obtainBuffer()
775 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer()
776 struct timespec *elapsed, size_t *nonContig) in obtainBuffer()
1053 struct timespec timeout; in processAudioBuffer()
1054 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/private/media/
DAudioTrackShared.h242 static const struct timespec kForever;
243 static const struct timespec kNonBlocking;
278 status_t obtainBuffer(Buffer* buffer, const struct timespec *requested = NULL,
279 struct timespec *elapsed = NULL);
399 status_t waitStreamEndDone(const struct timespec *requested);
/frameworks/av/include/media/nbaio/
DNBLog.h129 virtual void logTimestamp(const struct timespec& ts);
163 virtual void logTimestamp(const struct timespec& ts);
DMonoPipe.h94 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/sensorservice/
DRecentEventLogger.h51 timespec mWallTime;
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h44 const struct timespec *request,
45 struct timespec *remain);
/frameworks/av/include/media/
DAudioRecord.h454 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested,
455 struct timespec *elapsed = NULL, size_t *nonContig = NULL);

123