Home
last modified time | relevance | path

Searched refs:audio_profiles (Results 1 – 2 of 2) sorted by relevance

/system/media/audio/include/system/
Daudio.h700 struct audio_profile audio_profiles[AUDIO_PORT_MAX_AUDIO_PROFILES]; member
734 portV7->audio_profiles[i].format = port->formats[i]; in audio_populate_audio_port_v7()
735 portV7->audio_profiles[i].num_sample_rates = port->num_sample_rates; in audio_populate_audio_port_v7()
736 memcpy(portV7->audio_profiles[i].sample_rates, port->sample_rates, in audio_populate_audio_port_v7()
738 portV7->audio_profiles[i].num_channel_masks = port->num_channel_masks; in audio_populate_audio_port_v7()
739 memcpy(portV7->audio_profiles[i].channel_masks, port->channel_masks, in audio_populate_audio_port_v7()
768 port->formats[i] = portV7->audio_profiles[i].format; in audio_populate_audio_port()
769 for (size_t j = 0; j < portV7->audio_profiles[i].num_sample_rates; ++j) { in audio_populate_audio_port()
772 if (port->sample_rates[k] == portV7->audio_profiles[i].sample_rates[j]) { in audio_populate_audio_port()
782 portV7->audio_profiles[i].sample_rates[j]; in audio_populate_audio_port()
[all …]
/system/media/tests/
Dsystemaudio_tests.cpp566 portV7->audio_profiles[i].format = formats[i]; in fillFakeAudioPortV7Info()
568 portV7->audio_profiles[i].num_sample_rates = AUDIO_PORT_MAX_SAMPLING_RATES; in fillFakeAudioPortV7Info()
569 for (size_t j = 0; j < portV7->audio_profiles[i].num_sample_rates; ++j) { in fillFakeAudioPortV7Info()
571 portV7->audio_profiles[i].sample_rates[j] = rand(); in fillFakeAudioPortV7Info()
573 portV7->audio_profiles[i].num_channel_masks = AUDIO_PORT_MAX_CHANNEL_MASKS; in fillFakeAudioPortV7Info()
576 std::copy(channelMasks, channelMasks+portV7->audio_profiles[i].num_channel_masks, in fillFakeAudioPortV7Info()
577 std::begin(portV7->audio_profiles[i].channel_masks)); in fillFakeAudioPortV7Info()
725 testAudioPortCapabilityArraysEquivalent(lhs.audio_profiles, lhs.num_audio_profiles, in TEST_P()
727 auto& firstProfile = lhs.audio_profiles[0]; in TEST_P()
753 auto& profile = srcPortV7.audio_profiles[0]; in TEST_P()