From 09032da2d17165497d8c67d0db4314a9782a44ed Mon Sep 17 00:00:00 2001 From: Nicholas Ambur Date: Fri, 27 Mar 2020 10:57:44 -0700 Subject: [PATCH] remove stopAllRecognitions VTS test The stopAllRecognitions API is not used at the layers above the HAL, and it requires the HAL to own the state of all active recognitions. This API causes discontinuity with the upper layers also maintaining state information. The VTS requirement is being removed. Bug: 151281377 Test: atest VtsHalSoundtriggerV2_0TargetTest && atest VtsHalSoundtriggerV2_1TargetTest Change-Id: If14ed8177e0ff2730d2ed78ba8fbbbd058c4d57a Merged-In: If14ed8177e0ff2730d2ed78ba8fbbbd058c4d57a --- .../VtsHalSoundtriggerV2_0TargetTest.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/soundtrigger/2.0/vts/functional/VtsHalSoundtriggerV2_0TargetTest.cpp b/soundtrigger/2.0/vts/functional/VtsHalSoundtriggerV2_0TargetTest.cpp index d7a7d08728..63edec570a 100644 --- a/soundtrigger/2.0/vts/functional/VtsHalSoundtriggerV2_0TargetTest.cpp +++ b/soundtrigger/2.0/vts/functional/VtsHalSoundtriggerV2_0TargetTest.cpp @@ -293,22 +293,6 @@ TEST_P(SoundTriggerHidlTest, StopRecognitionNoAStartFail) { EXPECT_NE(0, hidlReturn); } -/** - * Test ISoundTriggerHw::stopAllRecognitions() method - * - * Verifies that: - * - the implementation implements this optional method or indicates it is not support by - * returning -ENOSYS - */ -TEST_P(SoundTriggerHidlTest, stopAllRecognitions) { - Return hidlReturn(0); - - hidlReturn = mSoundTriggerHal->stopAllRecognitions(); - - EXPECT_TRUE(hidlReturn.isOk()); - EXPECT_TRUE(hidlReturn == 0 || hidlReturn == -ENOSYS); -} - INSTANTIATE_TEST_SUITE_P( PerInstance, SoundTriggerHidlTest, testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISoundTriggerHw::descriptor)),