Code example for ConditionVariable

    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("", MediaFrameworkTest.class); 
    protected void setUp() throws Exception { 
     * Initializes the message looper so that the Camera object can