@Override public void onCaptureFailed(@NonNull CameraCaptureSession session, @NonNull CaptureRequest request, @NonNull CaptureFailure failure) { super.onCaptureFailed(session, request, failure); this.session = null; switch (failure.getReason()) { case CaptureFailure.REASON_ERROR: Timber.e("Capture failed: REASON_ERROR"); break; case CaptureFailure.REASON_FLUSHED: Timber.e("Capture failed: REASON_FLUSHED"); break; default: Timber.e("Capture failed: UNKNOWN"); break; } }
@Override public void onCaptureFailed(@NonNull CameraCaptureSession session, @NonNull CaptureRequest request, @NonNull CaptureFailure failure) { if(request.getTag() == "FOCUS_TAG") { Log.d(TAG, "Manual AF failure: "+failure); mAutoFocusCallback.onAutoFocus(false); } }
@Override public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) { int requestId = (int) request.getTag(); synchronized (mCameraStateLock) { mJpegResultQueue.remove(requestId); mRawResultQueue.remove(requestId); finishedCaptureLocked(); } showToast("Capture failed!"); }
@Override public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) { getBus() .post(new PictureTakenEvent(new RuntimeException("generic camera2 capture failure"))); }
@Override public void onCaptureFailed( CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) { Logging.d(TAG, "Capture failed: " + failure); }
@Override public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) { Log.e(TAG, new StringBuilder().append("Capture attempt failed with reason ").append(failure.getReason()).toString()); }
@Override public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) { // TODO: raise event }
@Override public void onCaptureFailed(@NonNull CameraCaptureSession session, @NonNull CaptureRequest request, @NonNull CaptureFailure failure) { super.onCaptureFailed(session, request, failure); }
@Override public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) { getBus().post(new PictureTakenEvent(new RuntimeException("generic camera2 capture failure"))); }