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

Commit 48f211e6 authored by Emilian Peev's avatar Emilian Peev
Browse files

CameraExtensionProxy: Enhance error callback with failure reason

Implement new vendor extension error callback that includes
information about the capture failure reason.

Bug: 322520569
Test: Camera CTS
Change-Id: I7718279aa5b1cfb21ffe046176b9ae7e11dd072a
parent 198bad21
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1276,6 +1276,20 @@ public class CameraExtensionsProxyService extends Service {
            }
        }

        @Override
        public void onCaptureFailed(int captureSequenceId, int reason) {
            if (Flags.concertMode()) {
                if (mCaptureCallback != null) {
                    try {
                        mCaptureCallback.onCaptureProcessFailed(captureSequenceId, reason);
                    } catch (RemoteException e) {
                        Log.e(TAG, "Failed to notify capture failure due to remote " +
                                "exception!");
                    }
                }
            }
        }

        @Override
        public void onCaptureSequenceCompleted(int captureSequenceId) {
            if (mCaptureCallback != null) {