Java 类android.hardware.camera2.CaptureFailure 实例源码

项目:android-robocar    文件:CaptureCallback.java   
@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;
  }
}
项目:Camera2Vision    文件:Camera2Source.java   
@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);
    }
}
项目:OkayCamera-Android    文件:Camera2RawFragment.java   
@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!");
}
项目:cwac-cam2    文件:CameraTwoEngine.java   
@Override
public void onCaptureFailed(CameraCaptureSession session,
                            CaptureRequest request,
                            CaptureFailure failure) {
  getBus()
    .post(new PictureTakenEvent(new RuntimeException("generic camera2 capture failure")));
}
项目:AppRTC-Android    文件:Camera2Session.java   
@Override
public void onCaptureFailed(
    CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
  Logging.d(TAG, "Capture failed: " + failure);
}
项目:AndroidRTC    文件:Camera2Session.java   
@Override
public void onCaptureFailed(
    CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
  Logging.d(TAG, "Capture failed: " + failure);
}
项目:VideoCRE    文件:Camera2Session.java   
@Override
public void onCaptureFailed(
    CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
  Logging.d(TAG, "Capture failed: " + failure);
}
项目:ideal-camera    文件:CameraModelImpl.java   
@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());
}
项目:FacerecognitionFlowpilots    文件:CameraTwoEngine.java   
@Override
public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
  // TODO: raise event
}
项目:FacerecognitionFlowpilots    文件:CameraTwoEngine.java   
@Override
public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
  // TODO: raise event
}
项目:AndroidSnippets    文件:Camera2Engine.java   
@Override
public void onCaptureFailed(@NonNull CameraCaptureSession session, @NonNull CaptureRequest request, @NonNull CaptureFailure failure) {
    super.onCaptureFailed(session, request, failure);
}
项目:cwac-cam2    文件:CameraTwoEngine.java   
@Override
public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
  getBus().post(new PictureTakenEvent(new RuntimeException("generic camera2 capture failure")));
}