Home
last modified time | relevance | path

Searched refs:offloadInfo (Results 1 – 19 of 19) 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/media/libstagefright/
DAudioPlayer.cpp174 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in start() local
184 offloadInfo.duration_us = durationUs; in start()
186 offloadInfo.duration_us = -1; in start()
189 offloadInfo.sample_rate = mSampleRate; in start()
190 offloadInfo.channel_mask = channelMask; in start()
191 offloadInfo.format = audioFormat; in start()
192 offloadInfo.stream_type = AUDIO_STREAM_MUSIC; in start()
193 offloadInfo.bit_rate = avgBitRate; in start()
194 offloadInfo.has_video = ((mCreateFlags & HAS_VIDEO) != 0); in start()
195 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/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Renderer.cpp1933 audio_offload_info_t offloadInfo = AUDIO_INFO_INITIALIZER; in onOpenAudioSink() local
1934 offloadInfo.duration_us = -1; in onOpenAudioSink()
1936 "durationUs", &offloadInfo.duration_us); in onOpenAudioSink()
1937 offloadInfo.sample_rate = sampleRate; in onOpenAudioSink()
1938 offloadInfo.channel_mask = channelMask; in onOpenAudioSink()
1939 offloadInfo.format = audioFormat; in onOpenAudioSink()
1940 offloadInfo.stream_type = AUDIO_STREAM_MUSIC; in onOpenAudioSink()
1941 offloadInfo.bit_rate = avgBitRate; in onOpenAudioSink()
1942 offloadInfo.has_video = hasVideo; in onOpenAudioSink()
1943 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/include/media/
DAudioTrack.h247 const audio_offload_info_t *offloadInfo = NULL,
278 const audio_offload_info_t *offloadInfo = NULL,
326 const audio_offload_info_t *offloadInfo = NULL,
DMediaPlayerInterface.h122 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h247 const audio_offload_info_t *offloadInfo = NULL,
278 const audio_offload_info_t *offloadInfo = NULL,
326 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/
DMediaPlayer2AudioOutput.h69 const audio_offload_info_t *offloadInfo = NULL,
DMediaPlayer2Interface.h109 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/media/libmediaplayer2/
DMediaPlayer2AudioOutput.cpp263 const audio_offload_info_t *offloadInfo, in open() argument
271 ((cb == nullptr) || (offloadInfo == nullptr))) { in open()
/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/media/libmediaplayerservice/include/
DMediaPlayerInterface.h122 const audio_offload_info_t *offloadInfo = NULL,
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp3120 bool AudioPolicyManager::isOffloadSupported(const audio_offload_info_t& offloadInfo) in isOffloadSupported() argument
3124 offloadInfo.sample_rate, offloadInfo.channel_mask, in isOffloadSupported()
3125 offloadInfo.format, in isOffloadSupported()
3126 offloadInfo.stream_type, offloadInfo.bit_rate, offloadInfo.duration_us, in isOffloadSupported()
3127 offloadInfo.has_video); in isOffloadSupported()
3140 if (offloadInfo.stream_type != AUDIO_STREAM_MUSIC) in isOffloadSupported()
3149 if (offloadInfo.has_video && !allowOffloadWithVideo) { in isOffloadSupported()
3158 if (offloadInfo.duration_us < min_duration_secs * 1000000LL) { in isOffloadSupported()
3163 } else if (offloadInfo.duration_us < OFFLOAD_DEFAULT_MIN_DURATION_SECS * 1000000) { in isOffloadSupported()
3181 offloadInfo.sample_rate, in isOffloadSupported()
[all …]
DAudioPolicyManager.h224 virtual bool isOffloadSupported(const audio_offload_info_t& offloadInfo);
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h204 virtual bool isOffloadSupported(const audio_offload_info_t& offloadInfo) = 0;
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.h105 const audio_offload_info_t *offloadInfo = NULL,
DMediaPlayerService.cpp1870 const audio_offload_info_t *offloadInfo, in open() argument
1880 ((cb == NULL) || (offloadInfo == NULL))) { in open()
2001 offloadInfo, in open()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp1770 const audio_offload_info_t *offloadInfo);