Searched refs:mPeakRefreshRate (Results 1 – 4 of 4) sorted by relevance
118 mController.mPeakRefreshRate = DEFAULT_REFRESH_RATE + 1; in getAvailabilityStatus_refreshRateLargerThanDefault_returnAvailable()125 mController.mPeakRefreshRate = DEFAULT_REFRESH_RATE; in getAvailabilityStatus_refreshRateEqualToDefault_returnUnsupported()133 mController.mPeakRefreshRate = 88f; in setChecked_enableSmoothDisplay_featureFlagOff()144 mController.mPeakRefreshRate = 88f; in setChecked_enableSmoothDisplay_featureFlagOn()154 mController.mPeakRefreshRate = 88f; in setChecked_disableSmoothDisplay_setDefaultRefreshRate()164 mController.mPeakRefreshRate = 88f; in isChecked_enableSmoothDisplay_returnTrue()172 mController.mPeakRefreshRate = 88f; in isChecked_disableSmoothDisplay_returnFalse()180 mController.mPeakRefreshRate = 88f; in isChecked_default_returnTrue()182 .thenReturn(mController.mPeakRefreshRate); in isChecked_default_returnTrue()189 mController.mPeakRefreshRate = 88f; in isChecked_default_returnFalse()[all …]
114 mController.mPeakRefreshRate = 88f; in onPreferenceChange_preferenceChecked_shouldEnableForcePeak_featureFlagOff()125 mController.mPeakRefreshRate = 88f; in onPreferenceChange_preferenceChecked_shouldEnableForcePeak_featureFlagOn()135 mController.mPeakRefreshRate = 88f; in onPreferenceChange_preferenceUnchecked_shouldDisableForcePeak()145 mController.mPeakRefreshRate = 88f; in updateState_enableForcePeak_shouldCheckedToggle()156 mController.mPeakRefreshRate = 88f; in updateState_disableForcePeak_shouldUncheckedToggle()173 mController.mPeakRefreshRate = DEFAULT_REFRESH_RATE + 1; in isAvailable_refreshRateLargerThanDefault_returnTrue()180 mController.mPeakRefreshRate = DEFAULT_REFRESH_RATE; in getAvailabilityStatus_refreshRateEqualToDefault_returnFalse()198 assertThat(mController.mPeakRefreshRate).isEqualTo(120); in peakRefreshRate_highestOfDefaultDisplay_featureFlagOff()204 assertThat(mController.mPeakRefreshRate).isEqualTo(130); in peakRefreshRate_highestOfAllDisplays_featureFlagOn()
44 float mPeakRefreshRate; field in ForcePeakRefreshRatePreferenceController51 mPeakRefreshRate = Flags.backUpSmoothDisplayAndForcePeakRefreshRate() in ForcePeakRefreshRatePreferenceController()55 + " mPeakRefreshRate : " + mPeakRefreshRate); in ForcePeakRefreshRatePreferenceController()85 return mPeakRefreshRate > DEFAULT_REFRESH_RATE; in isAvailable()103 ? Float.POSITIVE_INFINITY : mPeakRefreshRate; in forcePeakRefreshRate()113 return Math.round(peakRefreshRate) == Math.round(mPeakRefreshRate) in isForcePeakRefreshRateEnabled()
46 @VisibleForTesting float mPeakRefreshRate; field in PeakRefreshRatePreferenceController70 mPeakRefreshRate = Math.round(Flags.backUpSmoothDisplayAndForcePeakRefreshRate() in PeakRefreshRatePreferenceController()78 + mPeakRefreshRate); in PeakRefreshRatePreferenceController()85 int defaultPeakRefreshRate = Math.round(mPeakRefreshRate); in displayPreference()95 return mPeakRefreshRate > DEFAULT_REFRESH_RATE ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()108 return Math.round(peakRefreshRate) == Math.round(mPeakRefreshRate) in isChecked()115 ? Float.POSITIVE_INFINITY : mPeakRefreshRate; in setChecked()