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

Commit 80deeef8 authored by Aaron Kling's avatar Aaron Kling Committed by Luca Stefani
Browse files

Add powerhint function that accepts an array of data

Change-Id: I9f7cf223fba8e448a9fc737c0148b6c11f5abfdb
parent f741ad01
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1574,4 +1574,15 @@ public final class PowerManager {
            };
        }
    }

    /**
     *  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) {}
    }
}