powerstats: update MRR refresh rate residency node path

Refresh rate residency is not directly related to backlight state.
Relocate to a more appropriate location.

Bug: 315424658
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: Ife9e8e0c362c11342d83e35df0a6c3f3e4919aa9
This commit is contained in:
Midas Chien 2024-01-12 07:15:40 +00:00
parent 484be57f34
commit 23ee662458
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ using aidl::android::hardware::power::stats::PowerStatsEnergyConsumer;
void addDisplay(std::shared_ptr<PowerStats> p) {
// Add display residency stats
struct stat buffer;
if (stat("/sys/class/backlight/panel0-backlight/time_in_state", &buffer)) {
if (stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) {
// time_in_state doesn't exist
std::vector<std::string> states = {
"Off",

View file

@ -35,7 +35,7 @@ using aidl::android::hardware::power::stats::PowerStatsEnergyConsumer;
void addDisplay(std::shared_ptr<PowerStats> p) {
// Add display residency stats
struct stat buffer;
if (stat("/sys/class/backlight/panel0-backlight/time_in_state", &buffer)) {
if (stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) {
// time_in_state doesn't exist
std::vector<std::string> states = {
"Off",