@Test public void callbackWithoutListener_doesNotThrowException() { CameraBurstCaptureCallback burstCaptureCallback = new CameraBurstCaptureCallback(); burstCaptureCallback.onCaptureStarted(mSession, mRequest0, 0, 0); }
@Override public void onCaptureStarted( @NonNull CameraCaptureSession session, @NonNull CaptureRequest request, long timestamp, long frameNumber) { for (CameraCaptureSession.CaptureCallback callback : getCallbacks(request)) { callback.onCaptureStarted(session, request, timestamp, frameNumber); } }
CameraBurstCaptureCallback extends CameraCaptureSession.CaptureCallback { @Override public void onCaptureStarted( @NonNull CameraCaptureSession session, @NonNull CaptureRequest request, long timestamp, long frameNumber) { for (CameraCaptureSession.CaptureCallback callback : getCallbacks(request)) { callback.onCaptureStarted(session, request, timestamp, frameNumber); } } }
CameraBurstCaptureCallback extends CameraCaptureSession.CaptureCallback { @Override public void onCaptureStarted( @NonNull CameraCaptureSession session, @NonNull CaptureRequest request, long timestamp, long frameNumber) { for (CameraCaptureSession.CaptureCallback callback : getCallbacks(request)) { callback.onCaptureStarted(session, request, timestamp, frameNumber); } } CameraBurstCaptureCallback(); }
CameraBurstCaptureCallback extends CameraCaptureSession.CaptureCallback { @Override public void onCaptureStarted( @NonNull CameraCaptureSession session, @NonNull CaptureRequest request, long timestamp, long frameNumber) { for (CameraCaptureSession.CaptureCallback callback : getCallbacks(request)) { callback.onCaptureStarted(session, request, timestamp, frameNumber); } } CameraBurstCaptureCallback(); @RequiresApi(api = Build.VERSION_CODES.N) @Override void onCaptureBufferLost(
            CameraCaptureSession session, CaptureRequest request, Surface surface, long frame); @Override void onCaptureCompleted(@NonNull CameraCaptureSession session,
            @NonNull CaptureRequest request, @NonNull TotalCaptureResult result); @Override void onCaptureFailed(@NonNull CameraCaptureSession session,
            @NonNull CaptureRequest request, @NonNull CaptureFailure failure); @Override void onCaptureProgressed(
            @NonNull  CameraCaptureSession session,
            @NonNull CaptureRequest request, @NonNull
            CaptureResult partialResult); @Override void onCaptureStarted(
            @NonNull CameraCaptureSession session,
            @NonNull CaptureRequest request,
            long timestamp,
            long frameNumber); @Override void onCaptureSequenceAborted(
            @NonNull CameraCaptureSession session, int sequenceId); @Override void onCaptureSequenceCompleted(
            @NonNull CameraCaptureSession session, int sequenceId, long frameNumber); }
CameraBurstCaptureCallback extends CameraCaptureSession.CaptureCallback { @Override public void onCaptureStarted( @NonNull CameraCaptureSession session, @NonNull CaptureRequest request, long timestamp, long frameNumber) { for (CameraCaptureSession.CaptureCallback callback : getCallbacks(request)) { callback.onCaptureStarted(session, request, timestamp, frameNumber); } } CameraBurstCaptureCallback(); @RequiresApi(api = Build.VERSION_CODES.N) @Override void onCaptureBufferLost(
            CameraCaptureSession session, CaptureRequest request, Surface surface, long frame); @Override void onCaptureCompleted(@NonNull CameraCaptureSession session,
            @NonNull CaptureRequest request, @NonNull TotalCaptureResult result); @Override void onCaptureFailed(@NonNull CameraCaptureSession session,
            @NonNull CaptureRequest request, @NonNull CaptureFailure failure); @Override void onCaptureProgressed(
            @NonNull  CameraCaptureSession session,
            @NonNull CaptureRequest request, @NonNull
            CaptureResult partialResult); @Override void onCaptureStarted(
            @NonNull CameraCaptureSession session,
            @NonNull CaptureRequest request,
            long timestamp,
            long frameNumber); @Override void onCaptureSequenceAborted(
            @NonNull CameraCaptureSession session, int sequenceId); @Override void onCaptureSequenceCompleted(
            @NonNull CameraCaptureSession session, int sequenceId, long frameNumber);  }