Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bb75409 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Camera: Expect physical results in the last partial notification" am:...

Merge "Camera: Expect physical results in the last partial notification" am: cecee131 am: f026f3e5

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435036

Change-Id: I0f6bc521094e2643c8f309bc13122f498879ae8c
parents 5e00533a f026f3e5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1209,7 +1209,12 @@ bool CameraHidlTest::DeviceCb::processCaptureResultLocked(const CaptureResult& r
            return notify;
        }

        if (physicalCameraMetadata.size() != request->expectedPhysicalResults.size()) {
        // Physical device results are only expected in the last/final
        // partial result notification.
        bool expectPhysicalResults = !(request->usePartialResult &&
                (results.partialResult < request->numPartialResults));
        if (expectPhysicalResults &&
                (physicalCameraMetadata.size() != request->expectedPhysicalResults.size())) {
            ALOGE("%s: Frame %d: Returned physical metadata count %zu "
                    "must be equal to expected count %zu", __func__, frameNumber,
                    physicalCameraMetadata.size(), request->expectedPhysicalResults.size());