Searched refs:sampleTime (Results 1 – 6 of 6) sorted by relevance
/frameworks/av/media/extractors/mp4/ |
D | SampleTable.cpp | 664 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 …]
|
D | MPEG4Extractor.cpp | 625 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/ |
D | VSyncReactorTest.cpp | 325 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/ |
D | InputTransport.cpp | 762 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/ |
D | DispSync.cpp | 824 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/ |
D | ProcessCpuTracker.java | 844 long sampleTime = mCurrentSampleTime - mLastSampleTime; 846 long percAwake = sampleRealTime > 0 ? ((sampleTime*100) / sampleRealTime) : 0;
|