Home
last modified time | relevance | path

Searched refs:mAudioPolicy (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioPolicyDeathTestActivity.java42 private AudioPolicy mAudioPolicy = null; field in AudioPolicyDeathTestActivity
72 mAudioPolicy = audioPolicyBuilder.build(); in onCreate()
74 int result = mAudioManager.registerAudioPolicy(mAudioPolicy); in onCreate()
76 AudioRecord audioRecord = mAudioPolicy.createAudioRecordSink(audioMix); in onCreate()
103 if (mAudioManager != null && mAudioPolicy != null) { in onDestroy()
104 mAudioManager.unregisterAudioPolicy(mAudioPolicy); in onDestroy()
/frameworks/base/core/java/android/companion/virtual/audio/
DVirtualAudioSession.java66 private AudioPolicy mAudioPolicy; field in VirtualAudioSession
237 if (mAudioPolicy != null) { in createAudioStreams()
261 mAudioPolicy = builder.build(); in createAudioStreams()
263 if (audioManager.registerAudioPolicy(mAudioPolicy) == AudioManager.ERROR) { in createAudioStreams()
268 audioRecordMix != null ? mAudioPolicy.createAudioRecordSink(audioRecordMix) in createAudioStreams()
271 audioTrackMix != null ? mAudioPolicy.createAudioTrackSource(audioTrackMix) in createAudioStreams()
293 if (mAudioPolicy != null) { in releaseAudioStreams()
295 audioManager.unregisterAudioPolicy(mAudioPolicy); in releaseAudioStreams()
296 mAudioPolicy = null; in releaseAudioStreams()
/frameworks/base/media/java/android/media/
DAudioTrack.java629 private AudioPolicy mAudioPolicy; field in AudioTrack
1472 mAudioPolicy = audioPolicy; in unregisterAudioPolicyOnRelease()
2041 if (mAudioPolicy != null) { in release()
2042 AudioManager.unregisterAudioPolicyAsyncStatic(mAudioPolicy); in release()
2043 mAudioPolicy = null; in release()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java317 private final AudioPolicyFacade mAudioPolicy; field in AudioService
1162 mAudioPolicy = audioPolicy; in AudioService()
4394 return mAudioPolicy.isHotwordStreamSupported(lookbackAudio); in isHotwordStreamSupported()