/frameworks/native/services/surfaceflinger/Scheduler/ |
D | FrameRateOverrideMappings.cpp | 135 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()
|
D | FrameRateOverrideMappings.h | 42 void setGameModeRefreshRateForUid(FrameRateOverride frameRateOverride) 44 void setPreferredRefreshRateForUid(FrameRateOverride frameRateOverride)
|
D | LayerHistory.cpp | 428 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()
|
D | LayerHistory.h | 94 void updateGameModeFrameRateOverride(FrameRateOverride frameRateOverride) EXCLUDES(mLock); 97 void updateGameDefaultFrameRateOverride(FrameRateOverride frameRateOverride) EXCLUDES(mLock);
|
D | Scheduler.cpp | 1241 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()
|
D | EventThread.cpp | 157 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/ |
D | LogicalDisplay.java | 575 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()
|
D | DisplayDeviceInfo.java | 629 for (DisplayEventReceiver.FrameRateOverride frameRateOverride : frameRateOverrides) { in toString() 630 sb.append(frameRateOverride).append(" "); in toString()
|
D | DisplayManagerService.java | 1177 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/ |
D | DisplayEventReceiver.h | 118 FrameRateOverride frameRateOverride; member
|
/frameworks/native/libs/gui/ |
D | DisplayEventDispatcher.cpp | 203 mFrameRateOverrides.emplace_back(ev.frameRateOverride); in processPendingEvents()
|
/frameworks/native/libs/gui/aidl/android/gui/ |
D | ISurfaceComposer.aidl | 65 frameRateOverride = 1 << 1, enumConstant
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | EventThreadTest.cpp | 214 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/ |
D | SurfaceFlinger.cpp | 9036 if (const auto frameRateOverride = mScheduler->getFrameRateOverride(uid)) { in getMaxAcquiredBufferCountForCurrentRefreshRate() local 9037 refreshRate = *frameRateOverride; in getMaxAcquiredBufferCountForCurrentRefreshRate()
|