Lines Matching defs:config
368 // TODO: retrieve audio config supported by the platform
383 // TODO: retrieve audio config supported by the platform
396 AudioConfig config{};
398 config.channelMask = channelMask;
399 config.sampleRateHz = sampleRate;
400 config.format = format;
402 configs.push_back(config);
410 /** Generate a test name based on an audio config.
417 const AudioConfig& config = info.param;
418 return to_string(info.index) + "__" + to_string(config.sampleRateHz) + "_" +
420 ((config.channelMask == AudioChannelMask::OUT_MONO ||
421 config.channelMask == AudioChannelMask::IN_MONO)
423 : toString(config.channelMask));
460 // Test that the required capture config and those declared in the policy are
480 // Test that the recommended capture config are supported or lead to a
578 void testOpen(Open openStream, const AudioConfig& config) {
584 ASSERT_OK(openStream(ioHandle, config,
591 audioConfig = config;
596 // Could not open stream with config, try again with the
638 const AudioConfig& config = GetParam();
642 [&](AudioIoHandle handle, AudioConfig config, auto cb) {
643 return device->openOutputStream(handle, address, config, flags,
646 config);
652 "recommended config");
678 const AudioConfig& config = GetParam();
684 [&](AudioIoHandle handle, AudioConfig config, auto cb) {
685 return device->openInputStream(handle, address, config, flags,
688 config);
695 "recommended config");