/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 70 private CameraManager mCameraManager; field in CameraManagerTest 80 mCameraManager = (CameraManager)context.getSystemService(Context.CAMERA_SERVICE); in setContext() 81 assertNotNull("Can't connect to camera manager", mCameraManager); in setContext() 143 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerGetDeviceIdList() 160 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetDeviceIdList() 201 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerGetCameraCharacteristics() 203 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetCameraCharacteristics() 211 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerInvalidDevice() 220 mCameraManager.getCameraCharacteristics( in testCameraManagerInvalidDevice() 236 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerOpenCamerasSerially() [all …]
|
D | FlashlightTest.java | 56 new StaticMetadata(mCameraManager.getCameraCharacteristics(id), in setUp() 76 mCameraManager.registerTorchCallback(torchListener, mHandler); // should get OFF in testSetTorchModeOnOff() 78 mCameraManager.setTorchMode(id, true); // should get ON in testSetTorchModeOnOff() 80 mCameraManager.setTorchMode(id, false); // should get OFF in testSetTorchModeOnOff() 95 mCameraManager.unregisterTorchCallback(torchListener); in testSetTorchModeOnOff() 101 mCameraManager.registerTorchCallback(torchListener, mHandler); // should get OFF. in testSetTorchModeOnOff() 106 mCameraManager.setTorchMode(id, true); in testSetTorchModeOnOff() 113 mCameraManager.setTorchMode(id, false); in testSetTorchModeOnOff() 123 mCameraManager.unregisterTorchCallback(torchListener); in testSetTorchModeOnOff() 147 mCameraManager.registerTorchCallback(executor, torchListener); in testTorchCallback() [all …]
|
D | AllocationTest.java | 78 private CameraManager mCameraManager; field in AllocationTest 96 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in setContext() 97 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext() 103 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 547 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testBlackWhite() 557 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testBlackWhite() 626 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testParamSensitivity() 636 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testParamSensitivity() 763 assertNotNull("No camera manager", mCameraManager); in forEachCamera() 769 mCameraManager.getCameraCharacteristics(mCameraIds[i]); in forEachCamera() [all …]
|
D | PerformanceTest.java | 152 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(id)); in testCameraLaunch() 366 id, mCameraManager, formats[j], /*bound*/null).get(0); in testSingleCaptureForFormat() 554 id, mCameraManager, ImageFormat.YUV_420_888, /*bound*/null).get(0); in testMultipleCapture() 1291 mCameraManager.getCameraCharacteristics(cameraId), CheckLevel.ASSERT, in isReprocessSupported() 1351 cameraId, mCameraManager, format, in initializeImageReader() 1361 mCameraManager, cameraId, mCameraListener, mHandler); in simpleOpenCamera() 1363 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in simpleOpenCamera()
|
D | LogicalCameraDeviceTest.java | 734 getMaxPreviewSize(mCamera.getId(), mCameraManager, in testActivePhysicalId() 864 cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in findCommonPreviewSize() 869 mCameraManager.getCameraCharacteristics(physicalCameraId); in findCommonPreviewSize() 879 getSupportedPreviewSizes(physicalCameraId, mCameraManager, PREVIEW_SIZE_BOUND)); in findCommonPreviewSize()
|
D | SurfaceViewPreviewTest.java | 212 Size maxYuvSize = getSupportedPreviewSizes(cameraId, mCameraManager, null).get(0); in preparePerformanceTestByCamera() 779 mCamera.getId(), mCameraManager, PREVIEW_SIZE_BOUND); in previewTestByCamera() 834 Size maxYuvSize = getSupportedPreviewSizes(cameraId, mCameraManager, yuvSizeBound).get(0); in surfaceSetTestByCamera()
|
D | StaticMetadataTest.java | 548 cameraId, mCameraManager); in getFpsForMaxSize() 566 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in initStaticMetadata()
|
D | CameraDeviceTest.java | 592 if (!(new StaticMetadata(mCameraManager.getCameraCharacteristics(mCameraIds[i]))). in testChainedOperation() 605 mCameraManager.openCamera(mCameraIds[i], cameraListener, mHandler); in testChainedOperation() 919 CameraCharacteristics characteristics = mCameraManager.getCameraCharacteristics(cameraId); in testSessionParametersStateLeakByCamera() 1099 CameraCharacteristics characteristics = mCameraManager.getCameraCharacteristics(cameraId); in testCreateSessionWithParametersByCamera() 1206 Size yuvSize = getSortedSizesForFormat(cameraId, mCameraManager, ImageFormat.YUV_420_888, in testCreateSessionsByCamera() 1208 Size jpegSize = getSortedSizesForFormat(cameraId, mCameraManager, ImageFormat.JPEG, in testCreateSessionsByCamera() 1850 createDefaultImageReader(getMaxDepthSize(mCamera.getId(), mCameraManager), in prepareCapture() local
|
D | BurstCaptureTest.java | 109 cameraId, mCameraManager, fmt, /*bound*/null).get(0); in burstTestByCamera()
|
D | ImageWriterTest.java | 175 List<Size> sizes = getSortedSizesForFormat(mCamera.getId(), mCameraManager, format, null); in readerWriterFormatTestByCamera()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | Camera2PermissionTest.java | 46 private CameraManager mCameraManager; field in Camera2PermissionTest 56 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in setContext() 57 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext() 67 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 107 CameraCharacteristics capabilities = mCameraManager.getCameraCharacteristics(id); in testCameraCharacteristicsNeedingPermission() 131 mCameraManager.unregisterAvailabilityCallback(availabilityListener); in testAvailabilityCallback() 132 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback() 133 mCameraManager.unregisterAvailabilityCallback(availabilityListener); in testAvailabilityCallback() 134 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback() 135 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback() [all …]
|
/cts/tests/tests/graphics/jni/ |
D | CameraTestHelpers.cpp | 37 mCameraManager = ACameraManager_create(); in initCamera() 38 if (mCameraManager == nullptr) { in initCamera() 43 int ret = ACameraManager_getCameraIdList(mCameraManager, &mCameraIdList); in initCamera() 61 ret = ACameraManager_openCamera(mCameraManager, mCameraId, &mDeviceCb, in initCamera() 68 ret = ACameraManager_getCameraCharacteristics(mCameraManager, mCameraId, in initCamera() 177 if (mCameraManager) { in closeCamera() 178 ACameraManager_delete(mCameraManager); in closeCamera() 179 mCameraManager = nullptr; in closeCamera()
|
D | CameraTestHelpers.h | 66 ACameraManager *mCameraManager{nullptr};
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/flashlight/ |
D | CameraFlashlightActivity.java | 44 private CameraManager mCameraManager; field in CameraFlashlightActivity 89 mCameraManager.setTorchMode(mCurrentCameraId, true); 101 mCameraManager.setTorchMode(mCurrentCameraId, false); 113 mCameraManager.setTorchMode(mCurrentCameraId, false); 184 mCameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE); in onCreate() 187 String[] cameraIds = mCameraManager.getCameraIdList(); in onCreate() 189 CameraCharacteristics info = mCameraManager.getCameraCharacteristics(id); in onCreate() 195 mCameraManager.registerTorchCallback(mTorchCallback, new Handler()); in onCreate()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2AndroidTestCase.java | 66 protected CameraManager mCameraManager; field in Camera2AndroidTestCase 91 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in setContext() 92 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext() 112 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 129 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp() 138 props = mCameraManager.getCameraCharacteristics(physicalId); in setUp() 140 mCameraManager.getCameraCharacteristics(physicalId), in setUp() 155 String[] cameraIdsPostTest = mCameraManager.getCameraIdList(); in tearDown() 238 mCameraManager, cameraId, listener, mHandler); in openDevice() 243 cameraId, mCameraManager, in openDevice() [all …]
|
D | Camera2SurfaceViewTestCase.java | 90 protected CameraManager mCameraManager; field in Camera2SurfaceViewTestCase 130 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in setUp() 131 assertNotNull("Unable to get CameraManager", mCameraManager); in setUp() 132 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 149 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp() 158 props = mCameraManager.getCameraCharacteristics(physicalId); in setUp() 160 mCameraManager.getCameraCharacteristics(physicalId), in setUp() 172 String[] cameraIdsPostTest = mCameraManager.getCameraIdList(); in tearDown() 647 mCameraManager, cameraId, mCameraListener, mHandler); in openDevice() 649 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in openDevice() [all …]
|
D | Camera2MultiViewTestCase.java | 81 private CameraManager mCameraManager; field in Camera2MultiViewTestCase 100 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in setUp() 101 assertNotNull("Unable to get CameraManager", mCameraManager); in setUp() 102 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 124 String[] cameraIdsPostTest = mCameraManager.getCameraIdList(); in tearDown() 479 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in open() 481 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(mCameraId), in open() 485 mCameraId, mCameraManager, in open()
|
/cts/tests/camera/api25test/src/android/camera/cts/api25test/ |
D | EnableZslTest.java | 44 private CameraManager mCameraManager; field in EnableZslTest 71 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in setContext() 72 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext() 79 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 128 CameraDevice camera = CameraTestUtils.openCamera(mCameraManager, cameraId, in testEnableZslValueByCamera() 132 mCameraManager.getCameraCharacteristics(cameraId), CheckLevel.ASSERT, in testEnableZslValueByCamera()
|
/cts/tests/tests/media/libimagereaderjni/ |
D | AImageReaderCts.cpp | 82 mCameraManager = ACameraManager_create(); in initCamera() 83 if (mCameraManager == nullptr) { in initCamera() 88 ret = ACameraManager_getCameraIdList(mCameraManager, &mCameraIdList); in initCamera() 105 ret = ACameraManager_openCamera(mCameraManager, mCameraId, &mDeviceCb, &mDevice); in initCamera() 111 ret = ACameraManager_getCameraCharacteristics(mCameraManager, mCameraId, &mCameraMetadata); in initCamera() 217 if (mCameraManager) { in closeCamera() 218 ACameraManager_delete(mCameraManager); in closeCamera() 219 mCameraManager = nullptr; in closeCamera() 248 ACameraManager* mCameraManager = nullptr; member in __anond2bb31fa0111::CameraHelper
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CameraPolicyTest.java | 37 private CameraManager mCameraManager; field in CameraPolicyTest 53 mCameraManager = (CameraManager) getContext().getSystemService(Context.CAMERA_SERVICE); in setUp() 100 .blockUntilOpenCamera(mCameraManager, mBackgroundHandler); in checkCanOpenCamera()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraMetadataGetter.java | 77 private CameraManager mCameraManager; field in CameraMetadataGetter 98 mCameraManager = cameraManager; in CameraMetadataGetter() 111 cameraIds = mCameraManager.getCameraIdList(); in getCameraInfo() 119 staticMetadata = mCameraManager.getCameraCharacteristics(id); in getCameraInfo() 141 staticMetadata = serialize(mCameraManager.getCameraCharacteristics(cameraId)); in getCameraInfo() 154 camera = (new BlockingCameraManager(mCameraManager)).openCamera(cameraId, in getCaptureRequestTemplates() 183 cameraIds = mCameraManager.getCameraIdList(); in getCaptureRequestTemplates() 192 camera = (new BlockingCameraManager(mCameraManager)).openCamera(id, in getCaptureRequestTemplates()
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 83 private CameraManager mCameraManager; field in SystemFeaturesTest 101 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in setUp() 166 String[] cameraIds = mCameraManager.getCameraIdList(); in checkCamera2Features() 175 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in checkCamera2Features()
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 832 if (mCameraManager) { in ~PreviewTestCase() 833 ACameraManager_delete(mCameraManager); in ~PreviewTestCase() 834 mCameraManager = nullptr; in ~PreviewTestCase() 900 mCameraManager, &mCameraIdList); in initWithErrorLog() 905 ret = ACameraManager_registerAvailabilityCallback(mCameraManager, &mServiceCb); in initWithErrorLog() 920 mCameraManager, &mServiceCb); in deInit() 956 mCameraManager, mCameraIdList->cameraIds[idx], &chars); in getCameraChars() 971 camera_status_t ret = ACameraManager_getCameraCharacteristics(mCameraManager, id, &chars); in getCameraChars() 995 return ACameraManager_openCamera(mCameraManager, cameraId, &mDeviceCb, &mDevice); in openCamera() 1514 if (!mCameraManager) { in createManager() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsService.java | 151 private CameraManager mCameraManager = null; field in ItsService 250 mCameraManager = (CameraManager) this.getSystemService(Context.CAMERA_SERVICE); in onCreate() 251 if (mCameraManager == null) { in onCreate() 254 mBlockingCameraManager = new BlockingCameraManager(mCameraManager); in onCreate() 369 mItsCameraIdList = ItsUtils.getItsCompatibleCameraIds(mCameraManager); in openCameraDevice() 375 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(camId); in openCameraDevice() 391 mCameraCharacteristics = mCameraManager.getCameraCharacteristics(cameraId); in openCameraDevice() 398 mPhysicalCameraChars.put(id, mCameraManager.getCameraCharacteristics(id)); in openCameraDevice() 934 devices = mCameraManager.getCameraIdList(); 945 mCameraManager.getCameraCharacteristics(cameraId); [all …]
|
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
D | CameraDeviceInfo.java | 54 private CameraManager mCameraManager; field in CameraDeviceInfo.CameraCharacteristicsStorer 63 mCameraManager = cameraManager; in CameraCharacteristicsStorer() 69 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in storeCameraInfo()
|