Home
last modified time | relevance | path

Searched refs:activeContexts (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPlaybackCallbackTest.java105 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withNoOnPlaybackConfigChanged_returnsEmptyList() local
108 assertThat(activeContexts).isEmpty(); in getAllActiveContextsForPrimaryZone_withNoOnPlaybackConfigChanged_returnsEmptyList()
126 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext() local
129 assertThat(activeContexts).containsExactly(MUSIC); in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext()
151 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts() local
154 assertThat(activeContexts).containsExactly(MUSIC, NAVIGATION); in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts()
177 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext() local
180 assertThat(activeContexts).containsExactly(MUSIC); in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext()
204 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withNoActiveConfigurations_returnsEmptyContexts() local
207 assertThat(activeContexts).isEmpty(); in getAllActiveContextsForPrimaryZone_withNoActiveConfigurations_returnsEmptyContexts()
[all …]
DCarVolumeTest.java430 @AudioContext int[] activeContexts = {VOICE_COMMAND}; in isAnyContextActive_withOneConfigurationAndMatchedContext_returnsTrue() local
434 .isAnyContextActive(activeContexts, activePlaybackContexts, CALL_STATE_IDLE, in isAnyContextActive_withOneConfigurationAndMatchedContext_returnsTrue()
440 @AudioContext int[] activeContexts = {ALARM}; in isAnyContextActive_withOneConfigurationAndMismatchedContext_returnsFalse() local
444 .isAnyContextActive(activeContexts, activePlaybackContexts, CALL_STATE_IDLE, in isAnyContextActive_withOneConfigurationAndMismatchedContext_returnsFalse()
450 @AudioContext int[] activeContexts = {ALARM, MUSIC, VOICE_COMMAND}; in isAnyContextActive_withOneConfigurationAndMultipleContexts_returnsTrue() local
454 .isAnyContextActive(activeContexts, activePlaybackContexts, CALL_STATE_IDLE, in isAnyContextActive_withOneConfigurationAndMultipleContexts_returnsTrue()
460 @AudioContext int[] activeContexts = {ALARM, MUSIC, VOICE_COMMAND}; in isAnyContextActive_withOneConfigurationAndMultipleContexts_returnsFalse() local
464 .isAnyContextActive(activeContexts, activePlaybackContexts, CALL_STATE_IDLE, in isAnyContextActive_withOneConfigurationAndMultipleContexts_returnsFalse()
470 @AudioContext int[] activeContexts = {VOICE_COMMAND}; in isAnyContextActive_withActiveHalUsagesAndMatchedContext_returnsTrue() local
475 .isAnyContextActive(activeContexts, activePlaybackContexts, CALL_STATE_IDLE, in isAnyContextActive_withActiveHalUsagesAndMatchedContext_returnsTrue()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZoneTest.java130 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_returnsAllActiveContext() local
133 assertThat(activeContexts).containsExactly(MUSIC, NAVIGATION); in findActiveContextsFromPlaybackConfigurations_returnsAllActiveContext()
148 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_returnsNoMatchingContexts() local
151 assertThat(activeContexts).isEmpty(); in findActiveContextsFromPlaybackConfigurations_returnsNoMatchingContexts()
169 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_withMultiDevices_returnsContexts() local
172 assertThat(activeContexts).containsExactly(VOICE_COMMAND, ALARM); in findActiveContextsFromPlaybackConfigurations_withMultiDevices_returnsContexts()
190 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_deviceWithMultiContext_returnsContext() local
193 assertThat(activeContexts).containsExactly(ALARM); in findActiveContextsFromPlaybackConfigurations_deviceWithMultiContext_returnsContext()
209 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_withNonMatchingContext_returnsContext() local
212 assertThat(activeContexts).containsExactly(SYSTEM_SOUND); in findActiveContextsFromPlaybackConfigurations_withNonMatchingContext_returnsContext()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarVolume.java144 Set<Integer> activeContexts = getActiveContexts(activePlaybackContexts, callState, in getSuggestedAudioContextAndSaveIfFound() local
149 findActiveContextWithHighestPriority(activeContexts, mVolumePriorityByAudioContext); in getSuggestedAudioContextAndSaveIfFound()
157 Set<Integer> activeContexts, SparseIntArray contextPriorities) { in findActiveContextWithHighestPriority() argument
161 for (@AudioContext int context : activeContexts) { in findActiveContextWithHighestPriority()
193 Set<Integer> activeContexts = getActiveContexts(activePlaybackContext, in isAnyContextActive() local
196 if (activeContexts.contains(context)) { in isAnyContextActive()
DCarAudioPlaybackCallback.java78 List<Integer> activeContexts = getCurrentlyActiveContextsLocked(); in getAllActiveContextsForPrimaryZone() local
79 activeContexts in getAllActiveContextsForPrimaryZone()
81 return activeContexts; in getAllActiveContextsForPrimaryZone()
87 List<Integer> activeContexts = mCarPrimaryAudioZone in startTimersForContextThatBecameInactiveLocked() local
90 for (int activeContext : activeContexts) { in startTimersForContextThatBecameInactiveLocked()
DCarAudioZone.java217 List<Integer> activeContexts = new ArrayList<>(); in findActiveContextsFromPlaybackConfigurations() local
224 activeContexts.add(CarAudioContext.getContextForUsage( in findActiveContextsFromPlaybackConfigurations()
229 return activeContexts; in findActiveContextsFromPlaybackConfigurations()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java370 int[] activeContexts = mHalAudioFocus.getActiveUsagesForZone(ZONE_ID); in getActiveUsagesForZone_withEmptyStack_getsEmpty() local
372 assertThat(activeContexts).isEmpty(); in getActiveUsagesForZone_withEmptyStack_getsEmpty()
381 int[] activeContexts = mHalAudioFocus.getActiveUsagesForZone(ZONE_ID); in getActiveUsagesForZone_withSingleUsage_getsUsage() local
383 assertThat(activeContexts).asList().containsExactly(USAGE_MEDIA); in getActiveUsagesForZone_withSingleUsage_getsUsage()
395 int[] activeContexts = mHalAudioFocus.getActiveUsagesForZone(ZONE_ID); in getActiveUsagesForZone_withMultipleUsages_getsUsages() local
397 assertThat(activeContexts).asList().containsExactly(USAGE_MEDIA, in getActiveUsagesForZone_withMultipleUsages_getsUsages()