Snap for 8397960 from 7eb5f7e1db
to tm-release
Change-Id: I21f7b629992825b3139098601e07373daf7f7759
This commit is contained in:
commit
d6ea3ffcf4
2 changed files with 6 additions and 9 deletions
|
@ -1042,9 +1042,9 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
ro.audio.monitorRotation = true \
|
ro.audio.monitorRotation = true \
|
||||||
ro.audio.offload_wakelock=false
|
ro.audio.offload_wakelock=false
|
||||||
|
|
||||||
# DO NOT SUBMIT declare use of spatial audio
|
# declare use of spatial audio
|
||||||
PRODUCT_PROPERTY_OVERRIDES += \
|
# PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
ro.audio.spatializer_enabled=true
|
# ro.audio.spatializer_enabled=true
|
||||||
|
|
||||||
ifeq (,$(filter aosp_%,$(TARGET_PRODUCT)))
|
ifeq (,$(filter aosp_%,$(TARGET_PRODUCT)))
|
||||||
# IAudioMetricExt HIDL
|
# IAudioMetricExt HIDL
|
||||||
|
|
|
@ -45,7 +45,6 @@ using aidl::android::hardware::power::stats::PowerStatsEnergyConsumer;
|
||||||
constexpr char kBootHwSoCRev[] = "ro.boot.hw.soc.rev";
|
constexpr char kBootHwSoCRev[] = "ro.boot.hw.soc.rev";
|
||||||
|
|
||||||
void addAoC(std::shared_ptr<PowerStats> p) {
|
void addAoC(std::shared_ptr<PowerStats> p) {
|
||||||
static const uint64_t TIMEOUT_MILLIS = 120;
|
|
||||||
std::string prefix = "/sys/devices/platform/19000000.aoc/control/";
|
std::string prefix = "/sys/devices/platform/19000000.aoc/control/";
|
||||||
|
|
||||||
// Add AoC cores (a32, ff1, hf0, and hf1)
|
// Add AoC cores (a32, ff1, hf0, and hf1)
|
||||||
|
@ -58,7 +57,7 @@ void addAoC(std::shared_ptr<PowerStats> p) {
|
||||||
std::vector<std::pair<std::string, std::string>> coreStates = {
|
std::vector<std::pair<std::string, std::string>> coreStates = {
|
||||||
{"DWN", "off"}, {"RET", "retention"}, {"WFI", "wfi"}};
|
{"DWN", "off"}, {"RET", "retention"}, {"WFI", "wfi"}};
|
||||||
p->addStateResidencyDataProvider(std::make_unique<AocStateResidencyDataProvider>(coreIds,
|
p->addStateResidencyDataProvider(std::make_unique<AocStateResidencyDataProvider>(coreIds,
|
||||||
coreStates, TIMEOUT_MILLIS));
|
coreStates));
|
||||||
|
|
||||||
// Add AoC voltage stats
|
// Add AoC voltage stats
|
||||||
std::vector<std::pair<std::string, std::string>> voltageIds = {
|
std::vector<std::pair<std::string, std::string>> voltageIds = {
|
||||||
|
@ -69,8 +68,7 @@ void addAoC(std::shared_ptr<PowerStats> p) {
|
||||||
{"UUD", "ultra_underdrive"},
|
{"UUD", "ultra_underdrive"},
|
||||||
{"UD", "underdrive"}};
|
{"UD", "underdrive"}};
|
||||||
p->addStateResidencyDataProvider(
|
p->addStateResidencyDataProvider(
|
||||||
std::make_unique<AocStateResidencyDataProvider>(voltageIds, voltageStates,
|
std::make_unique<AocStateResidencyDataProvider>(voltageIds, voltageStates));
|
||||||
TIMEOUT_MILLIS));
|
|
||||||
|
|
||||||
// Add AoC monitor mode
|
// Add AoC monitor mode
|
||||||
std::vector<std::pair<std::string, std::string>> monitorIds = {
|
std::vector<std::pair<std::string, std::string>> monitorIds = {
|
||||||
|
@ -80,8 +78,7 @@ void addAoC(std::shared_ptr<PowerStats> p) {
|
||||||
{"MON", "mode"},
|
{"MON", "mode"},
|
||||||
};
|
};
|
||||||
p->addStateResidencyDataProvider(
|
p->addStateResidencyDataProvider(
|
||||||
std::make_unique<AocStateResidencyDataProvider>(monitorIds, monitorStates,
|
std::make_unique<AocStateResidencyDataProvider>(monitorIds, monitorStates));
|
||||||
TIMEOUT_MILLIS));
|
|
||||||
|
|
||||||
// Add AoC restart count
|
// Add AoC restart count
|
||||||
const GenericStateResidencyDataProvider::StateResidencyConfig restartCountConfig = {
|
const GenericStateResidencyDataProvider::StateResidencyConfig restartCountConfig = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue