powerstats: expose display MRR state residency data provider
Bug: 321848496 Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest Change-Id: I967210bef1d33d8bc344ea80e6c31f70a3414604 Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
34f3ee5073
commit
9f8d681088
2 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
#include <Gs101CommonDataProviders.h>
|
||||
#include "AocStateResidencyDataProvider.h"
|
||||
#include "DevfreqStateResidencyDataProvider.h"
|
||||
#include <DisplayMrrStateResidencyDataProvider.h>
|
||||
#include "DvfsStateResidencyDataProvider.h"
|
||||
#include "UfsStateResidencyDataProvider.h"
|
||||
#include <dataproviders/GenericStateResidencyDataProvider.h>
|
||||
|
@ -34,6 +35,7 @@
|
|||
|
||||
using aidl::android::hardware::power::stats::AocStateResidencyDataProvider;
|
||||
using aidl::android::hardware::power::stats::DevfreqStateResidencyDataProvider;
|
||||
using aidl::android::hardware::power::stats::DisplayMrrStateResidencyDataProvider;
|
||||
using aidl::android::hardware::power::stats::DvfsStateResidencyDataProvider;
|
||||
using aidl::android::hardware::power::stats::UfsStateResidencyDataProvider;
|
||||
using aidl::android::hardware::power::stats::EnergyConsumerType;
|
||||
|
@ -669,6 +671,11 @@ void addPixelStateResidencyDataProvider(std::shared_ptr<PowerStats> p) {
|
|||
p->addStateResidencyDataProvider(std::move(pixelSdp));
|
||||
}
|
||||
|
||||
void addDisplayMrr(std::shared_ptr<PowerStats> p) {
|
||||
p->addStateResidencyDataProvider(std::make_unique<DisplayMrrStateResidencyDataProvider>(
|
||||
"Display", "/sys/class/drm/card0/device/primary-panel/"));
|
||||
}
|
||||
|
||||
void addGs101CommonDataProviders(std::shared_ptr<PowerStats> p) {
|
||||
setEnergyMeter(p);
|
||||
|
||||
|
|
|
@ -22,4 +22,5 @@ using aidl::android::hardware::power::stats::PowerStats;
|
|||
|
||||
void addGs101CommonDataProviders(std::shared_ptr<PowerStats> p);
|
||||
|
||||
void addDisplayMrr(std::shared_ptr<PowerStats> p);
|
||||
void addNFC(std::shared_ptr<PowerStats> p, const std::string& path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue