Home
last modified time | relevance | path

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

12

/frameworks/av/services/audioflinger/fastpath/
DFastMixer.cpp201 mTimestamp.mTimebaseOffset[ExtendedTimestamp::TIMEBASE_BOOTTIME] = in onStateChange()
370 ExtendedTimestamp perTrackTimestamp(mTimestamp); in onWork()
375 perTrackTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] > 0) { in onWork()
376 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = in onWork()
379 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = 0; in onWork()
380 perTrackTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] = -1; in onWork()
382 perTrackTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] = trackFramesWritten; in onWork()
499 ExtendedTimestamp timestamp; // local in onWork()
503 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL], in onWork()
504 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL], in onWork()
[all …]
DFastMixer.h99 ExtendedTimestamp mTimestamp;
/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.cpp91 status_t AudioStreamOutSink::getTimestamp(ExtendedTimestamp &timestamp) in getTimestamp()
98 timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL] = position64; in getTimestamp()
99 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] = audio_utils_ns_from_timespec(&time); in getTimestamp()
DMonoPipeReader.cpp58 void MonoPipeReader::onTimestamp(const ExtendedTimestamp &timestamp) in onTimestamp()
DSourceAudioBufferProvider.cpp120 void SourceAudioBufferProvider::onTimestamp(const ExtendedTimestamp &timestamp) in onTimestamp()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamLegacy.cpp231 ExtendedTimestamp *extendedTimestamp) { in getBestTimestamp()
235 timebase = ExtendedTimestamp::TIMEBASE_BOOTTIME; in getBestTimestamp()
238 timebase = ExtendedTimestamp::TIMEBASE_MONOTONIC; in getBestTimestamp()
245 ExtendedTimestamp::Location location = ExtendedTimestamp::Location::LOCATION_INVALID; in getBestTimestamp()
DAudioStreamLegacy.h95 android::ExtendedTimestamp *extendedTimestamp);
/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/
DAudioTrack.cpp690 mPreviousLocation = ExtendedTimestamp::LOCATION_INVALID; in set()
806 mPreviousLocation = ExtendedTimestamp::LOCATION_INVALID; in start()
809 && mStartEts.mTimeNs[ExtendedTimestamp::LOCATION_SERVER] > 0) { in start()
816 + mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]), in start()
820 mFramesWrittenServerOffset -= mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]; in start()
3108 status_t AudioTrack::getTimestamp(ExtendedTimestamp *timestamp) in getTimestamp()
3117 status_t AudioTrack::getTimestamp_l(ExtendedTimestamp *timestamp) in getTimestamp_l()
3135 timestamp->mPosition[ExtendedTimestamp::LOCATION_CLIENT] = mFramesWritten; in getTimestamp_l()
3136 timestamp->mTimeNs[ExtendedTimestamp::LOCATION_CLIENT] = 0; in getTimestamp_l()
3138 for (int i = ExtendedTimestamp::LOCATION_SERVER; in getTimestamp_l()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioTimestamp.h37 struct alignas(8) /* bug 29096183, bug 29108507 */ ExtendedTimestamp { struct
60 ExtendedTimestamp() { in ExtendedTimestamp() function
DExtendedAudioBufferProvider.h34 virtual void onTimestamp(const ExtendedTimestamp& /*timestamp*/) { } in onTimestamp() argument
DAudioTrack.h1059 status_t getTimestamp(ExtendedTimestamp *timestamp);
1061 status_t getTimestamp_l(ExtendedTimestamp *timestamp);
1105 ExtendedTimestamp::Location location = ExtendedTimestamp::LOCATION_SERVER);
1403 ExtendedTimestamp mStartEts; // Extended timestamp at start for normal
1415 ExtendedTimestamp::Location mPreviousLocation; // location used for previous timestamp
/frameworks/av/services/audioflinger/
DPlaybackTracks.h236 void onTimestamp(const ExtendedTimestamp &timestamp) override;
254 uint32_t halSampleRate, const ExtendedTimestamp& timeStamp) final;
329 ExtendedTimestamp mSinkTimestamp;
441 ExtendedTimestamp getClientProxyTimestamp() const final { in getClientProxyTimestamp()
444 ExtendedTimestamp timestamp; in getClientProxyTimestamp()
DTracks.cpp1131 void Track::onTimestamp(const ExtendedTimestamp &timestamp) in onTimestamp()
1267 .mPosition[ExtendedTimestamp::LOCATION_KERNEL]; in start()
2044 uint32_t halSampleRate, const ExtendedTimestamp &timeStamp) { in updateTrackFrameInfo()
2047 timeStamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL], in updateTrackFrameInfo()
2048 timeStamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL]}; in updateTrackFrameInfo()
2062 ExtendedTimestamp local = timeStamp; in updateTrackFrameInfo()
2065 for (int i = ExtendedTimestamp::LOCATION_MAX - 1; in updateTrackFrameInfo()
2066 i >= ExtendedTimestamp::LOCATION_SERVER; --i) { in updateTrackFrameInfo()
2071 if (!checked && i <= ExtendedTimestamp::LOCATION_KERNEL) { in updateTrackFrameInfo()
2095 && local.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] > 0 in updateTrackFrameInfo()
[all …]
DThreads.h650 ExtendedTimestamp *timestamp __unused) const in threadloop_getHalTimestamp_l()
737 ExtendedTimestamp mTimestamp;
1186 mTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL]; in setStandby_l()
1624 mTimestamp.mTimebaseOffset[ExtendedTimestamp::TIMEBASE_BOOTTIME]); in acquireWakeLock_l()
1680 ExtendedTimestamp *timestamp) const override in threadloop_getHalTimestamp_l()
1785 status_t threadloop_getHalTimestamp_l(ExtendedTimestamp *timestamp) const override { in threadloop_getHalTimestamp_l()
1792 timestamp->mPosition[ExtendedTimestamp::LOCATION_KERNEL] in threadloop_getHalTimestamp_l()
1794 timestamp->mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] in threadloop_getHalTimestamp_l()
1916 ExtendedTimestamp *timestamp) const override REQUIRES(mutex()) { in threadloop_getHalTimestamp_l()
1919 const ExtendedTimestamp trackTimestamp = in threadloop_getHalTimestamp_l()
[all …]
DMmapTracks.h78 void onTimestamp(const ExtendedTimestamp &timestamp) final;
DThreads.cpp408 adjustTimebaseOffset(&mBoottimeOffset, ExtendedTimestamp::TIMEBASE_BOOTTIME); in acquire()
411 adjustTimebaseOffset(&mBoottimeOffset, ExtendedTimestamp::TIMEBASE_BOOTTIME); in acquire()
448 static void adjustTimebaseOffset(int64_t *offset, ExtendedTimestamp::Timebase timebase) { in adjustTimebaseOffset()
451 case ExtendedTimestamp::TIMEBASE_BOOTTIME: in adjustTimebaseOffset()
1214 mTimestamp.mTimebaseOffset[ExtendedTimestamp::TIMEBASE_BOOTTIME] = in acquireWakeLock_l()
4236 != mTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL])))) { in threadLoop()
4678 ExtendedTimestamp timestamp; // use private copy to fetch in collectTimestamps_l()
4683 mTimestampVerifier.add(timestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL], in collectTimestamps_l()
4684 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL], in collectTimestamps_l()
4689 (long long)timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL], in collectTimestamps_l()
[all …]
DIAfTrack.h401 const ExtendedTimestamp& timeStamp) = 0;
452 virtual ExtendedTimestamp getClientProxyTimestamp() const = 0;
520 const ExtendedTimestamp& timestamp) = 0;
/frameworks/av/include/private/media/
DAudioTrackShared.h202 typedef SingleStateQueue<ExtendedTimestamp> ExtendedTimestampQueue;
414 status_t getTimestamp(ExtendedTimestamp *timestamp) {
439 ExtendedTimestamp mTimestamp; // initialized by constructor
624 virtual void setTimestamp(const ExtendedTimestamp &timestamp) {
628 virtual ExtendedTimestamp getTimestamp() const {
/frameworks/av/media/libnbaio/include/media/nbaio/
DSourceAudioBufferProvider.h40 virtual void onTimestamp(const ExtendedTimestamp &timestamp);
DAudioStreamOutSink.h49 virtual status_t getTimestamp(ExtendedTimestamp &timestamp);
/frameworks/av/media/libstagefright/
DAudioSource.cpp351 ExtendedTimestamp ts; in onMoreData()
352 ExtendedTimestamp::Location location; in onMoreData()
356 ts.getBestTimestamp(&position, &timeNs, ExtendedTimestamp::TIMEBASE_MONOTONIC, in onMoreData()

12