Home
last modified time | relevance | path

Searched refs:frameRateHz (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/view/
DDisplayEventReceiver.java242 public final float frameRateHz; field in DisplayEventReceiver.FrameRateOverride
246 public FrameRateOverride(int uid, float frameRateHz) { in FrameRateOverride() argument
248 this.frameRateHz = frameRateHz; in FrameRateOverride()
253 return "{uid=" + uid + " frameRateHz=" + frameRateHz + "}"; in toString()
/frameworks/native/services/surfaceflinger/Scheduler/
DFrameRateOverrideMappings.cpp126 if (frameRateOverride.frameRateHz != 0.f) { in setGameModeRefreshRateForUid()
128 Fps::fromValue(frameRateOverride.frameRateHz); in setGameModeRefreshRateForUid()
136 if (frameRateOverride.frameRateHz != 0.f) { in setPreferredRefreshRateForUid()
138 Fps::fromValue(frameRateOverride.frameRateHz); in setPreferredRefreshRateForUid()
DScheduler.cpp762 if (frameRateOverride.frameRateHz > 0.f && frameRateOverride.frameRateHz < 1.f) { in setGameModeRefreshRateForUid()
770 if (frameRateOverride.frameRateHz > 0.f && frameRateOverride.frameRateHz < 1.f) { in setPreferredRefreshRateForUid()
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h94 float frameRateHz __attribute__((aligned(8))); member
180 return (lhs.uid == rhs.uid) && std::abs(lhs.frameRateHz - rhs.frameRateHz) < 0.001f;
/frameworks/native/services/surfaceflinger/tests/
DSetFrameRateOverride_test.cpp86 return uid == i.uid && frameRate == i.frameRateHz; in TEST_F()
94 return uid == i.uid && frameRate == i.frameRateHz; in TEST_F()
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp320 for (const auto [uid, frameRateHz] : expectedOverrides) { in expectUidFrameRateMappingEventReceivedByConnection()
327 EXPECT_EQ(frameRateHz, event.frameRateOverride.frameRateHz); in expectUidFrameRateMappingEventReceivedByConnection()
712 {.uid = 1, .frameRateHz = 20}, in TEST_F()
713 {.uid = 3, .frameRateHz = 40}, in TEST_F()
714 {.uid = 5, .frameRateHz = 60}, in TEST_F()
723 {.uid = 1, .frameRateHz = 20}, in TEST_F()
724 {.uid = 3, .frameRateHz = 40}, in TEST_F()
725 {.uid = 5, .frameRateHz = 60}, in TEST_F()
/frameworks/native/libs/gui/tests/
DDisplayEventStructLayout_test.cpp66 CHECK_OFFSET(DisplayEventReceiver::Event::FrameRateOverride, frameRateHz, 8); in TEST()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplay.java422 frameRateOverride.frameRateHz); in updateFrameRateOverrides()
430 if (refreshRate == 0 || frameRateOverride.frameRateHz != refreshRate) { in updateFrameRateOverrides()
432 frameRateOverride.frameRateHz); in updateFrameRateOverrides()
DDisplayManagerService.java897 float frameRateHz = 0;
900 frameRateHz = frameRateOverride.frameRateHz;
904 if (frameRateHz == 0) {
912 float numPeriods = currentMode.getRefreshRate() / frameRateHz;
917 frameRateHz = currentMode.getRefreshRate() / numPeriodsRound;
926 if (mode.getRefreshRate() >= frameRateHz - THRESHOLD_FOR_REFRESH_RATES_DIVISORS
928 <= frameRateHz + THRESHOLD_FOR_REFRESH_RATES_DIVISORS) {
943 overriddenInfo.refreshRateOverride = frameRateHz;
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp202 overrides[i].frameRateHz); in dispatchFrameRateOverrides()