Lines Matching defs:cameraId

144      * @param cameraId The id of the camera device to query
147 * @throws IllegalArgumentException if the cameraId does not match any
157 public CameraCharacteristics getCameraCharacteristics(String cameraId)
162 if (!getOrCreateDeviceIdListLocked().contains(cameraId)) {
164 " currently connected camera device", cameraId));
167 int id = Integer.valueOf(cameraId);
180 if (!supportsCamera2ApiLocked(cameraId)) {
214 * @param cameraId The unique identifier of the camera device to open
219 * or too many camera devices are already open, or the cameraId does not match
230 private CameraDevice openCameraDeviceUserAsync(String cameraId,
233 CameraCharacteristics characteristics = getCameraCharacteristics(cameraId);
243 cameraId,
251 int id = Integer.parseInt(cameraId);
253 if (supportsCamera2ApiLocked(cameraId)) {
308 throw new IllegalArgumentException("Expected cameraId to be numeric, but it was: "
309 + cameraId);
345 * @param cameraId
356 * @throws IllegalArgumentException if cameraId or the callback was null,
357 * or the cameraId does not match any currently or previously available
366 public void openCamera(String cameraId, final CameraDevice.StateCallback callback,
370 if (cameraId == null) {
371 throw new IllegalArgumentException("cameraId was null");
383 openCameraDeviceUserAsync(cameraId, callback, handler);
408 * @param cameraId The unique identifier of the new camera.
410 public void onCameraAvailable(String cameraId) {
423 * @param cameraId The unique identifier of the disconnected camera.
425 public void onCameraUnavailable(String cameraId) {
498 * @param cameraId a non-{@code null} camera identifier
501 private boolean supportsCamera2ApiLocked(String cameraId) {
502 return supportsCameraApiLocked(cameraId, API_VERSION_2);
508 * @param cameraId a non-{@code null} camera identifier
512 private boolean supportsCameraApiLocked(String cameraId, int apiVersion) {
513 int id = Integer.parseInt(cameraId);
827 public void onStatusChanged(int status, int cameraId) throws RemoteException {
829 onStatusChangedLocked(status, String.valueOf(cameraId));
854 String cameraId = mDeviceStatus.keyAt(i);
855 onStatusChangedLocked(STATUS_PRESENT, cameraId);