Home
last modified time | relevance | path

Searched refs:frameTime (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/native/libs/input/tests/
DTouchResampling_test.cpp73 std::chrono::nanoseconds frameTime);
163 std::chrono::nanoseconds frameTime) { in consumeInputEventEntries() argument
169 status_t status = mConsumer->consume(&mEventFactory, /*consumeBatches=*/true, frameTime.count(), in consumeInputEventEntries()
226 std::chrono::nanoseconds frameTime; in TEST_F() local
236 frameTime = 5ms; in TEST_F()
241 consumeInputEventEntries(expectedEntries, frameTime); in TEST_F()
250 frameTime = 35ms; in TEST_F()
257 consumeInputEventEntries(expectedEntries, frameTime); in TEST_F()
265 std::chrono::nanoseconds frameTime; in TEST_F() local
275 frameTime = 5ms; in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DChoreographer_test.cpp33 std::chrono::nanoseconds frameTime{0LL}; member
37 frameTime = std::chrono::nanoseconds{ in onVsyncCallback()
75 ASSERT_EQ(inputCb.frameTime, animationCb.frameTime) in TEST_F()
78 inputCb.frameTime.count(), in TEST_F()
79 animationCb.frameTime.count()); in TEST_F()
84 inputCb.frameTime.count(), in TEST_F()
85 animationCb.frameTime.count()); in TEST_F()
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_PowerHintTest.cpp47 const TimePoint frameTime = scheduler::SchedulerClock::now(); in TEST_F() local
49 mFlinger.commitAndComposite(frameTime, VsyncId{123}, frameTime + kMockVsyncPeriod); in TEST_F()
68 const TimePoint frameTime = scheduler::SchedulerClock::now(); in TEST_F() local
70 mFlinger.commitAndComposite(frameTime, VsyncId{123}, frameTime + kMockVsyncPeriod); in TEST_F()
DTestableSurfaceFlinger.h372 void commit(TimePoint frameTime, VsyncId vsyncId, TimePoint expectedVsyncTime,
383 frameTargeter.beginFrame({.frameBeginTime = frameTime,
406 void commit(TimePoint frameTime, VsyncId vsyncId, bool composite = false) {
407 return commit(frameTime, vsyncId, frameTime + Period(10ms), composite);
411 const TimePoint frameTime = scheduler::SchedulerClock::now();
412 commit(frameTime, kVsyncId, composite);
415 void commitAndComposite(TimePoint frameTime, VsyncId vsyncId, TimePoint expectedVsyncTime) { in commitAndComposite() argument
417 commit(frameTime, vsyncId, expectedVsyncTime, kComposite); in commitAndComposite()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp407 timeRecord->frameTime.frameNumber); in recordReadyLocked()
416 timeRecord->frameTime.acquireTime = timeRecord->acquireFence->getSignalTime(); in recordReadyLocked()
420 timeRecord->frameTime.frameNumber); in recordReadyLocked()
429 timeRecord->frameTime.presentTime = timeRecord->presentFence->getSignalTime(); in recordReadyLocked()
433 timeRecord->frameTime.frameNumber); in recordReadyLocked()
463 timeRecords[0].frameTime.frameNumber, timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
496 const int32_t postToAcquireMs = msBetween(timeRecords[0].frameTime.postTime, in flushAvailableRecordsToStatsLocked()
497 timeRecords[0].frameTime.acquireTime); in flushAvailableRecordsToStatsLocked()
499 timeRecords[0].frameTime.frameNumber, postToAcquireMs); in flushAvailableRecordsToStatsLocked()
502 const int32_t postToPresentMs = msBetween(timeRecords[0].frameTime.postTime, in flushAvailableRecordsToStatsLocked()
[all …]
/frameworks/base/core/java/android/animation/
DValueAnimator.java1358 public void commitAnimationFrame(long frameTime) { in commitAnimationFrame() argument
1361 long adjustment = frameTime - mLastFrameTime; in commitAnimationFrame()
1511 public final boolean doAnimationFrame(long frameTime) {
1516 ? frameTime
1517 : frameTime + (long) (mStartDelay * resolveDurationScale());
1522 mPauseTime = frameTime;
1529 mStartTime += (frameTime - mPauseTime);
1536 if (mStartTime > frameTime && mSeekFraction == -1) {
1552 mStartTime = frameTime - seekTime;
1557 mLastFrameTime = frameTime;
[all …]
DAnimationHandler.java335 private void doAnimationFrame(long frameTime) { in doAnimationFrame() argument
344 callback.doAnimationFrame(frameTime); in doAnimationFrame()
358 private void commitAnimationFrame(AnimationFrameCallback callback, long frameTime) { in commitAnimationFrame() argument
361 callback.commitAnimationFrame(frameTime); in commitAnimationFrame()
484 boolean doAnimationFrame(long frameTime); in doAnimationFrame() argument
501 void commitAnimationFrame(long frameTime); in commitAnimationFrame() argument
DAnimatorSet.java1142 public boolean doAnimationFrame(long frameTime) {
1153 mFirstFrame = frameTime;
1161 mPauseTime = frameTime;
1166 mFirstFrame += (frameTime - mPauseTime);
1174 mFirstFrame = (long) (frameTime - mSeekState.getPlayTime() * durationScale);
1176 mFirstFrame = (long) (frameTime - (mSeekState.getPlayTime() + mStartDelay)
1182 if (!mReversing && frameTime < mFirstFrame + mStartDelay * durationScale) {
1189 long unscaledPlayTime = (long) ((frameTime - mFirstFrame) / durationScale);
1190 mLastFrameTime = frameTime;
1240 public void commitAnimationFrame(long frameTime) {
[all …]
DAnimator.java522 boolean pulseAnimationFrame(long frameTime) { in pulseAnimationFrame() argument
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor.cpp168 int64_t frameTime = 0; in main() local
171 &framePosition, &frameTime); in main()
178 framePosition, frameTime, in main()
185 (long long) frameTime, in main()
/frameworks/av/media/libstagefright/
DCameraSourceTimeLapse.cpp183 int64_t frameTime, in createMediaBufferCopy() argument
193 (*newBuffer)->meta_data().setInt64(kKeyTime, frameTime); in createMediaBufferCopy()
199 int64_t frameTime; in fillLastReadBufferCopy() local
200 CHECK(sourceBuffer.meta_data().findInt64(kKeyTime, &frameTime)); in fillLastReadBufferCopy()
201 createMediaBufferCopy(sourceBuffer, frameTime, &mLastReadBufferCopy); in fillLastReadBufferCopy()
DCameraSource.cpp881 int64_t frameTime; in read() local
907 frameTime = *mFrameTimes.begin(); in read()
917 (*buffer)->meta_data().setInt64(kKeyTime, frameTime); in read()
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.md23 … consumeBatches=false, frameTime=-1, ..)`. That is, when `handleEvent` runs, there is no informati…
33 …Batches=true, frameTime=<valid frame time>, ..)`. At this point, the `consume` function will retur…
46 - `consumeBatches=false, frameTime=-1`
47 - `consumeBatches=true, frameTime=<valid time>`
49 I.e., it is never called with `consumeBatches=true, frameTime=-1`.
Dandroid_view_InputEventReceiver.cpp97 status_t consumeEvents(JNIEnv* env, bool consumeBatches, nsecs_t frameTime,
317 bool consumeBatches, nsecs_t frameTime, bool* outConsumedBatch) { in consumeEvents() argument
320 getInputChannelName().c_str(), toString(consumeBatches), frameTime); in consumeEvents()
338 consumeBatches, frameTime, &seq, &inputEvent); in consumeEvents()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNoRemeasureMotionLayout.kt46 Choreographer.getMainThreadInstance()?.frameTime == lastFrame in onMeasure()
55 lastFrame = Choreographer.getMainThreadInstance()?.frameTime in onMeasure()
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/
DDynamicAnimation.java671 public boolean doAnimationFrame(long frameTime) { in doAnimationFrame() argument
674 mLastFrameTime = frameTime; in doAnimationFrame()
678 long deltaT = frameTime - mLastFrameTime; in doAnimationFrame()
679 mLastFrameTime = frameTime; in doAnimationFrame()
696 public void commitAnimationFrame(long frameTime) { in commitAnimationFrame() argument
697 doAnimationFrame(frameTime); in commitAnimationFrame()
/frameworks/native/include/input/
DInputConsumer.h69 status_t consume(InputEventFactoryInterface* factory, bool consumeBatches, nsecs_t frameTime,
232 status_t consumeBatch(InputEventFactoryInterface* factory, nsecs_t frameTime, uint32_t* outSeq,
238 void resampleTouchState(nsecs_t frameTime, MotionEvent* event, const InputMessage* next);
DInputConsumerNoResampling.h85 bool consumeBatchedInputEvents(std::optional<nsecs_t> frameTime);
/frameworks/base/tests/ChoreographerTests/jni/
Dandroid_view_tests_ChoreographerNativeTest.cpp68 std::chrono::nanoseconds frameTime GUARDED_BY(mutex){0}; in GUARDED_BY()
86 cb->frameTime = std::chrono::nanoseconds{frameTimeNanos}; in vsyncCallback()
/frameworks/base/packages/SystemUI/tests/utils/src/androidx/core/animation/
DAndroidXAnimatorIsolationRule.kt34 override fun onAnimationFrame(frameTime: Long) = onError() in addAnimationFrameCallback()
/frameworks/native/services/surfaceflinger/
DWindowInfosListenerInvoker.cpp94 .frameTime = update.timestamp, in windowInfosChanged()
162 nsecs_t delay = TimePoint::now().ns() - mDelayInfo->frameTime; in updateMaxSendDelay()
DWindowInfosListenerInvoker.h81 nsecs_t frameTime; member
/frameworks/base/libs/hwui/
DProfileData.cpp45 static uint32_t frameCountIndexForFrameTime(nsecs_t frameTime) { in frameCountIndexForFrameTime() argument
46 uint32_t index = static_cast<uint32_t>(ns2ms(frameTime)); in frameCountIndexForFrameTime()
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerInfo.cpp71 FrameTimeData frameTime = {.presentTime = lastPresentTime, in setLastPresentTime() local
75 mFrameTimes.push_back(frameTime); in setLastPresentTime()
87 bool LayerInfo::isFrameTimeValid(const FrameTimeData& frameTime) const { in isFrameTimeValid()
88 return frameTime.queueTime >= std::chrono::duration_cast<std::chrono::nanoseconds>( in isFrameTimeValid()
/frameworks/native/libs/input/
DInputConsumer.cpp221 nsecs_t frameTime, uint32_t* outSeq, InputEvent** outEvent) { in consume() argument
224 mChannel->getName().c_str(), toString(consumeBatches), frameTime); in consume()
251 result = consumeBatch(factory, frameTime, outSeq, outEvent); in consume()
394 status_t InputConsumer::consumeBatch(InputEventFactoryInterface* factory, nsecs_t frameTime, in consumeBatch() argument
400 if (frameTime < 0) { in consumeBatch()
406 nsecs_t sampleTime = frameTime; in consumeBatch()

12