Searched refs:SECONDARY_ZONE_ID (Results 1 – 5 of 5) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusUnitTest.java | 57 private static final int SECONDARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1; field in CarZonesAudioFocusUnitTest 144 withUidRoutingToZone(SECONDARY_ZONE_ID); in onAudioFocusRequest_withSecondaryZoneUid_passesRequestToSecondaryZone() 149 verify(mFocusMocks.get(SECONDARY_ZONE_ID)) in onAudioFocusRequest_withSecondaryZoneUid_passesRequestToSecondaryZone() 156 when(mCarAudioService.isAudioZoneIdValid(SECONDARY_ZONE_ID)).thenReturn(true); in onAudioFocusRequest_withValidBundledZoneId_passesRequestToBundledZone() 157 AudioFocusInfo audioFocusInfo = generateAudioFocusInfoWithBundledZoneId(SECONDARY_ZONE_ID); in onAudioFocusRequest_withValidBundledZoneId_passesRequestToBundledZone() 161 verify(mFocusMocks.get(SECONDARY_ZONE_ID)) in onAudioFocusRequest_withValidBundledZoneId_passesRequestToBundledZone() 204 verify(mFocusMocks.get(SECONDARY_ZONE_ID), in setRestrictFocus_withTrue_restrictsFocusForAllZones() 216 verify(mFocusMocks.get(SECONDARY_ZONE_ID), in setRestrictFocus_withFalse_unrestrictsFocusForAllZones() 227 int[] expectedZoneIds = new int[]{PRIMARY_ZONE_ID, SECONDARY_ZONE_ID}; in setRestrictFocus_notifiesFocusCallbackForAllZones() 236 zones.put(SECONDARY_ZONE_ID, new CarAudioZone(SECONDARY_ZONE_ID, "Secondary zone")); in generateAudioZones() [all …]
|
D | CarVolumeGroupMutingTest.java | 58 private static final int SECONDARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1; field in CarVolumeGroupMutingTest 95 SECONDARY_ZONE_ID); in setUp() 315 if (info.zoneId != SECONDARY_ZONE_ID) { in carMuteChanged_withOneZoneMuted_forMultiZones_setsOnlyOneZoneMuted() 359 } else if (info.zoneId == SECONDARY_ZONE_ID) { in setRestrictMuting_isMutingRestrictedTrue_leavesCriticalGroupsAsIs()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | AudioControlWrapperAidlTest.java | 77 private static final int SECONDARY_ZONE_ID = 1; field in AudioControlWrapperAidlTest 116 mSecondaryZoneMutingInfo = new MutingInfoBuilder(SECONDARY_ZONE_ID) in setUp() 257 CarDuckingInfo secondaryCarDuckingInfo = new CarDuckingInfo(SECONDARY_ZONE_ID, in onDevicesToDuckChange_multipleZones_passesADuckingInfoPerZone() 392 .containsExactly(PRIMARY_ZONE_ID, SECONDARY_ZONE_ID); in onDevicesToMuteChange_withMultipleZones_passesAlongCorrectZoneInfo() 415 MutingInfo info = verifyOnDevicesToMuteChangeCalled(SECONDARY_ZONE_ID); in onDevicesToMuteChange_withMultiZones_passesAlongCorrectAddressToMuteForSecondaryZone() 441 MutingInfo info = verifyOnDevicesToMuteChangeCalled(SECONDARY_ZONE_ID); in onDevicesToMuteChange_witMultiZones_passesAlongCorrectAddressToUnMuteForSecondaryZone()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusTest.java | 66 private static final int SECONDARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE + 1; field in CarZonesAudioFocusTest 115 when(mCarAudioService.getZoneIdForUid(MEDIA_CLIENT_UID_2)).thenReturn(SECONDARY_ZONE_ID); in onAudioFocusRequest_forTwoDifferentZones_requestGranted() 136 when(mCarAudioService.getZoneIdForUid(MEDIA_CLIENT_UID_2)).thenReturn(SECONDARY_ZONE_ID); in onAudioFocusRequest_forTwoDifferentZones_abandonInOne_requestGranted() 332 zones.put(SECONDARY_ZONE_ID, new CarAudioZone(SECONDARY_ZONE_ID, "Secondary zone")); in generateAudioZones()
|
D | CarAudioZonesHelperTest.java | 74 private static final int SECONDARY_ZONE_ID = 2; field in CarAudioZonesHelperTest 173 assertThat(zones.contains(SECONDARY_ZONE_ID)).isTrue(); in loadAudioZones_parsesAudioZoneId() 189 assertThat(audioZoneIdToOccupantZoneIdMapping.get(SECONDARY_ZONE_ID, -1)) in loadAudioZones_parsesOccupantZoneId() 309 assertThat(zones.contains(SECONDARY_ZONE_ID)).isTrue(); in loadAudioZones_passesOnMissingAudioZoneIdForPrimary()
|