/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 130 for (CameraHolder camera : mCameraHolders) { in tearDown() 131 if (camera.isOpened()) { in tearDown() 132 camera.close(); in tearDown() 133 camera = null; in tearDown() 235 CameraHolder camera = getCameraHolder(cameraId); in openCamera() local 236 assertFalse("Camera has already opened", camera.isOpened()); in openCamera() 237 camera.open(); in openCamera() 242 CameraHolder camera = getCameraHolder(cameraId); in closeCamera() local 243 camera.close(); in closeCamera() 248 CameraHolder camera = getCameraHolder(cameraId); in createSessionWithConfigs() local [all …]
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraCameraXTest.kt | 17 package android.virtualdevice.cts.camera in <lambda>() 22 import android.companion.virtual.camera.VirtualCamera in <lambda>() 23 import android.companion.virtual.camera.VirtualCameraCallback in <lambda>() 24 import android.companion.virtual.camera.VirtualCameraConfig in <lambda>() 33 import android.virtualdevice.cts.camera.VirtualCameraUtils.BACK_CAMERA_ID in <lambda>() 34 import android.virtualdevice.cts.camera.VirtualCameraUtils.INFO_DEVICE_ID in <lambda>() 35 import android.virtualdevice.cts.camera.VirtualCameraUtils.assertImagesSimilar in <lambda>() 36 import android.virtualdevice.cts.camera.VirtualCameraUtils.loadBitmapFromRaw in <lambda>() 39 import androidx.camera.camera2.Camera2Config in <lambda>() 40 import androidx.camera.camera2.interop.Camera2CameraInfo in <lambda>() [all …]
|
D | VirtualCameraNdkTest.java | 17 package android.virtualdevice.cts.camera; 21 import static android.companion.virtual.camera.VirtualCameraConfig.SENSOR_ORIENTATION_0; 23 import static android.virtualdevice.cts.camera.VirtualCameraUtils.FRONT_CAMERA_ID; 24 import static android.virtualdevice.cts.camera.VirtualCameraUtils.createVirtualCameraConfig; 39 import android.companion.virtual.camera.VirtualCamera; 40 import android.companion.virtual.camera.VirtualCameraCallback; 41 import android.companion.virtual.camera.VirtualCameraConfig; 50 import android.virtualdevice.cts.camera.util.NativeCameraManager; 51 import android.virtualdevice.cts.camera.util.NativeCameraTestActivity;
|
D | VirtualCameraCaptureTest.java | 17 package android.virtualdevice.cts.camera; 22 import static android.companion.virtual.camera.VirtualCameraConfig.SENSOR_ORIENTATION_0; 27 import static android.virtualdevice.cts.camera.VirtualCameraUtils.BACK_CAMERA_ID; 28 import static android.virtualdevice.cts.camera.VirtualCameraUtils.FRONT_CAMERA_ID; 29 import static android.virtualdevice.cts.camera.VirtualCameraUtils.assertImagesSimilar; 30 import static android.virtualdevice.cts.camera.VirtualCameraUtils.createVirtualCameraConfig; 31 import static android.virtualdevice.cts.camera.VirtualCameraUtils.imageHasColor; 32 import static android.virtualdevice.cts.camera.VirtualCameraUtils.jpegImageToBitmap; 33 import static android.virtualdevice.cts.camera.VirtualCameraUtils.loadBitmapFromRaw; 34 import static android.virtualdevice.cts.camera.VirtualCameraUtils.paintSurface; [all …]
|
D | VirtualCameraPermissionTest.java | 17 package android.virtualdevice.cts.camera; 23 import static android.companion.virtual.camera.VirtualCameraConfig.SENSOR_ORIENTATION_0; 25 import static android.virtualdevice.cts.camera.VirtualCameraUtils.FRONT_CAMERA_ID; 26 import static android.virtualdevice.cts.camera.VirtualCameraUtils.createVirtualCameraConfig; 27 import static android.virtualdevice.cts.camera.VirtualCameraUtils.grantCameraPermission; 45 import android.companion.virtual.camera.VirtualCameraCallback; 46 import android.companion.virtual.camera.VirtualCameraConfig;
|
D | VirtualCameraConfigTest.java | 17 package android.virtualdevice.cts.camera; 21 import static android.companion.virtual.camera.VirtualCameraConfig.SENSOR_ORIENTATION_0; 25 import static android.virtualdevice.cts.camera.VirtualCameraUtils.assertVirtualCameraConfig; 26 import static android.virtualdevice.cts.camera.VirtualCameraUtils.createVirtualCameraConfig; 27 import static android.virtualdevice.cts.camera.VirtualCameraUtils.getMaximumTextureSize; 35 import android.companion.virtual.camera.VirtualCameraCallback; 36 import android.companion.virtual.camera.VirtualCameraConfig;
|
D | VirtualCameraTest.java | 17 package android.virtualdevice.cts.camera; 22 import static android.companion.virtual.camera.VirtualCameraConfig.SENSOR_ORIENTATION_0; 23 import static android.companion.virtual.camera.VirtualCameraConfig.SENSOR_ORIENTATION_180; 24 import static android.companion.virtual.camera.VirtualCameraConfig.SENSOR_ORIENTATION_270; 25 import static android.companion.virtual.camera.VirtualCameraConfig.SENSOR_ORIENTATION_90; 32 import static android.virtualdevice.cts.camera.VirtualCameraUtils.BACK_CAMERA_ID; 33 import static android.virtualdevice.cts.camera.VirtualCameraUtils.FRONT_CAMERA_ID; 34 import static android.virtualdevice.cts.camera.VirtualCameraUtils.INFO_DEVICE_ID; 35 import static android.virtualdevice.cts.camera.VirtualCameraUtils.assertVirtualCameraConfig; 36 import static android.virtualdevice.cts.camera.VirtualCameraUtils.createVirtualCameraConfig; [all …]
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_CameraVulkanGpuTest.cpp | 60 CameraHelper camera; in loadCameraAndVerifyFrameImport() local 63 ASSERT(camera.initCamera(imageReader.getNativeWindow()) >= 0, in loadCameraAndVerifyFrameImport() 65 ASSERT(camera.isCameraReady(), "Camera is not ready."); in loadCameraAndVerifyFrameImport() 68 ASSERT(camera.takePicture() >= 0, "Camera failed to take picture."); in loadCameraAndVerifyFrameImport() 106 CameraHelper camera; in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888() local 109 ASSERT(camera.initCamera(imageReader.getNativeWindow()) >= 0, in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888() 111 ASSERT(camera.isCameraReady(), "Camera is not ready."); in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888() 114 ASSERT(camera.takePicture() >= 0, "Camera failed to take picture."); in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | Camera_SizeTest.java | 52 Camera camera = Camera.open(0); in testConstructor() local 53 Parameters parameters = camera.getParameters(); in testConstructor() 59 camera.release(); in testConstructor() 77 Camera camera = Camera.open(id); in testMaxAspectRatios() local 78 Parameters parameters = camera.getParameters(); in testMaxAspectRatios() 104 camera.release(); in testMaxAspectRatios()
|
D | CameraPerformanceTestHelper.java | 68 public void onError(int error, Camera camera) { in initializeMessageLooper() 121 public void onPreviewFrame(byte[] data, android.hardware.Camera camera) { in startPreview() 150 public void onAutoFocus(boolean success, Camera camera) { in autoFocus() 177 public void onPictureTaken(byte[] rawData, Camera camera) { in takePicture()
|
/cts/tests/camera/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/ |
D | Camera2HeadlessSystemUserTest.java | 17 package android.camera.cts.headlesssystemusertest; 52 import com.android.internal.camera.flags.Flags; 111 CameraDevice camera = null; in testHeadlessSystemUser_OpenCamera() local 116 camera = CameraTestUtils.verifyCameraStateOpened(mCameraIdsUnderTest[i], in testHeadlessSystemUser_OpenCamera() 119 if (camera != null) { in testHeadlessSystemUser_OpenCamera() 120 camera.close(); in testHeadlessSystemUser_OpenCamera() 168 CameraDevice camera = null; in testHeadlessSystemUser_SwitchForegroundUser() local 173 camera = CameraTestUtils.verifyCameraStateOpened(mCameraIdsUnderTest[i], in testHeadlessSystemUser_SwitchForegroundUser() 178 if (camera != null) { in testHeadlessSystemUser_SwitchForegroundUser() 179 camera.close(); in testHeadlessSystemUser_SwitchForegroundUser()
|
/cts/apps/CtsVerifier/res/layout/ |
D | OWNERS | 5 per-file camera_*.xml = file:platform/frameworks/av:/camera/OWNERS 6 per-file cam_*.xml = file:platform/frameworks/av:/camera/OWNERS 7 per-file co_main.xml,ci_main.xml,cb_main.xml,cf_main.xml = file:platform/frameworks/av:/camera/OWNE…
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FastBasicsTest.java | 191 public void onPictureTaken(byte[] data, Camera camera) { in onPictureTaken() argument 206 Camera camera = null; in testCamera1() local 210 camera = Camera.open(i); in testCamera1() 217 camera.setPreviewTexture(st); in testCamera1() 218 camera.startPreview(); in testCamera1() 222 camera.takePicture(null, null, listener); in testCamera1() 233 if (camera != null) { in testCamera1() 234 camera.release(); in testCamera1()
|
D | CameraManagerTest.java | 354 CameraDevice camera = null; in testCameraManagerOpenCamerasSerially() local 372 camera = CameraTestUtils.verifyCameraStateOpened(ids[i], mockListener); in testCameraManagerOpenCamerasSerially() 374 if (camera != null) { in testCameraManagerOpenCamerasSerially() 375 camera.close(); in testCameraManagerOpenCamerasSerially() 463 CameraDevice camera; in testCameraManagerOpenAllCameras() local 480 camera = argument.getValue(); in testCameraManagerOpenAllCameras() 482 + ids[i], camera); in testCameraManagerOpenAllCameras() 486 camera = CameraTestUtils.verifyCameraStateOpened(cameraId, in testCameraManagerOpenAllCameras() 490 camera = null; // unreachable. but need this for java compiler in testCameraManagerOpenAllCameras() 494 cameraList.add(camera); in testCameraManagerOpenAllCameras() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | CameraTests.java | 42 Camera camera = new Camera(); in testBasicTranslate() local 43 camera.translate(0, 50, 0); in testBasicTranslate() 44 camera.applyToCanvas(canvas); in testBasicTranslate()
|
/cts/apps/CtsVerifier/res/layout-port/ |
D | OWNERS | 4 per-file camera_*.xml = file:platform/frameworks/av:/camera/OWNERS 5 per-file cam_*.xml = file:platform/frameworks/av:/camera/OWNERS
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | PhotoCaptureActivity.java | 17 package com.android.cts.verifier.camera.fov; 228 Camera camera = Camera.open(cameraId); in onResume() local 232 camera.getParameters().getSupportedPictureSizes(); in onResume() 237 camera.release(); in onResume() 281 public void onPictureTaken(byte[] data, Camera camera) { in onPictureTaken() argument 401 Camera camera = Camera.open(cameraId); in showNextDialogToChoosePreviewSize() local 402 final List<Camera.Size> sizes = camera.getParameters() in showNextDialogToChoosePreviewSize() 441 camera.release(); in showNextDialogToChoosePreviewSize() 550 private static String getFocusMode(Camera camera) { in getFocusMode() argument 551 List<String> modes = camera.getParameters().getSupportedFocusModes(); in getFocusMode() [all …]
|
/cts/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraUtils.java | 178 Camera camera = null; in isExternal() local 183 camera = Camera.open(cameraId); in isExternal() 184 params = camera.getParameters(); in isExternal() 186 if (camera != null) { in isExternal() 187 camera.release(); in isExternal() 322 public static List<Size> getSupportedVideoSizes(Camera camera) { in getSupportedVideoSizes() argument 323 Parameters parameters = camera.getParameters(); in getSupportedVideoSizes()
|
/cts/apps/CtsVerifier/ |
D | Android.bp | 72 "cts-camera-performance-tests", 196 ":jetpack-camera-app", 224 ":camera-its", 225 ":camera-webcam-test", 235 …on merge_zips) $(out) $(genDir)/cts-verifier.zip $(location :camera-its) $(location :camera-webcam…
|
/cts/tests/camera/api25test/src/android/camera/cts/api25test/ |
D | EnableZslTest.java | 17 package android.camera.cts.api25test; 128 CameraDevice camera = CameraTestUtils.openCamera(mCameraManager, cameraId, in testEnableZslValueByCamera() local 137 CaptureRequest.Builder request = camera.createCaptureRequest(sTemplates[i]); in testEnableZslValueByCamera() 169 camera.close(); in testEnableZslValueByCamera()
|
D | EnableZslTestActivity.java | 16 package android.camera.cts.api25test;
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | ResourceManagerRecorderActivity.java | 148 private void setSupportedResolution(Camera camera) { in setSupportedResolution() argument 149 List<Camera.Size> videoSizes = CameraUtils.getSupportedVideoSizes(camera); in setSupportedResolution() 259 private void recordVideoUsingCamera(Camera camera, String fileName, int durMs) in recordVideoUsingCamera() argument 261 Camera.Parameters params = camera.getParameters(); in recordVideoUsingCamera() 264 camera.unlock(); in recordVideoUsingCamera() 284 mMediaRecorder.setCamera(camera); in recordVideoUsingCamera()
|
/cts/tests/mediapc/common/src/android/mediapc/cts/common/ |
D | CameraRequirement.java | 64 public void setCamera2NightExtensionSupported(int camera, boolean supported) { in setCamera2NightExtensionSupported() argument 65 if (camera == PRIMARY_REAR_CAMERA) { in setCamera2NightExtensionSupported() 68 } else if (camera == PRIMARY_FRONT_CAMERA) { in setCamera2NightExtensionSupported() 74 public void setCameraXNightExtensionSupported(int camera, boolean supported) { in setCameraXNightExtensionSupported() argument 75 if (camera == PRIMARY_REAR_CAMERA) { in setCameraXNightExtensionSupported() 78 } else if (camera == PRIMARY_FRONT_CAMERA) { in setCameraXNightExtensionSupported() 367 public void setDynamicRangeTenBitsSupported(int camera, boolean supported) { in setDynamicRangeTenBitsSupported() argument 368 if (camera == PRIMARY_REAR_CAMERA) { in setDynamicRangeTenBitsSupported() 371 } else if (camera == PRIMARY_FRONT_CAMERA) { in setDynamicRangeTenBitsSupported() 443 public void setJpegRSupported(int camera, boolean supported) { in setJpegRSupported() argument [all …]
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | Camera1Activity.java | 17 package android.hardware.multiprocess.camera.cts; 56 public void onError(int i, Camera camera) { in onResume()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/ |
D | OWNERS | 2 include platform/frameworks/av:/camera/OWNERS
|