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

Commit 46c390a1 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Consider mPhysicalCameraId in OutputConfiguration comparison

Test: Camera CTS
Bug: 131714581
Change-Id: Ifbd44a0cd16116311e0eef9c194dd90c9210952c
parent add7dcd6
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -36,6 +36,7 @@ import static com.android.internal.util.Preconditions.*;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Collections;
import java.util.List;
import java.util.List;
import java.util.Objects;


/**
/**
 * A class for describing camera output, which contains a {@link Surface} and its specific
 * A class for describing camera output, which contains a {@link Surface} and its specific
@@ -692,7 +693,8 @@ public final class OutputConfiguration implements Parcelable {
                    mIsShared != other.mIsShared ||
                    mIsShared != other.mIsShared ||
                    mConfiguredFormat != other.mConfiguredFormat ||
                    mConfiguredFormat != other.mConfiguredFormat ||
                    mConfiguredDataspace != other.mConfiguredDataspace ||
                    mConfiguredDataspace != other.mConfiguredDataspace ||
                    mConfiguredGenerationId != other.mConfiguredGenerationId)
                    mConfiguredGenerationId != other.mConfiguredGenerationId ||
                    !Objects.equals(mPhysicalCameraId, other.mPhysicalCameraId))
                return false;
                return false;


            int minLen = Math.min(mSurfaces.size(), other.mSurfaces.size());
            int minLen = Math.min(mSurfaces.size(), other.mSurfaces.size());