Change the API to check if a surround format is enabled
Bug: 268169221 Test: atest android.cts.statsdatom.media.MediaCapabilitiesTests#testSurroundSoundCapabilities (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:06946da0935319776f95626fa780c4524b6ed750) Merged-In: Ife24353fddff2ac36f948ff17c56de4c66cebbb5 Change-Id: Ife24353fddff2ac36f948ff17c56de4c66cebbb5
This commit is contained in:
committed by
Android Build Cherrypicker Worker
parent
2d89f481ba
commit
d3aa0d7f93
@@ -4513,7 +4513,7 @@ public class StatsPullAtomService extends SystemService {
|
||||
List<Integer> disabledSurroundEncodingsList = new ArrayList<>();
|
||||
List<Integer> enabledSurroundEncodingsList = new ArrayList<>();
|
||||
for (int surroundEncoding : surroundEncodingsMap.keySet()) {
|
||||
if (!surroundEncodingsMap.get(surroundEncoding)) {
|
||||
if (!audioManager.isSurroundFormatEnabled(surroundEncoding)) {
|
||||
disabledSurroundEncodingsList.add(surroundEncoding);
|
||||
} else {
|
||||
enabledSurroundEncodingsList.add(surroundEncoding);
|
||||
|
||||
Reference in New Issue
Block a user