Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioModuleChangeMonitor.java40 private final SparseArray<CarAudioZone> mCarAudioZones; field in CarAudioModuleChangeMonitor
49 mCarAudioZones = Objects.requireNonNull(carAudioZones, "Car audio zones can not be null"); in CarAudioModuleChangeMonitor()
75 for (int i = 0; i < mCarAudioZones.size(); i++) { in handleAudioPortsChanged()
76 CarAudioZone zone = mCarAudioZones.valueAt(i); in handleAudioPortsChanged()
DCarVolumeGroupMuting.java47 private final SparseArray<CarAudioZone> mCarAudioZones; field in CarVolumeGroupMuting
57 mCarAudioZones = Objects.requireNonNull(carAudioZones, "Car Audio Zones can not be null"); in CarVolumeGroupMuting()
116 List<MutingInfo> mutingInformation = new ArrayList<>(mCarAudioZones.size()); in generateMutingInfo()
119 for (int index = 0; index < mCarAudioZones.size(); index++) { in generateMutingInfo()
120 mutingInformation.add(generateMutingInfoFromZone(mCarAudioZones.valueAt(index), in generateMutingInfo()
DCarAudioGainMonitor.java41 @NonNull private final SparseArray<CarAudioZone> mCarAudioZones; field in CarAudioGainMonitor
50 mCarAudioZones = Objects.requireNonNull(carAudioZones, "Car Audio Zones can not be null"); in CarAudioGainMonitor()
92 if (!mCarAudioZones.contains(zoneId)) { in handleAudioDeviceGainsChanged()
102 CarAudioZone carAudioZone = mCarAudioZones.get(zoneId); in handleAudioDeviceGainsChanged()
DCarAudioService.java343 private SparseArray<CarAudioZone> mCarAudioZones; field in CarAudioService
742 for (int i = 0; i < mCarAudioZones.size(); i++) { in dump()
743 CarAudioZone zone = mCarAudioZones.valueAt(i); in dump()
861 for (int i = 0; i < mCarAudioZones.size(); i++) { in dumpProto()
862 CarAudioZone zone = mCarAudioZones.valueAt(i); in dumpProto()
981 if (mCarAudioZones.get(zoneId).getCurrentCarAudioZoneConfig().getZoneConfigId() in handleActivationVolumeWithActivationInfos()
990 CarVolumeGroup volumeGroup = mCarAudioZones.get(zoneId) in handleActivationVolumeWithActivationInfos()
1909 mCarAudioZones = loadCarAudioConfigurationLocked(carAudioDeviceInfos, inputDevices);
1911 mCarAudioZones =
1916 CarAudioZonesValidator.validate(mCarAudioZones, mUseCoreAudioRouting);
[all …]
DCarDucking.java44 private final SparseArray<CarAudioZone> mCarAudioZones; field in CarDucking
52 mCarAudioZones = Objects.requireNonNull(carAudioZones, "Car audio zones can not be null"); in CarDucking()
124 CarAudioZone zone = mCarAudioZones.get(zoneId); in generateNewDuckingInfoLocked()
DCarAudioPlaybackMonitor.java52 private final SparseArray<CarAudioZone> mCarAudioZones; field in CarAudioPlaybackMonitor
64 mCarAudioZones = Objects.requireNonNull(carAudioZones, in CarAudioPlaybackMonitor()
105 CarAudioZoneConfig currentZoneConfig = mCarAudioZones.get(zoneId) in onActiveAudioPlaybackAttributesAdded()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioGainMonitorTest.java122 private final SparseArray<CarAudioZone> mCarAudioZones = generateZoneMocks(); field in CarAudioGainMonitorTest
164 mMockVolumeInfoWrapper, mCarAudioZones)); in constructor_fails()
170 mAudioControlWrapperAidl, /* carVolumeInfoWrapper= */ null, mCarAudioZones)); in constructor_nullCarVolumeInfoWrapper_fails()
180 mCarAudioZones); in constructor_succeeds()
189 mCarAudioZones); in registercallback_succeeds()
203 mCarAudioZones); in registercallback_multipleTimes()
226 mCarAudioZones); in handleAudioDeviceGainsChanged_validZones()
263 for (int index = 0; index < mCarAudioZones.size(); index++) { in handleAudioDeviceGainsChanged_validZones()
264 CarAudioZone carAudioZone = mCarAudioZones.valueAt(index); in handleAudioDeviceGainsChanged_validZones()
280 mCarAudioZones); in handleAudioDeviceGainsChanged_validAndUnknownZones()
[all …]
DCarAudioPlaybackCallbackTest.java79 private SparseArray<CarAudioZone> mCarAudioZones = new SparseArray<>(); field in CarAudioPlaybackCallbackTest
94 mCarAudioZones.put(PRIMARY_ZONE_ID, mPrimaryZone); in setUp()
95 mCarAudioZones.put(SECONDARY_ZONE_ID, mSecondaryZone); in setUp()
96 mCallback = new CarAudioPlaybackCallback(mCarAudioZones, mCarAudioPlaybackMonitor, mClock, in setUp()
124 () -> new CarAudioPlaybackCallback(mCarAudioZones, mCarAudioPlaybackMonitor, in constructor_withNullSystemClockWrapper_fails()
135 () -> new CarAudioPlaybackCallback(mCarAudioZones, mCarAudioPlaybackMonitor, mClock, in constructor_withNegativeKeyEventTimeout_fails()
173 CarAudioPlaybackCallback callback = new CarAudioPlaybackCallback(mCarAudioZones, in onPlaybackConfigChanged_withNullPlaybackMonitor()
DCarAudioPlaybackMonitorTest.java73 private SparseArray<CarAudioZone> mCarAudioZones = new SparseArray<>(); field in CarAudioPlaybackMonitorTest
97 mCarAudioZones.put(PRIMARY_ZONE_ID, mPrimaryZone); in setup()
98 mCarAudioZones.put(SECONDARY_ZONE_ID, mSecondaryZone); in setup()
100 mCarAudioZones, mMockTelephonyManager); in setup()
107 mCarAudioZones, mMockTelephonyManager)); in construct_withNullCarAudioService_fails()
129 mCarAudioZones, /* telephonyManager= */ null)); in construct_withNullTelephonyManager_fails()
DCarDuckingTest.java75 private final SparseArray<CarAudioZone> mCarAudioZones = generateZoneMocks(); field in CarDuckingTest
96 mCarDucking = new CarDucking(mCarAudioZones, mMockAudioControlWrapper); in setUp()
121 new CarDucking(mCarAudioZones, null); in constructor_withNullAudioControlWrapper_fails()
133 .that(currentDuckingInfo.size()).isEqualTo(mCarAudioZones.size()); in constructor_initializesEmptyDuckingInfoForZones()
134 for (int i = 0; i < mCarAudioZones.size(); i++) { in constructor_initializesEmptyDuckingInfoForZones()
135 int zoneId = mCarAudioZones.keyAt(i); in constructor_initializesEmptyDuckingInfoForZones()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarZonesAudioFocusTestBase.java196 protected SparseArray<CarAudioZone> mCarAudioZones; field in CarZonesAudioFocusTestBase
199 mCarAudioZones = generateAudioZones(); in setUp()
272 mMockPackageManager, mCarAudioZones, mCarAudioSettings, carFocusCallback, in getCarZonesAudioFocus()