The test failed when one of the three cameras was configured with a maximum android.scaler.availableStreamConfiguration size of 1600*1200

VTS gets the name of all the cameras in the machine and check each camera, When traversal to the configuration reference of 1600*1200 camera, the outputPreviewStreams variable does not clear, save the value of the Previous camera
The outputPreviewStreams variable needs to be cleared when check next camera

Bug: 122806546
Test: ConfigureStreamsWithSessionParameters can pass when one of the three cameras was configured with a maximum android.scaler.availableStreamConfiguration size of 1600*1200
Change-Id: Ia4845d43871730e14b5ba1411ce72f8c4bb69042
This commit is contained in:
Pierre Lee
2019-01-14 22:49:04 +08:00
parent dbb2211d32
commit f234e45b20

View File

@@ -2896,6 +2896,8 @@ TEST_F(CameraHidlTest, configureStreamsWithSessionParameters) {
continue;
}
outputPreviewStreams.clear();
ASSERT_EQ(Status::OK, getAvailableOutputStreams(staticMetaBuffer, outputPreviewStreams,
&previewThreshold));
ASSERT_NE(0u, outputPreviewStreams.size());