Lines Matching refs:open
2 * Copyright (C) 2009 The Android Open Source Project
35 * <p>The {@code open()} and {@code release()} calls are similar to the ones
38 * android.hardware.Camera} instance for a while, so if {@code open()} is
39 * called soon after, we can avoid the cost of {@code open()} in {@code
50 private int mUsers = 0; // number of open() - number of release()
56 // We store the camera parameters when we actually open the device,
57 // so we can restore them in the subsequent open() requests by the user.
82 // In 'CameraHolder.open', the 'RELEASE_CAMERA' message
120 public synchronized android.hardware.Camera open(int cameraId)
130 Log.v(TAG, "open camera " + cameraId);
131 mCameraDevice = android.hardware.Camera.open(cameraId);
154 * Tries to open the hardware camera. If the camera is being used or
159 return mUsers == 0 ? open(cameraId) : null;
196 // The activity may not have a chance to call open() before the user