/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowCameraManagerTest.java | 26 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/ |
D | CaptureActivityHandler.java | 43 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()
|
D | CaptureActivity.java | 57 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()
|
D | ViewfinderView.java | 48 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/sdk/android/api/org/webrtc/ |
D | Camera2Enumerator.java | 43 @Nullable final CameraManager cameraManager; field in Camera2Enumerator 47 this.cameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in Camera2Enumerator() 53 return cameraManager.getCameraIdList(); in getDeviceNames() 95 return cameraManager.getCameraCharacteristics(deviceName); in getCameraCharacteristics() 113 CameraManager cameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in isSupported() local 115 String[] cameraIds = cameraManager.getCameraIdList(); in isSupported() 117 CameraCharacteristics characteristics = cameraManager.getCameraCharacteristics(id); in isSupported() 176 static List<CaptureFormat> getSupportedFormats(CameraManager cameraManager, String cameraId) { in getSupportedFormats() argument 187 cameraCharacteristics = cameraManager.getCameraCharacteristics(cameraId); in getSupportedFormats()
|
D | Camera2Capturer.java | 21 @Nullable private final CameraManager cameraManager; field in Camera2Capturer 27 cameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in Camera2Capturer() 35 Camera2Session.create(createSessionCallback, events, applicationContext, cameraManager, in createCameraSession()
|
/external/webrtc/sdk/android/src/java/org/webrtc/ |
D | Camera2Session.java | 49 private final CameraManager cameraManager; field in Camera2Session 271 Context applicationContext, CameraManager cameraManager, in create() argument 274 new Camera2Session(callback, events, applicationContext, cameraManager, surfaceTextureHelper, in create() 279 CameraManager cameraManager, SurfaceTextureHelper surfaceTextureHelper, String cameraId, in Camera2Session() argument 289 this.cameraManager = cameraManager; in Camera2Session() 304 cameraCharacteristics = cameraManager.getCameraCharacteristics(cameraId); in start() 351 cameraManager.openCamera(cameraId, new CameraStateCallback(), cameraThreadHandler); in openCamera()
|
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/ |
D | Camera2CapturerTest.java | 43 final CameraManager cameraManager; field in Camera2CapturerTest.SimpleCamera2 120 cameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in SimpleCamera2() 129 cameraManager.openCamera(deviceName, new CameraStateCallback(), looperThread.getHandler()); in SimpleCamera2()
|