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

Commit 478617ff authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Pull the media capabilities metrics only for TV devices"

parents 62c577e6 1e4f5390
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4491,6 +4491,9 @@ public class StatsPullAtomService extends SystemService {
    }

    int pullMediaCapabilitiesStats(int atomTag, List<StatsEvent> pulledData) {
        if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK)) {
            return StatsManager.PULL_SKIP;
        }
        AudioManager audioManager = mContext.getSystemService(AudioManager.class);
        if (audioManager == null) {
            return StatsManager.PULL_SKIP;