Loading libs/WindowManager/Shell/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,7 @@ android_library { "kotlinx-coroutines-core", "iconloader_base", "com_android_wm_shell_flags_lib", "com.android.window.flags.window-aconfig-java", "WindowManager-Shell-proto", "dagger2", "jsr330", Loading libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellBaseModule.java +5 −2 Original line number Diff line number Diff line Loading @@ -324,13 +324,16 @@ public abstract class WMShellBaseModule { @WMSingleton @Provides static SystemPerformanceHinter provideSystemPerformanceHinter(Context context, static Optional<SystemPerformanceHinter> provideSystemPerformanceHinter(Context context, ShellInit shellInit, ShellCommandHandler shellCommandHandler, RootTaskDisplayAreaOrganizer rootTdaOrganizer) { if (!com.android.window.flags.Flags.explicitRefreshRateHints()) { return Optional.empty(); } final PerfHintController perfHintController = new PerfHintController(context, shellInit, shellCommandHandler, rootTdaOrganizer); return perfHintController.getHinter(); return Optional.of(perfHintController.getHinter()); } // Loading Loading
libs/WindowManager/Shell/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,7 @@ android_library { "kotlinx-coroutines-core", "iconloader_base", "com_android_wm_shell_flags_lib", "com.android.window.flags.window-aconfig-java", "WindowManager-Shell-proto", "dagger2", "jsr330", Loading
libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellBaseModule.java +5 −2 Original line number Diff line number Diff line Loading @@ -324,13 +324,16 @@ public abstract class WMShellBaseModule { @WMSingleton @Provides static SystemPerformanceHinter provideSystemPerformanceHinter(Context context, static Optional<SystemPerformanceHinter> provideSystemPerformanceHinter(Context context, ShellInit shellInit, ShellCommandHandler shellCommandHandler, RootTaskDisplayAreaOrganizer rootTdaOrganizer) { if (!com.android.window.flags.Flags.explicitRefreshRateHints()) { return Optional.empty(); } final PerfHintController perfHintController = new PerfHintController(context, shellInit, shellCommandHandler, rootTdaOrganizer); return perfHintController.getHinter(); return Optional.of(perfHintController.getHinter()); } // Loading