FileDocCategorySizeDatePackage
Camera2DeviceTester.javaAPI DocAndroid 5.1 API2757Thu Mar 12 22:22:48 GMT 2015com.android.ex.camera2.utils

Camera2DeviceTester

public class Camera2DeviceTester extends Object
Subclasses of this have an {@code mCamera} instance variable representing the first camera.

Fields Summary
private static android.os.HandlerThread
sThread
private static android.os.Handler
sHandler
public android.content.Context
mContext
protected android.hardware.camera2.CameraDevice
mCamera
Constructors Summary
Methods Summary
public voidobtainCameraCaptureRequestBuilderFactory()

        mCamera = new DeviceCapturer().captureCameraDevice();
    
public voidreleaseCameraCaptureRequestBuilderFactory()

        mCamera.close();
    
public static voidsetupBackgroundHandler()

        sThread = new HandlerThread("CameraFramework");
        sThread.start();
        sHandler = new Handler(sThread.getLooper());
    
public static voidteardownBackgroundHandler()

        sThread.quitSafely();
        sThread.join();