Searched refs:activeContexts (Results 1 – 7 of 7) sorted by relevance
105 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withNoOnPlaybackConfigChanged_returnsEmptyList() local126 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext() local151 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts() local177 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext() local204 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withNoActiveConfigurations_returnsEmptyContexts() local245 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfig_beforeTimeout_returnsContexts() local287 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfigs_beforeTimeout_returnsContexts() local331 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_afterResetStillActiveContexts_returnsEmptyContext() local372 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfig_afterTimeout_returnsContext() local413 List<Integer> activeContexts = in getAllActiveContextsForPrimaryZone_withInactiveConfigs_afterTimeout_returnsEmpty() local[all …]
430 @AudioContext int[] activeContexts = {VOICE_COMMAND}; in isAnyContextActive_withOneConfigurationAndMatchedContext_returnsTrue() local440 @AudioContext int[] activeContexts = {ALARM}; in isAnyContextActive_withOneConfigurationAndMismatchedContext_returnsFalse() local470 @AudioContext int[] activeContexts = {VOICE_COMMAND}; in isAnyContextActive_withActiveHalUsagesAndMatchedContext_returnsTrue() local481 @AudioContext int[] activeContexts = {ALARM}; in isAnyContextActive_withActiveHalUsagesAndMismatchedContext_returnsFalse() local492 @AudioContext int[] activeContexts = {CALL}; in isAnyContextActive_withActiveCallAndMatchedContext_returnsTrue() local503 @AudioContext int[] activeContexts = {VOICE_COMMAND}; in isAnyContextActive_withActiveCallAndMismatchedContext_returnsFalse() local514 @AudioContext int[] activeContexts = null; in isAnyContextActive_withNullContexts_fails() local519 () -> CarVolume.isAnyContextActive(activeContexts, in isAnyContextActive_withNullContexts_fails()525 @AudioContext int[] activeContexts = {}; in isAnyContextActive_withEmptyContexts_fails() local536 @AudioContext int[] activeContexts = {ALARM}; in isAnyContextActive_withNullActivePlayback_fails() local[all …]
130 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_returnsAllActiveContext() local148 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_returnsNoMatchingContexts() local151 assertThat(activeContexts).isEmpty(); in findActiveContextsFromPlaybackConfigurations_returnsNoMatchingContexts()169 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_withMultiDevices_returnsContexts() local190 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_deviceWithMultiContext_returnsContext() local193 assertThat(activeContexts).containsExactly(ALARM); in findActiveContextsFromPlaybackConfigurations_deviceWithMultiContext_returnsContext()209 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_withNonMatchingContext_returnsContext() local212 assertThat(activeContexts).containsExactly(SYSTEM_SOUND); in findActiveContextsFromPlaybackConfigurations_withNonMatchingContext_returnsContext()230 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_withMultiGroupMatch_returnsContexts() local244 List<Integer> activeContexts = mTestAudioZone in findActiveContextsFromPlaybackConfigurations_onEmptyConfigurations_returnsNoContexts() local[all …]
144 Set<Integer> activeContexts = getActiveContexts(activePlaybackContexts, callState, in getSuggestedAudioContextAndSaveIfFound() local149 findActiveContextWithHighestPriority(activeContexts, mVolumePriorityByAudioContext); in getSuggestedAudioContextAndSaveIfFound()157 Set<Integer> activeContexts, SparseIntArray contextPriorities) { in findActiveContextWithHighestPriority() argument161 for (@AudioContext int context : activeContexts) { in findActiveContextWithHighestPriority()193 Set<Integer> activeContexts = getActiveContexts(activePlaybackContext, in isAnyContextActive() local196 if (activeContexts.contains(context)) { in isAnyContextActive()
78 List<Integer> activeContexts = getCurrentlyActiveContextsLocked(); in getAllActiveContextsForPrimaryZone() local79 activeContexts in getAllActiveContextsForPrimaryZone()81 return activeContexts; in getAllActiveContextsForPrimaryZone()87 List<Integer> activeContexts = mCarPrimaryAudioZone in startTimersForContextThatBecameInactiveLocked() local90 for (int activeContext : activeContexts) { in startTimersForContextThatBecameInactiveLocked()
217 List<Integer> activeContexts = new ArrayList<>(); in findActiveContextsFromPlaybackConfigurations() local224 activeContexts.add(CarAudioContext.getContextForUsage( in findActiveContextsFromPlaybackConfigurations()229 return activeContexts; in findActiveContextsFromPlaybackConfigurations()
370 int[] activeContexts = mHalAudioFocus.getActiveUsagesForZone(ZONE_ID); in getActiveUsagesForZone_withEmptyStack_getsEmpty() local372 assertThat(activeContexts).isEmpty(); in getActiveUsagesForZone_withEmptyStack_getsEmpty()381 int[] activeContexts = mHalAudioFocus.getActiveUsagesForZone(ZONE_ID); in getActiveUsagesForZone_withSingleUsage_getsUsage() local383 assertThat(activeContexts).asList().containsExactly(USAGE_MEDIA); in getActiveUsagesForZone_withSingleUsage_getsUsage()395 int[] activeContexts = mHalAudioFocus.getActiveUsagesForZone(ZONE_ID); in getActiveUsagesForZone_withMultipleUsages_getsUsages() local397 assertThat(activeContexts).asList().containsExactly(USAGE_MEDIA, in getActiveUsagesForZone_withMultipleUsages_getsUsages()