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

Commit 3871106c authored by Matt Buckley's avatar Matt Buckley Committed by Android (Google) Code Review
Browse files

Merge "Add flagging for ADPF setPreferPowerEfficiency API" into main

parents 9e3dae52 0330f771
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33050,7 +33050,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"
}