Searched refs:activeContexts (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarVolumeTest.java | 582 @AudioContext int[] activeContexts = in isAnyContextActive_withOneConfigurationAndMatchedContext_returnsTrue() local 587 assertThat(mCarVolume.isAnyContextActive(activeContexts, activePlaybackAttributes, in isAnyContextActive_withOneConfigurationAndMatchedContext_returnsTrue() 593 @AudioContext int[] activeContexts = in isAnyContextActive_withOneConfigurationAndMismatchedContext_returnsFalse() local 598 assertThat(mCarVolume.isAnyContextActive(activeContexts, activePlaybackAttributes, in isAnyContextActive_withOneConfigurationAndMismatchedContext_returnsFalse() 604 @AudioContext int[] activeContexts = in isAnyContextActive_withOneConfigurationAndMultipleContexts_returnsTrue() local 612 assertThat(mCarVolume.isAnyContextActive(activeContexts, activePlaybackAttributes, in isAnyContextActive_withOneConfigurationAndMultipleContexts_returnsTrue() 618 @AudioContext int[] activeContexts = { in isAnyContextActive_withOneConfigurationAndMultipleContexts_returnsFalse() local 626 assertThat(mCarVolume.isAnyContextActive(activeContexts, activePlaybackAttributes, in isAnyContextActive_withOneConfigurationAndMultipleContexts_returnsFalse() 632 @AudioContext int[] activeContexts = in isAnyContextActive_withactiveHalAudioAttributesAndMatchedContext_returnsTrue() local 638 assertThat(mCarVolume.isAnyContextActive(activeContexts, Collections.EMPTY_LIST, in isAnyContextActive_withactiveHalAudioAttributesAndMatchedContext_returnsTrue() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | ZoneAudioPlaybackCallback.java | 97 List<AudioAttributes> activeContexts = getCurrentlyActiveAttributesLocked(); in getAllActiveAudioAttributes() local 98 activeContexts in getAllActiveAudioAttributes() 100 return activeContexts; in getAllActiveAudioAttributes()
|
D | CarVolume.java | 282 Set<Integer> activeContexts = new ArraySet<>(activeAttributes.size()); in isAnyContextActive() local 285 activeContexts.add(mCarAudioContext in isAnyContextActive() 290 if (activeContexts.contains(contexts[index])) { in isAnyContextActive()
|