Lines Matching refs:camera

78          * Thrown when camera device enters error state during open, or if
95 * Create a new blocking camera manager.
109 * Open the camera, blocking it until it succeeds or fails.
124 * highly unrecoverable, and all future calls to opening that camera will fail since the
128 * Id of the camera
130 * Listener to the camera. onOpened, onDisconnected, onError need not be implemented.
168 * <p>Time out after {@link #OPEN_TIME_OUT_MS} and unblock. Clean up camera if it arrives
207 public void onOpened(CameraDevice camera) {
209 Log.v(TAG, "onOpened: camera " + ((camera != null) ? camera.getId() : "null"));
216 mDevice = camera;
219 if (mTimedOut && camera != null) {
220 camera.close();
225 if (mProxy != null) mProxy.onOpened(camera);
229 public void onDisconnected(CameraDevice camera) {
231 Log.v(TAG, "onDisconnected: camera "
232 + ((camera != null) ? camera.getId() : "null"));
239 mDevice = camera;
242 if (mTimedOut && camera != null) {
243 camera.close();
248 if (mProxy != null) mProxy.onDisconnected(camera);
252 public void onError(CameraDevice camera, int error) {
254 Log.v(TAG, "onError: camera " + ((camera != null) ? camera.getId() : "null"));
265 mDevice = camera;
268 if (mTimedOut && camera != null) {
269 camera.close();
274 if (mProxy != null) mProxy.onError(camera, error);
278 public void onClosed(CameraDevice camera) {
279 if (mProxy != null) mProxy.onClosed(camera);
289 if (mNoReply) { // Give the async camera a fighting chance (required)
290 mTimedOut = true; // Clean up camera if it ever arrives later
292 "Timed out after %d ms while trying to open camera device %s",
315 "Failed to open camera device: it is disconnected");
319 "Failed to open camera device: error code " + mError);
321 throw new AssertionError("Failed to open camera device (impl bug)");