Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e5a57a9 authored by Shunkai Yao's avatar Shunkai Yao Committed by Automerger Merge Worker
Browse files

Merge "Update vts to align AOSP effects support requirement with CDD" into...

Merge "Update vts to align AOSP effects support requirement with CDD" into main am: d3e5e333 am: ca273f4e am: 1a13c459

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2719855



Change-Id: Ia252e997d106ce20aaf53844e00369eff53351fb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 07fc8084 1a13c459
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -134,17 +134,18 @@ TEST_P(EffectFactoryTest, CanBeRestarted) {
/**
 * @brief Check at least support list of effect must be supported by aosp:
 * https://developer.android.com/reference/android/media/audiofx/AudioEffect
 *
 * For Android 13, they are: Equalizer, LoudnessEnhancer, Visualizer, and DynamicsProcessing.
 * https://source.android.com/docs/compatibility/13/android-13-cdd#552_audio_effects
 */
TEST_P(EffectFactoryTest, ExpectAllAospEffectTypes) {
TEST_P(EffectFactoryTest, SupportMandatoryEffectTypes) {
    std::vector<Descriptor> descs;
    std::set<AudioUuid> typeUuidSet(
            {aidl::android::hardware::audio::effect::getEffectTypeUuidBassBoost(),
    std::set<AudioUuid> typeUuidSet({
            aidl::android::hardware::audio::effect::getEffectTypeUuidEqualizer(),
             aidl::android::hardware::audio::effect::getEffectTypeUuidEnvReverb(),
             aidl::android::hardware::audio::effect::getEffectTypeUuidPresetReverb(),
            aidl::android::hardware::audio::effect::getEffectTypeUuidDynamicsProcessing(),
             aidl::android::hardware::audio::effect::getEffectTypeUuidHapticGenerator(),
             aidl::android::hardware::audio::effect::getEffectTypeUuidVirtualizer()});
            aidl::android::hardware::audio::effect::getEffectTypeUuidLoudnessEnhancer(),
            aidl::android::hardware::audio::effect::getEffectTypeUuidVisualizer(),
    });

    EXPECT_IS_OK(mEffectFactory->queryEffects(std::nullopt, std::nullopt, std::nullopt, &descs));
    EXPECT_TRUE(descs.size() >= typeUuidSet.size());