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

Commit 6d669733 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "Remove code associated with power_stats flag" into main

parents 009dd965 afb968e2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

#include "AudioToken.h"
#define LOG_TAG "AudioPowerManager"
#include <com_android_media_audioserver.h>
#include <cutils/properties.h>
#include <utils/Log.h>
#include <psh_utils/AudioPowerManager.h>
@@ -129,8 +128,7 @@ void AudioPowerManager::clear_token_ptr(Token* token) {

/* static */
bool AudioPowerManager::enabled() {
    static const bool enabled = com::android::media::audioserver::power_stats()
            && property_get_bool("persist.audio.power_stats.enabled", false);
    static const bool enabled = property_get_bool("persist.audio.power_stats.enabled", false);
    return enabled;
}