Home
last modified time | relevance | path

Searched refs:carAudioZones (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZonesValidator.java64 static void validate(SparseArray<CarAudioZone> carAudioZones, boolean useCoreAudioRouting) in validate() argument
66 validateAtLeastOneZoneDefined(carAudioZones); in validate()
67 validateZoneConfigsForEachZone(carAudioZones, useCoreAudioRouting); in validate()
69 validateEachAddressAppearsAtMostOnceInOneConfig(carAudioZones); in validate()
71 validatePrimaryZoneHasInputDevice(carAudioZones); in validate()
74 private static void validatePrimaryZoneHasInputDevice(SparseArray<CarAudioZone> carAudioZones) { in validatePrimaryZoneHasInputDevice() argument
75 CarAudioZone primaryZone = carAudioZones.get(PRIMARY_AUDIO_ZONE); in validatePrimaryZoneHasInputDevice()
87 private static void validateAtLeastOneZoneDefined(SparseArray<CarAudioZone> carAudioZones) { in validateAtLeastOneZoneDefined() argument
88 if (carAudioZones.size() == 0) { in validateAtLeastOneZoneDefined()
93 private static void validateZoneConfigsForEachZone(SparseArray<CarAudioZone> carAudioZones, in validateZoneConfigsForEachZone() argument
[all …]
DCarAudioPlaybackCallback.java40 CarAudioPlaybackCallback(@NonNull SparseArray<CarAudioZone> carAudioZones, in CarAudioPlaybackCallback() argument
43 Objects.requireNonNull(carAudioZones, "Car audio zone cannot be null"); in CarAudioPlaybackCallback()
44 Preconditions.checkArgument(carAudioZones.size() > 0, in CarAudioPlaybackCallback()
46 mCarAudioZonesToZonePlaybackCallback = createCallbackMapping(carAudioZones, in CarAudioPlaybackCallback()
50 private static SparseArray createCallbackMapping(SparseArray<CarAudioZone> carAudioZones, in createCallbackMapping() argument
55 for (int i = 0; i < carAudioZones.size(); i++) { in createCallbackMapping()
56 CarAudioZone zone = carAudioZones.get(i); in createCallbackMapping()
DCarDucking.java51 CarDucking(SparseArray<CarAudioZone> carAudioZones, AudioControlWrapper audioControlWrapper) { in CarDucking() argument
52 mCarAudioZones = Objects.requireNonNull(carAudioZones, "Car audio zones can not be null"); in CarDucking()
56 for (int i = 0; i < carAudioZones.size(); i++) { in CarDucking()
57 int zoneId = carAudioZones.keyAt(i); in CarDucking()
DCarAudioModuleChangeMonitor.java43 CarVolumeInfoWrapper carVolumeInfoWrapper, SparseArray<CarAudioZone> carAudioZones) { in CarAudioModuleChangeMonitor() argument
49 mCarAudioZones = Objects.requireNonNull(carAudioZones, "Car audio zones can not be null"); in CarAudioModuleChangeMonitor()
DCarZonesAudioFocus.java74 PackageManager packageManager, SparseArray<CarAudioZone> carAudioZones, in createCarZonesAudioFocus() argument
79 Objects.requireNonNull(carAudioZones, "Car audio zones cannot be null"); in createCarZonesAudioFocus()
80 Preconditions.checkArgument(carAudioZones.size() != 0, in createCarZonesAudioFocus()
90 for (int i = 0; i < carAudioZones.size(); i++) { in createCarZonesAudioFocus()
91 CarAudioZone audioZone = carAudioZones.valueAt(i); in createCarZonesAudioFocus()
DCarAudioDynamicRouting.java59 SparseArray<CarAudioZone> carAudioZones) { in setupAudioDynamicRouting() argument
60 for (int i = 0; i < carAudioZones.size(); i++) { in setupAudioDynamicRouting()
61 CarAudioZone zone = carAudioZones.valueAt(i); in setupAudioDynamicRouting()
DCarVolumeGroupMuting.java55 CarVolumeGroupMuting(@NonNull SparseArray<CarAudioZone> carAudioZones, in CarVolumeGroupMuting() argument
57 mCarAudioZones = Objects.requireNonNull(carAudioZones, "Car Audio Zones can not be null"); in CarVolumeGroupMuting()
58 Preconditions.checkArgument(carAudioZones.size() != 0, in CarVolumeGroupMuting()
DCarAudioZonesHelperLegacy.java167 SparseArray<CarAudioZone> carAudioZones = new SparseArray<>(); in loadAudioZones() local
169 carAudioZones.put(PRIMARY_AUDIO_ZONE, zone); in loadAudioZones()
171 return carAudioZones; in loadAudioZones()
DCarAudioGainMonitor.java45 CarVolumeInfoWrapper carVolumeInfoWrapper, SparseArray<CarAudioZone> carAudioZones) { in CarAudioGainMonitor() argument
50 mCarAudioZones = Objects.requireNonNull(carAudioZones, "Car Audio Zones can not be null"); in CarAudioGainMonitor()
DCarAudioZonesHelper.java386 SparseArray<CarAudioZone> carAudioZones = new SparseArray<>(); in parseAudioZones() local
392 carAudioZones.put(zone.getId(), zone); in parseAudioZones()
398 verifyPrimaryZonePresent(carAudioZones); in parseAudioZones()
399 addRemainingMicrophonesToPrimaryZone(carAudioZones); in parseAudioZones()
400 return carAudioZones; in parseAudioZones()
403 private void addRemainingMicrophonesToPrimaryZone(SparseArray<CarAudioZone> carAudioZones) { in addRemainingMicrophonesToPrimaryZone() argument
404 CarAudioZone primaryAudioZone = carAudioZones.get(PRIMARY_AUDIO_ZONE); in addRemainingMicrophonesToPrimaryZone()
DCarAudioPlaybackMonitor.java60 @NonNull SparseArray<CarAudioZone> carAudioZones, in CarAudioPlaybackMonitor() argument
64 mCarAudioZones = Objects.requireNonNull(carAudioZones, in CarAudioPlaybackMonitor()