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

Commit bcb1b786 authored by Tanguy Pruvot's avatar Tanguy Pruvot Committed by Gerrit Code Review
Browse files

Backlight settings, preliminary, but works

based on CM9 code

Change-Id: Iddcbee98f6588bba428c4059e786d946d7ce2298
parent e7ad161e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -46,4 +46,11 @@ interface IPowerManager
    void setBacklightBrightness(int brightness);
    void setAttentionLight(boolean on, int color);
    void setAutoBrightnessAdjustment(float adj);

    // custom backlight things
    int getLightSensorValue();
    int getRawLightSensorValue();
    int getLightSensorScreenBrightness();
    int getLightSensorButtonBrightness();
    int getLightSensorKeyboardBrightness();
}
+449 −28

File changed.

Preview size limit exceeded, changes collapsed.

+32 −0
Original line number Diff line number Diff line
@@ -129,4 +129,36 @@ public class BridgePowerManager implements IPowerManager {
    public void userActivityWithForce(long arg0, boolean arg1, boolean arg2) throws RemoteException {
        // pass for now.
    }

    // custom backlight things

    @Override
    public int getLightSensorValue() throws RemoteException {
        // pass for now.
        return 0;
    }

    @Override
    public int getRawLightSensorValue() throws RemoteException {
        // pass for now.
        return 0;
    }

    @Override
    public int getLightSensorScreenBrightness() throws RemoteException {
        // pass for now.
        return 0;
    }

    @Override
    public int getLightSensorButtonBrightness() throws RemoteException {
        // pass for now.
        return 0;
    }

    @Override
    public int getLightSensorKeyboardBrightness() throws RemoteException {
        // pass for now.
        return 0;
    }
}