Skip to content
Commit 461a62b3 authored by lpeter's avatar lpeter
Browse files

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
parent 1a49d4f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment