Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab734ba8 authored by Oleg Petšjonkin's avatar Oleg Petšjonkin Committed by Android (Google) Code Review
Browse files

Merge "DisplayManager plugins feature flag" into main

parents 085a001c f6826a94
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -242,6 +242,11 @@ public class DisplayManagerFlags {
            Flags::autoBrightnessModeBedtimeWear
    );

    private final FlagState mEnablePluginManagerFlagState = new FlagState(
            Flags.FLAG_ENABLE_PLUGIN_MANAGER,
            Flags::enablePluginManager
    );

    /**
     * @return {@code true} if 'port' is allowed in display layout configuration file.
     */
@@ -517,6 +522,10 @@ public class DisplayManagerFlags {
        return mAutoBrightnessModeBedtimeWearFlagState.isEnabled();
    }

    public boolean isPluginManagerEnabled() {
        return mEnablePluginManagerFlagState.isEnabled();
    }

    /**
     * dumps all flagstates
     * @param pw printWriter
@@ -568,6 +577,7 @@ public class DisplayManagerFlags {
        pw.println(" " + mIsUserRefreshRateForExternalDisplayEnabled);
        pw.println(" " + mHasArrSupport);
        pw.println(" " + mAutoBrightnessModeBedtimeWearFlagState);
        pw.println(" " + mEnablePluginManagerFlagState);
    }

    private static class FlagState {
+8 −0
Original line number Diff line number Diff line
@@ -446,3 +446,11 @@ flag {
    bug: "365163968"
    is_fixed_read_only: true
}

flag {
    name: "enable_plugin_manager"
    namespace: "display_manager"
    description: "Flag to enable DisplayManager plugins"
    bug: "354059797"
    is_fixed_read_only: true
}