Add native Thermal Throttling API to libandroid.
Add native thermal manager API of thermal mananger service into libandroid. Export Thermal API as NDK library. Bug: 137151587 Bug: 136285293 Test: build, atest thermalmanager-test atest CtsThermalTestCases Change-Id: Ia49fb2133624ffcd6168af804ae612ef2bb190f2
This commit is contained in:
@@ -16,4 +16,4 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
parcelable CoolingDevice;
|
||||
parcelable CoolingDevice cpp_header "android/CoolingDevice.h";
|
||||
|
||||
@@ -56,7 +56,7 @@ interface IThermalService {
|
||||
* @return list of {@link android.os.Temperature}.
|
||||
* {@hide}
|
||||
*/
|
||||
List<Temperature> getCurrentTemperatures();
|
||||
Temperature[] getCurrentTemperatures();
|
||||
|
||||
/**
|
||||
* Get current temperature with its throttling status on given temperature type.
|
||||
@@ -64,7 +64,7 @@ interface IThermalService {
|
||||
* @return list of {@link android.os.Temperature}.
|
||||
* {@hide}
|
||||
*/
|
||||
List<Temperature> getCurrentTemperaturesWithType(in int type);
|
||||
Temperature[] getCurrentTemperaturesWithType(in int type);
|
||||
|
||||
/**
|
||||
* Register a listener for thermal status change.
|
||||
@@ -94,7 +94,7 @@ interface IThermalService {
|
||||
* @return list of {@link android.os.CoolingDevice}.
|
||||
* {@hide}
|
||||
*/
|
||||
List<CoolingDevice> getCurrentCoolingDevices();
|
||||
CoolingDevice[] getCurrentCoolingDevices();
|
||||
|
||||
/**
|
||||
* Get current cooling devices on given type.
|
||||
@@ -102,7 +102,8 @@ interface IThermalService {
|
||||
* @return list of {@link android.os.CoolingDevice}.
|
||||
* {@hide}
|
||||
*/
|
||||
List<CoolingDevice> getCurrentCoolingDevicesWithType(in int type);
|
||||
|
||||
CoolingDevice[] getCurrentCoolingDevicesWithType(in int type);
|
||||
|
||||
/**
|
||||
* @param forecastSeconds how many seconds ahead to forecast the provided headroom
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
|
||||
package android.os;
|
||||
|
||||
parcelable Temperature;
|
||||
parcelable Temperature cpp_header "android/Temperature.h";
|
||||
|
||||
Reference in New Issue
Block a user