Lines Matching refs:timeUs
97 discontinuity->meta()->setInt64("timeUs", -1);
124 int64_t timeUs;
127 && extra->findInt64("timeUs", &timeUs)) {
129 mLastSeekTimeUs = timeUs;
253 int64_t timeUs;
255 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs));
263 if (timeUs > strm.mLastDequeuedTimeUs) {
264 durUs = timeUs - strm.mLastDequeuedTimeUs;
266 durUs = strm.mLastDequeuedTimeUs - timeUs;
271 firstTimeUs = timeUs;
273 mDiscontinuityAbsStartTimesUs.add(strm.mCurDiscontinuitySeq, timeUs);
274 firstTimeUs = timeUs;
277 strm.mLastDequeuedTimeUs = timeUs;
278 if (timeUs >= firstTimeUs) {
279 timeUs -= firstTimeUs;
281 timeUs = 0;
283 timeUs += mLastSeekTimeUs;
285 timeUs += mDiscontinuityOffsetTimesUs.valueFor(discontinuitySeq);
288 ALOGV("[%s] read buffer at time %" PRId64 " us", streamStr, timeUs);
289 (*accessUnit)->meta()->setInt64("timeUs", timeUs);
290 mLastDequeuedTimeUs = timeUs;
291 mRealTimeBaseUs = ALooper::GetNowUs() - timeUs;
349 status_t LiveSession::seekTo(int64_t timeUs) {
351 msg->setInt64("timeUs", timeUs);
718 0ll /* timeUs */, initialBandwidthIndex, false /* pickTrack */);
1100 int64_t timeUs;
1101 CHECK(msg->findInt64("timeUs", &timeUs));
1104 changeConfiguration(timeUs, mCurBandwidthIndex);
1181 int64_t timeUs, size_t bandwidthIndex, bool pickTrack) {
1191 ALOGV("changeConfiguration => timeUs:%" PRId64 " us, bwIndex:%zu, pickTrack:%d",
1192 timeUs, bandwidthIndex, pickTrack);
1215 if (timeUs < 0ll) {
1237 if (timeUs < 0ll) {
1246 msg->setInt64("timeUs", timeUs);
1278 changeConfiguration(-1ll /* timeUs */, bandwidthIndex, pickTrack);
1353 int64_t timeUs;
1356 CHECK(msg->findInt64("timeUs", &timeUs));
1359 if (timeUs < 0ll) {
1365 mRealTimeBaseUs = ALooper::GetNowUs() - timeUs;
1452 if (timeUs >= 0) {
1454 startTimeUs = timeUs;
1458 extra->setInt64("timeUs", timeUs);
1476 CHECK(meta->findInt64("timeUs", &tmpUs));
1710 changeConfiguration(-1ll /* timeUs */, bandwidthIndex);