Home
last modified time | relevance | path

Searched refs:offloadInfo (Results 1 – 21 of 21) sorted by relevance

/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp72 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in testTrack() local
96 offloadInfo.sample_rate = sampleRate; in testTrack()
97 offloadInfo.channel_mask = channelMask; in testTrack()
98 offloadInfo.format = format; in testTrack()
115 offload ? &offloadInfo : nullptr, AttributionSourceState(), &attributes, false, in testTrack()
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp178 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in start() local
188 offloadInfo.duration_us = durationUs; in start()
190 offloadInfo.duration_us = -1; in start()
193 offloadInfo.sample_rate = mSampleRate; in start()
194 offloadInfo.channel_mask = channelMask; in start()
195 offloadInfo.format = audioFormat; in start()
196 offloadInfo.stream_type = AUDIO_STREAM_MUSIC; in start()
197 offloadInfo.bit_rate = avgBitRate; in start()
198 offloadInfo.has_video = ((mCreateFlags & HAS_VIDEO) != 0); in start()
199 offloadInfo.is_streaming = ((mCreateFlags & IS_STREAMING) != 0); in start()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp342 audio_offload_info_t offloadInfo; in android_media_AudioTrack_setup() local
344 offloadInfo = AUDIO_INFO_INITIALIZER; in android_media_AudioTrack_setup()
345 offloadInfo.format = format; in android_media_AudioTrack_setup()
346 offloadInfo.sample_rate = sampleRateInHertz; in android_media_AudioTrack_setup()
347 offloadInfo.channel_mask = nativeChannelMask; in android_media_AudioTrack_setup()
348 offloadInfo.has_video = false; in android_media_AudioTrack_setup()
349 offloadInfo.stream_type = AUDIO_STREAM_MUSIC; //required for offload in android_media_AudioTrack_setup()
353 offloadInfo = AUDIO_INFO_INITIALIZER; in android_media_AudioTrack_setup()
354 offloadInfo.format = format; in android_media_AudioTrack_setup()
355 offloadInfo.sample_rate = sampleRateInHertz; in android_media_AudioTrack_setup()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h336 const audio_offload_info_t *offloadInfo = nullptr,
365 const audio_offload_info_t *offloadInfo = nullptr,
412 const audio_offload_info_t *offloadInfo = nullptr,
434 const audio_offload_info_t *offloadInfo; member
447 s.transferType, s.offloadInfo, std::move(s.attributionSource), in set()
467 const audio_offload_info_t *offloadInfo = nullptr,
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp2050 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in onOpenAudioSink() local
2051 offloadInfo.duration_us = -1; in onOpenAudioSink()
2053 "durationUs", &offloadInfo.duration_us); in onOpenAudioSink()
2054 offloadInfo.sample_rate = sampleRate; in onOpenAudioSink()
2055 offloadInfo.channel_mask = channelMask; in onOpenAudioSink()
2056 offloadInfo.format = audioFormat; in onOpenAudioSink()
2057 offloadInfo.stream_type = AUDIO_STREAM_MUSIC; in onOpenAudioSink()
2058 offloadInfo.bit_rate = avgBitRate; in onOpenAudioSink()
2059 offloadInfo.has_video = hasVideo; in onOpenAudioSink()
2060 offloadInfo.is_streaming = isStreaming; in onOpenAudioSink()
[all …]
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp231 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in invokeAudioTrack() local
245 offloadInfo.sample_rate = sampleRate; in invokeAudioTrack()
246 offloadInfo.channel_mask = channelMask; in invokeAudioTrack()
247 offloadInfo.format = format; in invokeAudioTrack()
264 offload ? &offloadInfo : nullptr, attributionSource, &attributes, false, 1.0f, in invokeAudioTrack()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DConversionUtil.java358 aidlConfig.offloadInfo = hidl2aidlOffloadInfo(hidlConfig.offloadInfo); in hidl2aidlAudioConfig()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp4541 audio_offload_mode_t AudioPolicyManager::getOffloadSupport(const audio_offload_info_t& offloadInfo) in getOffloadSupport() argument
4545 __func__, offloadInfo.sample_rate, offloadInfo.channel_mask, in getOffloadSupport()
4546 offloadInfo.format, in getOffloadSupport()
4547 offloadInfo.stream_type, offloadInfo.bit_rate, offloadInfo.duration_us, in getOffloadSupport()
4548 offloadInfo.has_video); in getOffloadSupport()
4550 if (!isOffloadPossible(offloadInfo)) { in getOffloadSupport()
4557 offloadInfo.sample_rate, in getOffloadSupport()
4558 offloadInfo.format, in getOffloadSupport()
4559 offloadInfo.channel_mask, in getOffloadSupport()
4608 bool AudioPolicyManager::isOffloadPossible(const audio_offload_info_t &offloadInfo, in isOffloadPossible() argument
[all …]
DAudioPolicyManager.h264 virtual audio_offload_mode_t getOffloadSupport(const audio_offload_info_t& offloadInfo);
1337 bool isOffloadPossible(const audio_offload_info_t& offloadInfo,
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp252 const audio_offload_info_t *offloadInfo, in AudioTrack() argument
262 sessionId, transferType, offloadInfo, attributionSource, pAttributes, in AudioTrack()
317 const audio_offload_info_t *offloadInfo, in AudioTrack() argument
335 sessionId, transferType, offloadInfo, attributionSource, pAttributes, in AudioTrack()
410 const audio_offload_info_t *offloadInfo, in set() argument
590 if (offloadInfo != NULL) { in set()
591 mOffloadInfoCopy = *offloadInfo; in set()
724 const audio_offload_info_t *offloadInfo, in set() argument
743 threadCanCallJava, sessionId, transferType, offloadInfo, attributionSource, in set()
/frameworks/av/include/media/
DMediaPlayerInterface.h122 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h122 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/services/audioflinger/
DIAfThread.h414 audio_io_handle_t id, bool systemReady, const audio_offload_info_t& offloadInfo);
423 audio_io_handle_t id, bool systemReady, const audio_offload_info_t& offloadInfo);
DThreads.h1726 const audio_offload_info_t& offloadInfo) in DirectOutputThread() argument
1727 : DirectOutputThread(afThreadCallback, output, id, DIRECT, systemReady, offloadInfo) { } in DirectOutputThread()
1767 const audio_offload_info_t& offloadInfo);
1808 const audio_offload_info_t& offloadInfo);
DThreads.cpp6649 const audio_offload_info_t& offloadInfo) { in createDirectOutputThread() argument
6651 afThreadCallback, output, id, systemReady, offloadInfo); in createDirectOutputThread()
6656 const audio_offload_info_t& offloadInfo) in DirectOutputThread() argument
6658 , mOffloadInfo(offloadInfo) in DirectOutputThread()
7324 const audio_offload_info_t& offloadInfo) { in createOffloadThread() argument
7325 return sp<OffloadThread>::make(afThreadCallback, output, id, systemReady, offloadInfo); in createOffloadThread()
7330 const audio_offload_info_t& offloadInfo) in OffloadThread() argument
7331 : DirectOutputThread(afThreadCallback, output, id, OFFLOAD, systemReady, offloadInfo), in OffloadThread()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h249 virtual audio_offload_mode_t getOffloadSupport(const audio_offload_info_t& offloadInfo) = 0;
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.h112 const audio_offload_info_t *offloadInfo = NULL,
DMediaPlayerService.cpp2090 const audio_offload_info_t *offloadInfo, in open() argument
2100 ((cb == NULL) || (offloadInfo == NULL))) { in open()
2220 offloadInfo, in open()
/frameworks/av/media/libaudiohal/impl/
DDeviceHalAidl.cpp471 args.offloadInfo = aidlConfig.offloadInfo; in openOutputStream()
/frameworks/av/media/audioaidlconversion/
DAidlConversionCppNdk.cpp2125 aidl2legacy_AudioOffloadInfo_audio_offload_info_t(aidl.offloadInfo)); in aidl2legacy_AudioConfig_audio_config_t()
2136 aidl.offloadInfo = VALUE_OR_RETURN( in legacy2aidl_audio_config_t_AudioConfig()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp2644 const audio_offload_info_t *offloadInfo);