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

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

Merge "Add headroom window range and max tid cnt to support info" into main

parents 6df5fa45 de4816c9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -55,5 +55,10 @@ parcelable SupportInfo {
    boolean isGpuSupported;
    int cpuMinIntervalMillis;
    int gpuMinIntervalMillis;
    int cpuMinCalculationWindowMillis = 50;
    int cpuMaxCalculationWindowMillis = 10000;
    int gpuMinCalculationWindowMillis = 50;
    int gpuMaxCalculationWindowMillis = 10000;
    int cpuMaxTidCount = 5;
  }
}
+4 −3
Original line number Diff line number Diff line
@@ -35,9 +35,8 @@ parcelable CpuHeadroomParams {
    CalculationType calculationType = CalculationType.MIN;

    /**
     * The calculation rolling window size in milliseconds.
     * The device should support a superset of [50, 10000] and try to use the closest feasible
     * window size to the provided value param.
     * The device should support the range specified in SupportInfo#HeadroomSupportInfo and try to
     * use the closest feasible window size to the provided value param.
     */
    int calculationWindowMillis = 1000;

@@ -50,6 +49,8 @@ parcelable CpuHeadroomParams {
     * This should handle all the cases including but not limited to core affinity and app cpuset
     * that change the available CPU cores for the caller. And the HAL should check that the TIDs
     * have the same core affinity.
     *
     * The device should support the maximum TID count specified SupportInfo#HeadroomSupportInfo.
     */
    int[] tids;
}
+2 −2
Original line number Diff line number Diff line
@@ -35,8 +35,8 @@ parcelable GpuHeadroomParams {
    CalculationType calculationType = CalculationType.MIN;

    /**
     * The device should support a superset of [50, 10000] and try to use the closest feasible
     * window size to the provided value param.
     * The device should support the range specified in SupportInfo#HeadroomSupportInfo and try to
     * use the closest feasible window size to the provided value param.
     */
    int calculationWindowMillis = 1000;
}
+34 −0
Original line number Diff line number Diff line
@@ -139,5 +139,39 @@ parcelable SupportInfo {
         * than the interval.
         */
        int gpuMinIntervalMillis;

        /**
         * Minimum calculation window size for getCpuHeadroom in milliseconds.
         *
         * This should be no larger than 50ms.
         */
        int cpuMinCalculationWindowMillis = 50;

        /**
         * Maximum calculation window size for getCpuHeadroom in milliseconds.
         *
         * This should be no smaller than 10000ms.
         */
        int cpuMaxCalculationWindowMillis = 10000;

        /**
         * Minimum calculation window size for getGpuHeadroom in milliseconds.
         *
         * This should be no larger than 50ms.
         */
        int gpuMinCalculationWindowMillis = 50;

        /**
         * Maximum calculation window size for getGpuHeadroom in milliseconds.
         *
         * This should be no smaller than 10000ms.
         */
        int gpuMaxCalculationWindowMillis = 10000;

        /**
         * Maximum number of TIDs this device can support.
         * This should be no smaller than 5.
         */
        int cpuMaxTidCount = 5;
    }
}