Code example for ConditionVariable

0
    private JpegPictureCallback mJpegPictureCallback = new JpegPictureCallback();
     
    private boolean mInitialized = false;
    private Looper mLooper = null;
    private final ConditionVariable mPreviewDone = new ConditionVariable();
    private final ConditionVariable mSnapshotDone = new ConditionVariable();
     
    Camera mCamera;
    Context mContext;
   
    public CameraTest() { 
        super("com.android.mediaframeworktest", MediaFrameworkTest.class); 
    } 
 
    protected void setUp() throws Exception { 
        super.setUp();  
    } 
    
    /* 
     * Initializes the message looper so that the Camera object can  
     * receive the callback messages.