Home
last modified time | relevance | path

Searched refs:sampleTime (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/extractors/mp4/
DSampleTable.cpp664 uint64_t sampleTime = 0; in buildSampleEntriesTable() local
682 if ((compTimeDelta < 0 && sampleTime < in buildSampleEntriesTable()
686 sampleTime > UINT64_MAX - compTimeDelta)) { in buildSampleEntriesTable()
688 (unsigned long long) sampleTime, compTimeDelta); in buildSampleEntriesTable()
690 sampleTime = 0; in buildSampleEntriesTable()
692 sampleTime = UINT64_MAX; in buildSampleEntriesTable()
698 compTimeDelta > 0 ? sampleTime + compTimeDelta: in buildSampleEntriesTable()
699 sampleTime - (-compTimeDelta); in buildSampleEntriesTable()
703 if (sampleTime > UINT64_MAX - delta) { in buildSampleEntriesTable()
705 (unsigned long long) sampleTime, delta); in buildSampleEntriesTable()
[all …]
DMPEG4Extractor.cpp625 uint64_t sampleTime; in getTrackMetaData() local
630 &sampleTime) == OK) { in getTrackMetaData()
633 ((int64_t)sampleTime * 1000000) / track->timescale); in getTrackMetaData()
5993 uint64_t sampleTime; in read() local
5996 sampleIndex, NULL, NULL, &sampleTime); in read()
6015 sampleTime += mElstInitialEmptyEditTicks; in read()
6018 if (sampleTime > mElstShiftStartTicks) { in read()
6019 sampleTime -= mElstShiftStartTicks; in read()
6021 sampleTime = 0; in read()
6024 targetSampleTimeUs = (sampleTime * 1000000ll) / mTimescale; in read()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncReactorTest.cpp325 nsecs_t sampleTime = 0; in TEST_F() local
329 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
332 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
336 EXPECT_FALSE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
341 nsecs_t sampleTime = 0; in TEST_F() local
347 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
349 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
352 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += secondPeriod, std::nullopt, &periodFlushed)); in TEST_F()
354 EXPECT_FALSE(mReactor.addResyncSample(sampleTime += thirdPeriod, std::nullopt, &periodFlushed)); in TEST_F()
368 nsecs_t sampleTime = 0; in TEST_F() local
[all …]
/frameworks/native/libs/input/
DInputTransport.cpp762 nsecs_t sampleTime = frameTime; in consumeBatch() local
764 sampleTime -= RESAMPLE_LATENCY; in consumeBatch()
766 ssize_t split = findSampleNoLaterThan(batch, sampleTime); in consumeBatch()
780 resampleTouchState(sampleTime, static_cast<MotionEvent*>(*outEvent), next); in consumeBatch()
925 void InputConsumer::resampleTouchState(nsecs_t sampleTime, MotionEvent* event, in resampleTouchState() argument
978 alpha = float(sampleTime - current->eventTime) / delta; in resampleTouchState()
996 if (sampleTime > maxPredict) { in resampleTouchState()
1000 sampleTime - current->eventTime, maxPredict - current->eventTime); in resampleTouchState()
1002 sampleTime = maxPredict; in resampleTouchState()
1004 alpha = float(current->eventTime - sampleTime) / delta; in resampleTouchState()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.cpp824 nsecs_t sampleTime = mResyncSamples[idx]; in dump() local
826 StringAppendF(&result, " %" PRId64 "\n", sampleTime); in dump()
828 StringAppendF(&result, " %" PRId64 " (+%" PRId64 ")\n", sampleTime, in dump()
829 sampleTime - previous); in dump()
831 previous = sampleTime; in dump()
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java844 long sampleTime = mCurrentSampleTime - mLastSampleTime;
846 long percAwake = sampleRealTime > 0 ? ((sampleTime*100) / sampleRealTime) : 0;