Lines Matching defs:camera

32  * An interface which provides possible camera device operations.
35 * of {@link CameraAgent.CameraProxy} to control the camera. Classes
37 * other than the main thread for camera operations. Camera device callbacks
112 public void onCameraOpened(final CameraProxy camera) {
116 mCallback.onCameraOpened(camera);
158 * A handler for all camera api runtime exceptions.
170 public void onError(int error, CameraProxy camera);
178 public void onAutoFocus(boolean focused, CameraProxy camera);
186 public void onAutoFocusMoving(boolean moving, CameraProxy camera);
194 public void onShutter(CameraProxy camera);
202 public void onPictureTaken(byte[] data, CameraProxy camera);
210 public void onPreviewFrame(byte[] data, CameraProxy camera);
222 * @param camera The camera which the preview image comes from.
224 public void onFaceDetection(Camera.Face[] faces, CameraProxy camera);
228 * An interface to be called when the camera preview has started.
239 * camera device. This error callback is different from the one defined
241 * is used after the camera is opened.
245 * Callback when camera open succeeds.
247 public void onCameraOpened(CameraProxy camera);
250 * Callback when {@link com.android.camera.CameraDisabledException} is
253 * @param cameraId The disabled camera.
258 * Callback when {@link com.android.camera.CameraHardwareException} is
261 * @param cameraId The camera with the hardware failure.
267 * Callback when trying to open the camera which is already opened.
269 * @param cameraId The camera which is causing the open error.
284 * Opens the camera of the specified ID asynchronously. The camera device
285 * will be opened in the camera handler thread and will be returned through
287 * onCameraOpened(com.android.camera.cameradevice.CameraAgent.CameraProxy)}.
292 * @param cameraId The camera ID to open.
305 * Closes the camera device.
307 * @param camera The camera to close. {@code null} means all.
310 public void closeCamera(CameraProxy camera, boolean synced) {
319 }}, bundle.mWaitLock, CAMERA_OPERATION_TIMEOUT_MS, "camera release");
331 * Sets a callback for handling camera api runtime exceptions on
344 * @return The camera devices info.
349 * @return The handler to which camera tasks should be posted.
359 * An interface that takes camera operation requests and post messages to the
360 * camera handler thread. All camera operations made through this interface is
368 * camera device over to {@link android.media.MediaRecorder} for
375 * @return The camera ID associated to by this
381 * @return The camera characteristics.
386 * @return The camera capabilities.
391 * Reconnects to the camera device. On success, the camera device will
393 * .CameraOpenCallback#onCameraOpened(com.android.camera.cameradevice.CameraAgent
411 * Unlocks the camera device.
422 }}, bundle.mWaitLock, CAMERA_OPERATION_TIMEOUT_MS, "camera unlock");
426 * Locks the camera device.
442 * {@link CameraSettings} instance for this camera, and the mutators for
457 // sizes would require closing and reopening the camera.
474 * {@link CameraSettings} instance for this camera, and the mutators for
510 * Starts the camera preview.
522 * Starts the camera preview and executes a callback on a handler once
536 * Stops the camera preview synchronously.
538 * continues to release resources related to camera preview.
630 * Instrument the camera to take a picture.
650 * Sets the display orientation for camera to adjust the preview and JPEG orientation.
660 * Sets the display orientation for camera to adjust the preview—and, optionally,
738 * Sets the camera parameters.
740 * @param params The camera parameters to use.
746 * Gets the current camera parameters synchronously. This method is
747 * synchronous since the caller has to wait for the camera to return
755 * Gets the current camera settings synchronously.
757 * camera to return the parameters. If the parameters are already
768 * @param statesToAwait Bitwise OR of the required camera states.
794 * Applies the settings to the camera device.
796 * <p>If the camera is either focusing or capturing; settings applications
805 * Forces {@code CameraProxy} to update the cached version of the camera
817 * Enables/Disables the camera shutter sound.
833 * Dumps the current settings of the camera device.
835 * <p>The content varies based on the underlying camera API settings
843 * @return The handler to which camera tasks should be posted.
853 * @return The state machine tracking the camera API's current mode.