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

Commit edecaee1 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2: Fix return type of CaptureFailure#getFrameNumber

Should be long, not int.

Bug: 17188354
Change-Id: If90749f21cdf9dd493aa561769655211a70acf29
parent b68654ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12979,7 +12979,7 @@ package android.hardware.camera2 {
  }
  public class CaptureFailure {
    method public int getFrameNumber();
    method public long getFrameNumber();
    method public int getReason();
    method public android.hardware.camera2.CaptureRequest getRequest();
    method public int getSequenceId();
+4 −4
Original line number Diff line number Diff line
@@ -47,13 +47,13 @@ public class CaptureFailure {
    private final int mReason;
    private final boolean mDropped;
    private final int mSequenceId;
    private final int mFrameNumber;
    private final long mFrameNumber;

    /**
     * @hide
     */
    public CaptureFailure(CaptureRequest request, int reason, boolean dropped, int sequenceId,
            int frameNumber) {
            long frameNumber) {
        mRequest = request;
        mReason = reason;
        mDropped = dropped;
@@ -95,9 +95,9 @@ public class CaptureFailure {
     * for every new result or failure; and the scope is the lifetime of the
     * {@link CameraDevice}.</p>
     *
     * @return int frame number
     * @return long frame number
     */
    public int getFrameNumber() {
    public long getFrameNumber() {
        return mFrameNumber;
    }