/**@class android.os.HardwarePropertiesManager @extends java.lang.Object The HardwarePropertiesManager class provides a mechanism of accessing hardware state of a device: CPU, GPU and battery temperatures, CPU usage per core, fan speed, etc. */ var HardwarePropertiesManager = { /**Temperature of CPUs in Celsius. */ DEVICE_TEMPERATURE_CPU : "null", /**Temperature of GPUs in Celsius. */ DEVICE_TEMPERATURE_GPU : "null", /**Temperature of battery in Celsius. */ DEVICE_TEMPERATURE_BATTERY : "null", /**Temperature of device skin in Celsius. */ DEVICE_TEMPERATURE_SKIN : "null", /**Get current temperature. */ TEMPERATURE_CURRENT : "0", /**Get throttling temperature threshold. */ TEMPERATURE_THROTTLING : "1", /**Get shutdown temperature threshold. */ TEMPERATURE_SHUTDOWN : "2", /** Get throttling temperature threshold above which minimum clockrates for VR mode will not be met. */ TEMPERATURE_THROTTLING_BELOW_VR_MIN : "3", /**Undefined temperature constant. */ UNDEFINED_TEMPERATURE : "-3.4028235E38", /**Return an array of device temperatures in Celsius. @param {Number} type type of requested device temperature, one of {@link #DEVICE_TEMPERATURE_CPU}, {@link #DEVICE_TEMPERATURE_GPU}, {@link #DEVICE_TEMPERATURE_BATTERY} or {@link #DEVICE_TEMPERATURE_SKIN}. @param {Number} source source of requested device temperature, one of {@link #TEMPERATURE_CURRENT}, {@link #TEMPERATURE_THROTTLING}, {@link #TEMPERATURE_THROTTLING_BELOW_VR_MIN} or {@link #TEMPERATURE_SHUTDOWN}. @return {Number} an array of requested float device temperatures. Temperature equals to {@link #UNDEFINED_TEMPERATURE} if undefined. Empty if platform doesn't provide the queried temperature. @throws SecurityException if something other than the device owner or the current VR service tries to retrieve information provided by this service. */ getDeviceTemperatures : function( ) {}, /**Return an array of CPU usage info for each core. @return {Object {android.os.CpuUsageInfo}} an array of {@link android.os.CpuUsageInfo} for each core. Return {@code null} for each unplugged core. Empty if CPU usage is not supported on this system. @throws SecurityException if something other than the device owner or the current VR service tries to retrieve information provided by this service. */ getCpuUsages : function( ) {}, /**Return an array of fan speeds in RPM. @return {Number} an array of float fan speeds in RPM. Empty if there are no fans or fan speed is not supported on this system. @throws SecurityException if something other than the device owner or the current VR service tries to retrieve information provided by this service. */ getFanSpeeds : function( ) {}, };