camera vts: Remove redundant capabilities fetch
Bug: 299202800
Test: build
Merged-In: Ia6ca1ee0fb65e357398ba62c6a787c6530b989e4
Change-Id: Ia6ca1ee0fb65e357398ba62c6a787c6530b989e4
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
(cherry picked from commit 571cbf1b4c
)
This commit is contained in:
parent
5554de2fa8
commit
23f338bac4
1 changed files with 2 additions and 5 deletions
|
@ -310,14 +310,11 @@ void CameraAidlTest::verifyMonochromeCameraResult(
|
|||
|
||||
void CameraAidlTest::verifyStreamUseCaseCharacteristics(const camera_metadata_t* metadata) {
|
||||
camera_metadata_ro_entry entry;
|
||||
// Check capabilities
|
||||
int retcode =
|
||||
find_camera_metadata_ro_entry(metadata, ANDROID_REQUEST_AVAILABLE_CAPABILITIES, &entry);
|
||||
bool hasStreamUseCaseCap = supportsStreamUseCaseCap(metadata);
|
||||
|
||||
bool supportMandatoryUseCases = false;
|
||||
retcode = find_camera_metadata_ro_entry(metadata, ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES,
|
||||
&entry);
|
||||
int retcode = find_camera_metadata_ro_entry(metadata, ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES,
|
||||
&entry);
|
||||
if ((0 == retcode) && (entry.count > 0)) {
|
||||
supportMandatoryUseCases = true;
|
||||
for (size_t i = 0; i < kMandatoryUseCases.size(); i++) {
|
||||
|
|
Loading…
Reference in a new issue