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

Commit 25cc44de authored by Sally's avatar Sally
Browse files

Add Reduce Bright Color Settings to proto files

Test: builds
Bug: b/128465252
Change-Id: I72d65c73b1eb4519be52a91fcaf05b722f0ac699
parent f4cb55fd
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -452,6 +452,15 @@ message SecureSettingsProto {
    }
    optional QuickSettings qs = 45;

    message ReduceBrightColors {
        option (android.msg_privacy).dest = DEST_EXPLICIT;

        optional SettingProto activated = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
        optional SettingProto level = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
        optional SettingProto persist_across_reboots = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
    }
    optional ReduceBrightColors reduce_bright_colors = 87;

    message Rotation {
        option (android.msg_privacy).dest = DEST_EXPLICIT;

@@ -625,5 +634,5 @@ message SecureSettingsProto {

    // Please insert fields in alphabetical order and group them into messages
    // if possible (to avoid reaching the method limit).
    // Next tag = 87;
    // Next tag = 88;
}
+12 −0
Original line number Diff line number Diff line
@@ -2343,6 +2343,18 @@ class SettingsProtoDumpUtil {
                SecureSettingsProto.QuickSettings.AUTO_ADDED_TILES);
        p.end(qsToken);

        final long reduceBrightColorsToken = p.start(SecureSettingsProto.REDUCE_BRIGHT_COLORS);
        dumpSetting(s, p,
                Settings.Secure.REDUCE_BRIGHT_COLORS_ACTIVATED,
                SecureSettingsProto.ReduceBrightColors.ACTIVATED);
        dumpSetting(s, p,
                Settings.Secure.REDUCE_BRIGHT_COLORS_LEVEL,
                SecureSettingsProto.ReduceBrightColors.LEVEL);
        dumpSetting(s, p,
                Settings.Secure.REDUCE_BRIGHT_COLORS_PERSIST_ACROSS_REBOOTS,
                SecureSettingsProto.ReduceBrightColors.PERSIST_ACROSS_REBOOTS);
        p.end(reduceBrightColorsToken);

        final long rotationToken = p.start(SecureSettingsProto.ROTATION);
        dumpSetting(s, p,
                Settings.Secure.SHOW_ROTATION_SUGGESTIONS,