Clean up ANGLE integration logic.

Avoid unncessary JNI call. The application process will be determined
whether it should use ANGLE or not before it determines whether it
should show the dialog box. This patch cleans up the unnecessary JNI
call and bookkeeps the ANGLE usage status.

Bug: b/283858001
Test: test with camera with dialog on
Test: atest CtsAngleIntegrationHostTestCases
Change-Id: I2d398a36e0320b16de8664909ceb024089128aad
2 files changed