本文整理汇总了Java中android.hardware.camera2.CaptureFailure类的典型用法代码示例。如果您正苦于以下问题:Java CaptureFailure类的具体用法?Java CaptureFailure怎么用?Java CaptureFailure使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CaptureFailure类属于android.hardware.camera2包,在下文中一共展示了CaptureFailure类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCaptureFailed
import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@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;
}
}
示例2: onCaptureFailed
import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@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);
}
}
示例3: onCaptureFailed
import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@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!");
}
示例4: onCaptureFailed
import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(CameraCaptureSession session,
CaptureRequest request,
CaptureFailure failure) {
getBus()
.post(new PictureTakenEvent(new RuntimeException("generic camera2 capture failure")));
}
示例5: onCaptureFailed
import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(
CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
Logging.d(TAG, "Capture failed: " + failure);
}
示例6: onCaptureFailed
import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@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());
}
示例7: onCaptureFailed
import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
// TODO: raise event
}
示例8: onCaptureFailed
import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(@NonNull CameraCaptureSession session, @NonNull CaptureRequest request, @NonNull CaptureFailure failure) {
super.onCaptureFailed(session, request, failure);
}