Replace stream state primitive arrays with SparseArrays
This is necessary since after the internal removal of STREAM_BLUETOOTH_SCO we now do not have values assigner for the primitive array index belonging to sco. Using SparseArrays offers better null pointer and invalid index handling. Flag: com.android.media.audio.replace_stream_bt_sco Test: atest AudioManagerTest/AudioDeviceVolumeManagerTest/VolumeHelperTest and manual tests Bug: 345024266 Change-Id: I3d24485fb6285025f403976ba5b9d8cf9338edfb
Loading
Please register or sign in to comment