Home
last modified time | relevance | path

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

/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
H A DCarAudioPlaybackCallbackTest.java105 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withNoOnPlaybackConfigChanged_returnsEmptyList() local
126 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext() local
151 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts() local
177 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext() local
204 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withNoActiveConfigurations_returnsEmptyContexts() local
245 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfig_beforeTimeout_returnsContexts() local
287 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfigs_beforeTimeout_returnsContexts() local
331 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_afterResetStillActiveContexts_returnsEmptyContext() local
372 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfig_afterTimeout_returnsContext() local
413 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfigs_afterTimeout_returnsEmpty() local
[all …]
H A DCarVolumeTest.java430 @AudioContext int[] activeContexts = {VOICE_COMMAND}; in isAnyContextActive_withOneConfigurationAndMatchedContext_returnsTrue() local
440 @AudioContext int[] activeContexts = {ALARM}; in isAnyContextActive_withOneConfigurationAndMismatchedContext_returnsFalse() local
470 @AudioContext int[] activeContexts = {VOICE_COMMAND}; in isAnyContextActive_withActiveHalUsagesAndMatchedContext_returnsTrue() local
481 @AudioContext int[] activeContexts = {ALARM}; in isAnyContextActive_withActiveHalUsagesAndMismatchedContext_returnsFalse() local
492 @AudioContext int[] activeContexts = {CALL}; in isAnyContextActive_withActiveCallAndMatchedContext_returnsTrue() local
503 @AudioContext int[] activeContexts = {VOICE_COMMAND}; in isAnyContextActive_withActiveCallAndMismatchedContext_returnsFalse() local
514 @AudioContext int[] activeContexts = null; in isAnyContextActive_withNullContexts_fails() local
519 () -> CarVolume.isAnyContextActive(activeContexts, in isAnyContextActive_withNullContexts_fails()
525 @AudioContext int[] activeContexts = {}; in isAnyContextActive_withEmptyContexts_fails() local
536 @AudioContext int[] activeContexts = {ALARM}; in isAnyContextActive_withNullActivePlayback_fails() local
[all …]
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
H A DCarAudioZoneTest.java130 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_returnsAllActiveContext() local
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
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()
230 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_withMultiGroupMatch_returnsContexts() local
244 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_onEmptyConfigurations_returnsNoContexts() local
[all …]
/aosp12/packages/services/Car/service/src/com/android/car/audio/
H A 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()
H A 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()
H A DCarAudioZone.java217 List<Integer> activeContexts = new ArrayList<>(); in findActiveContextsFromPlaybackConfigurations() local
224 activeContexts.add(CarAudioContext.getContextForUsage( in findActiveContextsFromPlaybackConfigurations()
229 return activeContexts; in findActiveContextsFromPlaybackConfigurations()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
H A 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()