Home
last modified time | relevance | path

Searched refs:AudioAttributesWrapper (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioContext.java346 private static final Map<AudioAttributesWrapper, Integer> AUDIO_ATTRIBUTE_TO_CONTEXT =
348 private static final List<AudioAttributesWrapper> ALL_SUPPORTED_ATTRIBUTES = new ArrayList<>();
358 AudioAttributesWrapper attributesWrapper =
359 new AudioAttributesWrapper(attributes[attributeIndex]);
376 private final Map<AudioAttributesWrapper, Integer> mAudioAttributesToContext =
427 AudioAttributesWrapper attributesWrapper = in CarAudioContext()
428 new AudioAttributesWrapper(attributes[attributeIndex]); in CarAudioContext()
443 AudioAttributesWrapper wrapper = getAudioAttributeWrapperFromUsage(usage); in getLegacyContextForUsage()
449 ArraySet<AudioAttributesWrapper> attributesToDuck = new ArraySet<>(); in evaluateAudioAttributesToDuck()
450 List<AudioAttributesWrapper> wrappers = new ArrayList<>(activePlaybackAttributes.size()); in evaluateAudioAttributesToDuck()
[all …]
DCarHalAudioUtils.java31 import com.android.car.audio.CarAudioContext.AudioAttributesWrapper;
116 AudioAttributesWrapper audioAttributesWrapper) { in audioAttributesWrapperToMetadata()
DCarAudioFocus.java1124 && CarAudioContext.AudioAttributesWrapper.audioAttributeMatches( in getInactiveAudioFocusForUserAndAudioAttributes()
1188 && CarAudioContext.AudioAttributesWrapper in matches()
DCarAudioService.java3867 boolean isMedia = CarAudioContext.AudioAttributesWrapper.audioAttributeMatches(
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/volume/
DVolumeInteractions.java38 import com.android.car.oem.utils.AudioAttributesWrapper;
49 public static final AudioAttributesWrapper DEFAULT_AUDIO_ATTRIBUTE = new AudioAttributesWrapper(
73 private final ArrayMap<AudioAttributesWrapper, Integer> mAudioAttributeToPriority;
74 private final SparseArray<ArrayMap<AudioAttributesWrapper, Integer>>
84 new AudioAttributesWrapper(audioAttributes.get(index)), in VolumeInteractions()
89 private static ArrayMap<AudioAttributesWrapper, Integer> getAudioAttributeToGroupIdMapping( in getAudioAttributeToGroupIdMapping()
93 ArrayMap<AudioAttributesWrapper, Integer> groupAudioAttributesToGroupId = in getAudioAttributeToGroupIdMapping()
101 groupAudioAttributesToGroupId.put(new AudioAttributesWrapper(audioAttribute), in getAudioAttributeToGroupIdMapping()
186 AudioAttributesWrapper audioAttributesWrapper = in getSelectedVolumeGroupId()
187 new AudioAttributesWrapper(activeAudioAttributes.get(0)); in getSelectedVolumeGroupId()
[all …]
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java50 import com.android.car.audio.CarAudioContext.AudioAttributesWrapper;
81 private final SparseArray<Map<AudioAttributesWrapper, HalAudioFocusRequest>>
127 AudioAttributesWrapper audioAttributesWrapper = in requestAudioFocus()
169 Map<AudioAttributesWrapper, HalAudioFocusRequest> in reset()
171 Set<AudioAttributesWrapper> wrapperSet = in reset()
173 for (AudioAttributesWrapper wrapper : wrapperSet) { in reset()
185 Map<AudioAttributesWrapper, HalAudioFocusRequest> halFocusRequestsForZone = in getActiveAudioAttributesForZone()
190 for (AudioAttributesWrapper wrapper : halFocusRequestsForZone.keySet()) { in getActiveAudioAttributesForZone()
216 Map<AudioAttributesWrapper, HalAudioFocusRequest> requestsByAttributes = in dump()
241 Map<AudioAttributesWrapper, HalAudioFocusRequest> requestsByAttributes = in dumpProto()
[all …]
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/utils/
DAudioAttributesWrapper.java28 public final class AudioAttributesWrapper { class
32 public AudioAttributesWrapper(AudioAttributes audioAttributes) { in AudioAttributesWrapper() method in AudioAttributesWrapper
39 if (!(object instanceof AudioAttributesWrapper)) { in equals()
43 AudioAttributesWrapper that = (AudioAttributesWrapper) object; in equals()
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/focus/
DFocusInteraction.java38 import com.android.car.oem.utils.AudioAttributesWrapper;
327 private final ArrayMap<AudioAttributesWrapper, ArrayMap<AudioAttributesWrapper, Integer>>
380 AudioAttributesWrapper holderWrapper = in FocusInteraction()
381 new AudioAttributesWrapper(audioAttributesInteractions.keyAt(holderIndex)); in FocusInteraction()
382 ArrayMap<AudioAttributesWrapper, Integer> wrappedInteractions = new ArrayMap<>(); in FocusInteraction()
386 .put(new AudioAttributesWrapper(interactions.keyAt(incomingIndex)), in FocusInteraction()
481 AudioAttributesWrapper holderAttribute = in evaluateRequest()
482 new AudioAttributesWrapper(focusHolder.getAudioFocusInfo().getAttributes()); in evaluateRequest()
483 AudioAttributesWrapper requestAttribute = in evaluateRequest()
484 new AudioAttributesWrapper(request.getAudioFocusInfo().getAttributes()); in evaluateRequest()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioContextTest.java245 Set<CarAudioContext.AudioAttributesWrapper> allUsages = new ArraySet<>(); in getAudioAttributesForContext_returnsUniqueValuesForAllContexts()
249 List<CarAudioContext.AudioAttributesWrapper> attributesWrappers = in getAudioAttributesForContext_returnsUniqueValuesForAllContexts()
250 Arrays.stream(audioAttributes).map(CarAudioContext.AudioAttributesWrapper::new) in getAudioAttributesForContext_returnsUniqueValuesForAllContexts()
476 CarAudioContext.AudioAttributesWrapper wrapper = in getAudioAttributeWrapperFromUsage_withNonCriticalUsage_succeeds()
485 CarAudioContext.AudioAttributesWrapper wrapper = in getAudioAttributeWrapperFromUsage_withNonCriticalUsage_toString_succeeds()
494 CarAudioContext.AudioAttributesWrapper wrapper = in getAudioAttributeWrapperFromUsage_withNonCriticalUsage_equals_succeeds()
495 new CarAudioContext.AudioAttributesWrapper(TEST_MEDIA_ATTRIBUTE); in getAudioAttributeWrapperFromUsage_withNonCriticalUsage_equals_succeeds()
497 CarAudioContext.AudioAttributesWrapper createdWrapper = in getAudioAttributeWrapperFromUsage_withNonCriticalUsage_equals_succeeds()
506 CarAudioContext.AudioAttributesWrapper createdWrapper = in getAudioAttributeWrapperFromUsage_withNonCriticalUsage_hashCode_succeeds()
515 CarAudioContext.AudioAttributesWrapper wrapper = in getAudioAttributeWrapperFromUsage_withCriticalUsage_succeeds()
[all …]
DCarHalAudioUtilsTest.java49 import com.android.car.audio.CarAudioContext.AudioAttributesWrapper;
181 AudioAttributesWrapper audioAttributesWrapper = in audioAttributesWrapperToMetadata_succeeds()