mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Update vts to align AOSP effects support requirement with CDD" into main am: d3e5e33330 am: ca273f4e33
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2719855 Change-Id: I36be7a65e6f5ddea89abf36a1e1238dbe07189d4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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(),
|
||||
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()});
|
||||
std::set<AudioUuid> typeUuidSet({
|
||||
aidl::android::hardware::audio::effect::getEffectTypeUuidEqualizer(),
|
||||
aidl::android::hardware::audio::effect::getEffectTypeUuidDynamicsProcessing(),
|
||||
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());
|
||||
@@ -305,4 +306,4 @@ int main(int argc, char** argv) {
|
||||
ABinderProcess_setThreadPoolMaxThreadCount(1);
|
||||
ABinderProcess_startThreadPool();
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user