Fix a CTS-V crash issue that happens when running CameraITS test

Static variables that help check if the test are from main view could be reset to a wrong value in some cases. This change removes related static variables and move the check logic from the parent class to child classes.

Copy from https://android-review.googlesource.com/c/platform/cts/+/1908157

Bug: 204840586
Test: CameratITS test
Change-Id: I7fe70cfd04a5d292680cc0e1a039612ad9a4f907
3 files changed