Lines Matching refs:portV7

322     void fillFakeAudioPortV7Info(struct audio_port_v7* portV7, bool containsExtraAudioDescriptor);
560 void SystemAudioPortTest::fillFakeAudioPortV7Info(struct audio_port_v7* portV7, in fillFakeAudioPortV7Info() argument
562 fillFakeAudioPortBaseInfo(portV7); in fillFakeAudioPortV7Info()
564 portV7->num_audio_profiles = fillFakeFormats(formats, AUDIO_PORT_MAX_FORMATS); in fillFakeAudioPortV7Info()
565 for (size_t i = 0; i < portV7->num_audio_profiles; ++i) { in fillFakeAudioPortV7Info()
566 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()
574 auto channelMasks = portV7->role == AUDIO_PORT_ROLE_SINK ? OUT_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()
580 portV7->num_extra_audio_descriptors = AUDIO_PORT_MAX_EXTRA_AUDIO_DESCRIPTORS; in fillFakeAudioPortV7Info()
581 for (size_t i = 0; i < portV7->num_extra_audio_descriptors; ++i) { in fillFakeAudioPortV7Info()
582 portV7->extra_audio_descriptors[i].standard = AUDIO_STANDARD_EDID; in fillFakeAudioPortV7Info()
583 portV7->extra_audio_descriptors[i].descriptor_length = SHORT_AUDIO_DESCRIPTOR_LENGTH; in fillFakeAudioPortV7Info()
585 portV7->extra_audio_descriptors[i].descriptor[j] = rand() % 254 + 1; in fillFakeAudioPortV7Info()
587 portV7->extra_audio_descriptors[i].encapsulation_type = in fillFakeAudioPortV7Info()
742 struct audio_port_v7 portV7; in TEST_P() local
744 audio_populate_audio_port_v7(&srcPort, &portV7); in TEST_P()
745 ASSERT_TRUE(audio_populate_audio_port(&portV7, &dstPort)); in TEST_P()