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

Commit 78ebf46f 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: 6296cc3b

Change-Id: I624449599c8cb6b81a346bf77cc61edb40705988
parents 755d0747 6296cc3b
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(