Home
last modified time | relevance | path

Searched refs:isInput (Results 1 – 25 of 28) sorted by relevance

12

/hardware/interfaces/audio/aidl/vts/
DModuleConfig.h69 bool isInput, in getMixPorts() argument
71 return isInput ? getInputMixPorts(connectedOnly) : getOutputMixPorts(connectedOnly); in getMixPorts()
89 bool isInput, bool singlePort) const;
92 bool isInput, const aidl::android::media::audio::common::AudioPort& mixPort) const { in getConnectedDevicesPortsForMixPort() argument
93 return isInput ? getConnectedSourceDevicesPortsForMixPort(mixPort) in getConnectedDevicesPortsForMixPort()
97 bool isInput,
115 std::optional<SrcSinkPair> getNonRoutableSrcSinkPair(bool isInput) const;
116 std::optional<SrcSinkPair> getRoutableSrcSinkPair(bool isInput) const;
117 std::vector<SrcSinkGroup> getRoutableSrcSinkGroups(bool isInput) const;
133 bool isInput) const { in getPortConfigsForMixPorts() argument
[all …]
DModuleConfig.cpp113 const bool isInput = port.flags.getTag() == AudioIoFlags::Tag::input; in ModuleConfig() local
115 if (isInput) { in ModuleConfig()
233 std::vector<AudioPort> ModuleConfig::getRemoteSubmixPorts(bool isInput, bool singlePort) const { in getRemoteSubmixPorts() argument
234 AudioDeviceType deviceType = isInput ? AudioDeviceType::IN_SUBMIX : AudioDeviceType::OUT_SUBMIX; in getRemoteSubmixPorts()
244 bool isInput, const AudioPortConfig& mixPortConfig) const { in getConnectedDevicesPortsForMixPort() argument
247 return getConnectedDevicesPortsForMixPort(isInput, *mixPortIt); in getConnectedDevicesPortsForMixPort()
298 const bool isInput = port.flags.getTag() == AudioIoFlags::input; in getRoutableDevicePortsForMixPort() local
301 devicePortIds = isInput ? getConnectedSourceDevicePorts() : getConnectedSinkDevicePorts(); in getRoutableDevicePortsForMixPort()
316 const bool isInput = port.flags.getTag() == AudioIoFlags::input; in getRoutableMixPortsForDevicePort() local
317 return findMixPorts(isInput, connectedOnly, false /*singlePort*/, in getRoutableMixPortsForDevicePort()
[all …]
DVtsHalAudioCoreModuleTargetTest.cpp2670 StreamFixture(bool isInput = IOTraits<Stream>::is_input) : mIsInput(isInput) {} in StreamFixture() argument
3182 constexpr bool isInput = IOTraits<Stream>::is_input; in OpenOverMaxCount() local
3183 auto ports = moduleConfig->getMixPorts(isInput, connectedOnly); in OpenOverMaxCount()
3190 auto portConfigs = moduleConfig->getPortConfigsForMixPorts(isInput, port); in OpenOverMaxCount()
4067 static std::string direction(bool isInput, bool capitalize) { in direction() argument
4068 return isInput ? (capitalize ? "Input" : "input") : (capitalize ? "Output" : "output"); in direction()
4086 void ResetPortConfigUsedByPatch(bool isInput) { in ResetPortConfigUsedByPatch() argument
4087 auto srcSinkGroups = moduleConfig->getRoutableSrcSinkGroups(isInput); in ResetPortConfigUsedByPatch()
4089 GTEST_SKIP() << "No routes to any attached " << direction(isInput, false) << " devices"; in ResetPortConfigUsedByPatch()
4105 void SetInvalidPatch(bool isInput) { in SetInvalidPatch() argument
[all …]
/hardware/interfaces/audio/aidl/default/r_submix/
DSubmixRoute.cpp88 bool SubmixRoute::isStreamConfigValid(bool isInput, const AudioConfig& streamConfig) { in isStreamConfigValid() argument
91 if (!isInput && isStreamOutOpen()) { in isStreamConfigValid()
149 void SubmixRoute::openStream(bool isInput) { in openStream() argument
151 if (isInput) { in openStream()
168 void SubmixRoute::closeStream(bool isInput) { in closeStream() argument
170 if (isInput) { in closeStream()
251 void SubmixRoute::standby(bool isInput) { in standby() argument
254 if (isInput) { in standby()
262 void SubmixRoute::exitStandby(bool isInput) { in exitStandby() argument
265 if (isInput) { in exitStandby()
DSubmixRoute.h107 bool isStreamConfigValid(bool isInput, const AudioConfig& streamConfig);
108 void closeStream(bool isInput);
110 void exitStandby(bool isInput);
113 void openStream(bool isInput);
117 void standby(bool isInput);
DModuleRemoteSubmix.cpp48 const bool isInput = audioPort.flags.getTag() == AudioIoFlags::input; in getRemoteEndConfig() local
51 if ((isInput && submixRoute->isStreamOutOpen()) || in getRemoteEndConfig()
52 (!isInput && submixRoute->isStreamInOpen())) { in getRemoteEndConfig()
/hardware/interfaces/audio/aidl/default/alsa/
DUtils.h63 unsigned int channelCount, int isInput);
67 const ::aidl::android::media::audio::common::AudioChannelLayout& channelMask, bool isInput);
71 const ::aidl::android::media::audio::common::AudioDevice& audioDevice, bool isInput);
74 std::optional<struct pcm_config> getPcmConfig(const StreamContext& context, bool isInput);
DUtils.cpp175 AudioChannelLayout getChannelLayoutMaskFromChannelCount(unsigned int channelCount, int isInput) { in getChannelLayoutMaskFromChannelCount() argument
177 isInput ? getSupportedChannelInLayoutMap() : getSupportedChannelOutLayoutMap(), in getChannelLayoutMaskFromChannelCount()
186 unsigned int getChannelCountFromChannelMask(const AudioChannelLayout& channelMask, bool isInput) { in getChannelCountFromChannelMask() argument
190 isInput ? getSupportedChannelInLayoutMap() : getSupportedChannelOutLayoutMap(), in getChannelCountFromChannelMask()
207 const bool isInput = profile->direction == PCM_IN; in getChannelMasksFromProfile() local
211 alsa::getChannelLayoutMaskFromChannelCount(profile->channel_counts[i], isInput); in getChannelMasksFromProfile()
224 const ::aidl::android::media::audio::common::AudioDevice& audioDevice, bool isInput) { in getDeviceProfile() argument
237 .direction = isInput ? PCM_IN : PCM_OUT, in getDeviceProfile()
251 std::optional<struct pcm_config> getPcmConfig(const StreamContext& context, bool isInput) { in getPcmConfig() argument
253 config.channels = alsa::getChannelCountFromChannelMask(context.getChannelLayout(), isInput); in getPcmConfig()
DStreamAlsa.cpp36 mIsInput(isInput(metadata)), in StreamAlsa()
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.h41 static status_t audioConfigFromHal(const audio_config_t& halConfig, bool isInput,
50 static status_t audioGainConfigFromHal(const struct audio_gain_config& halConfig, bool isInput,
54 static status_t audioGainFromHal(const struct audio_gain& halGain, bool isInput,
86 static status_t audioChannelMaskFromHal(audio_channel_mask_t halChannelMask, bool isInput,
92 static status_t audioConfigBaseFromHal(const audio_config_base_t& halConfigBase, bool isInput,
97 bool isInput, bool formatSpecified,
117 static status_t audioProfileFromHal(const struct audio_profile& halProfile, bool isInput,
131 static status_t audioTransportsFromHal(const struct audio_port_v7& halPort, bool isInput,
148 bool* isInput);
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp79 status_t HidlUtils::audioChannelMaskFromHal(audio_channel_mask_t halChannelMask, bool isInput, in audioChannelMaskFromHal() argument
85 return isInput ? audioInputChannelMaskFromHal(halChannelMask, channelMask) in audioChannelMaskFromHal()
130 status_t HidlUtils::audioConfigBaseFromHal(const audio_config_base_t& halConfigBase, bool isInput, in audioConfigBaseFromHal() argument
135 audioChannelMaskFromHal(halConfigBase.channel_mask, isInput, &configBase->channelMask), in audioConfigBaseFromHal()
152 bool isInput, bool formatSpecified, in audioConfigBaseOptionalFromHal() argument
171 CONVERT_CHECKED(audioChannelMaskFromHal(halConfigBase.channel_mask, isInput, &value), in audioConfigBaseOptionalFromHal()
369 status_t HidlUtils::audioConfigFromHal(const audio_config_t& halConfig, bool isInput, in audioConfigFromHal() argument
374 CONVERT_CHECKED(audioConfigBaseFromHal(halConfigBase, isInput, &config->base), result); in audioConfigFromHal()
402 status_t HidlUtils::audioGainConfigFromHal(const struct audio_gain_config& halConfig, bool isInput, in audioGainConfigFromHal() argument
407 CONVERT_CHECKED(audioChannelMaskFromHal(halConfig.channel_mask, isInput, &config->channelMask), in audioGainConfigFromHal()
[all …]
/hardware/interfaces/audio/effect/all-versions/default/util/include/util/
DEffectUtils.h35 static status_t effectBufferConfigFromHal(const buffer_config_t& halConfig, bool isInput,
39 static status_t effectConfigFromHal(const effect_config_t& halConfig, bool isInput,
/hardware/interfaces/audio/effect/all-versions/default/util/
DEffectUtils.cpp80 status_t EffectUtils::effectBufferConfigFromHal(const buffer_config_t& halConfig, bool isInput, in effectBufferConfigFromHal() argument
88 halConfigBase, isInput, halConfig.mask & EFFECT_CONFIG_FORMAT, in effectBufferConfigFromHal()
138 status_t EffectUtils::effectConfigFromHal(const effect_config_t& halConfig, bool isInput, in effectConfigFromHal() argument
141 CONVERT_CHECKED(effectBufferConfigFromHal(halConfig.inputCfg, isInput, &config->inputCfg), in effectConfigFromHal()
143 CONVERT_CHECKED(effectBufferConfigFromHal(halConfig.outputCfg, isInput, &config->outputCfg), in effectConfigFromHal()
/hardware/interfaces/audio/aidl/default/bluetooth/
DModuleBluetooth.cpp171 const bool isInput = sources[0]->ext.getTag() == AudioPortExt::device; in checkAudioPatchEndpointsMatch() local
172 const int32_t devicePortId = isInput ? sources[0]->portId : sinks[0]->portId; in checkAudioPatchEndpointsMatch()
176 const AudioPortConfig* mixPortConfig = isInput ? sinks[0] : sources[0]; in checkAudioPatchEndpointsMatch()
273 const bool isInput = portConfig.flags->getTag() == AudioIoFlags::input; in getNominalLatencyMs() local
274 return isInput ? StreamInBluetooth::getNominalLatencyMs(dataIntervalUs) in getNominalLatencyMs()
284 const bool isInput = audioPort.flags.getTag() == AudioIoFlags::input; in createProxy() local
285 proxy.ptr = isInput ? std::shared_ptr<BluetoothAudioPortAidl>( in createProxy()
DStreamBluetooth.cpp59 mIsInput(isInput(metadata)), in StreamBluetooth()
193 if (isInput(metadata)) { in updateMetadataCommon()
/hardware/google/camera/devices/EmulatedCamera/hwl/utils/
DStreamConfigurationMap.cpp64 int32_t isInput = entry.data.i32[i + kStreamIsInputOffset]; in AppendAvailableStreamConfigurations() local
65 if (!isInput) { in AppendAvailableStreamConfigurations()
/hardware/interfaces/audio/effect/all-versions/default/
DEffectsFactory.cpp87 const bool isInput = in dispatchEffectInstanceCreation() local
89 return new Effect(isInput, handle); in dispatchEffectInstanceCreation()
DEffect.h64 Effect(bool isInput, effect_handle_t handle);
/hardware/interfaces/audio/aidl/default/
DConfiguration.cpp97 static AudioPort createPort(int32_t id, const std::string& name, int32_t flags, bool isInput, in createPort() argument
102 port.flags = isInput ? AudioIoFlags::make<AudioIoFlags::Tag::input>(flags) in createPort()
109 bool isInput, const AudioPortExt& ext) { in createDynamicPortConfig() argument
117 config.flags = isInput ? AudioIoFlags::make<AudioIoFlags::Tag::input>(flags) in createDynamicPortConfig()
124 int32_t sampleRate, int32_t flags, bool isInput, in createPortConfig() argument
126 AudioPortConfig config = createDynamicPortConfig(id, portId, flags, isInput, ext); in createPortConfig()
/hardware/interfaces/camera/common/default/
DCameraModule.cpp150 int32_t isInput = entry.data.i32[i + STREAM_IS_INPUT_OFFSET]; in deriveCameraCharacteristicsKeys() local
151 if (isInput == ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_OUTPUT && in deriveCameraCharacteristicsKeys()
160 if (isInput == ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_OUTPUT && in deriveCameraCharacteristicsKeys()
/hardware/interfaces/audio/aidl/default/stub/
DStreamStub.cpp40 mIsInput(isInput(metadata)) {} in StreamStub()
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp94 if (bool isInput = isInputChannelMask(enumVal); isInput || isOutputChannelMask(enumVal)) { in TEST() local
96 HidlUtils::audioChannelMaskFromHal(halChannelMask, isInput, &channelMaskBack)) in TEST()
97 << "Conversion of " << (isInput ? "input" : "output") << " channel mask " in TEST()
152 static AudioConfigBase generateValidConfigBase(bool isInput) { in generateValidConfigBase() argument
156 configBase.channelMask = isInput ? toString(xsd::AudioChannelMask::AUDIO_CHANNEL_IN_STEREO) in generateValidConfigBase()
/hardware/interfaces/audio/core/all-versions/default/
DStream.cpp47 Stream::Stream(bool isInput, audio_stream_t* stream) : mIsInput(isInput), mStream(stream) { in Stream() argument
/hardware/interfaces/audio/core/all-versions/default/include/core/default/
DStream.h56 Stream(bool isInput, audio_stream_t* stream);
/hardware/interfaces/automotive/audiocontrol/aidl/default/
DAudioControl.cpp137 AudioPort createPort(int32_t id, const std::string& name, int32_t flags, bool isInput, in createPort() argument
142 port.flags = isInput ? AudioIoFlags::make<AudioIoFlags::Tag::input>(flags) in createPort()

12