Lines Matching refs:camera
29 * A central manager of camera devices and current clients for them.
41 throw new AssertionError("Can't connect to camera manager!");
45 TLog.i("Camera count: %d", cameraIds.length);
47 TLog.i(" Camera %s", cameraId);
50 TLog.e("Unable to get camera list: %s", e);
57 * Add a listener for new camera addition events, and retrieve the list of
61 * A listener to notify on changes to camera availability
64 * if the camera manager cannot be queried
80 TLog.i("Camera %s is now available", cameraId);
85 TLog.i("Camera %s is now unavailable", cameraId);
89 * Attempt to open a camera device. Returns false if the open call cannot be
92 * @param cameraId id of the camera to open
93 * @param listener listener to notify of camera device state changes
98 for (CameraDevice camera : mOpenCameras) {
99 if (camera.getId() == cameraId) {
100 TLog.e("Camera %s is already open", cameraId);
108 TLog.e("Unable to open camera %s.", e, cameraId);
119 TLog.e("Unable to get camera characteristics for camera %s.", e, cameraId);
133 public void onClosed(CameraDevice camera) {
134 mOpenCameras.remove(camera);
135 TLog.i("Camera %s now closed", camera.getId());
136 mClientListener.onClosed(camera);
140 public void onDisconnected(CameraDevice camera) {
141 TLog.i("Camera %s now disconnected", camera.getId());
142 mClientListener.onDisconnected(camera);
146 public void onError(CameraDevice camera, int error) {
147 TLog.i("Camera %s encountered error: %d", camera.getId(), error);
148 mClientListener.onError(camera, error);
152 public void onOpened(CameraDevice camera) {
153 mOpenCameras.add(camera);
154 TLog.i("Camera %s now open", camera.getId());
155 mClientListener.onOpened(camera);