/frameworks/base/core/tests/coretests/src/com/android/internal/jank/ |
D | DisplayRefreshRateTest.java | 24 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/ |
D | RefreshRateSettingsUtils.java | 53 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/ |
D | VoteSummary.java | 148 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()
|
D | SyntheticModeManager.java | 60 if (mode.getRefreshRate() > SYNTHETIC_MODE_HIGH_BOUNDARY) { in createAppSupportedModes()
|
D | VotesStatsReporter.java | 83 int selectedRefreshRate = baseMode != null ? (int) baseMode.getRefreshRate() : -1; in reportVotesActivated()
|
D | DisplayModeDirector.java | 386 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/ |
D | DisplayInfoTest.java | 53 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/ |
D | TouchLatencyActivity.java | 120 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/ |
D | RefreshRatePolicy.java | 107 float bestRefreshRate = defaultMode.getRefreshRate(); in findLowRefreshRateMode() 280 return w.mFrameRateVote.update(mode.getRefreshRate(), in updateFrameRateVote() 299 return w.mFrameRateVote.update(mLowRefreshRateMode.getRefreshRate(), in updateFrameRateVote()
|
D | DeferredDisplayUpdater.java | 416 || first.getRefreshRate() != second.getRefreshRate() in calculateDisplayInfoDiff()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | VirtualDisplayAdapter.java | 289 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
|
D | DisplayManagerShellCommand.java | 454 + mode.getPhysicalHeight() + " " + mode.getRefreshRate()); in getUserPreferredDisplayMode() 478 + mode.getPhysicalHeight() + " " + mode.getRefreshRate()); in getActiveDisplayModeAtStart()
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerTest.java | 81 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()
|
D | AttachedChoreographerNativeTest.java | 130 float displayRefreshRate = activity.getDisplay().getMode().getRefreshRate(); in test_choreographer_callbacksForVariousFrameRates()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
D | DisplayModeDirectorTest.java | 142 /*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/ |
D | DisplayRefreshRate.java | 72 public static int getRefreshRate(long frameIntervalNs) { in getRefreshRate() method in DisplayRefreshRate
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | BaseTest.java | 57 mRefreshRate = activity.getDisplay().getRefreshRate(); in BaseTest()
|
/frameworks/base/tests/CtsSurfaceControlTestsStaging/src/main/java/android/view/surfacecontroltests/ |
D | GraphicsActivity.java | 128 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/ |
D | Choreographer_Delegate.java | 40 public static float getRefreshRate() { in getRefreshRate() method in Choreographer_Delegate
|
/frameworks/base/core/java/android/view/ |
D | DisplayInfo.java | 454 && 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()
|
D | Choreographer.java | 287 mFrameIntervalNanos = (long)(1000000000 / getRefreshRate()); in Choreographer() 297 private static float getRefreshRate() { in getRefreshRate() method in Choreographer 300 return di.getRefreshRate(); in getRefreshRate()
|
D | Display.java | 1182 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/ |
D | RefreshRateData.java | 100 RefreshRateConfigs refreshRateConfigs = config == null ? null : config.getRefreshRate(); in loadRefreshRateData()
|
D | SensorData.java | 211 RefreshRateRange rr = sensorDetails.getRefreshRate(); in loadSensorData()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 752 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 …]
|