camera_V4L2 autotest checks only 640x480 and 320x240. It should also check 720p and/or 1080p if the sensor maximum resolution >= 720p.
chromeos_public/src/third_party/autotest/files/client/site_tests/camera_V4L2/camera_V4L2.py
https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#SCALER_STREAM_CONFIGURATION_MAP
1920x1080 (1080p) if 1080p <= activeArraySize
1280x720 (720p) if 720p <= activeArraySize
640x480 (480p) if 480p <= activeArraySize
320x240 (240p) if 240p <= activeArraySize
We need to check two more resolutions. 1280x960 and 1600x1200. Both should be at least 30fps.
For resolutions > 1600x1200, check it has at least 1fps for now.
Final decision after discussion:
if camera_characteristics.conf exists, it means the device supports arc++.
Then we have to check:
1920x1080 (1080p) if 1080p <= activeArraySize
1280x720 (720p) if 720p <= activeArraySize
640x480 (480p) if 480p <= activeArraySize
320x240 (240p) if 240p <= activeArraySize
If camera maximum resolution exceeds 3M pixels, we also have to check 1280x960 and 1600x1200. Because we may use these two resolutions as preview size.
Comment 1 by wuchengli@chromium.org
, Apr 7 2017