Snap for 8710910 from 7134f571dd to udc-release

Change-Id: I86f8df4f84b30bce20385fb3bec3d2534c4fc946
This commit is contained in:
Android Build Coastguard Worker 2022-06-11 05:08:06 +00:00
commit 939fb0b10c
2 changed files with 5 additions and 5 deletions

View file

@ -20,6 +20,5 @@ cc_library {
shared_libs: [ shared_libs: [
"android.hardware.power.stats-impl.pixel", "android.hardware.power.stats-impl.pixel",
"libaoc",
], ],
} }

View file

@ -18,8 +18,6 @@
#include <android-base/logging.h> #include <android-base/logging.h>
#include <aoc.h>
namespace aidl { namespace aidl {
namespace android { namespace android {
namespace hardware { namespace hardware {
@ -28,8 +26,11 @@ namespace stats {
AocStateResidencyDataProvider::AocStateResidencyDataProvider(std::vector<std::pair<std::string, AocStateResidencyDataProvider::AocStateResidencyDataProvider(std::vector<std::pair<std::string,
std::string>> ids, std::vector<std::pair<std::string, std::string>> states) { std::string>> ids, std::vector<std::pair<std::string, std::string>> states) {
// AoC stats are reported in ticks // AoC stats are reported in ticks of 244.140625ns. The transform
std::function<uint64_t(uint64_t)> aocTickToMs = [](uint64_t a) { return aoc_ticks_to_nanoseconds(a) / 1000000; }; // function converts ticks to milliseconds.
// 1000000 / 244.140625 = 4096.
static const uint64_t AOC_CLK = 4096;
std::function<uint64_t(uint64_t)> aocTickToMs = [](uint64_t a) { return a / AOC_CLK; };
GenericStateResidencyDataProvider::StateResidencyConfig config = { GenericStateResidencyDataProvider::StateResidencyConfig config = {
.entryCountSupported = true, .entryCountSupported = true,
.entryCountPrefix = "Counter:", .entryCountPrefix = "Counter:",