Loading power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/SupportInfo.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -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; } } power/aidl/android/hardware/power/CpuHeadroomParams.aidl +4 −3 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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; } power/aidl/android/hardware/power/GpuHeadroomParams.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -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; } power/aidl/android/hardware/power/SupportInfo.aidl +34 −0 Original line number Diff line number Diff line Loading @@ -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; } } Loading
power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/SupportInfo.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -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; } }
power/aidl/android/hardware/power/CpuHeadroomParams.aidl +4 −3 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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; }
power/aidl/android/hardware/power/GpuHeadroomParams.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -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; }
power/aidl/android/hardware/power/SupportInfo.aidl +34 −0 Original line number Diff line number Diff line Loading @@ -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; } }