Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03952bcf authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "MediaMetrics: Enable AudioPowerUsage to statsd" into rvc-dev am:...

Merge "MediaMetrics: Enable AudioPowerUsage to statsd" into rvc-dev am: 6296cc3b am: 78ebf46f am: eda5b26d

Change-Id: I65fa47f59ddcb8227c1651ace1a3d736480d39d2
parents fb61495b eda5b26d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -141,13 +141,11 @@ void AudioPowerUsage::sendItem(const std::shared_ptr<const mediametrics::Item>&
    double volume;
    if (!item->getDouble(AUDIO_POWER_USAGE_PROP_VOLUME, &volume)) return;

#ifdef STATSD
    (void)android::util::stats_write(android::util::AUDIO_POWER_USAGE_DATA_REPORTED,
                                         device,
                                         (int32_t)(duration_ns / NANOS_PER_SECOND),
                                         (float)volume,
                                         type);
#endif
}

bool AudioPowerUsage::saveAsItem_l(