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

Commit 72cac853 authored by Satish Yalla's avatar Satish Yalla Committed by Android (Google) Code Review
Browse files

Merge "Revert "Support PER_DISPLAY_BRIGHTNESS."" into main

parents 538829fe 957e91f3
Loading
Loading
Loading
Loading
+9 −12
Original line number Diff line number Diff line
@@ -3195,22 +3195,19 @@
            }
        },
        {
            "property": "VehicleProperty::PER_DISPLAY_BRIGHTNESS"
        },
        {
            "property": "VehicleProperty::PER_DISPLAY_MAX_BRIGHTNESS",
            "property": "VehicleProperty::DISPLAY_BRIGHTNESS",
            "defaultValue": {
                "int32Values": [
                    0,
                    100,
                    1,
                    100,
                    2,
                    100,
                    3,
                    100
                ]
            },
            "areas": [
                {
                    "areaId": 0,
                    "minInt32Value": 0,
                    "maxInt32Value": 100
                }
            ]
        },
        {
            "property": "VehicleProperty::VALET_MODE_ENABLED",
+0 −4
Original line number Diff line number Diff line
@@ -1047,10 +1047,6 @@ 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);