Merge "Adding Match content frame rate setting preferences"

This commit is contained in:
Kriti Dang
2020-12-11 12:56:48 +00:00
committed by Android (Google) Code Review

View File

@@ -7759,6 +7759,32 @@ public final class Settings {
public static final String MINIMAL_POST_PROCESSING_ALLOWED =
"minimal_post_processing_allowed";
/**
* No mode switching will happen.
*
* @see #MATCH_CONTENT_FRAME_RATE
* @hide
*/
public static final int MATCH_CONTENT_FRAMERATE_NEVER = 0;
/**
* Allow only refresh rate switching between modes in the same configuration group.
* This way only switches without visual interruptions for the user will be allowed.
*
* @see #MATCH_CONTENT_FRAME_RATE
* @hide
*/
public static final int MATCH_CONTENT_FRAMERATE_SEAMLESSS_ONLY = 1;
/**
* Allow refresh rate switching between all refresh rates even if the switch will have
* visual interruptions for the user.
*
* @see #MATCH_CONTENT_FRAME_RATE
* @hide
*/
public static final int MATCH_CONTENT_FRAMERATE_ALWAYS = 2;
/**
* User's preference for refresh rate switching.
*
@@ -7769,6 +7795,9 @@ public final class Settings {
* for the user.
*
* @see android.view.Surface#setFrameRate
* @see #MATCH_CONTENT_FRAMERATE_NEVER
* @see #MATCH_CONTENT_FRAMERATE_SEAMLESSS_ONLY
* @see #MATCH_CONTENT_FRAMERATE_ALWAYS
* @hide
*/
public static final String MATCH_CONTENT_FRAME_RATE =