Home
last modified time | relevance | path

Searched refs:cameraManager (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCameraManagerTest.java26 private final CameraManager cameraManager = field in ShadowCameraManagerTest
36 shadowOf(cameraManager).addCamera(null, characteristics); in testAddCameraNullCameraId()
46 shadowOf(cameraManager).addCamera(CAMERA_ID_0, null); in testAddCameraNullCharacteristics()
55 shadowOf(cameraManager).addCamera(CAMERA_ID_0, characteristics); in testAddCameraExistingId()
58 shadowOf(cameraManager).addCamera(CAMERA_ID_0, characteristics); in testAddCameraExistingId()
67 assertThat(cameraManager.getCameraIdList()).isEmpty(); in testGetCameraIdListNoCameras()
72 shadowOf(cameraManager).addCamera(CAMERA_ID_0, characteristics); in testGetCameraIdListSingleCamera()
74 assertThat(cameraManager.getCameraIdList()).asList().containsExactly(CAMERA_ID_0); in testGetCameraIdListSingleCamera()
79 shadowOf(cameraManager).addCamera(CAMERA_ID_0, characteristics); in testGetCameraIdListInOrderOfAdd()
80 shadowOf(cameraManager).addCamera(CAMERA_ID_1, characteristics); in testGetCameraIdListInOrderOfAdd()
[all …]
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DCaptureActivityHandler.java43 private final CameraManager cameraManager; field in CaptureActivityHandler
53 CameraManager cameraManager) { in CaptureActivityHandler() argument
61 this.cameraManager = cameraManager; in CaptureActivityHandler()
62 cameraManager.startPreview(); in CaptureActivityHandler()
73 cameraManager.requestAutoFocus(this, R.id.auto_focus); in handleMessage()
88 cameraManager.requestPreviewFrame(decodeThread.getHandler(), R.id.decode); in handleMessage()
104 cameraManager.stopPreview(); in quitSynchronously()
122 cameraManager.requestPreviewFrame(decodeThread.getHandler(), R.id.decode); in restartPreviewAndDecode()
123 cameraManager.requestAutoFocus(this, R.id.auto_focus); in restartPreviewAndDecode()
DCaptureActivity.java57 private CameraManager cameraManager; field in CaptureActivity
74 return cameraManager; in getCameraManager()
100 cameraManager = new CameraManager(getApplication()); in onResume()
102 viewfinderView.setCameraManager(cameraManager); in onResume()
128 cameraManager.setManualFramingRect(width, height); in onResume()
147 cameraManager.closeDriver(); in onPause()
258 cameraManager.openDriver(surfaceHolder); in initCamera()
262 handler = new CaptureActivityHandler(this, characterSet, cameraManager); in initCamera()
DViewfinderView.java48 private CameraManager cameraManager; field in ViewfinderView
77 public void setCameraManager(CameraManager cameraManager) { in setCameraManager() argument
78 this.cameraManager = cameraManager; in setCameraManager()
83 Rect frame = cameraManager.getFramingRect(); in onDraw()
117 Rect previewFrame = cameraManager.getFramingRectInPreview(); in onDraw()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DCamera2Enumerator.java55 private final CameraManager cameraManager; field in Camera2Enumerator
66 cameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in Camera2Enumerator()
80 cameraCharacteristics = cameraManager.getCameraCharacteristics(Integer.toString(cameraId)); in getSupportedFormats()