Searched refs:mAudioControlWrapper (Results 1 – 5 of 5) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | HalAudioFocusTest.java | 72 AudioControlWrapper mAudioControlWrapper; field in HalAudioFocusTest 78 mHalAudioFocus = new HalAudioFocus(mMockAudioManager, mAudioControlWrapper, AUDIO_ZONE_IDS); in setUp() 85 verify(mAudioControlWrapper).registerFocusListener(mHalAudioFocus); in registerFocusListener_succeeds() 94 verify(mAudioControlWrapper).onAudioFocusChange(USAGE_MEDIA, ZONE_ID, in requestAudioFocus_notifiesHalOfFocusChange() 169 verify(mAudioControlWrapper).onAudioFocusChange(USAGE_MEDIA, ZONE_ID, in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus() 174 verify(mAudioControlWrapper, times(2)).onAudioFocusChange(USAGE_MEDIA, ZONE_ID, in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus() 217 verify(mAudioControlWrapper, never()).onAudioFocusChange(USAGE_MEDIA, ZONE_ID, in onAudioFocusChange_notifiesHalOfChange() 224 verify(mAudioControlWrapper).onAudioFocusChange(USAGE_MEDIA, ZONE_ID, in onAudioFocusChange_notifiesHalOfChange() 266 verify(mAudioControlWrapper).onAudioFocusChange(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_LOSS); in abandonAudioFocus_withCurrentRequest_notifiesHalOfFocusChange() 329 verify(mAudioControlWrapper, never()) in abandonAudioFocus_withFailedRequest_doesNotNotifyHal() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/hal/ |
D | HalAudioFocus.java | 52 private final AudioControlWrapper mAudioControlWrapper; field in HalAudioFocus 65 mAudioControlWrapper = Objects.requireNonNull(audioControlWrapper); in HalAudioFocus() 79 mAudioControlWrapper.registerFocusListener(this); in registerFocusListener() 86 mAudioControlWrapper.unregisterFocusListener(); in unregisterFocusListener() 107 mAudioControlWrapper.onAudioFocusChange(usage, zoneId, currentRequest.mFocusStatus); in requestAudioFocus() 212 mAudioControlWrapper.onAudioFocusChange(usage, zoneId, AUDIOFOCUS_LOSS); in abandonAudioFocusLocked() 254 mAudioControlWrapper.onAudioFocusChange(usage, zoneId, focusChange); in onAudioFocusChange() 280 mAudioControlWrapper.onAudioFocusChange(usage, zoneId, resultingFocusGain); in makeAudioFocusRequestLocked()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarDucking.java | 40 private final AudioControlWrapper mAudioControlWrapper; field in CarDucking 49 mAudioControlWrapper = Objects.requireNonNull(audioControlWrapper); in CarDucking() 75 mAudioControlWrapper.onDevicesToDuckChange(newDuckingInfos); in onFocusChange()
|
D | CarVolumeGroupMuting.java | 45 private final AudioControlWrapper mAudioControlWrapper; field in CarVolumeGroupMuting 57 mAudioControlWrapper = Objects.requireNonNull(audioControlWrapper, in CarVolumeGroupMuting() 82 mAudioControlWrapper.onDevicesToMuteChange(mutingInfo); in carMuteChanged()
|
D | CarAudioService.java | 146 private AudioControlWrapper mAudioControlWrapper; field in CarAudioService 292 if (mAudioControlWrapper != null) { in release() 293 mAudioControlWrapper.unlinkToDeath(); in release() 294 mAudioControlWrapper = null; in release() 683 mHalAudioFocus = new HalAudioFocus(mAudioManager, mAudioControlWrapper, getAudioZoneIds()); in setupHalAudioFocusListenerLocked() 1493 if (mAudioControlWrapper == null) { in getAudioControlWrapperLocked() 1494 mAudioControlWrapper = AudioControlFactory.newAudioControl(); in getAudioControlWrapperLocked() 1495 mAudioControlWrapper.linkToDeath(this::resetHalAudioFocus); in getAudioControlWrapperLocked() 1497 return mAudioControlWrapper; in getAudioControlWrapperLocked()
|