/frameworks/av/media/libaudiofoundation/ |
D | AudioProfile.cpp | 157 AudioProfile::toParcelable(bool isInput) const { in toParcelable() 158 media::audio::common::AudioProfile parcelable = VALUE_OR_RETURN(toCommonParcelable(isInput)); in toParcelable() 167 const AudioProfile::Aidl& aidl, bool isInput) { in fromParcelable() argument 168 sp<AudioProfile> legacy = VALUE_OR_RETURN(fromCommonParcelable(aidl.first, isInput)); in fromParcelable() 177 AudioProfile::toCommonParcelable(bool isInput) const { in toCommonParcelable() 189 [isInput](audio_channel_mask_t m) { in toCommonParcelable() 190 return legacy2aidl_audio_channel_mask_t_AudioChannelLayout(m, isInput); in toCommonParcelable() 201 const media::audio::common::AudioProfile& aidl, bool isInput) { in fromCommonParcelable() argument 208 [isInput](const AudioChannelLayout& l) { in fromCommonParcelable() 209 return aidl2legacy_AudioChannelLayout_audio_channel_mask_t(l, isInput); in fromCommonParcelable() [all …]
|
D | AudioGain.cpp | 37 AudioGain::AudioGain(int index, bool isInput) in AudioGain() argument 38 : mIndex(index), mIsInput(isInput) {} in AudioGain() 128 aidlSys.isInput = mIsInput; in toParcelable() 136 sp<AudioGain> legacy = sp<AudioGain>::make(index, sys.isInput); in fromParcelable() 137 legacy->mGain = VALUE_OR_RETURN(aidl2legacy_AudioGain_audio_gain(hal, sys.isInput)); in fromParcelable()
|
D | AudioPort.cpp | 366 bool AudioPortConfig::equals(const sp<AudioPortConfig> &other, bool isInput) const in equals() 372 (isInput ? mFlags.input == other->getFlags().input : in equals() 384 media::audio::common::AudioPortConfig* parcelable, bool isInput) const { in writeToParcelable() 391 legacy2aidl_audio_channel_mask_t_AudioChannelLayout(mChannelMask, isInput)); in writeToParcelable() 394 legacy2aidl_audio_gain_config_AudioGainConfig(mGain, isInput)); in writeToParcelable() 397 legacy2aidl_audio_io_flags_AudioIoFlags(mFlags, isInput)); in writeToParcelable() 402 const media::audio::common::AudioPortConfig& parcelable, bool isInput) { in readFromParcelable() argument 414 parcelable.channelMask.value(), isInput)); in readFromParcelable() 419 aidl2legacy_AudioGainConfig_audio_gain_config(parcelable.gain.value(), isInput)); in readFromParcelable() 423 aidl2legacy_AudioIoFlags_audio_io_flags(parcelable.flags.value(), isInput)); in readFromParcelable()
|
/frameworks/av/media/libaudiofoundation/include/media/ |
D | AudioProfile.h | 84 ConversionResult<Aidl> toParcelable(bool isInput) const; 86 const Aidl& aidl, bool isInput); 89 toCommonParcelable(bool isInput) const; 91 const media::audio::common::AudioProfile& aidl, bool isInput); 112 aidl2legacy_AudioProfile(const AudioProfile::Aidl& aidl, bool isInput); 114 legacy2aidl_AudioProfile(const sp<AudioProfile>& legacy, bool isInput); 117 aidl2legacy_AudioProfile_common(const media::audio::common::AudioProfile& aidl, bool isInput); 119 legacy2aidl_AudioProfile_common(const sp<AudioProfile>& legacy, bool isInput); 161 aidl2legacy_AudioProfileVector(const AudioProfileVector::Aidl& aidl, bool isInput); 163 legacy2aidl_AudioProfileVector(const AudioProfileVector& legacy, bool isInput);
|
D | AudioPort.h | 186 bool equals(const sp<AudioPortConfig>& other, bool isInput) const; 189 media::audio::common::AudioPortConfig* parcelable, bool isInput) const; 191 const media::audio::common::AudioPortConfig& parcelable, bool isInput);
|
/frameworks/av/media/audioaidlconversion/include/media/ |
D | AidlConversionCppNdk-impl.h | 130 const media::audio::common::AudioChannelLayout& aidl, bool isInput); 132 legacy2aidl_audio_channel_mask_t_AudioChannelLayout(audio_channel_mask_t legacy, bool isInput); 135 int aidlLayout, bool isInput); 137 audio_channel_mask_t legacy, bool isInput); 146 aidl2legacy_AudioConfig_audio_config_t(const media::audio::common::AudioConfig& aidl, bool isInput); 148 legacy2aidl_audio_config_t_AudioConfig(const audio_config_t& legacy, bool isInput); 152 const media::audio::common::AudioConfigBase& aidl, bool isInput); 154 legacy2aidl_audio_config_base_t_AudioConfigBase(const audio_config_base_t& legacy, bool isInput); 177 const media::audio::common::AudioIoFlags& aidl, bool isInput); 179 const audio_io_flags& legacy, bool isInput); [all …]
|
D | AidlConversionNdk.h | 38 const media::audio::common::AudioConfig& aidl, bool isInput); 40 const buffer_config_t& legacy, bool isInput);
|
/frameworks/av/media/libaaudio/src/utility/ |
D | AAudioUtilities.cpp | 317 aaudio_channel_mask_t channelMask, bool isInput) { in AAudioConvert_aaudioToAndroidChannelLayoutMask() argument 318 if (isInput) { in AAudioConvert_aaudioToAndroidChannelLayoutMask() 399 audio_channel_mask_t channelMask, bool isInput) { in AAudioConvert_androidToAAudioChannelLayoutMask() argument 400 if (isInput) { in AAudioConvert_androidToAAudioChannelLayoutMask() 517 audio_channel_mask_t channelMask, bool isInput, bool indexMaskRequired) { in AAudioConvert_androidToAAudioChannelMask() argument 523 const int channelCount = isInput ? audio_channel_count_from_in_mask(channelMask) in AAudioConvert_androidToAAudioChannelMask() 527 return AAudioConvert_androidToAAudioChannelLayoutMask(channelMask, isInput); in AAudioConvert_androidToAAudioChannelMask() 531 aaudio_channel_mask_t channelMask, bool isInput) { in AAudioConvert_aaudioToAndroidChannelMask() argument 534 : AAudioConvert_aaudioToAndroidChannelLayoutMask(channelMask, isInput); in AAudioConvert_aaudioToAndroidChannelMask() 542 aaudio_channel_mask_t channelMask, int32_t samplesPerFrame, bool isInput) { in AAudio_getChannelMaskForOpen() argument [all …]
|
D | AAudioUtilities.h | 107 aaudio_channel_mask_t channelMask, bool isInput); 110 audio_channel_mask_t channelMask, bool isInput); 119 audio_channel_mask_t channelMask, bool isInput, bool indexMaskRequired); 122 aaudio_channel_mask_t channelMask, bool isInput); 131 aaudio_channel_mask_t channelMask, int32_t samplesPerFrame, bool isInput);
|
/frameworks/av/media/audioaidlconversion/ |
D | AidlConversionCppNdk.cpp | 836 int aidlLayout, bool isInput) { in aidl2legacy_AudioChannelLayout_layout_audio_channel_mask_t_bits() argument 837 auto& bitMapping = isInput ? getInAudioChannelBits() : getOutAudioChannelBits(); in aidl2legacy_AudioChannelLayout_layout_audio_channel_mask_t_bits() 850 __func__, aidlLayoutInitial, aidlLayout, isInput ? "input" : "output"); in aidl2legacy_AudioChannelLayout_layout_audio_channel_mask_t_bits() 855 const AudioChannelLayout& aidl, bool isInput) { in aidl2legacy_AudioChannelLayout_audio_channel_mask_t() argument 892 if (const auto layoutMatch = convert(aidl, isInput ? mIn : mOut, __func__, in aidl2legacy_AudioChannelLayout_audio_channel_mask_t() 893 isInput ? "input" : "output"); in aidl2legacy_AudioChannelLayout_audio_channel_mask_t() 900 aidl.get<Tag::layoutMask>(), isInput); in aidl2legacy_AudioChannelLayout_audio_channel_mask_t() 913 audio_channel_mask_t legacy, bool isInput) { in legacy2aidl_audio_channel_mask_t_bits_AudioChannelLayout_layout() argument 914 auto& bitMapping = isInput ? getInAudioChannelBits() : getOutAudioChannelBits(); in legacy2aidl_audio_channel_mask_t_bits_AudioChannelLayout_layout() 927 __func__, isInput ? "input" : "output", legacyInitial, legacy); in legacy2aidl_audio_channel_mask_t_bits_AudioChannelLayout_layout() [all …]
|
D | AidlConversionNdk.cpp | 83 const media::audio::common::AudioConfig& aidl, bool isInput) { in aidl2legacy_AudioConfig_buffer_config_t() argument 90 aidl2legacy_AudioChannelLayout_audio_channel_mask_t(aidl.base.channelMask, isInput)); in aidl2legacy_AudioConfig_buffer_config_t() 103 legacy2aidl_buffer_config_t_AudioConfig(const buffer_config_t& legacy, bool isInput) { in legacy2aidl_buffer_config_t_AudioConfig() argument 111 static_cast<audio_channel_mask_t>(legacy.channels), isInput)); in legacy2aidl_buffer_config_t_AudioConfig()
|
/frameworks/base/media/java/android/media/audio/common/ |
D | AidlConversion.java | 63 @NonNull AudioChannelLayout aidl, boolean isInput) { in aidl2legacy_AudioChannelLayout_audio_channel_mask_t() argument 68 return aidl2legacy_AudioChannelLayout_Parcel_audio_channel_mask_t(out, isInput); in aidl2legacy_AudioChannelLayout_audio_channel_mask_t() 76 int /*audio_channel_mask_t*/ legacy, boolean isInput) { in legacy2aidl_audio_channel_mask_t_AudioChannelLayout() argument 77 Parcel in = legacy2aidl_audio_channel_mask_t_AudioChannelLayout_Parcel(legacy, isInput); in legacy2aidl_audio_channel_mask_t_AudioChannelLayout() 86 + (isInput ? "input" : "output") + " audio_channel_mask_t " + legacy + " value"); in legacy2aidl_audio_channel_mask_t_AudioChannelLayout() 141 int aidlBit, boolean isInput) { in aidl2api_AudioChannelLayoutBit_AudioFormatChannel() argument 142 if (isInput) { in aidl2api_AudioChannelLayoutBit_AudioFormatChannel() 238 int aidlBitMask, boolean isInput) { in aidl2api_AudioChannelLayoutBitMask_AudioFormatChannelMask() argument 242 int apiBit = aidl2api_AudioChannelLayoutBit_AudioFormatChannel(bit, isInput); in aidl2api_AudioChannelLayoutBitMask_AudioFormatChannelMask() 259 @NonNull AudioChannelLayout aidlMask, boolean isInput) { in aidl2api_AudioChannelLayout_AudioFormatChannelMask() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_media_audio_common_AidlConversion.cpp | 140 jobject jParcel, jboolean isInput) { in aidl2legacy_AudioChannelLayout_Parcel_audio_channel_mask_t() argument 143 [isInput](const AudioChannelLayout& l) { in aidl2legacy_AudioChannelLayout_Parcel_audio_channel_mask_t() 144 return aidl2legacy_AudioChannelLayout_audio_channel_mask_t(l, isInput); in aidl2legacy_AudioChannelLayout_Parcel_audio_channel_mask_t() 150 JNIEnv* env, jobject, int /*audio_channel_mask_t*/ legacy, jboolean isInput) { in legacy2aidl_audio_channel_mask_t_AudioChannelLayout_Parcel() argument 152 env, static_cast<audio_channel_mask_t>(legacy), [isInput](audio_channel_mask_t m) { in legacy2aidl_audio_channel_mask_t_AudioChannelLayout_Parcel() 153 return legacy2aidl_audio_channel_mask_t_AudioChannelLayout(m, isInput); in legacy2aidl_audio_channel_mask_t_AudioChannelLayout_Parcel()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraMetadata.cpp | 272 int32_t isInput = entry.data.i32[i + STREAM_IS_INPUT_OFFSET]; in filterStreamConfigurations() local 273 if (isInput == ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_INPUT) { in filterStreamConfigurations() 284 filteredStreamConfigs.push_back(isInput); in filterStreamConfigurations() 305 int32_t isInput = entry.data.i32[i + STREAM_IS_INPUT_OFFSET]; in filterStreamConfigurations() local 306 if (isInput == ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS_INPUT) { in filterStreamConfigurations() 324 filteredDepthStreamConfigs.push_back(isInput); in filterStreamConfigurations() 340 int32_t isInput = entry.data.i32[i + STREAM_IS_INPUT_OFFSET]; in filterStreamConfigurations() local 341 if (isInput == ACAMERA_HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS_INPUT) { in filterStreamConfigurations() 353 filteredHeicStreamConfigs.push_back(isInput); in filterStreamConfigurations() 365 int32_t isInput = entry.data.i32[i + STREAM_IS_INPUT_OFFSET]; in filterStreamConfigurations() local [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | audio_aidl_legacy_conversion_tests.cpp | 308 const bool isInput = std::get<1>(GetParam()); in TEST_P() local 309 auto conv = aidl2legacy_AudioChannelLayout_audio_channel_mask_t(initial, isInput); in TEST_P() 311 auto convBack = legacy2aidl_audio_channel_mask_t_AudioChannelLayout(conv.value(), isInput); in TEST_P() 393 const bool isInput = std::get<1>(GetParam()); in TEST_P() local 395 auto conv = legacy2aidl_audio_channel_mask_t_AudioChannelLayout(legacy, isInput); in TEST_P() 501 const bool isInput = device.type < AudioDeviceType::OUT_DEFAULT; in createAudioPortConfigFw() local 519 result.sys.role = isInput ? AudioPortRole::SOURCE : AudioPortRole::SINK; in createAudioPortConfigFw() 534 const bool isInput = device.type < AudioDeviceType::OUT_DEFAULT; in TEST_P() local 540 aidl2legacy_AudioPortConfig_audio_port_config(initial.hal, isInput, &conv, &portId); in TEST_P() 543 auto convBack = legacy2aidl_audio_port_config_AudioPortConfig(conv, isInput, portId); in TEST_P() [all …]
|
/frameworks/av/media/libaudiofoundation/tests/ |
D | audiofoundation_parcelable_test.cpp | 129 const bool isInput = false; in TEST() local 134 ASSERT_EQ(NO_ERROR, audioPortConfig->writeToParcelable(&parcelable, isInput)); in TEST() 141 parcelableFromParcel, isInput)); in TEST() 142 ASSERT_TRUE(audioPortConfigFromParcel->equals(audioPortConfig, isInput)); in TEST()
|
/frameworks/av/media/libaudioclient/ |
D | AidlConversion.cpp | 354 const bool isInput = VALUE_OR_RETURN( in aidl2legacy_AudioPortConfigFw_audio_port_config() local 359 aidl.hal, isInput, &legacy, &aidlPortIdHolder)); in aidl2legacy_AudioPortConfigFw_audio_port_config() 371 const bool isInput = VALUE_OR_RETURN( in legacy2aidl_audio_port_config_AudioPortConfigFw() local 375 legacy2aidl_audio_port_config_AudioPortConfig(legacy, isInput, portId)); in legacy2aidl_audio_port_config_AudioPortConfigFw() 434 const bool isInput = aidl.isInput; in aidl2legacy_AudioIoDescriptor_AudioIoDescriptor() local 439 aidl2legacy_AudioChannelLayout_audio_channel_mask_t(aidl.channelMask, isInput)); in aidl2legacy_AudioIoDescriptor_AudioIoDescriptor() 445 return sp<AudioIoDescriptor>::make(io_handle, patch, isInput, sampling_rate, format, in aidl2legacy_AudioIoDescriptor_AudioIoDescriptor() 454 aidl.isInput = legacy->getIsInput(); in legacy2aidl_AudioIoDescriptor_AudioIoDescriptor() 689 const bool isInput = VALUE_OR_RETURN( in aidl2legacy_AudioPortFw_audio_port_v7() local 691 audio_port_v7 legacy = VALUE_OR_RETURN(aidl2legacy_AudioPort_audio_port_v7(aidl.hal, isInput)); in aidl2legacy_AudioPortFw_audio_port_v7() [all …]
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioIoDescriptor.h | 53 audio_io_handle_t ioHandle, const audio_patch& patch, bool isInput, 57 mIoHandle(ioHandle), mPatch(patch), mIsInput(isInput), in mIoHandle()
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | AudioGainSys.aidl | 26 boolean isInput;
|
D | AudioIoDescriptor.aidl | 30 boolean isInput;
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | StreamConfiguration.java | 116 public boolean isInput() { in isInput() method in StreamConfiguration
|
/frameworks/av/media/libaudiohal/impl/ |
D | DeviceHalAidl.cpp | 389 const bool isInput = aidlFlags.getTag() == AudioIoFlags::Tag::input; in prepareToOpenStream() local 405 if (isInput) { in prepareToOpenStream() 419 ::aidl::android::aidl2legacy_AudioConfig_audio_config_t(*aidlConfig, isInput)); in prepareToOpenStream() 693 bool isInput = VALUE_OR_RETURN_STATUS(::aidl::android::portDirection( in createAudioPatch() local 698 sources[i], isInput, 0))); in createAudioPatch() 701 bool isInput = VALUE_OR_RETURN_STATUS(::aidl::android::portDirection( in createAudioPatch() local 706 sinks[i], isInput, 0))); in createAudioPatch() 813 bool isInput = VALUE_OR_RETURN_STATUS(::aidl::android::portDirection(port->role, port->type)) == in getAudioPort() local 816 ::aidl::android::legacy2aidl_audio_port_v7_AudioPort(*port, isInput)); in getAudioPort() 835 aidlPort, isInput)); in getAudioPort() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioPolicyConfig.cpp | 80 const bool isInput = aidlPort.flags.getTag() == AudioIoFlags::input; in aidl2legacy_AudioHwModule_HwModule() local 82 aidl2legacy_AudioPort_audio_port_v7(aidlPort, isInput)); in aidl2legacy_AudioHwModule_HwModule() 117 if (isInput) { in aidl2legacy_AudioHwModule_HwModule()
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableStreamConfiguration.java | 49 buffer.putInt(value.isInput() ? 1 : 0); in marshal()
|
D | MarshalQueryableRecommendedStreamConfiguration.java | 50 buffer.putInt(value.isInput() ? 1 : 0); in marshal()
|