/frameworks/av/media/libaaudio/src/core/ |
D | AAudioAudio.cpp | 249 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 …]
|
D | AudioStreamBuilder.cpp | 208 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 …]
|
D | AudioStream.cpp | 483 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/ |
D | AudioVolumeInteractor.kt | 38 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/ |
D | AudioRepository.kt | 75 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/ |
D | FakeAudioRepository.kt | 47 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/ |
D | AudioVolumeInteractorTest.kt | 57 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/ |
D | AudioStreamSliderViewModel.kt | 62 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/ |
D | AudioRepositoryTest.kt | 165 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/ |
D | HotwordAudioStreamCopierTest.java | 83 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/ |
D | AudioManagerEvent.kt | 22 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
|
D | AudioStreamModel.kt | 21 val audioStream: AudioStream, constant in com.android.settingslib.volume.shared.model.AudioStreamModel
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | HotwordAudioStreamCopier.java | 130 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()
|
D | DetectorSession.java | 401 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()
|
D | VoiceInteractionManagerServiceImpl.java | 852 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()
|
D | HotwordDetectionConnection.java | 463 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/ |
D | AudioStreamSliderViewModelKosmos.kt | 30 audioStream: AudioStreamSliderViewModel.FactoryAudioStreamWrapper, in <lambda>() 34 audioStream, in <lambda>()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/shared/ |
D | AudioManagerEventsReceiver.kt | 103 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/ |
D | HotwordDetectionService.java | 183 ParcelFileDescriptor audioStream, 199 audioStream, 381 @NonNull ParcelFileDescriptor audioStream, in onDetect()
|
D | IMicrophoneHotwordDetectionVoiceInteractionCallback.aidl | 37 in ParcelFileDescriptor audioStream); in onDetected() argument
|
D | AbstractDetector.java | 107 @NonNull ParcelFileDescriptor audioStream, in startRecognition() 119 audioStream, in startRecognition()
|
D | VoiceInteractionManagerInternal.java | 94 ParcelFileDescriptor audioStream, in startListeningFromWearable() argument
|
D | ISandboxedDetectionService.aidl | 46 in ParcelFileDescriptor audioStream, in detectFromMicrophoneSource() argument
|
D | HotwordDetector.java | 116 @NonNull ParcelFileDescriptor audioStream, in startRecognition()
|
D | SoftwareHotwordDetector.java | 172 @Nullable ParcelFileDescriptor audioStream) { in onDetected() argument 176 .setAudioStream(audioStream) in onDetected()
|