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

Commit fb92d421 authored by Aaron Kling's avatar Aaron Kling
Browse files

Add powerhint function that accepts an array of data

Change-Id: I9f7cf223fba8e448a9fc737c0148b6c11f5abfdb
parent 0eb85c8e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1501,4 +1501,15 @@ public final class PowerManager {
        return mContext.getResources().getInteger(
                com.android.internal.R.integer.config_keyboardBrightnessSettingDefault);
    }

    /**
     *  powerHint used by some Nvidia devices
     *  Ignores any bytes of data beyond the first
     *  @hide
     */
    public void powerHint(int hintId, int[] data) {
        try {
            mService.powerHint(hintId, data.length > 0 ? data[0] : 0);
        } catch (RemoteException dummy) {}
    }
}