Home
last modified time | relevance | path

Searched refs:audioStream (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/av/media/libaaudio/src/core/
DAAudioAudio.cpp249 AudioStream *audioStream = nullptr; in AAudioStreamBuilder_openStream() local
254 aaudio_result_t result = streamBuilder->build(&audioStream); in AAudioStreamBuilder_openStream()
256 *streamPtr = (AAudioStream*) audioStream; in AAudioStreamBuilder_openStream()
257 id = audioStream->getId(); in AAudioStreamBuilder_openStream()
278 AudioStream* audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_release() local
279 if (audioStream != nullptr) { in AAudioStream_release()
280 aaudio_stream_id_t id = audioStream->getId(); in AAudioStream_release()
282 result = audioStream->safeRelease(); in AAudioStream_release()
297 AudioStream* audioStream = convertAAudioStreamToAudioStream(stream); in AAudioStream_close() local
298 if (audioStream != nullptr) { in AAudioStream_close()
[all …]
DAudioStreamBuilder.cpp208 android::sp<AudioStream> audioStream; in build() local
209 result = builder_createStream(getDirection(), sharingMode, allowMMap, audioStream); in build()
212 result = audioStream->open(*this); in build()
214 bool isMMap = audioStream->isMMap(); in build()
219 false, audioStream); in build()
221 result = audioStream->open(*this); in build()
226 audioStream->registerPlayerBase(); in build()
227 audioStream->logOpenActual(); in build()
228 *streamPtr = startUsingStream(audioStream); in build()
235 AudioStream *AudioStreamBuilder::startUsingStream(android::sp<AudioStream> &audioStream) { in startUsingStream() argument
[all …]
DAudioStream.cpp483 AudioStream *audioStream = (AudioStream *) threadArg; in AudioStream_internalThreadProc() local
487 android::sp<AudioStream> protectedStream(audioStream); in AudioStream_internalThreadProc()
629 android::sp<AudioStream> audioStream; in applyVolumeShaper() local
632 audioStream = mParent.promote(); in applyVolumeShaper()
634 if (audioStream) { in applyVolumeShaper()
635 return audioStream->applyVolumeShaper(configuration, operation); in applyVolumeShaper()
674 android::sp<AudioStream> audioStream; in playerSetVolume() local
677 audioStream = mParent.promote(); in playerSetVolume()
679 if (audioStream) { in playerSetVolume()
681 audioStream->setDuckAndMuteVolume(mVolumeMultiplierL /* mPanMultiplierL */); in playerSetVolume()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/domain/interactor/
DAudioVolumeInteractor.kt38 fun getAudioStream(audioStream: AudioStream): Flow<AudioStreamModel> = in <lambda>()
40 audioRepository.getAudioStream(audioStream), in <lambda>()
42 notificationsSoundPolicyInteractor.isZenMuted(audioStream) in <lambda>()
50 suspend fun setVolume(audioStream: AudioStream, volume: Int) { in <lambda>()
51 val streamModel = getAudioStream(audioStream).first() in <lambda>()
54 audioRepository.setVolume(audioStream, volume) in <lambda>()
56 volume == streamModel.minVolume -> setMuted(audioStream, true) in <lambda>()
58 setMuted(audioStream, false) in <lambda>()
63 suspend fun setMuted(audioStream: AudioStream, isMuted: Boolean) { in <lambda>()
64 val streamModel = getAudioStream(audioStream).first() in <lambda>()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/data/repository/
DAudioRepository.kt75 fun getAudioStream(audioStream: AudioStream): Flow<AudioStreamModel> in <lambda>()
78 suspend fun getLastAudibleVolume(audioStream: AudioStream): Int in <lambda>()
80 suspend fun setVolume(audioStream: AudioStream, volume: Int) in <lambda>()
86 suspend fun setMuted(audioStream: AudioStream, isMuted: Boolean): Boolean in <lambda>()
88 suspend fun setRingerMode(audioStream: AudioStream, mode: RingerMode) in <lambda>()
159 override fun getAudioStream(audioStream: AudioStream): Flow<AudioStreamModel> { in getAudioStream()
163 it.audioStream == audioStream in getAudioStream()
168 volumeSettingChanges(audioStream), in getAudioStream()
171 .map { getCurrentAudioStream(audioStream) } in getAudioStream()
172 .onStart { emit(getCurrentAudioStream(audioStream)) } in getAudioStream()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/data/repository/
DFakeAudioRepository.kt47 audioStream: AudioStream in getAudioStreamModelState()
49 models.getOrPut(audioStream) { in getAudioStreamModelState()
52 audioStream = audioStream, in getAudioStreamModelState()
63 override fun getAudioStream(audioStream: AudioStream): StateFlow<AudioStreamModel> = in getAudioStream()
64 getAudioStreamModelState(audioStream).asStateFlow() in getAudioStream()
66 override suspend fun setVolume(audioStream: AudioStream, volume: Int) { in getAudioStream()
67 getAudioStreamModelState(audioStream).update { it.copy(volume = volume) } in getAudioStream()
70 override suspend fun setMuted(audioStream: AudioStream, isMuted: Boolean): Boolean { in setMuted()
71 val modelState = getAudioStreamModelState(audioStream) in setMuted()
80 override suspend fun getLastAudibleVolume(audioStream: AudioStream): Int = in getLastAudibleVolume()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/domain/interactor/
DAudioVolumeInteractorTest.kt57 audioRepository.getAudioStream(audioStream).value.copy(isAffectedByMute = true) in setUp()
71 val model by collectLastValue(underTest.getAudioStream(audioStream)) in setMuted_mutesStream()
73 underTest.setMuted(audioStream, false) in setMuted_mutesStream()
77 underTest.setMuted(audioStream, true) in setMuted_mutesStream()
88 val model by collectLastValue(underTest.getAudioStream(audioStream)) in setVolume_changesVolume()
90 underTest.setVolume(audioStream, 10) in setVolume_changesVolume()
94 underTest.setVolume(audioStream, 20) in setVolume_changesVolume()
144 val model by collectLastValue(underTest.getAudioStream(audioStream)) in streamIsMuted_getStream_volumeMin()
146 underTest.setMuted(audioStream, true) in streamIsMuted_getStream_volumeMin()
158 audioRepository.setLastAudibleVolume(audioStream, 30) in streamIsZenMuted_getStream_lastAudibleVolume()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/volume/slider/ui/viewmodel/
DAudioStreamSliderViewModel.kt62 private val audioStream = audioStreamWrapper.audioStream in <lambda>() constant
104 audioVolumeInteractor.getAudioStream(audioStream), in <lambda>()
105 audioVolumeInteractor.canChangeVolume(audioStream), in <lambda>()
115 .onEach { audioVolumeInteractor.setVolume(audioStream, it) } in <lambda>()
126 uiEventByStream[audioStream]?.let { uiEventLogger.log(it) } in <lambda>()
133 audioVolumeInteractor.setMuted(audioStream, !audioViewModel.audioStreamModel.isMuted) in <lambda>()
142 labelsByStream[audioStream]?.let(context::getString) in <lambda>()
143 ?: error("No label for the stream: $audioStream") in <lambda>()
152 audioStream, in <lambda>()
174 if (audioStream.value in streamsAffectedByRing) { in <lambda>()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DAudioRepositoryTest.kt165 val audioStream = AudioStream(AudioManager.STREAM_SYSTEM) in adjustingVolume_changesTheStream() constant
168 .getAudioStream(audioStream) in adjustingVolume_changesTheStream()
173 underTest.setVolume(audioStream, 50) in adjustingVolume_changesTheStream()
179 audioStream = audioStream, in adjustingVolume_changesTheStream()
194 val audioStream = AudioStream(AudioManager.STREAM_SYSTEM) in muteStream_mutesTheStream() constant
197 .getAudioStream(audioStream) in muteStream_mutesTheStream()
202 underTest.setMuted(audioStream, true) in muteStream_mutesTheStream()
208 audioStream = audioStream, in muteStream_mutesTheStream()
223 val audioStream = AudioStream(AudioManager.STREAM_SYSTEM) in unmuteStream_unmutesTheStream() constant
224 isMuteByStream[audioStream.value] = true in unmuteStream_unmutesTheStream()
[all …]
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/voiceinteraction/
DHotwordAudioStreamCopierTest.java83 HotwordAudioStream audioStream = new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, in testDefaultCopyBufferLength() local
85 originalAudioStreams.add(audioStream); in testDefaultCopyBufferLength()
122 HotwordAudioStream audioStream = new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, in testCustomCopyBufferLength() local
124 audioStream.getMetadata().putInt(KEY_AUDIO_STREAM_COPY_BUFFER_LENGTH_BYTES, in testCustomCopyBufferLength()
126 originalAudioStreams.add(audioStream); in testCustomCopyBufferLength()
156 HotwordAudioStream audioStream = new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, in testInvalidCopyBufferLength_NonPositive() local
158 audioStream.getMetadata().putInt(KEY_AUDIO_STREAM_COPY_BUFFER_LENGTH_BYTES, 0); in testInvalidCopyBufferLength_NonPositive()
159 originalAudioStreams.add(audioStream); in testInvalidCopyBufferLength_NonPositive()
184 HotwordAudioStream audioStream = new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, in testInvalidCopyBufferLength_ExceedsMaximum() local
186 audioStream.getMetadata().putInt(KEY_AUDIO_STREAM_COPY_BUFFER_LENGTH_BYTES, in testInvalidCopyBufferLength_ExceedsMaximum()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/shared/model/
DAudioManagerEvent.kt22 data class StreamMuteChanged(override val audioStream: AudioStream) : StreamAudioManagerEvent constant in com.android.settingslib.volume.shared.model.AudioManagerEvent.StreamMuteChanged
24 data class StreamVolumeChanged(override val audioStream: AudioStream) : StreamAudioManagerEvent constant in com.android.settingslib.volume.shared.model.AudioManagerEvent.StreamVolumeChanged
36 val audioStream: AudioStream constant
DAudioStreamModel.kt21 val audioStream: AudioStream, constant in com.android.settingslib.volume.shared.model.AudioStreamModel
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DHotwordAudioStreamCopier.java130 for (HotwordAudioStream audioStream : audioStreams) { in startCopyingAudioStreams()
135 audioStream.buildUpon().setAudioStreamParcelFileDescriptor( in startCopyingAudioStreams()
140 PersistableBundle metadata = audioStream.getMetadata(); in startCopyingAudioStreams()
150 + copyBufferLength + ") for: " + audioStream); in startCopyingAudioStreams()
154 + audioStream); in startCopyingAudioStreams()
160 totalInitialAudioSizeBytes += audioStream.getInitialAudio().length; in startCopyingAudioStreams()
163 audioStream.getAudioStreamParcelFileDescriptor(); in startCopyingAudioStreams()
DDetectorSession.java401 ParcelFileDescriptor audioStream, in startListeningFromExternalSourceLocked() argument
410 audioStream, in startListeningFromExternalSourceLocked()
419 ParcelFileDescriptor audioStream, in startListeningFromWearableLocked() argument
502 audioStream, in startListeningFromWearableLocked()
512 ParcelFileDescriptor audioStream, in handleExternalSourceHotwordDetectionLocked() argument
526 InputStream audioSource = new ParcelFileDescriptor.AutoCloseInputStream(audioStream); in handleExternalSourceHotwordDetectionLocked()
DVoiceInteractionManagerServiceImpl.java852 ParcelFileDescriptor audioStream, in startListeningFromExternalSourceLocked() argument
866 if (audioStream == null) { in startListeningFromExternalSourceLocked()
871 mHotwordDetectionConnection.startListeningFromExternalSourceLocked(audioStream, audioFormat, in startListeningFromExternalSourceLocked()
876 ParcelFileDescriptor audioStream, in startListeningFromWearableLocked() argument
890 audioStream, audioFormat, options, callback); in startListeningFromWearableLocked()
DHotwordDetectionConnection.java463 ParcelFileDescriptor audioStream, in startListeningFromExternalSourceLocked() argument
476 session.startListeningFromExternalSourceLocked(audioStream, audioFormat, options, callback); in startListeningFromExternalSourceLocked()
480 ParcelFileDescriptor audioStream, in startListeningFromWearableLocked() argument
495 audioStream, audioFormat, options, callback); in startListeningFromWearableLocked()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/component/volume/slider/ui/viewmodel/
DAudioStreamSliderViewModelKosmos.kt30 audioStream: AudioStreamSliderViewModel.FactoryAudioStreamWrapper, in <lambda>()
34 audioStream, in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/shared/
DAudioManagerEventsReceiver.kt103 val audioStream = AudioStream(audioStreamType) in toAudioManagerEvent() constant
106 AudioManagerEvent.StreamMuteChanged(audioStream) in toAudioManagerEvent()
107 AudioManager.VOLUME_CHANGED_ACTION -> AudioManagerEvent.StreamVolumeChanged(audioStream) in toAudioManagerEvent()
/frameworks/base/core/java/android/service/voice/
DHotwordDetectionService.java183 ParcelFileDescriptor audioStream,
199 audioStream,
381 @NonNull ParcelFileDescriptor audioStream, in onDetect()
DIMicrophoneHotwordDetectionVoiceInteractionCallback.aidl37 in ParcelFileDescriptor audioStream); in onDetected() argument
DAbstractDetector.java107 @NonNull ParcelFileDescriptor audioStream, in startRecognition()
119 audioStream, in startRecognition()
DVoiceInteractionManagerInternal.java94 ParcelFileDescriptor audioStream, in startListeningFromWearable() argument
DISandboxedDetectionService.aidl46 in ParcelFileDescriptor audioStream, in detectFromMicrophoneSource() argument
DHotwordDetector.java116 @NonNull ParcelFileDescriptor audioStream, in startRecognition()
DSoftwareHotwordDetector.java172 @Nullable ParcelFileDescriptor audioStream) { in onDetected() argument
176 .setAudioStream(audioStream) in onDetected()

12