/aosp12/hardware/google/pixel/thermal/ |
H A D | pixel-thermal-logd.rc | 1 on property:persist.vendor.log.thermal=1 2 start vendor.thermal.logd 5 stop vendor.thermal.logd 7 on property:persist.vendor.log.thermal=1 && property:persist.vendor.log.thermal.interval=* 8 restart vendor.thermal.logd 10 service vendor.thermal.logd /vendor/bin/thermal_logd ${persist.vendor.log.thermal.interval:-5} 18 setprop vendor.disable.thermal.control ${persist.vendor.disable.thermal.control} 24 setprop vendor.disable.thermal.tj.control ${persist.vendor.disable.thermal.tj.control} 29 on property:vendor.disable.thermal.control=1 && property:vendor.thermal.link_ready=1 31 stop vendor.thermal-engine [all …]
|
H A D | android.hardware.thermal@2.0-service.pixel.rc | 1 on property:vendor.thermal.link_ready=1 2 # queue the trigger to start thermal-hal and continue execute 3 # per-device thermal setup "on property:vendor.thermal.link_ready=1" 4 trigger enable-thermal-hal 6 on enable-thermal-hal 7 start vendor.thermal-hal-2-0 9 service vendor.thermal-hal-2-0 /vendor/bin/hw/android.hardware.thermal@2.0-service.pixel 10 interface android.hardware.thermal@1.0::IThermal default 11 interface android.hardware.thermal@2.0::IThermal default
|
H A D | Android.bp | 12 name: "android.hardware.thermal@2.0-service.pixel", 18 vintf_fragments: ["android.hardware.thermal@2.0-service.pixel.xml"], 20 "android.hardware.thermal@2.0-service.pixel.rc", 25 "thermal-helper.cpp", 39 "android.hardware.thermal@1.0", 40 "android.hardware.thermal@2.0", 63 src: "init.thermal.logging.sh", 66 "pixel-thermal-logd.rc", 72 src: "init.thermal.symlinks.sh", 75 "pixel-thermal-symlinks.rc",
|
H A D | init.thermal.symlinks.sh | 3 for f in /sys/class/thermal/thermal_zone* 6 ln -s $f /dev/thermal/tz-by-name/$tz_name 8 for f in /sys/class/thermal/cooling_device* 11 ln -s $f /dev/thermal/cdev-by-name/$cdev_name 13 setprop vendor.thermal.link_ready 1
|
H A D | pixel-thermal-symlinks.rc | 2 mkdir /dev/thermal 0750 system system 3 mkdir /dev/thermal/tz-by-name 0750 system system 4 mkdir /dev/thermal/cdev-by-name 0750 system system 5 start vendor.thermal.symlinks 7 service vendor.thermal.symlinks /vendor/bin/thermal_symlinks
|
H A D | thermal-helper.h | 53 namespace thermal { 60 using ::android::hardware::thermal::V1_0::CpuUsage; 61 using ::android::hardware::thermal::V2_0::CoolingType; 62 using ::android::hardware::thermal::V2_0::IThermal; 63 using CoolingDevice_1_0 = ::android::hardware::thermal::V1_0::CoolingDevice; 64 using CoolingDevice_2_0 = ::android::hardware::thermal::V2_0::CoolingDevice; 65 using Temperature_1_0 = ::android::hardware::thermal::V1_0::Temperature; 66 using Temperature_2_0 = ::android::hardware::thermal::V2_0::Temperature; 67 using TemperatureType_1_0 = ::android::hardware::thermal::V1_0::TemperatureType; 69 using ::android::hardware::thermal::V2_0::TemperatureThreshold; [all …]
|
/aosp12/hardware/google/pixel-sepolicy/thermal/ |
H A D | init-thermal-symlinks.sh.te | 1 type init-thermal-symlinks-sh, domain; 2 type init-thermal-symlinks-sh_exec, exec_type, vendor_file_type, file_type; 4 init_daemon_domain(init-thermal-symlinks-sh) 6 allow init-thermal-symlinks-sh vendor_toolbox_exec:file rx_file_perms; 7 allow init-thermal-symlinks-sh thermal_link_device:dir rw_dir_perms; 8 allow init-thermal-symlinks-sh thermal_link_device:lnk_file create_file_perms; 9 allow init-thermal-symlinks-sh sysfs_thermal:dir r_dir_perms; 10 allow init-thermal-symlinks-sh sysfs_thermal:file r_file_perms; 11 allow init-thermal-symlinks-sh sysfs_thermal:lnk_file r_file_perms; 12 set_prop(init-thermal-symlinks-sh, vendor_thermal_prop)
|
H A D | init-thermal-logging.sh.te | 1 type init-thermal-logging-sh, domain; 2 type init-thermal-logging-sh_exec, exec_type, vendor_file_type, file_type; 4 init_daemon_domain(init-thermal-logging-sh) 7 allow init-thermal-logging-sh vendor_toolbox_exec:file rx_file_perms; 8 allow init-thermal-logging-sh sysfs_thermal:dir r_dir_perms; 9 allow init-thermal-logging-sh sysfs_thermal:file r_file_perms;
|
H A D | file_contexts | 1 /vendor/bin/hw/android\.hardware\.thermal@2\.0-service\.pixel u:object_r:hal_th… 2 … u:object_r:init-thermal-logging-sh_exec:s0 3 …nks u:object_r:init-thermal-symlinks-sh_exec:… 4 /dev/thermal(/.*)? u:object_r:therma…
|
/aosp12/hardware/interfaces/thermal/2.0/default/ |
H A D | Thermal.h | 26 namespace thermal { 37 using ::android::hardware::thermal::V1_0::CpuUsage; 38 using ::android::hardware::thermal::V2_0::CoolingType; 39 using ::android::hardware::thermal::V2_0::IThermal; 40 using CoolingDevice_1_0 = ::android::hardware::thermal::V1_0::CoolingDevice; 41 using CoolingDevice_2_0 = ::android::hardware::thermal::V2_0::CoolingDevice; 42 using Temperature_1_0 = ::android::hardware::thermal::V1_0::Temperature; 43 using Temperature_2_0 = ::android::hardware::thermal::V2_0::Temperature; 44 using ::android::hardware::thermal::V2_0::IThermalChangedCallback; 45 using ::android::hardware::thermal::V2_0::TemperatureThreshold; [all …]
|
H A D | android.hardware.thermal@2.0-service.rc | 1 service vendor.thermal-hal-2-0-mock /vendor/bin/hw/android.hardware.thermal@2.0-service.mock 2 interface android.hardware.thermal@1.0::IThermal default 3 interface android.hardware.thermal@2.0::IThermal default
|
H A D | Android.bp | 26 name: "android.hardware.thermal@2.0-service.mock", 30 init_rc: ["android.hardware.thermal@2.0-service.rc"], 31 vintf_fragments: ["android.hardware.thermal@2.0-service.xml"], 40 "android.hardware.thermal@2.0", 41 "android.hardware.thermal@1.0",
|
H A D | Thermal.cpp | 29 namespace thermal { namespace 35 using ::android::hardware::thermal::V1_0::ThermalStatus; 36 using ::android::hardware::thermal::V1_0::ThermalStatusCode; 41 .type = static_cast<::android::hardware::thermal::V1_0::TemperatureType>( 66 .type = ::android::hardware::thermal::V1_0::CoolingType::FAN_RPM, 178 << " Type: " << android::hardware::thermal::V2_0::toString(type); in registerThermalChangedCallback() 205 << android::hardware::thermal::V2_0::toString(c.type); in unregisterThermalChangedCallback()
|
/aosp12/hardware/interfaces/thermal/1.0/default/ |
H A D | Thermal.h | 27 namespace thermal { 31 using ::android::hardware::thermal::V1_0::CoolingDevice; 32 using ::android::hardware::thermal::V1_0::CpuUsage; 33 using ::android::hardware::thermal::V1_0::IThermal; 34 using ::android::hardware::thermal::V1_0::Temperature; 35 using ::android::hardware::thermal::V1_0::ThermalStatus;
|
H A D | Android.bp | 26 name: "android.hardware.thermal@1.0-impl", 39 "android.hardware.thermal@1.0", 44 name: "android.hardware.thermal@1.0-service", 48 init_rc: ["android.hardware.thermal@1.0-service.rc"], 59 "android.hardware.thermal@1.0",
|
H A D | android.hardware.thermal@1.0-service.rc | 1 service vendor.thermal-hal-1-0 /vendor/bin/hw/android.hardware.thermal@1.0-service 2 interface android.hardware.thermal@1.0::IThermal default
|
/aosp12/hardware/google/pixel/usb/include/pixelusb/ |
H A D | UsbOverheatEvent.h | 54 using ::android::hardware::thermal::V1_0::ThermalStatus; 55 using ::android::hardware::thermal::V1_0::ThermalStatusCode; 56 using ::android::hardware::thermal::V2_0::IThermal; 57 using ::android::hardware::thermal::V2_0::IThermalChangedCallback; 58 using ::android::hardware::thermal::V2_0::Temperature; 59 using ::android::hardware::thermal::V2_0::TemperatureType; 60 using ::android::hardware::thermal::V2_0::ThrottlingSeverity;
|
/aosp12/frameworks/base/libs/hwui/tests/scripts/ |
H A D | prep_fugu.sh | 8 thermal=$(adb shell "getprop persist.service.thermal") 9 echo "thermal status: $thermal" 10 if [ $thermal -eq 1 ] 16 thermal=$(adb shell "getprop persist.service.thermal") 17 if [ $thermal -eq 1 ]
|
/aosp12/hardware/interfaces/thermal/1.1/ |
H A D | IThermal.hal | 17 package android.hardware.thermal@1.1; 19 import android.hardware.thermal@1.0::IThermal; 25 * to send thermal events to the framework thermal service. 28 * thermal events, or nullptr to set no callback
|
/aosp12/hardware/qcom/sdm845/thermal/ |
H A D | Android.mk | 19 LOCAL_MODULE := thermal.$(TARGET_BOARD_PLATFORM) 25 LOCAL_SRC_FILES := thermal.c 29 LOCAL_SRC_FILES += thermal-8998.c 31 LOCAL_SRC_FILES += thermal-845.c
|
/aosp12/hardware/qcom/sm8150/thermal/ |
H A D | Android.mk | 19 LOCAL_MODULE := thermal.$(TARGET_BOARD_PLATFORM) 26 LOCAL_SRC_FILES := thermal.c 30 LOCAL_SRC_FILES += thermal-8998.c 32 LOCAL_SRC_FILES += thermal-845.c
|
/aosp12/hardware/interfaces/thermal/2.0/vts/functional/ |
H A D | VtsHalThermalV2_0TargetTest.cpp | 32 using ::android::hardware::thermal::V1_0::ThermalStatus; 33 using ::android::hardware::thermal::V1_0::ThermalStatusCode; 34 using ::android::hardware::thermal::V2_0::CoolingDevice; 35 using ::android::hardware::thermal::V2_0::CoolingType; 36 using ::android::hardware::thermal::V2_0::IThermal; 37 using ::android::hardware::thermal::V2_0::IThermalChangedCallback; 38 using ::android::hardware::thermal::V2_0::Temperature; 39 using ::android::hardware::thermal::V2_0::TemperatureThreshold; 40 using ::android::hardware::thermal::V2_0::TemperatureType; 41 using ::android::hardware::thermal::V2_0::ThrottlingSeverity;
|
/aosp12/hardware/interfaces/thermal/1.0/vts/functional/ |
H A D | VtsHalThermalV1_0TargetTest.cpp | 34 using ::android::hardware::thermal::V1_0::CoolingDevice; 35 using ::android::hardware::thermal::V1_0::CpuUsage; 36 using ::android::hardware::thermal::V1_0::IThermal; 37 using ::android::hardware::thermal::V1_0::Temperature; 38 using ::android::hardware::thermal::V1_0::TemperatureType; 39 using ::android::hardware::thermal::V1_0::ThermalStatus; 40 using ::android::hardware::thermal::V1_0::ThermalStatusCode;
|
/aosp12/hardware/google/camera/common/hal/hidl_service/ |
H A D | hidl_thermal_utils.h | 33 using ::android::hardware::thermal::V2_0::IThermalChangedCallback; 34 using ::android::hardware::thermal::V2_0::Temperature; 35 using ::android::hardware::thermal::V2_0::TemperatureType; 36 using ::android::hardware::thermal::V2_0::ThrottlingSeverity;
|
/aosp12/hardware/interfaces/thermal/2.0/ |
H A D | IThermal.hal | 16 package android.hardware.thermal@2.0; 18 import android.hardware.thermal@1.0::IThermal; 19 import android.hardware.thermal@1.0::ThermalStatus; 59 * throttling state is determined in device thermal mitigation policy/agorithm 70 * to receive thermal events when thermal mitigation status changed. 76 * thermal events (nullptr callback will lead to failure with status code FAILURE). 90 * to receive thermal events when thermal mitigation status changed. 93 * thermal events (nullptr callback will lead to failure with status code FAILURE).
|