Searched refs:PRIMARY_ZONE_ID (Results 1 – 6 of 6) sorted by relevance
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusTest.java | 65 private static final int PRIMARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE; field in CarZonesAudioFocusTest 93 when(mCarAudioService.getZoneIdForUid(MEDIA_CLIENT_UID_1)).thenReturn(PRIMARY_ZONE_ID); in setUp() 155 when(mCarAudioService.isAudioZoneIdValid(PRIMARY_ZONE_ID)).thenReturn(true); in onAudioFocusRequest_withBundleFocusRequest_requestGranted() 159 PRIMARY_ZONE_ID); in onAudioFocusRequest_withBundleFocusRequest_requestGranted() 177 when(mCarAudioService.getZoneIdForUid(NAVIGATION_CLIENT_UID)).thenReturn(PRIMARY_ZONE_ID); in onAudioFocusRequest_repeatForSameZone_requestGranted() 197 when(mCarAudioService.isAudioZoneIdValid(PRIMARY_ZONE_ID)).thenReturn(true); in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed() 199 carZonesAudioFocus.updateUserForZoneId(PRIMARY_ZONE_ID, TEST_USER_ID); in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed() 201 when(mCarAudioService.getZoneIdForUid(CALL_CLIENT_UID)).thenReturn(PRIMARY_ZONE_ID); in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed() 210 when(mCarAudioService.getZoneIdForUid(NAVIGATION_CLIENT_UID)).thenReturn(PRIMARY_ZONE_ID); in onAudioFocusRequest_forNavigationWhileOnCall_rejectNavOnCall_requestFailed() 226 when(mCarAudioService.isAudioZoneIdValid(PRIMARY_ZONE_ID)).thenReturn(true); in onAudioFocusRequest_forNavigationWhileOnCall_noRejectNavOnCall_requestSucceeds() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusUnitTest.java | 56 private static final int PRIMARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE; field in CarZonesAudioFocusUnitTest 133 withUidRoutingToZone(PRIMARY_ZONE_ID); in onAudioFocusRequest_withPrimaryZoneUid_passesRequestToPrimaryZone() 138 verify(mFocusMocks.get(PRIMARY_ZONE_ID)) in onAudioFocusRequest_withPrimaryZoneUid_passesRequestToPrimaryZone() 155 withUidRoutingToZone(PRIMARY_ZONE_ID); in onAudioFocusRequest_withValidBundledZoneId_passesRequestToBundledZone() 168 withUidRoutingToZone(PRIMARY_ZONE_ID); in onAudioFocusRequest_withInvalidBundledZoneId_passesRequestBasedOnUid() 174 verify(mFocusMocks.get(PRIMARY_ZONE_ID)) in onAudioFocusRequest_withInvalidBundledZoneId_passesRequestBasedOnUid() 181 when(mFocusMocks.get(PRIMARY_ZONE_ID).getAudioFocusHolders()).thenReturn(focusHolders); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() 189 .onFocusChange(eq(new int[]{PRIMARY_ZONE_ID}), captor.capture()); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() 194 .that(results.get(PRIMARY_ZONE_ID)).isEqualTo(focusHolders); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() 201 verify(mFocusMocks.get(PRIMARY_ZONE_ID), in setRestrictFocus_withTrue_restrictsFocusForAllZones() [all …]
|
D | CarDuckingTest.java | 51 private static final int PRIMARY_ZONE_ID = 0; field in CarDuckingTest 53 private static final int[] ONE_ZONE_CHANGE = new int[]{PRIMARY_ZONE_ID}; 77 mMediaFocusHolders.put(PRIMARY_ZONE_ID, List.of(mMediaFocusInfo)); in setUp() 78 mMediaNavFocusHolders.put(PRIMARY_ZONE_ID, List.of(mMediaFocusInfo, mNavigationFocusInfo)); in setUp() 101 assertThat(newDuckingInfo.get(PRIMARY_ZONE_ID).mUsagesHoldingFocus) in onFocusChange_forPrimaryZone_updatesUsagesHoldingFocus() 119 assertThat(newDuckingInfo.get(PRIMARY_ZONE_ID).mAddressesToDuck) in onFocusChange_withMultipleFocusHolders_updatesAddressesToDuck() 130 assertThat(newDuckingInfo.get(PRIMARY_ZONE_ID).mAddressesToUnduck) in onFocusChange_withDuckedDevices_updatesAddressesToUnduck() 167 int[] zoneIds = new int[]{PRIMARY_ZONE_ID, PASSENGER_ZONE_ID}; in onFocusChange_withMultipleZones_notifiesForEachZone() 169 focusChanges.put(PRIMARY_ZONE_ID, List.of(mMediaFocusInfo)); in onFocusChange_withMultipleZones_notifiesForEachZone() 187 when(primaryZone.getId()).thenReturn(PRIMARY_ZONE_ID); in generateZoneMocks() [all …]
|
D | CarVolumeGroupMutingTest.java | 57 private static final int PRIMARY_ZONE_ID = CarAudioManager.PRIMARY_AUDIO_ZONE; field in CarVolumeGroupMutingTest 85 new TestCarAudioZoneBuilder("Primary Zone", PRIMARY_ZONE_ID) in setUp() 92 PRIMARY_ZONE_ID); in setUp() 354 if (info.zoneId == PRIMARY_ZONE_ID) { in setRestrictMuting_isMutingRestrictedTrue_leavesCriticalGroupsAsIs() 415 .build(), "Primary Zone", PRIMARY_ZONE_ID); in generateMutingInfoFromZone_withMutedMultiDeviceGroup_returnsAllDevicesMuted() 432 .build(), "Primary Zone", PRIMARY_ZONE_ID); in generateMutingInfoFromZone_withUnMutedMultiDeviceGroup_returnsAllDevicesUnMuted() 449 .build(), "Primary Zone", PRIMARY_ZONE_ID); in generateMutingInfoFromZone_mutingRestricted_mutesAllNonCriticalDevices() 462 new TestCarAudioZoneBuilder("Primary Zone", PRIMARY_ZONE_ID) in generateMutingInfoFromZone_mutingRestricted_setsAllCriticalGroupsToTheirState()
|
D | CarAudioPlaybackCallbackTest.java | 51 private static final int PRIMARY_ZONE_ID = 0; field in CarAudioPlaybackCallbackTest 486 return new TestCarAudioZoneBuilder("Primary zone", PRIMARY_ZONE_ID) in generatePrimaryZone()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | AudioControlWrapperAidlTest.java | 76 private static final int PRIMARY_ZONE_ID = 0; field in AudioControlWrapperAidlTest 111 mPrimaryZoneMutingInfo = new MutingInfoBuilder(PRIMARY_ZONE_ID) in setUp() 342 .that(mutingInfo.zoneId).isEqualTo(PRIMARY_ZONE_ID); in onDevicesToMuteChange_passesAlongZoneId() 392 .containsExactly(PRIMARY_ZONE_ID, SECONDARY_ZONE_ID); in onDevicesToMuteChange_withMultipleZones_passesAlongCorrectZoneInfo() 402 MutingInfo info = verifyOnDevicesToMuteChangeCalled(PRIMARY_ZONE_ID); in onDevicesToMuteChange_withMultipleZones_passesAlongCorrectAddressToMuteForPrimaryZone() 428 MutingInfo info = verifyOnDevicesToMuteChangeCalled(PRIMARY_ZONE_ID); in onDevicesToMuteChange_witMultipleZones_passesAlongCorrectAddressToUnMuteForPrimaryZone()
|