Home
last modified time | relevance | path

Searched refs:onAudioFocusChange (Results 1 – 25 of 26) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java143 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_notifiesHalOfFocusChange()
200 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_ALARM, ZONE_ID, AUDIOFOCUS_LOSS); in requestAudioFocus_withFocusRequestDelayed()
211 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_withNullPlaybackMonitor()
255 listener.onAudioFocusChange(AUDIOFOCUS_LOSS_TRANSIENT); in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus()
257 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus()
262 verify(mAudioControlWrapper, times(2)).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus()
280 listener.onAudioFocusChange(AUDIOFOCUS_LOSS_TRANSIENT); in requestAudioFocus_withSameContext_notifiesHalOfExistingRequestStatus()
281 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_withSameContext_notifiesHalOfExistingRequestStatus()
286 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_withSameContext_notifiesHalOfExistingRequestStatus()
288 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MOVIE, ZONE_ID, in requestAudioFocus_withSameContext_notifiesHalOfExistingRequestStatus()
[all …]
DAudioControlWrapperV2Test.java180 mAudioControlWrapperV2.onAudioFocusChange(METADATA, ZONE_ID, FOCUS_GAIN); in onAudioFocusChange_succeeds()
182 verify(mAudioControlV2).onAudioFocusChange(USAGE, ZONE_ID, FOCUS_GAIN); in onAudioFocusChange_succeeds()
188 .onAudioFocusChange(anyInt(), anyInt(), anyInt()); in onAudioFocusChange_throws()
191 () -> mAudioControlWrapperV2.onAudioFocusChange(METADATA, ZONE_ID, FOCUS_GAIN)); in onAudioFocusChange_throws()
DAudioControlWrapperAidlTest.java324 mAudioControlWrapperAidl.onAudioFocusChange(METADATA, ZONE_ID, FOCUS_GAIN); in onAudioFocusChange_succeeds()
332 .onAudioFocusChange(anyString(), anyInt(), anyInt()); in onAudioFocusChange_throws()
337 () -> mAudioControlWrapperAidl.onAudioFocusChange(METADATA, ZONE_ID, FOCUS_GAIN)); in onAudioFocusChange_throws()
350 mAudioControlWrapperAidl.onAudioFocusChange(METADATA, ZONE_ID, FOCUS_GAIN); in onAudioFocusChange_whenMetaDataApiUnimplemented_fallbacksOnUsageApi()
352 verify(mAudioControl).onAudioFocusChange(USAGE_NAME, ZONE_ID, FOCUS_GAIN); in onAudioFocusChange_whenMetaDataApiUnimplemented_fallbacksOnUsageApi()
DAudioControlWrapperV1Test.java151 () -> mAudioControlWrapperV1.onAudioFocusChange(METADATA, ZONE_ID, FOCUS_GAIN)); in onAudioFocusChange_throws()
/packages/apps/TV/tests/robotests/src/com/android/tv/audio/
DAudioManagerHelperTest.java58 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_NONE); in onAudioFocusChange_none_noTimeShift()
68 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_NONE); in onAudioFocusChange_none_TimeShift()
78 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_GAIN); in onAudioFocusChange_gain_noTimeShift()
88 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_GAIN); in onAudioFocusChange_gain_timeShift()
98 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS); in onAudioFocusChange_loss_noTimeShift()
108 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS); in onAudioFocusChange_loss_timeShift()
118 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS_TRANSIENT); in onAudioFocusChange_lossTransient_noTimeShift()
128 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS_TRANSIENT); in onAudioFocusChange_lossTransient_timeShift()
138 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK); in onAudioFocusChange_lossTransientCanDuck_noTimeShift()
148 mAudioManagerHelper.onAudioFocusChange(AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK); in onAudioFocusChange_lossTransientCanDuck_timeShift()
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java136 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, in requestAudioFocus()
278 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, AUDIOFOCUS_LOSS); in abandonAudioFocusLocked()
304 onAudioFocusChange(attributes, zoneId, focusChange); in generateFocusRequestLocked()
309 private void onAudioFocusChange(AudioAttributes attributes, int zoneId, int focusChange) { in onAudioFocusChange() method
322 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, focusChange); in onAudioFocusChange()
355 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, resultingFocusGain); in makeAudioFocusRequestLocked()
DAudioControlWrapperAidl.java164 public void onAudioFocusChange(PlaybackTrackMetadata metaData, int zoneId, int focusChange) { in onAudioFocusChange() method in AudioControlWrapperAidl
173 onAudioFocusChange(metaData.usage, zoneId, focusChange); in onAudioFocusChange()
177 private void onAudioFocusChange(@AttributeUsage int usage, int zoneId, int focusChange) { in onAudioFocusChange() method in AudioControlWrapperAidl
184 mAudioControl.onAudioFocusChange(usageName, zoneId, focusChange); in onAudioFocusChange()
DAudioControlWrapperV2.java112 public void onAudioFocusChange(PlaybackTrackMetadata metaData, int zoneId, int focusChange) { in onAudioFocusChange() method in AudioControlWrapperV2
119 mAudioControlV2.onAudioFocusChange(usage, zoneId, focusChange); in onAudioFocusChange()
DAudioControlWrapper.java101 void onAudioFocusChange(PlaybackTrackMetadata metadata, int zoneId, int focusChange); in onAudioFocusChange() method
DAudioControlWrapperV1.java97 public void onAudioFocusChange(PlaybackTrackMetadata metaData, int zoneId, int focusChange) { in onAudioFocusChange() method in AudioControlWrapperV1
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java70 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in VoicemailAudioManager
72 voicemailPlaybackPresenter.onAudioFocusChange(focusChange == AudioManager.AUDIOFOCUS_GAIN); in onAudioFocusChange()
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java141 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in AudioManagerHelper
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java238 public void onAudioFocusChange(int i) { in onAudioFocusChange() method in Beeper.BeepRecord
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DOemCarServiceTestFragment.java194 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in OemCarServiceTestFragment.MediaWithDelayedFocusListener
DCarAudioZoneInputFragment.java255 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in CarAudioZoneInputFragment.InputAudioFocusListener
DAudioPlayer.java94 public void onAudioFocusChange(int focusChange) {
DAudioTestFragment.java1009 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in AudioTestFragment.FocusHandler.AudioFocusListener
1026 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in AudioTestFragment.MediaWithDelayedFocusListener
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java95 public void onAudioFocusChange(int focusChange) {
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DAudioAutoStartActivity.java233 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in AudioAutoStartActivity.AutoStartFocusListener
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeFragment.java349 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in CarAudioZoneVolumeFragment.AudioFocusListener
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt249 override fun onAudioFocusChange(focusChange: Int) { in onAudioFocusChange() method in com.android.music.AudioPreview
/packages/apps/Music/src/com/android/music/
DAudioPreview.java278 public void onAudioFocusChange(int focusChange) {
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/preview/video/
DVideoUi.kt515 override fun onAudioFocusChange(focusChange: Int) { in rememberAudioFocus() method
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java728 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() method in CellBroadcastAlertAudio
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java624 public void onAudioFocusChange(int focus) {

12