Home
last modified time | relevance | path

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

/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/webrtc/sdk/android/src/java/org/webrtc/
DCamera1Session.java41 private final int cameraId; field in Camera1Session
55 final SurfaceTextureHelper surfaceTextureHelper, final int cameraId, final int width, in create() argument
58 Logging.d(TAG, "Open camera " + cameraId); in create()
63 camera = android.hardware.Camera.open(cameraId); in create()
71 "android.hardware.Camera.open returned null for camera id = " + cameraId); in create()
84 android.hardware.Camera.getCameraInfo(cameraId, info); in create()
110 surfaceTextureHelper, cameraId, camera, info, captureFormat, constructionTimeNs)); in create()
158 SurfaceTextureHelper surfaceTextureHelper, int cameraId, android.hardware.Camera camera, in Camera1Session() argument
161 Logging.d(TAG, "Create new camera1 session on camera " + cameraId); in Camera1Session()
168 this.cameraId = cameraId; in Camera1Session()
[all …]
DCamera2Session.java51 private final String cameraId; field in Camera2Session
272 SurfaceTextureHelper surfaceTextureHelper, String cameraId, int width, int height, in create() argument
275 cameraId, width, height, framerate); in create()
279 CameraManager cameraManager, SurfaceTextureHelper surfaceTextureHelper, String cameraId, in Camera2Session() argument
281 Logging.d(TAG, "Create new camera2 session on camera " + cameraId); in Camera2Session()
291 this.cameraId = cameraId; in Camera2Session()
304 cameraCharacteristics = cameraManager.getCameraCharacteristics(cameraId); in start()
347 Logging.d(TAG, "Opening camera " + cameraId); in openCamera()
351 cameraManager.openCamera(cameraId, new CameraStateCallback(), cameraThreadHandler); in openCamera()
360 Logging.d(TAG, "Stop camera2 session on camera " + cameraId); in stop()
/external/webrtc/sdk/android/api/org/webrtc/
DCamera1Enumerator.java88 static synchronized List<CaptureFormat> getSupportedFormats(int cameraId) { in getSupportedFormats() argument
95 return cachedSupportedFormats.get(cameraId); in getSupportedFormats()
98 private static List<CaptureFormat> enumerateFormats(int cameraId) { in enumerateFormats() argument
99 Logging.d(TAG, "Get supported formats for camera index " + cameraId + "."); in enumerateFormats()
104 Logging.d(TAG, "Opening camera with index " + cameraId); in enumerateFormats()
105 camera = android.hardware.Camera.open(cameraId); in enumerateFormats()
108 Logging.e(TAG, "Open camera failed on camera index " + cameraId, e); in enumerateFormats()
132 Logging.e(TAG, "getSupportedFormats() failed on camera index " + cameraId, e); in enumerateFormats()
136 Logging.d(TAG, "Get supported formats for camera index " + cameraId + " done." in enumerateFormats()
DCamera2Enumerator.java170 static List<CaptureFormat> getSupportedFormats(Context context, String cameraId) { in getSupportedFormats() argument
172 (CameraManager) context.getSystemService(Context.CAMERA_SERVICE), cameraId); in getSupportedFormats()
176 static List<CaptureFormat> getSupportedFormats(CameraManager cameraManager, String cameraId) { in getSupportedFormats() argument
178 if (cachedSupportedFormats.containsKey(cameraId)) { in getSupportedFormats()
179 return cachedSupportedFormats.get(cameraId); in getSupportedFormats()
182 Logging.d(TAG, "Get supported formats for camera index " + cameraId + "."); in getSupportedFormats()
187 cameraCharacteristics = cameraManager.getCameraCharacteristics(cameraId); in getSupportedFormats()
223 cachedSupportedFormats.put(cameraId, formatList); in getSupportedFormats()
225 Logging.d(TAG, "Get supported formats for camera index " + cameraId + " done." in getSupportedFormats()
/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/tools/android/test/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/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java139 private String cameraId; field in Camera2BasicFragment
495 for (String cameraId : manager.getCameraIdList()) { in setUpCameraOutputs()
496 CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId); in setUpCameraOutputs()
581 this.cameraId = cameraId; in setUpCameraOutputs()
628 manager.openCamera(cameraId, stateCallback, backgroundHandler); in openCamera()
/external/cpuinfo/test/dmesg/
Dgalaxy-j7-tmobile.log764 …43.126106] [5: Binder_3: 3164] logger: !@ SecCameraCoreManager created: pid=2451, cameraId=0