Home
last modified time | relevance | path

Searched refs:targetDuration (Results 1 – 11 of 11) sorted by relevance

/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp293 void PowerAdvisor::updateTargetWorkDuration(Duration targetDuration) { in updateTargetWorkDuration() argument
300 mTargetDuration = targetDuration; in updateTargetWorkDuration()
301 if (sTraceHintSessionData) ATRACE_INT64("Time target", targetDuration.ns()); in updateTargetWorkDuration()
302 if (targetDuration == mLastTargetDurationSent) return; in updateTargetWorkDuration()
308 ALOGV("Sending target time: %" PRId64 "ns", targetDuration.ns()); in updateTargetWorkDuration()
309 mLastTargetDurationSent = targetDuration; in updateTargetWorkDuration()
310 auto target = targetDuration.ns(); in updateTargetWorkDuration()
311 if (!writeHintSessionMessage<ChannelMessageContents::Tag::targetDuration>(&target, 1)) { in updateTargetWorkDuration()
312 auto ret = mHintSession->updateTargetWorkDuration(targetDuration.ns()); in updateTargetWorkDuration()
556 void PowerAdvisor::setTotalFrameTargetWorkDuration(Duration targetDuration) { in setTotalFrameTargetWorkDuration() argument
[all …]
DPowerAdvisor.h66 virtual void updateTargetWorkDuration(Duration targetDuration) = 0;
103 virtual void setTotalFrameTargetWorkDuration(Duration targetDuration) = 0;
128 void updateTargetWorkDuration(Duration targetDuration) override;
147 void setTotalFrameTargetWorkDuration(Duration targetDuration) override;
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockPowerAdvisor.h42 MOCK_METHOD(void, updateTargetWorkDuration, (Duration targetDuration), (override));
67 MOCK_METHOD(void, setTotalFrameTargetWorkDuration, (Duration targetDuration), (override));
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockPowerAdvisor.h40 MOCK_METHOD(void, updateTargetWorkDuration, (Duration targetDuration), (override));
65 MOCK_METHOD(void, setTotalFrameTargetWorkDuration, (Duration targetDuration), (override));
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderEndToEndTest.java78 final Duration targetDuration = Duration.ofMillis(millis); in testTimedWork() local
79 final Runnable work = timedWork(targetDuration); in testTimedWork()
85 targetDuration.toMillis(), resultDuration.toMillis(), in testTimedWork()
/frameworks/base/native/android/tests/performance_hint/
DPerformanceHintNativeTest.cpp100 int64_t targetDuration = 56789L, bool isHwui = false) { in createSession() argument
108 createHintSessionWithConfig(_, Eq(tids), Eq(targetDuration), _, _, _)) in createSession()
131 targetDuration, SessionTag::HWUI); in createSession()
133 return APerformanceHint_createSession(manager, tids.data(), tids.size(), targetDuration); in createSession()
/frameworks/base/libs/hwui/renderthread/
DHintSessionWrapper.h90 int64_t targetDuration) = nullptr;
/frameworks/base/native/android/
Dperformance_hint.cpp133 void traceTargetDuration(int64_t targetDuration);
443 void APerformanceHintSession::traceTargetDuration(int64_t targetDuration) { in traceTargetDuration() argument
444 ATrace_setCounter((mSessionName + " target duration").c_str(), targetDuration); in traceTargetDuration()
/frameworks/native/services/surfaceflinger/tests/unittests/
DPowerAdvisorTest.cpp227 ChannelMessage::ChannelMessageContents::Tag::targetDuration); in testGpuScenario()
228 target = msgs[0].data.get<ChannelMessage::ChannelMessageContents::Tag::targetDuration>(); in testGpuScenario()
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp1045 int32_t targetDuration; in initSeqNumberForLiveStream() local
1047 && mPlaylist->meta()->findInt32("target-duration", &targetDuration)) { in initSeqNumberForLiveStream()
1059 } while (timeFromEnd < targetDuration * 3E6 && index > 0); in initSeqNumberForLiveStream()
/frameworks/base/services/core/java/com/android/server/power/hint/
DHintManagerService.java978 long targetDuration, int[] tids, @SessionTag int sessionTag) { in logPerformanceHintSessionAtom() argument
980 sessionId, targetDuration, tids.length, sessionTag); in logPerformanceHintSessionAtom()