thermal: Add VIRTUAL-SKIN-MODEL

- Add vskin-model.
- Rename existing vskin to vskin-legacy.
- Add input validation for model and fallback on vskin-legacy for
  vskin-model.
- Add abnormality and residency stats for vskin model.

Bug: 315948438
Test: Local build and verify lshal and thermal logcat.
Change-Id: I3930939b9ed3777ed6eb5bce745c9f099f639fb1
This commit is contained in:
sashwinbalaji 2024-03-26 17:10:42 +08:00
parent c5642a252a
commit 8255f9834c
3 changed files with 87 additions and 5 deletions

View file

@ -126,6 +126,10 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
device/google/comet/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
#Thermal VT estimator
PRODUCT_PACKAGES += \
libthermal_tflite_wrapper
# Thermal Config
ifeq (,$(TARGET_VENDOR_THERMAL_CONFIG_PATH))
TARGET_VENDOR_THERMAL_CONFIG_PATH := device/google/comet/thermal
@ -135,6 +139,7 @@ PRODUCT_COPY_FILES += \
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/thermal_info_config_charge_comet.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json \
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/thermal_info_config_comet.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/thermal_info_config_backup_comet.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_backup.json \
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/vt_estimation_model_comet.tflite:$(TARGET_COPY_OUT_VENDOR)/etc/vt_estimation_model.tflite \
PRODUCT_PACKAGES += \
init_thermal_config