Loading core/java/android/view/ViewRootImpl.java +7 −1 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ import static android.view.accessibility.Flags.reduceWindowContentChangedEventTh import static android.view.flags.Flags.toolkitFrameRateTypingReadOnly; import static android.view.flags.Flags.toolkitMetricsForFrameRateDecision; import static android.view.flags.Flags.toolkitSetFrameRateReadOnly; import static android.view.flags.Flags.toolkitFrameRateFunctionEnablingReadOnly; import static android.view.inputmethod.InputMethodEditorTraceProto.InputMethodClientsTraceProto.ClientSideProto.IME_FOCUS_CONTROLLER; import static android.view.inputmethod.InputMethodEditorTraceProto.InputMethodClientsTraceProto.ClientSideProto.INSETS_CONTROLLER; Loading Loading @@ -1148,6 +1149,7 @@ public final class ViewRootImpl implements ViewParent, private String mLargestViewTraceName; private static boolean sToolkitSetFrameRateReadOnlyFlagValue; private static boolean sToolkitFrameRateFunctionEnablingReadOnlyFlagValue; private static boolean sToolkitMetricsForFrameRateDecisionFlagValue; private static boolean sToolkitFrameRateTypingReadOnlyFlagValue; Loading @@ -1155,6 +1157,8 @@ public final class ViewRootImpl implements ViewParent, sToolkitSetFrameRateReadOnlyFlagValue = toolkitSetFrameRateReadOnly(); sToolkitMetricsForFrameRateDecisionFlagValue = toolkitMetricsForFrameRateDecision(); sToolkitFrameRateTypingReadOnlyFlagValue = toolkitFrameRateTypingReadOnly(); sToolkitFrameRateFunctionEnablingReadOnlyFlagValue = toolkitFrameRateFunctionEnablingReadOnly(); } // The latest input event from the gesture that was used to resolve the pointer icon. Loading Loading @@ -12788,7 +12792,9 @@ public final class ViewRootImpl implements ViewParent, private boolean shouldEnableDvrr() { // uncomment this when we are ready for enabling dVRR // return sToolkitSetFrameRateReadOnlyFlagValue && isFrameRatePowerSavingsBalanced(); if (sToolkitFrameRateFunctionEnablingReadOnlyFlagValue) { return sToolkitSetFrameRateReadOnlyFlagValue && isFrameRatePowerSavingsBalanced(); } return false; } core/java/android/view/flags/refresh_rate_flags.aconfig +8 −0 Original line number Diff line number Diff line Loading @@ -87,3 +87,11 @@ flag { bug: "239979904" is_fixed_read_only: true } flag { name: "toolkit_frame_rate_function_enabling_read_only" namespace: "toolkit" description: "Feature flag to enable the functionality of the dVRR feature" bug: "239979904" is_fixed_read_only: true } No newline at end of file Loading
core/java/android/view/ViewRootImpl.java +7 −1 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ import static android.view.accessibility.Flags.reduceWindowContentChangedEventTh import static android.view.flags.Flags.toolkitFrameRateTypingReadOnly; import static android.view.flags.Flags.toolkitMetricsForFrameRateDecision; import static android.view.flags.Flags.toolkitSetFrameRateReadOnly; import static android.view.flags.Flags.toolkitFrameRateFunctionEnablingReadOnly; import static android.view.inputmethod.InputMethodEditorTraceProto.InputMethodClientsTraceProto.ClientSideProto.IME_FOCUS_CONTROLLER; import static android.view.inputmethod.InputMethodEditorTraceProto.InputMethodClientsTraceProto.ClientSideProto.INSETS_CONTROLLER; Loading Loading @@ -1148,6 +1149,7 @@ public final class ViewRootImpl implements ViewParent, private String mLargestViewTraceName; private static boolean sToolkitSetFrameRateReadOnlyFlagValue; private static boolean sToolkitFrameRateFunctionEnablingReadOnlyFlagValue; private static boolean sToolkitMetricsForFrameRateDecisionFlagValue; private static boolean sToolkitFrameRateTypingReadOnlyFlagValue; Loading @@ -1155,6 +1157,8 @@ public final class ViewRootImpl implements ViewParent, sToolkitSetFrameRateReadOnlyFlagValue = toolkitSetFrameRateReadOnly(); sToolkitMetricsForFrameRateDecisionFlagValue = toolkitMetricsForFrameRateDecision(); sToolkitFrameRateTypingReadOnlyFlagValue = toolkitFrameRateTypingReadOnly(); sToolkitFrameRateFunctionEnablingReadOnlyFlagValue = toolkitFrameRateFunctionEnablingReadOnly(); } // The latest input event from the gesture that was used to resolve the pointer icon. Loading Loading @@ -12788,7 +12792,9 @@ public final class ViewRootImpl implements ViewParent, private boolean shouldEnableDvrr() { // uncomment this when we are ready for enabling dVRR // return sToolkitSetFrameRateReadOnlyFlagValue && isFrameRatePowerSavingsBalanced(); if (sToolkitFrameRateFunctionEnablingReadOnlyFlagValue) { return sToolkitSetFrameRateReadOnlyFlagValue && isFrameRatePowerSavingsBalanced(); } return false; }
core/java/android/view/flags/refresh_rate_flags.aconfig +8 −0 Original line number Diff line number Diff line Loading @@ -87,3 +87,11 @@ flag { bug: "239979904" is_fixed_read_only: true } flag { name: "toolkit_frame_rate_function_enabling_read_only" namespace: "toolkit" description: "Feature flag to enable the functionality of the dVRR feature" bug: "239979904" is_fixed_read_only: true } No newline at end of file