Home
last modified time | relevance | path

Searched refs:activeAttributes (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DZoneAudioPlaybackCallbackTest.java149 List<AudioAttributes> activeAttributes = in getAllActiveContextsForPrimaryZone_withNoOnPlaybackConfigChanged_returnsEmptyList() local
152 assertThat(activeAttributes).isEmpty(); in getAllActiveContextsForPrimaryZone_withNoOnPlaybackConfigChanged_returnsEmptyList()
170 List<AudioAttributes> activeAttributes = in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext() local
173 assertThat(activeAttributes).containsExactly(TEST_MEDIA_AUDIO_ATTRIBUTE); in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext()
188 List<AudioAttributes> activeAttributes = in getAllActiveContextsForPrimaryZone_withNullPlaybackMonitor() local
192 .that(activeAttributes).containsExactly(TEST_MEDIA_AUDIO_ATTRIBUTE); in getAllActiveContextsForPrimaryZone_withNullPlaybackMonitor()
214 List<AudioAttributes> activeAttributes = in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts() local
217 assertThat(activeAttributes) in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts()
242 List<AudioAttributes> activeAttributes = in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext() local
245 assertThat(activeAttributes).containsExactly(TEST_MEDIA_AUDIO_ATTRIBUTE); in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext()
[all …]
DCarAudioZoneUnitTest.java526 List<AudioAttributes> activeAttributes = mTestAudioZone in findActiveAudioAttributesFromPlaybackConfigurations_returnsAllActiveAttributes() local
529 expectWithMessage("Active playback audio attributes").that(activeAttributes) in findActiveAudioAttributesFromPlaybackConfigurations_returnsAllActiveAttributes()
547 List<AudioAttributes> activeAttributes = mTestAudioZone in findActiveAudioAttributesFromPlaybackConfigurations_returnsNoMatchingAttributes() local
551 .that(activeAttributes).isEmpty(); in findActiveAudioAttributesFromPlaybackConfigurations_returnsNoMatchingAttributes()
574 List<AudioAttributes> activeAttributes = mTestAudioZone in findActiveAudioAttributesFromPlaybackConfigurations_withMultipleZoneConfigs() local
578 .that(activeAttributes).containsExactly(TEST_NAVIGATION_ATTRIBUTE); in findActiveAudioAttributesFromPlaybackConfigurations_withMultipleZoneConfigs()
586 List<AudioAttributes> activeAttributes = mTestAudioZone in findActiveAudioAttributesFromPlaybackConfigurations_onEmptyConfigurations_retEmpty() local
590 .that(activeAttributes).isEmpty(); in findActiveAudioAttributesFromPlaybackConfigurations_onEmptyConfigurations_retEmpty()
/packages/services/Car/service/src/com/android/car/audio/
DCarVolume.java206 ArraySet<AudioAttributes> activeAttributes = in getSuggestedAudioContextAndSaveIfFound() local
209 @AudioContext int context = findActiveContextWithHighestPriority(activeAttributes, in getSuggestedAudioContextAndSaveIfFound()
218 ArraySet<AudioAttributes> activeAttributes, SparseIntArray contextPriorities, in findActiveContextWithHighestPriority() argument
227 for (int index = 0; index < activeAttributes.size(); index++) { in findActiveContextWithHighestPriority()
229 activeAttributes.valueAt(index)); in findActiveContextWithHighestPriority()
279 ArraySet<AudioAttributes> activeAttributes = getActiveAttributes(activePlaybackContext, in isAnyContextActive() local
282 Set<Integer> activeContexts = new ArraySet<>(activeAttributes.size()); in isAnyContextActive()
284 for (int index = 0; index < activeAttributes.size(); index++) { in isAnyContextActive()
286 .getContextForAttributes(activeAttributes.valueAt(index))); in isAnyContextActive()
299 List<AudioAttributes> activeAttributes, int callState, in getActiveAttributes() argument
[all …]
DZoneAudioPlaybackCallback.java107 List<AudioAttributes> activeAttributes = mCarAudioZone in startTimersForContextThatBecameInactiveLocked() local
110 for (int index = 0; index < activeAttributes.size(); index++) { in startTimersForContextThatBecameInactiveLocked()
111 mAudioAttributesStartTime.put(activeAttributes.get(index), mClock.uptimeMillis()); in startTimersForContextThatBecameInactiveLocked()
180 List<AudioAttributes> activeAttributes = new ArrayList<>(); in getStillActiveContextAndRemoveExpiredContextsLocked() local
187 activeAttributes.add(mAudioAttributesStartTime.keyAt(index)); in getStillActiveContextAndRemoveExpiredContextsLocked()
193 return activeAttributes; in getStillActiveContextAndRemoveExpiredContextsLocked()