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

Commit 0330f771 authored by Matt Buckley's avatar Matt Buckley
Browse files

Add flagging for ADPF setPreferPowerEfficiency API

Bug: 305065982
Test: manual
Change-Id: I2570797b1c9fb31ab935d45c138220d9878245de
parent 8bf88f23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33047,7 +33047,7 @@ package android.os {
  public static class PerformanceHintManager.Session implements java.io.Closeable {
    method public void close();
    method public void reportActualWorkDuration(long);
    method public void setPreferPowerEfficiency(boolean);
    method @FlaggedApi("android.os.adpf_prefer_power_efficiency") public void setPreferPowerEfficiency(boolean);
    method public void setThreads(@NonNull int[]);
    method public void updateTargetWorkDuration(long);
  }
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.os;

import android.annotation.FlaggedApi;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
@@ -231,6 +232,7 @@ public final class PerformanceHintManager {
         *
         * @param enabled The flag that sets whether this session uses power-efficient scheduling.
         */
        @FlaggedApi(Flags.FLAG_ADPF_PREFER_POWER_EFFICIENCY)
        public void setPreferPowerEfficiency(boolean enabled) {
            nativeSetPreferPowerEfficiency(mNativeSessionPtr, enabled);
        }
+7 −0
Original line number Diff line number Diff line
@@ -34,3 +34,10 @@ flag {
    description: "Introduce a constant as maximum value of bugreport mode."
    bug: "305067125"
}

flag {
    name: "adpf_prefer_power_efficiency"
    namespace: "game"
    description: "Guards the ADPF power efficiency API"
    bug: "288117936"
}