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

Commit 1bc0ff99 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert^2 "Support PER_DISPLAY_BRIGHTNESS."" into main

parents 84f3bd3b a38cd621
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
{
    "ravenwood-presubmit": [
        {
            "name": "CarServiceHostUnitTest",
            "host": true
        }
    ]
}
+12 −9
Original line number Diff line number Diff line
@@ -3195,19 +3195,22 @@
            }
        },
        {
            "property": "VehicleProperty::DISPLAY_BRIGHTNESS",
            "property": "VehicleProperty::PER_DISPLAY_BRIGHTNESS"
        },
        {
            "property": "VehicleProperty::PER_DISPLAY_MAX_BRIGHTNESS",
            "defaultValue": {
                "int32Values": [
                    0,
                    100,
                    1,
                    100,
                    2,
                    100,
                    3,
                    100
                ]
            },
            "areas": [
                {
                    "areaId": 0,
                    "minInt32Value": 0,
                    "maxInt32Value": 100
            }
            ]
        },
        {
            "property": "VehicleProperty::VALET_MODE_ENABLED",
+4 −0
Original line number Diff line number Diff line
@@ -1050,6 +1050,10 @@ VhalResult<void> FakeVehicleHardware::maybeSetSpecialValue(const VehiclePropValu
    VhalResult<void> isAdasPropertyAvailableResult;
    VhalResult<bool> isCruiseControlTypeStandardResult;
    switch (propId) {
        case toInt(VehicleProperty::DISPLAY_BRIGHTNESS):
        case toInt(VehicleProperty::PER_DISPLAY_BRIGHTNESS):
            ALOGD("DISPLAY_BRIGHTNESS: %s", value.toString().c_str());
            return {};
        case toInt(VehicleProperty::AP_POWER_STATE_REPORT):
            *isSpecialValue = true;
            return setApPowerStateReport(value);