mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 02:18:40 +00:00
Merge "VTS Audio Effect: Allow 'NOT_SUPPORTED' from IEffect::offload method" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2bb2add8a9
@@ -450,14 +450,16 @@ TEST_F(AudioEffectHidlTest, SetAudioSource) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(AudioEffectHidlTest, Offload) {
|
TEST_F(AudioEffectHidlTest, Offload) {
|
||||||
description("Verify that calling Offload methods works for an effect");
|
description("Verify that calling Offload method either works or returns not supported");
|
||||||
EffectOffloadParameter offloadParam;
|
EffectOffloadParameter offloadParam;
|
||||||
offloadParam.isOffload = false;
|
offloadParam.isOffload = false;
|
||||||
offloadParam.ioHandle =
|
offloadParam.ioHandle =
|
||||||
static_cast<int>(AudioHandleConsts::AUDIO_IO_HANDLE_NONE);
|
static_cast<int>(AudioHandleConsts::AUDIO_IO_HANDLE_NONE);
|
||||||
Return<Result> ret = effect->offload(offloadParam);
|
Return<Result> ret = effect->offload(offloadParam);
|
||||||
EXPECT_TRUE(ret.isOk());
|
EXPECT_TRUE(ret.isOk());
|
||||||
EXPECT_EQ(Result::OK, ret);
|
EXPECT_TRUE(Result::OK == ret || Result::NOT_SUPPORTED == ret)
|
||||||
|
<< "Expected OK or NOT_SUPPORTED, actual value: "
|
||||||
|
<< static_cast<int32_t>(static_cast<Result>(ret));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(AudioEffectHidlTest, PrepareForProcessing) {
|
TEST_F(AudioEffectHidlTest, PrepareForProcessing) {
|
||||||
|
|||||||
Reference in New Issue
Block a user