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

This commit is contained in:
TreeHugger Robot
2022-02-11 11:52:26 +00:00
committed by Android (Google) Code Review

View File

@@ -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;