/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioPolicyVolumeCallback.java | 38 private final CarAudioService mCarAudioService; field in CarAudioPolicyVolumeCallback 57 mCarAudioService = Objects.requireNonNull(carAudioService, in CarAudioPolicyVolumeCallback() 65 @AudioContext int suggestedContext = mCarAudioService in onVolumeAdjustment() 69 int groupId = mCarAudioService.getVolumeGroupIdForAudioContext(zoneId, suggestedContext); in onVolumeAdjustment() 78 final int currentVolume = mCarAudioService.getGroupVolume(zoneId, groupId); in onVolumeAdjustment() 83 mCarAudioService.getGroupMinVolume(zoneId, groupId)); in onVolumeAdjustment() 84 mCarAudioService.setGroupVolume(zoneId, groupId, minValue, flags); in onVolumeAdjustment() 88 mCarAudioService.getGroupMaxVolume(zoneId, groupId)); in onVolumeAdjustment() 89 mCarAudioService.setGroupVolume(zoneId, groupId, maxValue, flags); in onVolumeAdjustment() 106 setMute(!mCarAudioService.isVolumeGroupMuted(PRIMARY_AUDIO_ZONE, groupId), groupId, in toggleMute() [all …]
|
D | CarAudioPowerListener.java | 39 private final CarAudioService mCarAudioService; field in CarAudioPowerListener 68 mCarAudioService = Objects.requireNonNull(carAudioService); in CarAudioPowerListener() 81 mCarAudioService.setAudioEnabled(/* isAudioEnabled= */ true); in startListeningForPolicyChanges() 103 mCarAudioService.setAudioEnabled(/* isAudioEnabled= */ true); in initializePowerState() 115 mCarAudioService.setAudioEnabled(mIsAudioEnabled); in updateAudioPowerStateLocked()
|
D | CarZonesAudioFocus.java | 53 private CarAudioService mCarAudioService; // Dynamically assigned just after construction field in CarZonesAudioFocus 146 mCarAudioService = carAudioService; in setOwningPolicy() 187 int zoneId = mCarAudioService.getZoneIdForUid(afi.getClientUid()); in getAudioZoneIdForAudioFocusInfo() 198 if (mCarAudioService.isAudioZoneIdValid(bundleZoneId)) { in getAudioZoneIdForAudioFocusInfo() 245 Preconditions.checkArgument(mCarAudioService.isAudioZoneIdValid(audioZoneId), in updateUserForZoneId()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusTest.java | 78 private CarAudioService mCarAudioService; field in CarZonesAudioFocusTest 93 when(mCarAudioService.getZoneIdForUid(MEDIA_CLIENT_UID_1)).thenReturn(PRIMARY_ZONE_ID); in setUp() 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() 155 when(mCarAudioService.isAudioZoneIdValid(PRIMARY_ZONE_ID)).thenReturn(true); 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() 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 | 68 private CarAudioService mCarAudioService; field in CarZonesAudioFocusUnitTest 156 when(mCarAudioService.isAudioZoneIdValid(SECONDARY_ZONE_ID)).thenReturn(true); in onAudioFocusRequest_withValidBundledZoneId_passesRequestToBundledZone() 169 when(mCarAudioService.isAudioZoneIdValid(invalidZoneId)).thenReturn(false); in onAudioFocusRequest_withInvalidBundledZoneId_passesRequestBasedOnUid() 272 carZonesAudioFocus.setOwningPolicy(mCarAudioService, mAudioPolicy); in getCarZonesAudioFocus() 278 when(mCarAudioService.getZoneIdForUid(CLIENT_UID)).thenReturn(zoneId); in withUidRoutingToZone()
|
/packages/services/Car/service/src/com/android/car/ |
D | ICarImpl.java | 112 private final CarAudioService mCarAudioService; field in ICarImpl 271 mCarAudioService = constructWithTrace(t, CarAudioService.class, in ICarImpl() 378 allServices.add(mCarAudioService); in ICarImpl() 562 return mCarAudioService; in getCarService() 844 return new CarShellCommand(mContext, mHal, mCarAudioService, mCarPackageManagerService, in newCarShellCommand()
|
D | CarShellCommand.java | 352 private final CarAudioService mCarAudioService; field in CarShellCommand 386 mCarAudioService = carAudioService; in CarShellCommand() 626 mCarAudioService.setZoneIdForUid(zoneId, uid); in runSetZoneIdForUid() 640 mCarAudioService.setVolumeGroupMute(zoneId, groupId, muteState, FLAG_SHOW_UI); in runSetMuteCarVolumeGroup() 650 int minIndex = mCarAudioService.getGroupMinVolume(zoneId, groupId); in runSetGroupVolume() 651 int maxIndex = mCarAudioService.getGroupMaxVolume(zoneId, groupId); in runSetGroupVolume() 654 mCarAudioService.setGroupVolume(zoneId, groupId, index, FLAG_SHOW_UI); in runSetGroupVolume() 658 mCarAudioService.resetSelectedVolumeContext(); in runResetSelectedVolumeContext()
|