本文整理匯總了Java中android.hardware.camera2.CameraDevice.close方法的典型用法代碼示例。如果您正苦於以下問題:Java CameraDevice.close方法的具體用法?Java CameraDevice.close怎麽用?Java CameraDevice.close使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.hardware.camera2.CameraDevice
的用法示例。
在下文中一共展示了CameraDevice.close方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onError
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onError(final CameraDevice cd, final int error) {
cameraOpenCloseLock.release();
cd.close();
cameraDevice = null;
final Activity activity = getActivity();
if (null != activity) {
activity.finish();
}
}
示例2: onError
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onError(CameraDevice cameraDevice, int error) {
cameraDevice.close();
Camera2Manager.this.cameraDevice = null;
uiHandler.post(new Runnable() {
@Override
public void run() {
cameraOpenListener.onCameraOpenError();
}
});
}
示例3: onError
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onError(@NonNull CameraDevice cameraDevice, int error) {
mCameraOpenCloseLock.release();
cameraDevice.close();
mCameraDevice = null;
}
示例4: onError
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onError(@NonNull CameraDevice cameraDevice, int i) {
Log.d(TAG, "Camera device error, closing.");
cameraDevice.close();
}
示例5: onDisconnected
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onDisconnected(@NonNull CameraDevice cameraDevice) {
mCameraOpenCloseLock.release();
cameraDevice.close();
mCameraDevice = null;
}
示例6: onError
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onError(CameraDevice cameraDevice, int error) {
cameraDevice.close();
mCameraDevice = null;
mCameraOpenCloseLock.release();
}
示例7: onDisconnected
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onDisconnected(final CameraDevice cd) {
cameraOpenCloseLock.release();
cd.close();
cameraDevice = null;
}
示例8: onDisconnected
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onDisconnected(CameraDevice cameraDevice) {
cameraDevice.close();
mCameraDevice = null;
mCameraOpenCloseLock.release();
}
示例9: onDisconnected
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onDisconnected(@NonNull CameraDevice camera) {
camera.close();
mCamera = null;
}
示例10: onError
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onError(@NonNull CameraDevice camera, int error) {
camera.close();
mCamera = null;
}
示例11: onDisconnected
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onDisconnected(@NonNull CameraDevice cameraDevice) {
Log.d(TAG, "Camera disconnected, closing.");
closeCaptureSession();
cameraDevice.close();
}
示例12: onDisconnected
import android.hardware.camera2.CameraDevice; //導入方法依賴的package包/類
@Override
public void onDisconnected(@NonNull CameraDevice camera) {
cameraOpenCloseLock.release();
camera.close();
cameraDevice = null;
}