Validate the HotwordDetectedResult
Implementation as below: 1.Implemet the getMaxBundleSize() 2.Validate if the bundle data of setExtras() is more than getMaxBundleSize() 3.Validate if the value of setHotwordPhraseId() is between 0 and getMaxHotwordPhraseId() 3.Validate if the value of setScore() is between 0 and getMaxScore() 4.Validate if the value of setPersonalizedScore() is between 0 and getMaxScore() 5.Validate if the data of HotwordDetectedResult is more than 100 bytes Bug: 190688148 Test: atest CtsVoiceInteractionTestCases Test: atest CtsVoiceInteractionTestCases --instant Change-Id: Ie23e8a831053f14ff0ea795fef356508b9fe126e
Loading
Please register or sign in to comment