/cts/tests/camera/src/android/hardware/camera2/cts/ |
MultiViewTest.java | 49 for (String cameraId : mCameraIds) { 77 for (String cameraId : mCameraIds) { 124 for (String cameraId : mCameraIds) { 156 for (String cameraId : mCameraIds) { 201 if (mCameraIds.length < NUM_CAMERAS_TESTED) { 207 openCamera(mCameraIds[i]); 208 if (!getStaticInfo(mCameraIds[i]).isColorOutputSupported()) { 209 Log.i(TAG, "Camera " + mCameraIds[i] + 215 startTextureViewPreview(mCameraIds[i], views, /*ImageReader*/null); 220 stopPreview(mCameraIds[i]) [all...] |
FlashlightTest.java | 52 for (String id : mCameraIds) { 165 for (String idToOpen : mCameraIds) { 219 String[] cameraIdsToTestTorch = new String[mCameraIds.length + 3]; 220 System.arraycopy(mCameraIds, 0, cameraIdsToTestTorch, 0, mCameraIds.length); 221 cameraIdsToTestTorch[mCameraIds.length] = generateNonexistingCameraId(); 222 cameraIdsToTestTorch[mCameraIds.length + 1] = generateNonexistingNumericCameraId(); 224 for (String idToOpen : mCameraIds) { 279 for (String id : mCameraIds) { 280 if (Arrays.asList(mCameraIds).contains(nonExisting)) [all...] |
SurfaceViewPreviewTest.java | 82 for (int i = 0; i < mCameraIds.length; i++) { 84 Log.i(TAG, "Testing preview for Camera " + mCameraIds[i]); 85 openDevice(mCameraIds[i]); 87 Log.i(TAG, "Camera " + mCameraIds[i] + 106 for (int i = 0; i < mCameraIds.length; i++) { 108 Log.i(TAG, "Testing preview for Camera " + mCameraIds[i]); 109 openDevice(mCameraIds[i]); 111 Log.i(TAG, "Camera " + mCameraIds[i] + 127 for (String id : mCameraIds) { 152 for (String id : mCameraIds) { [all...] |
CameraDeviceTest.java | 173 for (int i = 0; i < mCameraIds.length; i++) { 174 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_PREVIEW); 199 for (int i = 0; i < mCameraIds.length; i++) { 200 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_STILL_CAPTURE); 219 for (int i = 0; i < mCameraIds.length; i++) { 220 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_RECORD); 235 for (int i = 0; i < mCameraIds.length; i++) { 236 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_VIDEO_SNAPSHOT); 250 for (int i = 0; i < mCameraIds.length; i++) { 251 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_ZERO_SHUTTER_LAG) [all...] |
StillCaptureTest.java | 86 for (int i = 0; i < mCameraIds.length; i++) { 88 Log.i(TAG, "Testing JPEG exif for Camera " + mCameraIds[i]); 89 openDevice(mCameraIds[i]); 91 Log.i(TAG, "Camera " + mCameraIds[i] + 114 for (String id : mCameraIds) { 134 for (int i = 0; i < mCameraIds.length; i++) { 136 Log.i(TAG, "Testing raw capture for Camera " + mCameraIds[i]); 137 openDevice(mCameraIds[i]); 141 Log.i(TAG, "RAW capability is not supported in camera " + mCameraIds[i] + 164 for (int i = 0; i < mCameraIds.length; i++) [all...] |
ImageReaderTest.java | 107 for (String id : mCameraIds) { 119 for (String id : mCameraIds) { 131 for (String id : mCameraIds) { 143 for (String id : mCameraIds) { 155 for (String id : mCameraIds) { 168 for (String id : mCameraIds) { 182 for (String id : mCameraIds) { 194 for (String id : mCameraIds) { 207 for (String id : mCameraIds) { 220 for (String id : mCameraIds) { [all...] |
RecordingTest.java | 112 for (int i = 0; i < mCameraIds.length; i++) { 114 Log.i(TAG, "Testing basic recording for camera " + mCameraIds[i]); 117 openDevice(mCameraIds[i]); 119 Log.i(TAG, "Camera " + mCameraIds[i] + 125 Log.i(TAG, "Camera " + mCameraIds[i] + 131 initSupportedVideoSize(mCameraIds[i]); 209 for (int i = 0; i < mCameraIds.length; i++) { 211 Log.i(TAG, "Testing supported video size recording for camera " + mCameraIds[i]); 214 openDevice(mCameraIds[i]); 216 Log.i(TAG, "Camera " + mCameraIds[i] [all...] |
CaptureRequestTest.java | 143 for (int i = 0; i < mCameraIds.length; i++) { 145 openDevice(mCameraIds[i]); 197 for (String id : mCameraIds) { 224 for (int i = 0; i < mCameraIds.length; i++) { 226 openDevice(mCameraIds[i]); 229 Log.i(TAG, "Camera " + mCameraIds[i] + 301 for (int i = 0; i < mCameraIds.length; i++) { 303 openDevice(mCameraIds[i]); 337 for (int i = 0; i < mCameraIds.length; i++) { 339 openDevice(mCameraIds[i]) [all...] |
PerformanceTest.java | 115 double[] avgCameraLaunchTimes = new double[mCameraIds.length]; 118 for (String id : mCameraIds) { 206 if (mCameraIds.length != 0) { 229 double[] avgResultTimes = new double[mCameraIds.length]; 232 for (String id : mCameraIds) { 331 if (mCameraIds.length != 0) { 345 for (String id : mCameraIds) { 374 for (String id : mCameraIds) { 402 for (String id : mCameraIds) { 431 for (String id : mCameraIds) { [all...] |
ReprocessCaptureTest.java | 90 for (String id : mCameraIds) { 104 for (String id : mCameraIds) { 118 for (String id : mCameraIds) { 132 for (String id : mCameraIds) { 146 for (String id : mCameraIds) { 167 for (String id : mCameraIds) { 187 for (String id : mCameraIds) { 224 for (String id : mCameraIds) { 293 for (String id : mCameraIds) { 316 for (String id : mCameraIds) { [all...] |
AllocationTest.java | 84 private String[] mCameraIds; 103 mCameraIds = mCameraManager.getCameraIdList(); 712 assertNotNull("No camera IDs", mCameraIds); 714 for (int i = 0; i < mCameraIds.length; i++) { 717 mCameraManager.getCameraCharacteristics(mCameraIds[i]); 722 mCameraIds[i])); 728 mCameraIds[i])); 732 Log.i(TAG, "Testing Camera " + mCameraIds[i]); 734 openDevice(mCameraIds[i]); 738 closeDevice(mCameraIds[i]) [all...] |
DngCreatorTest.java | 132 for (int i = 0; i < mCameraIds.length; i++) { 133 String deviceId = mCameraIds[i]; 142 Log.i(TAG, "RAW capability is not supported in camera " + mCameraIds[i] + 207 for (int i = 0; i < mCameraIds.length; i++) { 208 String deviceId = mCameraIds[i]; 219 Log.i(TAG, "RAW capability is not supported in camera " + mCameraIds[i] + 339 for (String deviceId : mCameraIds) { 431 for (String deviceId : mCameraIds) { [all...] |
StaticMetadataTest.java | 69 for (String id : mCameraIds) { 142 for (String id : mCameraIds) { 170 for (String id : mCameraIds) { 531 for (String id : mCameraIds) {
|
BurstCaptureTest.java | 47 for (int i = 0; i < mCameraIds.length; i++) { 49 String id = mCameraIds[i];
|
ImageWriterTest.java | 92 for (String id : mCameraIds) { 127 for (String id : mCameraIds) {
|
/cts/tests/tests/permission/src/android/permission/cts/ |
Camera2PermissionTest.java | 45 private String[] mCameraIds; 63 mCameraIds = mCameraManager.getCameraIdList(); 64 assertNotNull("Camera ids shouldn't be null", mCameraIds); 84 for (String id : mCameraIds) {
|
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
CameraControlPane.java | 140 private String[] mCameraIds; 171 if (mCameraIds != null) { 172 switchToCamera(mCameraIds[0]); 201 if (mCameraIds != null && cameraId != null) { 202 for (int i = 0; i < mCameraIds.length; i++) { 203 if (cameraId.equals(mCameraIds[i])) { 204 switchToCamera(mCameraIds[i]); 211 if (!gotCamera && mCameraIds != null) { 212 switchToCamera(mCameraIds[0]); 370 mCameraIds = null [all...] |
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
Camera2MultiViewTestCase.java | 69 protected String[] mCameraIds; 93 mCameraIds = mCameraManager.getCameraIdList(); 94 assertNotNull("Unable to get camera ids", mCameraIds); 104 int numCameras = mCameraIds.length; 107 mCameraHolders[i] = new CameraHolder(mCameraIds[i]); 108 mCameraIdMap.put(mCameraIds[i], i);
|
Camera2AndroidTestCase.java | 68 protected String[] mCameraIds; 105 mCameraIds = mCameraManager.getCameraIdList(); 106 assertNotNull("Camera ids shouldn't be null", mCameraIds);
|
Camera2SurfaceViewTestCase.java | 89 protected String[] mCameraIds; 132 mCameraIds = mCameraManager.getCameraIdList(); 133 assertNotNull("Unable to get camera ids", mCameraIds); [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
Camera2CaptureRequestTest.java | 87 for (int i = 0; i < mCameraIds.length; i++) { 89 openDevice(mCameraIds[i]); 91 Log.i(TAG, "Camera " + mCameraIds[i] + 111 getResultPrinter().printStatus(getIterationCount(), iteration + 1, mCameraIds[i]);
|
Camera2StillCaptureTest.java | 101 for (String id : mCameraIds) { 135 for (int i = 0; i < mCameraIds.length; i++) { 137 Log.i(TAG, "Testing raw capture for Camera " + mCameraIds[i]); 138 openDevice(mCameraIds[i]); 141 Log.i(TAG, "RAW capability is not supported in camera " + mCameraIds[i] + 152 mCameraIds[i]);
|
Camera2RecordingTest.java | 123 for (int i = 0; i < mCameraIds.length; i++) { 125 Log.i(TAG, "Testing basic recording for camera " + mCameraIds[i]); 128 openDevice(mCameraIds[i]); 130 Log.i(TAG, "Camera " + mCameraIds[i] + 136 Log.i(TAG, "Camera " + mCameraIds[i] + 142 initSupportedVideoSize(mCameraIds[i]); 150 mCameraIds[i]); 197 for (String id : mCameraIds) { 468 for (String id : mCameraIds) { [all...] |
/frameworks/av/camera/ndk/impl/ |
ACameraManager.h | 179 std::set<int> mCameraIds; // Init by getOrCreateCameraIdListLocked
|
/frameworks/av/media/libmedia/ |
MediaProfiles.cpp | 420 createCamcorderProfile(profiles->mCurrentCameraId, atts, profiles->mCameraIds)); 460 for (size_t i = 0, n = mCameraIds.size(); i < n; ++i) { 461 if (mCameraIds[i] == cameraId) { 473 initRequiredProfileRefs(mCameraIds); 538 for (size_t cameraId = 0; cameraId < mCameraIds.size(); ++cameraId) { 775 profiles->mCameraIds.push(0); [all...] |