CaptureModule: improve instant capture trigger

Add a check with isVoiceInteractionRoot() to check that we've actually
been launched via voice interaction and not a spoofed intent. Also move
the CAMERA_OPEN_ONLY check up as there's no point in having the check
inside, it just triggers the "Trigger instant capture!" log message
erroneously.

Issue: FP2A10-205
Test: run gts-dev -m GtsAssistantHostTestCases
Change-Id: I2d8d757a33fbbb6e529b530a1ff0661853839b53
1 file changed