Home
last modified time | relevance | path

Searched refs:frameRateOverride (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DFrameRateOverrideMappings.cpp135 void FrameRateOverrideMappings::setGameModeRefreshRateForUid(FrameRateOverride frameRateOverride) { in setGameModeRefreshRateForUid() argument
137 if (frameRateOverride.frameRateHz != 0.f) { in setGameModeRefreshRateForUid()
138 mFrameRateOverridesFromGameManager[frameRateOverride.uid] = in setGameModeRefreshRateForUid()
139 Fps::fromValue(frameRateOverride.frameRateHz); in setGameModeRefreshRateForUid()
141 mFrameRateOverridesFromGameManager.erase(frameRateOverride.uid); in setGameModeRefreshRateForUid()
145 void FrameRateOverrideMappings::setPreferredRefreshRateForUid(FrameRateOverride frameRateOverride) { in setPreferredRefreshRateForUid() argument
147 if (frameRateOverride.frameRateHz != 0.f) { in setPreferredRefreshRateForUid()
148 mFrameRateOverridesFromBackdoor[frameRateOverride.uid] = in setPreferredRefreshRateForUid()
149 Fps::fromValue(frameRateOverride.frameRateHz); in setPreferredRefreshRateForUid()
151 mFrameRateOverridesFromBackdoor.erase(frameRateOverride.uid); in setPreferredRefreshRateForUid()
DFrameRateOverrideMappings.h42 void setGameModeRefreshRateForUid(FrameRateOverride frameRateOverride)
44 void setPreferredRefreshRateForUid(FrameRateOverride frameRateOverride)
DLayerHistory.cpp428 void LayerHistory::updateGameModeFrameRateOverride(FrameRateOverride frameRateOverride) { in updateGameModeFrameRateOverride() argument
429 const uid_t uid = frameRateOverride.uid; in updateGameModeFrameRateOverride()
431 if (frameRateOverride.frameRateHz != 0.f) { in updateGameModeFrameRateOverride()
432 mGameFrameRateOverride[uid].first = Fps::fromValue(frameRateOverride.frameRateHz); in updateGameModeFrameRateOverride()
442 void LayerHistory::updateGameDefaultFrameRateOverride(FrameRateOverride frameRateOverride) { in updateGameDefaultFrameRateOverride() argument
443 const uid_t uid = frameRateOverride.uid; in updateGameDefaultFrameRateOverride()
445 if (frameRateOverride.frameRateHz != 0.f) { in updateGameDefaultFrameRateOverride()
446 mGameFrameRateOverride[uid].second = Fps::fromValue(frameRateOverride.frameRateHz); in updateGameDefaultFrameRateOverride()
DLayerHistory.h94 void updateGameModeFrameRateOverride(FrameRateOverride frameRateOverride) EXCLUDES(mLock);
97 void updateGameDefaultFrameRateOverride(FrameRateOverride frameRateOverride) EXCLUDES(mLock);
DScheduler.cpp1241 void Scheduler::setGameModeFrameRateForUid(FrameRateOverride frameRateOverride) { in setGameModeFrameRateForUid() argument
1242 if (frameRateOverride.frameRateHz > 0.f && frameRateOverride.frameRateHz < 1.f) { in setGameModeFrameRateForUid()
1248 mLayerHistory.updateGameModeFrameRateOverride(frameRateOverride); in setGameModeFrameRateForUid()
1250 mFrameRateOverrideMappings.setGameModeRefreshRateForUid(frameRateOverride); in setGameModeFrameRateForUid()
1254 void Scheduler::setGameDefaultFrameRateForUid(FrameRateOverride frameRateOverride) { in setGameDefaultFrameRateForUid() argument
1256 (frameRateOverride.frameRateHz > 0.f && frameRateOverride.frameRateHz < 1.f)) { in setGameDefaultFrameRateForUid()
1261 mLayerHistory.updateGameDefaultFrameRateOverride(frameRateOverride); in setGameDefaultFrameRateForUid()
1264 void Scheduler::setPreferredRefreshRateForUid(FrameRateOverride frameRateOverride) { in setPreferredRefreshRateForUid() argument
1265 if (frameRateOverride.frameRateHz > 0.f && frameRateOverride.frameRateHz < 1.f) { in setPreferredRefreshRateForUid()
1269 mFrameRateOverrideMappings.setPreferredRefreshRateForUid(frameRateOverride); in setPreferredRefreshRateForUid()
DEventThread.cpp157 FrameRateOverride frameRateOverride) { in makeFrameRateOverrideEvent() argument
165 .frameRateOverride = frameRateOverride, in makeFrameRateOverrideEvent()
459 for (auto frameRateOverride : overrides) { in onFrameRateOverridesChanged() local
460 mPendingEvents.push_back(makeFrameRateOverrideEvent(displayId, frameRateOverride)); in onFrameRateOverridesChanged()
628 gui::ISurfaceComposer::EventRegistration::frameRateOverride); in shouldConsumeEvent()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplay.java575 for (DisplayEventReceiver.FrameRateOverride frameRateOverride in updateFrameRateOverrides()
577 mTempFrameRateOverride.put(frameRateOverride.uid, in updateFrameRateOverrides()
578 frameRateOverride.frameRateHz); in updateFrameRateOverrides()
583 for (DisplayEventReceiver.FrameRateOverride frameRateOverride in updateFrameRateOverrides()
585 float refreshRate = mTempFrameRateOverride.get(frameRateOverride.uid, 0f); in updateFrameRateOverrides()
586 if (refreshRate == 0 || frameRateOverride.frameRateHz != refreshRate) { in updateFrameRateOverrides()
587 mTempFrameRateOverride.put(frameRateOverride.uid, in updateFrameRateOverrides()
588 frameRateOverride.frameRateHz); in updateFrameRateOverrides()
590 mTempFrameRateOverride.delete(frameRateOverride.uid); in updateFrameRateOverrides()
DDisplayDeviceInfo.java629 for (DisplayEventReceiver.FrameRateOverride frameRateOverride : frameRateOverrides) { in toString()
630 sb.append(frameRateOverride).append(" "); in toString()
DDisplayManagerService.java1177 for (DisplayEventReceiver.FrameRateOverride frameRateOverride : frameRateOverrides) { in getDisplayInfoForFrameRateOverride()
1178 if (frameRateOverride.uid == callingUid) { in getDisplayInfoForFrameRateOverride()
1179 frameRateHz = frameRateOverride.frameRateHz; in getDisplayInfoForFrameRateOverride()
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h118 FrameRateOverride frameRateOverride; member
/frameworks/native/libs/gui/
DDisplayEventDispatcher.cpp203 mFrameRateOverrides.emplace_back(ev.frameRateOverride); in processPendingEvents()
/frameworks/native/libs/gui/aidl/android/gui/
DISurfaceComposer.aidl65 frameRateOverride = 1 << 1, enumConstant
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp214 gui::ISurfaceComposer::EventRegistration::frameRateOverride); in setupEventThread()
368 EXPECT_EQ(uid, event.frameRateOverride.uid); in expectUidFrameRateMappingEventReceivedByConnection()
369 EXPECT_EQ(frameRateHz, event.frameRateOverride.frameRateHz); in expectUidFrameRateMappingEventReceivedByConnection()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp9036 if (const auto frameRateOverride = mScheduler->getFrameRateOverride(uid)) { in getMaxAcquiredBufferCountForCurrentRefreshRate() local
9037 refreshRate = *frameRateOverride; in getMaxAcquiredBufferCountForCurrentRefreshRate()