Home
last modified time | relevance | path

Searched refs:getNumberOfCameras (Results 1 – 6 of 6) sorted by relevance

/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DCameraEnumerationAndroid.java117 String[] names = new String[android.hardware.Camera.getNumberOfCameras()]; in getDeviceNames()
118 for (int i = 0; i < android.hardware.Camera.getNumberOfCameras(); ++i) { in getDeviceNames()
126 return android.hardware.Camera.getNumberOfCameras(); in getDeviceCount()
215 for (int i = 0; i < android.hardware.Camera.getNumberOfCameras(); ++i) {
DVideoCapturerAndroid.java239 if (android.hardware.Camera.getNumberOfCameras() < 2) { in switchCamera()
353 if (deviceName == null || android.hardware.Camera.getNumberOfCameras() == 0) { in lookupDeviceName()
359 for (int i = 0; i < android.hardware.Camera.getNumberOfCameras(); ++i) { in lookupDeviceName()
615 id = (id + 1) % android.hardware.Camera.getNumberOfCameras(); in switchCameraOnCameraThread()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DCameraTest.java177 assertThat(Camera.getNumberOfCameras(), equalTo(0)); in testCameraInfoNoCameras()
187 assertThat(Camera.getNumberOfCameras(), equalTo(1)); in testCameraInfoBackOnly()
198 assertThat( Camera.getNumberOfCameras(), equalTo(2) ); in testCameraInfoBackAndFront()
/external/opencv3/modules/java/generator/src/java/
Dandroid+JavaCameraView.java84 for (int camIdx = 0; camIdx < Camera.getNumberOfCameras(); ++camIdx) { in initializeCamera()
101 for (int camIdx = 0; camIdx < Camera.getNumberOfCameras(); ++camIdx) { in initializeCamera()
111 for (int camIdx = 0; camIdx < Camera.getNumberOfCameras(); ++camIdx) { in initializeCamera()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowCamera.java110 public static int getNumberOfCameras() { in getNumberOfCameras() method in ShadowCamera
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DVideoCapturerAndroidTestFixtures.java238 return (Camera.getNumberOfCameras() >= 2); in HaveTwoCameras()