Home
last modified time | relevance | path

Searched refs:cameraId (Results 1 – 13 of 13) sorted by relevance

/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DCameraEnumerator.java47 public List<CaptureFormat> getSupportedFormats(int cameraId) { in getSupportedFormats() argument
56 return cachedSupportedFormats.get(cameraId); in getSupportedFormats()
59 private List<CaptureFormat> enumerateFormats(int cameraId) { in enumerateFormats() argument
60 Logging.d(TAG, "Get supported formats for camera index " + cameraId + "."); in enumerateFormats()
65 Logging.d(TAG, "Opening camera with index " + cameraId); in enumerateFormats()
66 camera = android.hardware.Camera.open(cameraId); in enumerateFormats()
69 Logging.e(TAG, "Open camera failed on camera index " + cameraId, e); in enumerateFormats()
93 Logging.e(TAG, "getSupportedFormats() failed on camera index " + cameraId, e); in enumerateFormats()
97 Logging.d(TAG, "Get supported formats for camera index " + cameraId + " done." in enumerateFormats()
DCamera2Enumerator.java70 public List<CaptureFormat> getSupportedFormats(int cameraId) { in getSupportedFormats() argument
72 if (cachedSupportedFormats.containsKey(cameraId)) { in getSupportedFormats()
73 return cachedSupportedFormats.get(cameraId); in getSupportedFormats()
75 Logging.d(TAG, "Get supported formats for camera index " + cameraId + "."); in getSupportedFormats()
80 cameraCharacteristics = cameraManager.getCameraCharacteristics(Integer.toString(cameraId)); in getSupportedFormats()
115 cachedSupportedFormats.put(cameraId, formatList); in getSupportedFormats()
117 Logging.d(TAG, "Get supported formats for camera index " + cameraId + " done." in getSupportedFormats()
DVideoCapturerAndroid.java187 void onCameraOpening(int cameraId); in onCameraOpening() argument
212 final int cameraId = lookupDeviceName(name); in create() local
213 if (cameraId == -1) { in create()
217 final VideoCapturerAndroid capturer = new VideoCapturerAndroid(cameraId, eventsHandler, in create()
323 private VideoCapturerAndroid(int cameraId) { in VideoCapturerAndroid() argument
324 this(cameraId, null, null); in VideoCapturerAndroid()
327 private VideoCapturerAndroid(int cameraId, CameraEventsHandler eventsHandler, in VideoCapturerAndroid() argument
329 this.id = cameraId; in VideoCapturerAndroid()
DCameraEnumerationAndroid.java54 List<CaptureFormat> getSupportedFormats(int cameraId); in getSupportedFormats() argument
61 public static synchronized List<CaptureFormat> getSupportedFormats(int cameraId) { in getSupportedFormats() argument
62 return enumerator.getSupportedFormats(cameraId); in getSupportedFormats()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCameraManager.java31 protected CameraCharacteristics getCameraCharacteristics(@NonNull String cameraId) { in getCameraCharacteristics() argument
32 Preconditions.checkNotNull(cameraId); in getCameraCharacteristics()
33 CameraCharacteristics characteristics = cameraIdToCharacteristics.get(cameraId); in getCameraCharacteristics()
45 public void addCamera(@NonNull String cameraId, @NonNull CameraCharacteristics characteristics) { in addCamera() argument
46 Preconditions.checkNotNull(cameraId); in addCamera()
48 Preconditions.checkArgument(!cameraIdToCharacteristics.containsKey(cameraId)); in addCamera()
50 cameraIdToCharacteristics.put(cameraId, characteristics); in addCamera()
DShadowCamera.java58 protected static Camera open(int cameraId) { in open() argument
59 lastOpenedCameraId = cameraId; in open()
62 shadowCamera.id = cameraId; in open()
189 protected static void getCameraInfo(int cameraId, Camera.CameraInfo cameraInfo) { in getCameraInfo() argument
190 Camera.CameraInfo foundCam = cameras.get(cameraId); in getCameraInfo()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DCameraFacade.java63 public Camera openCamera(int cameraId) throws Exception { in openCamera() argument
70 result = (Camera) openCamera.invoke(null, cameraId); in openCamera()
90 …r(name = "cameraId", description = "Id of camera to use. SDK 9") @RpcDefault("0") Integer cameraId) in cameraCapturePicture()
94 Camera camera = openCamera(cameraId); in cameraCapturePicture()
121 result.putInt("cameraId", cameraId); in cameraCapturePicture()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DCameraActivity.java320 for (final String cameraId : manager.getCameraIdList()) { in chooseCamera()
321 final CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId); in chooseCamera()
343 return cameraId; in chooseCamera()
353 String cameraId = chooseCamera(); in setFragment() local
354 if (cameraId == null) { in setFragment()
375 camera2Fragment.setCamera(cameraId); in setFragment()
DCameraConnectionFragment.java124 private String cameraId; field in CameraConnectionFragment
356 public void setCamera(String cameraId) { in setCamera() argument
357 this.cameraId = cameraId; in setCamera()
367 final CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId); in setUpCameraOutputs()
422 manager.openCamera(cameraId, stateCallback, backgroundHandler); in openCamera()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DCameraActivity.java318 for (final String cameraId : manager.getCameraIdList()) { in chooseCamera()
319 final CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId); in chooseCamera()
341 return cameraId; in chooseCamera()
351 String cameraId = chooseCamera(); in setFragment() local
369 camera2Fragment.setCamera(cameraId); in setFragment()
DCameraConnectionFragment.java124 private String cameraId; field in CameraConnectionFragment
356 public void setCamera(String cameraId) { in setCamera() argument
357 this.cameraId = cameraId; in setCamera()
367 final CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId); in setUpCameraOutputs()
416 manager.openCamera(cameraId, stateCallback, backgroundHandler); in openCamera()
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java139 private String cameraId; field in Camera2BasicFragment
503 for (String cameraId : manager.getCameraIdList()) { in setUpCameraOutputs()
504 CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId); in setUpCameraOutputs()
589 this.cameraId = cameraId; in setUpCameraOutputs()
636 manager.openCamera(cameraId, stateCallback, backgroundHandler); in openCamera()
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DVideoCapturerAndroidTestFixtures.java211 public void onCameraOpening(int cameraId) { in onCameraOpening() argument