Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp74 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in testTrack() local
99 offloadInfo.sample_rate = sampleRate; in testTrack()
100 offloadInfo.channel_mask = channelMask; in testTrack()
101 offloadInfo.format = format; in testTrack()
128 offload ? &offloadInfo : nullptr, in testTrack()
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp175 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in start() local
185 offloadInfo.duration_us = durationUs; in start()
187 offloadInfo.duration_us = -1; in start()
190 offloadInfo.sample_rate = mSampleRate; in start()
191 offloadInfo.channel_mask = channelMask; in start()
192 offloadInfo.format = audioFormat; in start()
193 offloadInfo.stream_type = AUDIO_STREAM_MUSIC; in start()
194 offloadInfo.bit_rate = avgBitRate; in start()
195 offloadInfo.has_video = ((mCreateFlags & HAS_VIDEO) != 0); in start()
196 offloadInfo.is_streaming = ((mCreateFlags & IS_STREAMING) != 0); in start()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp1946 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in onOpenAudioSink() local
1947 offloadInfo.duration_us = -1; in onOpenAudioSink()
1949 "durationUs", &offloadInfo.duration_us); in onOpenAudioSink()
1950 offloadInfo.sample_rate = sampleRate; in onOpenAudioSink()
1951 offloadInfo.channel_mask = channelMask; in onOpenAudioSink()
1952 offloadInfo.format = audioFormat; in onOpenAudioSink()
1953 offloadInfo.stream_type = AUDIO_STREAM_MUSIC; in onOpenAudioSink()
1954 offloadInfo.bit_rate = avgBitRate; in onOpenAudioSink()
1955 offloadInfo.has_video = hasVideo; in onOpenAudioSink()
1956 offloadInfo.is_streaming = isStreaming; in onOpenAudioSink()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp315 audio_offload_info_t offloadInfo; in android_media_AudioTrack_setup() local
317 offloadInfo = AUDIO_INFO_INITIALIZER; in android_media_AudioTrack_setup()
318 offloadInfo.format = format; in android_media_AudioTrack_setup()
319 offloadInfo.sample_rate = sampleRateInHertz; in android_media_AudioTrack_setup()
320 offloadInfo.channel_mask = nativeChannelMask; in android_media_AudioTrack_setup()
321 offloadInfo.has_video = false; in android_media_AudioTrack_setup()
322 offloadInfo.stream_type = AUDIO_STREAM_MUSIC; //required for offload in android_media_AudioTrack_setup()
342 offload ? &offloadInfo : NULL, in android_media_AudioTrack_setup()
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h252 const audio_offload_info_t *offloadInfo = NULL,
283 const audio_offload_info_t *offloadInfo = NULL,
331 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp240 const audio_offload_info_t *offloadInfo, in AudioTrack() argument
258 offloadInfo, uid, pid, pAttributes, doNotReconnect, maxRequiredSpeed, selectedDeviceId); in AudioTrack()
273 const audio_offload_info_t *offloadInfo, in AudioTrack() argument
290 sharedBuffer, false /*threadCanCallJava*/, sessionId, transferType, offloadInfo, in AudioTrack()
340 const audio_offload_info_t *offloadInfo, in set() argument
513 if (offloadInfo != NULL) { in set()
514 mOffloadInfoCopy = *offloadInfo; in set()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp3184 bool AudioPolicyManager::isOffloadSupported(const audio_offload_info_t& offloadInfo) in isOffloadSupported() argument
3188 offloadInfo.sample_rate, offloadInfo.channel_mask, in isOffloadSupported()
3189 offloadInfo.format, in isOffloadSupported()
3190 offloadInfo.stream_type, offloadInfo.bit_rate, offloadInfo.duration_us, in isOffloadSupported()
3191 offloadInfo.has_video); in isOffloadSupported()
3204 if (offloadInfo.stream_type != AUDIO_STREAM_MUSIC) in isOffloadSupported()
3213 if (offloadInfo.has_video && !allowOffloadWithVideo) { in isOffloadSupported()
3222 if (offloadInfo.duration_us < min_duration_secs * 1000000LL) { in isOffloadSupported()
3227 } else if (offloadInfo.duration_us < OFFLOAD_DEFAULT_MIN_DURATION_SECS * 1000000) { in isOffloadSupported()
3245 offloadInfo.sample_rate, in isOffloadSupported()
[all …]
DAudioPolicyManager.h223 virtual bool isOffloadSupported(const audio_offload_info_t& offloadInfo);
/frameworks/av/include/media/
DMediaPlayerInterface.h121 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h121 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h210 virtual bool isOffloadSupported(const audio_offload_info_t& offloadInfo) = 0;
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.h107 const audio_offload_info_t *offloadInfo = NULL,
DMediaPlayerService.cpp1871 const audio_offload_info_t *offloadInfo, in open() argument
1881 ((cb == NULL) || (offloadInfo == NULL))) { in open()
2002 offloadInfo, in open()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp1859 const audio_offload_info_t *offloadInfo);