Test @hide android.hardware.Camera#openLegacy API that cannot be tested in CTS.
int nCameras = Camera.getNumberOfCameras();
for (int id = 0; id < nCameras; id++) {
try {
mCamera.openLegacy(id, Camera.CAMERA_HAL_API_VERSION_1_0);
} catch (RuntimeException e) {
Log.i(TAG, "Unable to open camera as HAL1 legacy camera device " + e);
} finally {
if (mCamera != null) {
mCamera.release();
}
}
}