Merge "Pull the media capabilities metrics only for TV devices"
This commit is contained in:
committed by
Android (Google) Code Review
commit
478617ffa9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user