Home
last modified time | relevance | path

Searched refs:getRefreshRate (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/com/android/internal/jank/
DDisplayRefreshRateTest.java24 import static com.android.internal.jank.DisplayRefreshRate.getRefreshRate;
36 assertThat(getRefreshRate((long) 1e9 / 30)).isEqualTo(REFRESH_RATE_30_HZ); in testRefreshRateMapping()
37 assertThat(getRefreshRate((long) 1e9 / 60)).isEqualTo(REFRESH_RATE_60_HZ); in testRefreshRateMapping()
38 assertThat(getRefreshRate((long) 1e9 / 90)).isEqualTo(REFRESH_RATE_90_HZ); in testRefreshRateMapping()
39 assertThat(getRefreshRate((long) 1e9 / 120)).isEqualTo(REFRESH_RATE_120_HZ); in testRefreshRateMapping()
40 assertThat(getRefreshRate((long) 1e9 / 240)).isEqualTo(REFRESH_RATE_240_HZ); in testRefreshRateMapping()
/frameworks/base/core/java/com/android/internal/display/
DRefreshRateSettingsUtils.java53 if (mode.getRefreshRate() > maxRefreshRate) { in findHighestRefreshRateForDefaultDisplay()
54 maxRefreshRate = mode.getRefreshRate(); in findHighestRefreshRateForDefaultDisplay()
79 if (mode.getRefreshRate() > maxRefreshRate) { in findHighestRefreshRateAmongAllDisplays()
80 maxRefreshRate = mode.getRefreshRate(); in findHighestRefreshRateAmongAllDisplays()
/frameworks/base/services/core/java/com/android/server/display/mode/
DVoteSummary.java148 if (equalsWithinFloatTolerance(mode.getRefreshRate(), appRequestBaseModeRefreshRate)) { in filterModes()
168 ? appRequestBaseModeRefreshRate : defaultMode.getRefreshRate(); in selectBaseMode()
170 if (equalsWithinFloatTolerance(preferredRefreshRate, availableMode.getRefreshRate())) { in selectBaseMode()
219 float refreshRate = mode.getRefreshRate(); in validateModeWithinPhysicalRefreshRange()
238 float refreshRate = mode.getRefreshRate(); in validateModeWithinRenderRefreshRange()
258 float refreshRate = mode.getRefreshRate(); in validateModeRenderRateAchievable()
293 if (equalsWithinFloatTolerance(mode.getRefreshRate(), refreshRates.mPeakRefreshRate) in validateRefreshRatesSupported()
301 + ": mode.refreshRate=" + mode.getRefreshRate() in validateRefreshRatesSupported()
370 || mode.getRefreshRate() < (minPhysicalRefreshRate - FLOAT_TOLERANCE) in updateSummaryWithBestAllowedResolution()
371 || mode.getRefreshRate() > (maxPhysicalRefreshRate + FLOAT_TOLERANCE) in updateSummaryWithBestAllowedResolution()
DSyntheticModeManager.java60 if (mode.getRefreshRate() > SYNTHETIC_MODE_HIGH_BOUNDARY) { in createAppSupportedModes()
DVotesStatsReporter.java83 int selectedRefreshRate = baseMode != null ? (int) baseMode.getRefreshRate() : -1; in reportVotesActivated()
DDisplayModeDirector.java386 float fps = defaultMode.getRefreshRate(); in getDesiredDisplayModeSpecs()
400 float fps = baseMode.getRefreshRate(); in getDesiredDisplayModeSpecs()
418 primarySummary.maxRenderFrameRate = Math.max(baseMode.getRefreshRate(), in getDesiredDisplayModeSpecs()
420 appRequestSummary.maxRenderFrameRate = Math.max(baseMode.getRefreshRate(), in getDesiredDisplayModeSpecs()
610 if (mode.getRefreshRate() > maxRefreshRate) { in getMaxRefreshRateLocked()
611 maxRefreshRate = mode.getRefreshRate(); in getMaxRefreshRateLocked()
1325 vote = Vote.forRequestedRefreshRate(mode.getRefreshRate()); in getBaseModeVote()
1327 vote = Vote.forBaseModeRefreshRate(mode.getRefreshRate()); in getBaseModeVote()
2893 return getRefreshRate( in getRefreshRateInHbmHdr()
2902 return getRefreshRate( in getRefreshRateInHbmSunlight()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayInfoTest.java53 assertEquals(0, displayInfo.getRefreshRate(), FLOAT_EQUAL_DELTA); in testDefaultDisplayInfoRefreshRateIs0()
62 assertEquals(50, displayInfo.getRefreshRate(), FLOAT_EQUAL_DELTA); in testRefreshRateOverride()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java120 int fps = (int) displayMode.getRefreshRate(); in updateDisplayMode()
128 if (sameSizeMode(mode) && mode.getRefreshRate() > maxRefreshRate) { in getHighestRefreshRate()
129 maxRefreshRate = mode.getRefreshRate(); in getHighestRefreshRate()
/frameworks/base/services/core/java/com/android/server/wm/
DRefreshRatePolicy.java107 float bestRefreshRate = defaultMode.getRefreshRate(); in findLowRefreshRateMode()
280 return w.mFrameRateVote.update(mode.getRefreshRate(), in updateFrameRateVote()
299 return w.mFrameRateVote.update(mLowRefreshRateMode.getRefreshRate(), in updateFrameRateVote()
DDeferredDisplayUpdater.java416 || first.getRefreshRate() != second.getRefreshRate() in calculateDisplayInfoDiff()
/frameworks/base/services/core/java/com/android/server/display/
DVirtualDisplayAdapter.java289 mMode = createMode(mWidth, mHeight, getRefreshRate()); in VirtualDisplayDevice()
428 mMode = createMode(width, height, getRefreshRate()); in resizeLocked()
469 mInfo.renderFrameRate = mMode.getRefreshRate(); in getDisplayDeviceInfoLocked()
475 mInfo.presentationDeadlineNanos = 1000000000L / (int) getRefreshRate(); // 1 frame in getDisplayDeviceInfoLocked()
574 private float getRefreshRate() { in getRefreshRate() method in VirtualDisplayAdapter.VirtualDisplayDevice
DDisplayManagerShellCommand.java454 + mode.getPhysicalHeight() + " " + mode.getRefreshRate()); in getUserPreferredDisplayMode()
478 + mode.getPhysicalHeight() + " " + mode.getRefreshRate()); in getActiveDisplayModeAtStart()
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerTest.java81 float refreshRate = activity.getDisplay().getMode().getRefreshRate(); in setUp()
407 float displayRefreshRate = activity.getDisplay().getMode().getRefreshRate(); in testChoreographerDivisorRefreshRate()
473 float displayRefreshRate = activity.getDisplay().getMode().getRefreshRate(); in testChoreographerAttachedAfterSetFrameRate()
504 float displayRefreshRate = activity.getDisplay().getMode().getRefreshRate(); in testChoreographerNonDivisorFixedSourceRefreshRate()
530 float displayRefreshRate = activity.getDisplay().getMode().getRefreshRate(); in testChoreographerNonDivisorRefreshRate()
DAttachedChoreographerNativeTest.java130 float displayRefreshRate = activity.getDisplay().getMode().getRefreshRate(); in test_choreographer_callbacksForVariousFrameRates()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DDisplayModeDirectorTest.java142 /*expectedAppRequestedRefreshRate*/ DEFAULT_MODE_75.getRefreshRate(), in getAppRequestedSizeTestCases()
146 /*expectedAppRequestedRefreshRate*/ APP_MODE_HIGH_90.getRefreshRate(), in getAppRequestedSizeTestCases()
152 Vote.forBaseModeRefreshRate(APP_MODE_HIGH_90.getRefreshRate()))}, in getAppRequestedSizeTestCases()
161 Vote.forBaseModeRefreshRate(APP_MODE_HIGH_90.getRefreshRate()), in getAppRequestedSizeTestCases()
166 /*expectedPhysicalRefreshRate*/ LIMIT_MODE_70.getRefreshRate(), in getAppRequestedSizeTestCases()
167 /*expectedAppRequestedRefreshRate*/ LIMIT_MODE_70.getRefreshRate(), in getAppRequestedSizeTestCases()
173 Vote.forBaseModeRefreshRate(APP_MODE_65.getRefreshRate()), in getAppRequestedSizeTestCases()
178 /*expectedPhysicalRefreshRate*/ LIMIT_MODE_70.getRefreshRate(), in getAppRequestedSizeTestCases()
179 /*expectedAppRequestedRefreshRate*/ LIMIT_MODE_70.getRefreshRate(), in getAppRequestedSizeTestCases()
185 Vote.forBaseModeRefreshRate(APP_MODE_65.getRefreshRate()), in getAppRequestedSizeTestCases()
[all …]
/frameworks/base/core/java/com/android/internal/jank/
DDisplayRefreshRate.java72 public static int getRefreshRate(long frameIntervalNs) { in getRefreshRate() method in DisplayRefreshRate
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DBaseTest.java57 mRefreshRate = activity.getDisplay().getRefreshRate(); in BaseTest()
/frameworks/base/tests/CtsSurfaceControlTestsStaging/src/main/java/android/view/surfacecontroltests/
DGraphicsActivity.java128 float displayModeRefreshRate = mode.getRefreshRate();
129 float displayRefreshRate = display.getRefreshRate();
337 mDisplayModeRefreshRate = mode.getRefreshRate(); in onCreate()
338 mDisplayRefreshRate = display.getRefreshRate(); in onCreate()
386 frameRates.add(supportedMode.getRefreshRate()); in getRefreshRates()
/frameworks/layoutlib/bridge/src/android/view/
DChoreographer_Delegate.java40 public static float getRefreshRate() { in getRefreshRate() method in Choreographer_Delegate
/frameworks/base/core/java/android/view/
DDisplayInfo.java454 && getRefreshRate() == other.getRefreshRate() in equals()
675 public float getRefreshRate() { in getRefreshRate() method in DisplayInfo
682 return getMode().getRefreshRate(); in getRefreshRate()
732 rates.add(mode.getRefreshRate()); in getDefaultRefreshRates()
DChoreographer.java287 mFrameIntervalNanos = (long)(1000000000 / getRefreshRate()); in Choreographer()
297 private static float getRefreshRate() { in getRefreshRate() method in Choreographer
300 return di.getRefreshRate(); in getRefreshRate()
DDisplay.java1182 public float getRefreshRate() { in getRefreshRate() method in Display
1185 return mDisplayInfo.getRefreshRate(); in getRefreshRate()
1509 mode.getPhysicalHeight(), mode.getRefreshRate()); in setUserPreferredDisplayMode()
2328 public float getRefreshRate() { in getRefreshRate() method in Display.Mode
/frameworks/base/services/core/java/com/android/server/display/config/
DRefreshRateData.java100 RefreshRateConfigs refreshRateConfigs = config == null ? null : config.getRefreshRate(); in loadRefreshRateData()
DSensorData.java211 RefreshRateRange rr = sensorDetails.getRefreshRate(); in loadSensorData()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java752 assertEquals(displayInfo.getRefreshRate(), refreshRate, 0.1f);
767 assertEquals(ddi.renderFrameRate, displayInfo.getRefreshRate(), 0.1f);
1980 assertEquals(60f, displayInfo.getRefreshRate(), 0.01f);
1990 assertEquals(20f, displayInfo.getRefreshRate(), 0.01f);
1996 assertEquals(30f, displayInfo.getRefreshRate(), 0.01f);
2017 assertEquals(60f, displayInfo.getRefreshRate(), 0.01f);
2025 assertEquals(20f, displayInfo.getRefreshRate(), 0.01f);
2113 assertEquals(60f, displayInfo.getRefreshRate(), 0.01f);
2117 assertEquals(20f, displayInfo.getRefreshRate(), 0.01f);
3188 assertEquals(60f, displayInfo.getRefreshRate(), 0.01f);
[all …]

123