Home
last modified time | relevance | path

Searched refs:FrameRateOverride (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/native/services/surfaceflinger/Scheduler/
DFrameRateOverrideMappings.cpp21 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride; typedef
55 std::vector<FrameRateOverride> FrameRateOverrideMappings::getAllFrameRateOverrides( in getAllFrameRateOverrides()
59 std::vector<FrameRateOverride> overrides; in getAllFrameRateOverrides()
63 overrides.emplace_back(FrameRateOverride{uid, frameRate.getValue()}); in getAllFrameRateOverrides()
70 overrides.emplace_back(FrameRateOverride{uid, frameRate.getValue()}); in getAllFrameRateOverrides()
82 overrides.emplace_back(FrameRateOverride{uid, frameRate.getValue()}); in getAllFrameRateOverrides()
135 void FrameRateOverrideMappings::setGameModeRefreshRateForUid(FrameRateOverride frameRateOverride) { in setGameModeRefreshRateForUid()
145 void FrameRateOverrideMappings::setPreferredRefreshRateForUid(FrameRateOverride frameRateOverride) { in setPreferredRefreshRateForUid()
DFrameRateOverrideMappings.h31 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride; variable
38 std::vector<FrameRateOverride> getAllFrameRateOverrides(bool supportsFrameRateOverrideByContent)
42 void setGameModeRefreshRateForUid(FrameRateOverride frameRateOverride)
44 void setPreferredRefreshRateForUid(FrameRateOverride frameRateOverride)
DLayerHistory.h46 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride;
94 void updateGameModeFrameRateOverride(FrameRateOverride frameRateOverride) EXCLUDES(mLock);
97 void updateGameDefaultFrameRateOverride(FrameRateOverride frameRateOverride) EXCLUDES(mLock);
DRefreshRateSelector.h41 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride; variable
283 enum class FrameRateOverride { enum
299 FrameRateOverride enableFrameRateOverride = FrameRateOverride::Disabled;
316 Config config = {.enableFrameRateOverride = Config::FrameRateOverride::Disabled,
334 mFrameRateOverrideConfig == Config::FrameRateOverride::Enabled; in canSwitch()
348 return mFrameRateOverrideConfig != Config::FrameRateOverride::Disabled; in supportsAppFrameRateOverrideByContent()
352 return mFrameRateOverrideConfig == Config::FrameRateOverride::Enabled; in supportsFrameRateOverride()
514 Config::FrameRateOverride::AppOverrideNativeRefreshRates, in isNativeRefreshRate()
563 Config::FrameRateOverride mFrameRateOverrideConfig;
DEventThread.h57 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride; variable
118 std::vector<FrameRateOverride> overrides) = 0;
175 std::vector<FrameRateOverride> overrides) override;
DRefreshRateSelector.cpp108 RefreshRateSelector::Config::FrameRateOverride config) { in divisorRange()
109 if (config != RefreshRateSelector::Config::FrameRateOverride::Enabled) { in divisorRange()
200 if (mConfig.enableFrameRateOverride == Config::FrameRateOverride::Enabled && in createFrameRateModes()
206 Config::FrameRateOverride::AppOverrideNativeRefreshRates && in createFrameRateModes()
953 if (mConfig.enableFrameRateOverride == Config::FrameRateOverride::Disabled) { in getFrameRateOverrides()
974 Config::FrameRateOverride::AppOverrideNativeRefreshRates && in getFrameRateOverrides()
1310 case Config::FrameRateOverride::Disabled: in updateDisplayModes()
1311 case Config::FrameRateOverride::AppOverride: in updateDisplayModes()
1312 case Config::FrameRateOverride::Enabled: in updateDisplayModes()
1314 case Config::FrameRateOverride::AppOverrideNativeRefreshRates: in updateDisplayModes()
[all …]
DScheduler.h289 void setPreferredRefreshRateForUid(FrameRateOverride);
293 void setGameModeFrameRateForUid(FrameRateOverride) EXCLUDES(mDisplayLock);
301 void setGameDefaultFrameRateForUid(FrameRateOverride) EXCLUDES(mDisplayLock);
DLayerHistory.cpp428 void LayerHistory::updateGameModeFrameRateOverride(FrameRateOverride frameRateOverride) { in updateGameModeFrameRateOverride()
442 void LayerHistory::updateGameDefaultFrameRateOverride(FrameRateOverride frameRateOverride) { in updateGameDefaultFrameRateOverride()
DScheduler.cpp410 std::vector<FrameRateOverride> overrides = in onFrameRateOverridesChanged()
1241 void Scheduler::setGameModeFrameRateForUid(FrameRateOverride frameRateOverride) { in setGameModeFrameRateForUid()
1254 void Scheduler::setGameDefaultFrameRateForUid(FrameRateOverride frameRateOverride) { in setGameDefaultFrameRateForUid()
1264 void Scheduler::setPreferredRefreshRateForUid(FrameRateOverride frameRateOverride) { in setPreferredRefreshRateForUid()
/frameworks/native/libs/gui/include/gui/
DDisplayEventDispatcher.h22 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride; variable
50 std::vector<FrameRateOverride> mFrameRateOverrides;
66 std::vector<FrameRateOverride> overrides) = 0;
DDisplayEventReceiver.h99 struct FrameRateOverride { struct
118 FrameRateOverride frameRateOverride;
197 inline bool operator==(DisplayEventReceiver::Event::FrameRateOverride lhs,
198 DisplayEventReceiver::Event::FrameRateOverride rhs) {
DChoreographer.h127 std::vector<FrameRateOverride> overrides) override;
/frameworks/base/core/java/android/view/
DDisplayEventReceiver.java302 public static class FrameRateOverride { class in DisplayEventReceiver
311 public FrameRateOverride(int uid, float frameRateHz) { in FrameRateOverride() method in DisplayEventReceiver.FrameRateOverride
331 FrameRateOverride[] overrides) { in onFrameRateOverridesChanged()
383 FrameRateOverride[] overrides) { in dispatchFrameRateOverrides()
/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateSelectorTest.cpp144 class RefreshRateSelectorTest : public testing::TestWithParam<Config::FrameRateOverride> {
324 testing::Values(Config::FrameRateOverride::Disabled,
325 Config::FrameRateOverride::AppOverrideNativeRefreshRates,
326 Config::FrameRateOverride::AppOverride,
327 Config::FrameRateOverride::Enabled));
331 if (GetParam() == Config::FrameRateOverride::Enabled) { in TEST_P()
1276 case Config::FrameRateOverride::Disabled: in TEST_P()
1277 case Config::FrameRateOverride::AppOverrideNativeRefreshRates: in TEST_P()
1278 case Config::FrameRateOverride::AppOverride: in TEST_P()
1280 case Config::FrameRateOverride::Enabled: in TEST_P()
[all …]
DFrameRateOverrideMappingsTest.cpp29 using FrameRateOverride = DisplayEventReceiver::Event::FrameRateOverride; typedef
113 std::vector<FrameRateOverride> allFrameRateOverrides; in TEST_F()
DEventThreadTest.cpp113 std::vector<FrameRateOverride>);
361 PhysicalDisplayId expectedDisplayId, std::vector<FrameRateOverride> expectedOverrides) { in expectUidFrameRateMappingEventReceivedByConnection()
795 const std::vector<FrameRateOverride> overrides = { in TEST_F()
808 const std::vector<FrameRateOverride> overrides = { in TEST_F()
DLayerHistoryTest.cpp255 history().updateGameDefaultFrameRateOverride(FrameRateOverride({0, 60.0f})); in TEST_F()
261 history().updateGameModeFrameRateOverride(FrameRateOverride({0, 40.0f})); in TEST_F()
262 history().updateGameModeFrameRateOverride(FrameRateOverride({1, 120.0f})); in TEST_F()
272 history().updateGameDefaultFrameRateOverride(FrameRateOverride({0, 0.0f})); in TEST_F()
273 history().updateGameModeFrameRateOverride(FrameRateOverride({1, 0.0f})); in TEST_F()
300 FrameRateOverride({uid, gameDefaultFrameRate.getValue()})); in TEST_F()
336 FrameRateOverride({uid, gameModeFrameRate.getValue()})); in TEST_F()
/frameworks/native/libs/gui/tests/
DDisplayEventStructLayout_test.cpp67 CHECK_OFFSET(DisplayEventReceiver::Event::FrameRateOverride, uid, 0); in TEST()
68 CHECK_OFFSET(DisplayEventReceiver::Event::FrameRateOverride, frameRateHz, 8); in TEST()
/frameworks/native/libs/gui/
Dlibgui_flags.aconfig31 description: "Trace FrameRateOverride fps"
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockEventThread.h47 (PhysicalDisplayId, std::vector<FrameRateOverride>), (override));
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java1921 new DisplayEventReceiver.FrameRateOverride[]{
1922 new DisplayEventReceiver.FrameRateOverride(myUid, 30f),
1929 new DisplayEventReceiver.FrameRateOverride[]{
1930 new DisplayEventReceiver.FrameRateOverride(myUid, 30f),
1931 new DisplayEventReceiver.FrameRateOverride(1234, 30f),
1937 new DisplayEventReceiver.FrameRateOverride[]{
1938 new DisplayEventReceiver.FrameRateOverride(myUid, 20f),
1939 new DisplayEventReceiver.FrameRateOverride(1234, 30f),
1940 new DisplayEventReceiver.FrameRateOverride(5678, 30f),
1947 new DisplayEventReceiver.FrameRateOverride[]{
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java448 public DisplayEventReceiver.FrameRateOverride[] frameRateOverrides =
449 new DisplayEventReceiver.FrameRateOverride[0];
629 for (DisplayEventReceiver.FrameRateOverride frameRateOverride : frameRateOverrides) { in toString()
DLogicalDisplay.java154 private DisplayEventReceiver.FrameRateOverride[] mFrameRateOverrides;
298 public DisplayEventReceiver.FrameRateOverride[] getFrameRateOverrides() { in getFrameRateOverrides()
575 for (DisplayEventReceiver.FrameRateOverride frameRateOverride in updateFrameRateOverrides()
583 for (DisplayEventReceiver.FrameRateOverride frameRateOverride in updateFrameRateOverrides()
DLocalDisplayAdapter.java267 private DisplayEventReceiver.FrameRateOverride[] mFrameRateOverrides =
268 new DisplayEventReceiver.FrameRateOverride[0];
1146 DisplayEventReceiver.FrameRateOverride[] overrides) { in onFrameRateOverridesChanged()
1174 DisplayEventReceiver.FrameRateOverride[] overrides) { in updateFrameRateOverridesLocked()
1467 DisplayEventReceiver.FrameRateOverride[] overrides);
1499 DisplayEventReceiver.FrameRateOverride[] overrides) {
1558 DisplayEventReceiver.FrameRateOverride[] overrides) {
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp98 std::vector<FrameRateOverride> overrides) override;
270 nsecs_t timestamp, PhysicalDisplayId displayId, std::vector<FrameRateOverride> overrides) { in dispatchFrameRateOverrides()

12