Home
last modified time | relevance | path

Searched refs:ExtendedTimestamp (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/av/services/audioflinger/
DFastMixer.cpp215 mTimestamp.mTimebaseOffset[ExtendedTimestamp::TIMEBASE_BOOTTIME] = in onStateChange()
383 ExtendedTimestamp perTrackTimestamp(mTimestamp); in onWork()
388 perTrackTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] > 0) { in onWork()
389 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = in onWork()
392 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = 0; in onWork()
393 perTrackTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] = -1; in onWork()
395 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] = trackFramesWritten; in onWork()
511 ExtendedTimestamp timestamp; // local in onWork()
515 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL], in onWork()
516 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL], in onWork()
[all …]
DPlaybackTracks.h190 virtual void onTimestamp(const ExtendedTimestamp &timestamp);
203 uint32_t halSampleRate, const ExtendedTimestamp &timeStamp);
250 ExtendedTimestamp mSinkTimestamp;
333 ExtendedTimestamp getClientProxyTimestamp() const { in getClientProxyTimestamp()
336 ExtendedTimestamp timestamp; in getClientProxyTimestamp()
DThreads.h509 ExtendedTimestamp *timestamp __unused) const { in threadloop_getHalTimestamp_l()
575 ExtendedTimestamp mTimestamp;
1228 mTimestamp.mTimebaseOffset[ExtendedTimestamp::TIMEBASE_BOOTTIME]); in acquireWakeLock_l()
1272 ExtendedTimestamp *timestamp) const override { in threadloop_getHalTimestamp_l()
1356 status_t threadloop_getHalTimestamp_l(ExtendedTimestamp *timestamp) const override { in threadloop_getHalTimestamp_l()
1363 timestamp->mPosition[ExtendedTimestamp::LOCATION_KERNEL] in threadloop_getHalTimestamp_l()
1365 timestamp->mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] in threadloop_getHalTimestamp_l()
1479 ExtendedTimestamp *timestamp) const override { in threadloop_getHalTimestamp_l()
1482 const ExtendedTimestamp trackTimestamp = in threadloop_getHalTimestamp_l()
1484 if (trackTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] > 0) { in threadloop_getHalTimestamp_l()
[all …]
DMmapTracks.h70 virtual void onTimestamp(const ExtendedTimestamp &timestamp);
DTracks.cpp861 void AudioFlinger::PlaybackThread::Track::onTimestamp(const ExtendedTimestamp &timestamp) in onTimestamp()
1452 uint32_t halSampleRate, const ExtendedTimestamp &timeStamp) { in updateTrackFrameInfo()
1455 timeStamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL], in updateTrackFrameInfo()
1456 timeStamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL]}; in updateTrackFrameInfo()
1470 ExtendedTimestamp local = timeStamp; in updateTrackFrameInfo()
1473 for (int i = ExtendedTimestamp::LOCATION_MAX - 1; in updateTrackFrameInfo()
1474 i >= ExtendedTimestamp::LOCATION_SERVER; --i) { in updateTrackFrameInfo()
1479 if (!checked && i <= ExtendedTimestamp::LOCATION_KERNEL) { in updateTrackFrameInfo()
2307 uint32_t halSampleRate, const ExtendedTimestamp &timestamp) in updateTrackFrameInfo()
2311 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL], in updateTrackFrameInfo()
[all …]
DFastMixer.h100 ExtendedTimestamp mTimestamp;
DThreads.cpp251 adjustTimebaseOffset(&mBoottimeOffset, ExtendedTimestamp::TIMEBASE_BOOTTIME); in acquire()
254 adjustTimebaseOffset(&mBoottimeOffset, ExtendedTimestamp::TIMEBASE_BOOTTIME); in acquire()
291 static void adjustTimebaseOffset(int64_t *offset, ExtendedTimestamp::Timebase timebase) { in adjustTimebaseOffset()
294 case ExtendedTimestamp::TIMEBASE_BOOTTIME: in adjustTimebaseOffset()
963 mTimestamp.mTimebaseOffset[ExtendedTimestamp::TIMEBASE_BOOTTIME] = in acquireWakeLock_l()
3410 ExtendedTimestamp timestamp; // use private copy to fetch in threadLoop()
3414 mTimestampVerifier.add(timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL], in threadLoop()
3415 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL], in threadLoop()
3420 (long long)timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL], in threadLoop()
3421 (long long)timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL]); in threadLoop()
[all …]
/frameworks/av/media/libnbaio/
DMonoPipe.cpp180 status_t MonoPipe::getTimestamp(ExtendedTimestamp &timestamp) in getTimestamp()
182 ExtendedTimestamp ets; in getTimestamp()
184 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = in getTimestamp()
185 ets.mPosition[ExtendedTimestamp::LOCATION_KERNEL]; in getTimestamp()
186 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] = in getTimestamp()
187 ets.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL]; in getTimestamp()
DAudioStreamOutSink.cpp78 status_t AudioStreamOutSink::getTimestamp(ExtendedTimestamp &timestamp) in getTimestamp()
85 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = position64; in getTimestamp()
86 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] = audio_utils_ns_from_timespec(&time); in getTimestamp()
DMonoPipeReader.cpp58 void MonoPipeReader::onTimestamp(const ExtendedTimestamp &timestamp) in onTimestamp()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamLegacy.cpp176 ExtendedTimestamp *extendedTimestamp) { in getBestTimestamp()
180 timebase = ExtendedTimestamp::TIMEBASE_BOOTTIME; in getBestTimestamp()
183 timebase = ExtendedTimestamp::TIMEBASE_MONOTONIC; in getBestTimestamp()
190 ExtendedTimestamp::Location location = ExtendedTimestamp::Location::LOCATION_INVALID; in getBestTimestamp()
DAudioStreamLegacy.h110 android::ExtendedTimestamp *extendedTimestamp);
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp612 mPreviousLocation = ExtendedTimestamp::LOCATION_INVALID; in set()
666 mPreviousLocation = ExtendedTimestamp::LOCATION_INVALID; in start()
669 && mStartEts.mTimeNs[ExtendedTimestamp::LOCATION_SERVER] > 0) { in start()
676 + mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]), in start()
680 mFramesWrittenServerOffset -= mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]; in start()
2500 status_t AudioTrack::getTimestamp(ExtendedTimestamp *timestamp) in getTimestamp()
2509 status_t AudioTrack::getTimestamp_l(ExtendedTimestamp *timestamp) in getTimestamp_l()
2527 timestamp->mPosition[ExtendedTimestamp::LOCATION_CLIENT] = mFramesWritten; in getTimestamp_l()
2528 timestamp->mTimeNs[ExtendedTimestamp::LOCATION_CLIENT] = 0; in getTimestamp_l()
2530 for (int i = ExtendedTimestamp::LOCATION_SERVER; in getTimestamp_l()
[all …]
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DMonoPipe.h27 typedef SingleStateQueue<ExtendedTimestamp> ExtendedTimestampSingleStateQueue;
84 status_t getTimestamp(ExtendedTimestamp &timestamp);
DNBAIO.h223 virtual status_t getTimestamp(ExtendedTimestamp& /*timestamp*/) { return INVALID_OPERATION; } in getTimestamp() argument
321 virtual void onTimestamp(const ExtendedTimestamp& /*timestamp*/) { } in onTimestamp() argument
DMonoPipeReader.h52 virtual void onTimestamp(const ExtendedTimestamp &timestamp);
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h857 status_t getTimestamp(ExtendedTimestamp *timestamp);
859 status_t getTimestamp_l(ExtendedTimestamp *timestamp);
905 ExtendedTimestamp::Location location = ExtendedTimestamp::LOCATION_SERVER);
1156 ExtendedTimestamp mStartEts; // Extended timestamp at start for normal
1168 ExtendedTimestamp::Location mPreviousLocation; // location used for previous timestamp
DAudioTimestamp.h37 struct alignas(8) /* bug 29096183, bug 29108507 */ ExtendedTimestamp { struct
60 ExtendedTimestamp() { in ExtendedTimestamp() argument
DExtendedAudioBufferProvider.h34 virtual void onTimestamp(const ExtendedTimestamp& /*timestamp*/) { } in onTimestamp() argument
/frameworks/av/include/private/media/
DAudioTrackShared.h124 typedef SingleStateQueue<ExtendedTimestamp> ExtendedTimestampQueue;
327 status_t getTimestamp(ExtendedTimestamp *timestamp) { in getTimestamp()
352 ExtendedTimestamp mTimestamp; // initialized by constructor
537 virtual void setTimestamp(const ExtendedTimestamp &timestamp) { in setTimestamp()
541 virtual ExtendedTimestamp getTimestamp() const { in getTimestamp()
/frameworks/av/include/media/nbaio/
DNBAIO.h223 virtual status_t getTimestamp(ExtendedTimestamp& /*timestamp*/) { return INVALID_OPERATION; } in getTimestamp() argument
321 virtual void onTimestamp(const ExtendedTimestamp& /*timestamp*/) { } in onTimestamp() argument
DAudioStreamOutSink.h51 virtual status_t getTimestamp(ExtendedTimestamp &timestamp);
/frameworks/av/media/libnbaio/include/media/nbaio/
DSourceAudioBufferProvider.h40 virtual void onTimestamp(const ExtendedTimestamp &timestamp);
DAudioStreamOutSink.h51 virtual status_t getTimestamp(ExtendedTimestamp &timestamp);
/frameworks/av/media/libstagefright/
DAudioSource.cpp330 ExtendedTimestamp ts; in dataCallback()
331 ExtendedTimestamp::Location location; in dataCallback()
335 ts.getBestTimestamp(&position, &timeNs, ExtendedTimestamp::TIMEBASE_MONOTONIC, in dataCallback()

12