/cts/tests/tests/permission/src/android/permission/cts/ |
D | Camera2PermissionTest.java | 47 private CameraManager mCameraManager; field in Camera2PermissionTest 57 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in setContext() 58 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext() 68 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 109 CameraCharacteristics characteristics = mCameraManager.getCameraCharacteristics(id); in testSystemCameraDiscovery() 127 CameraCharacteristics capabilities = mCameraManager.getCameraCharacteristics(id); in testCameraCharacteristicsNeedingPermission() 151 mCameraManager.unregisterAvailabilityCallback(availabilityListener); in testAvailabilityCallback() 152 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback() 153 mCameraManager.unregisterAvailabilityCallback(availabilityListener); in testAvailabilityCallback() 154 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FlashlightTest.java | 65 new StaticMetadata(mCameraManager.getCameraCharacteristics(id), in setUp() 86 mCameraManager.registerTorchCallback(torchListener, mHandler); // should get OFF in testSetTorchModeOnOff() 88 mCameraManager.setTorchMode(id, true); // should get ON in testSetTorchModeOnOff() 90 mCameraManager.setTorchMode(id, false); // should get OFF in testSetTorchModeOnOff() 105 mCameraManager.unregisterTorchCallback(torchListener); in testSetTorchModeOnOff() 111 mCameraManager.registerTorchCallback(torchListener, mHandler); // should get OFF. in testSetTorchModeOnOff() 116 mCameraManager.setTorchMode(id, true); in testSetTorchModeOnOff() 123 mCameraManager.setTorchMode(id, false); in testSetTorchModeOnOff() 133 mCameraManager.unregisterTorchCallback(torchListener); in testSetTorchModeOnOff() 158 mCameraManager.registerTorchCallback(executor, torchListener); in testTorchCallback() [all …]
|
D | IdleUidTest.java | 102 assertCameraAccess(mCameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera() 108 assertCameraAccess(mCameraManager, cameraId, false, handler); in testCameraAccessForIdleUidByCamera() 115 assertCameraAccess(mCameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera() 163 mCameraManager.openCamera(cameraId, callback, handler); in testCameraAccessBecomingInactiveUidByCamera()
|
D | AllocationTest.java | 549 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testBlackWhite() 559 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testBlackWhite() 629 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testParamSensitivity() 639 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testParamSensitivity() 766 assertNotNull("No camera manager", mCameraManager); in forEachCamera() 772 mCameraManager.getCameraCharacteristics(mCameraIdsUnderTest[i]); in forEachCamera() 804 mCameraManager, cameraId, mCameraListener, mHandler); in openDevice() 829 assertNotNull("No camera manager", mCameraManager); in forEachSize() 832 mCameraManager.getCameraCharacteristics(mCamera.getId()); in forEachSize() 847 mCameraManager); in forEachSize()
|
D | LogicalCameraDeviceTest.java | 743 mCameraManager.registerAvailabilityCallback(ac, mHandler); in testActivePhysicalId() 754 mCameraManager.unregisterAvailabilityCallback(ac); in testActivePhysicalId() 779 getMaxPreviewSize(mCamera.getId(), mCameraManager, in testActivePhysicalId() 932 cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in findCommonPreviewSize() 937 mCameraManager.getCameraCharacteristics(physicalCameraId); in findCommonPreviewSize() 947 getSupportedPreviewSizes(physicalCameraId, mCameraManager, PREVIEW_SIZE_BOUND)); in findCommonPreviewSize()
|
D | CameraDeviceTest.java | 607 … if (!(new StaticMetadata(mCameraManager.getCameraCharacteristics(mCameraIdsUnderTest[i]))). in testChainedOperation() 620 mCameraManager.openCamera(mCameraIdsUnderTest[i], cameraListener, mHandler); in testChainedOperation() 940 CameraCharacteristics characteristics = mCameraManager.getCameraCharacteristics(cameraId); in testSessionParametersStateLeakByCamera() 1121 CameraCharacteristics characteristics = mCameraManager.getCameraCharacteristics(cameraId); in testCreateSessionWithParametersByCamera() 1228 Size yuvSize = getSortedSizesForFormat(cameraId, mCameraManager, ImageFormat.YUV_420_888, in testCreateSessionsByCamera() 1230 Size jpegSize = getSortedSizesForFormat(cameraId, mCameraManager, ImageFormat.JPEG, in testCreateSessionsByCamera() 1872 createDefaultImageReader(getMaxDepthSize(mCamera.getId(), mCameraManager), in prepareCapture() local 2782 cam0 = CameraTestUtils.openCamera(mCameraManager, id0, cam0Cb, mHandler); in testTwoCameraDevicesAudioRestriction() 2792 cam1 = CameraTestUtils.openCamera(mCameraManager, id1, cam1Cb, mHandler); in testTwoCameraDevicesAudioRestriction()
|
D | MultiResolutionImageReaderTest.java | 158 physicalCameraId, mCameraManager); in testMultiResolutionCaptureCharacteristics() 167 physicalCameraId, mCameraManager, /*maxResolution*/true); in testMultiResolutionCaptureCharacteristics()
|
/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/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | Camera2ParameterizedTestCase.java | 34 protected CameraManager mCameraManager; field in Camera2ParameterizedTestCase 61 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in setUp() 62 assertNotNull("Unable to get CameraManager", mCameraManager); in setUp() 82 mAdoptShellPerm && mUseAll ? mCameraManager.getCameraIdListNoLazy() : in deriveCameraIdsUnderTest() 83 CameraTestUtils.getCameraIdListForTesting(mCameraManager, mAdoptShellPerm); in deriveCameraIdsUnderTest()
|
/cts/tests/camera/api31test/src/android/camera/cts/api31test/ |
D | SPerfClassTest.java | 66 private CameraManager mCameraManager; field in SPerfClassTest 75 mCameraManager = context.getSystemService(CameraManager.class); in setContext() 76 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext() 83 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 111 mCameraManager, cameraId); in testSPerfClassJpegSizesByCamera() 113 mCameraManager, cameraId); in testSPerfClassJpegSizesByCamera() 118 CameraCharacteristics c = mCameraManager.getCameraCharacteristics(cameraId); in testSPerfClassJpegSizesByCamera() 136 camera = CameraTestUtils.openCamera(mCameraManager, cameraId, in testSPerfClassJpegSizesByCamera()
|
/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/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/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2AndroidTestRule.java | 70 private CameraManager mCameraManager; field in Camera2AndroidTestRule 122 return mCameraManager; in getCameraManager() 202 String[] idsUnderTest = mCameraManager.getCameraIdList(); in deriveCameraIdsUnderTest() 222 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in before() 223 assertNotNull("Can't connect to camera manager!", mCameraManager); in before() 249 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in before() 258 props = mCameraManager.getCameraCharacteristics(physicalId); in before() 260 mCameraManager.getCameraCharacteristics(physicalId), in before() 276 if (mCameraManager != null) { in after() 357 mCameraManager, cameraId, listener, mHandler); in openDevice() [all …]
|
D | Camera2AndroidTestCase.java | 127 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp() 136 props = mCameraManager.getCameraCharacteristics(physicalId); in setUp() 138 mCameraManager.getCameraCharacteristics(physicalId), in setUp() 232 mCameraManager, cameraId, listener, mHandler); in openDevice() 237 cameraId, mCameraManager, in openDevice() 239 … mOrderedVideoSizes = getSupportedVideoSizes(cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in openDevice() 240 mOrderedStillSizes = getSupportedStillSizes(cameraId, mCameraManager, null); in openDevice()
|
D | Camera2ConcurrentAndroidTestCase.java | 110 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp() 118 props = mCameraManager.getCameraCharacteristics(physicalId); in setUp() 120 mCameraManager.getCameraCharacteristics(physicalId), in setUp() 127 CameraTestUtils.getConcurrentCameraIds(mCameraManager, mAdoptShellPerm); in setUp() 246 mCameraManager, cameraId, listener, mHandler); in openDevice()
|
D | Camera2SurfaceViewTestCase.java | 145 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp() 154 props = mCameraManager.getCameraCharacteristics(physicalId); in setUp() 156 mCameraManager.getCameraCharacteristics(physicalId), in setUp() 635 mCameraManager, cameraId, mCameraListener, mHandler); in openDevice() 637 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in openDevice() 640 mOrderedPreviewSizes = getSupportedPreviewSizes(cameraId, mCameraManager, in openDevice() 642 m1080pBoundedOrderedPreviewSizes = getSupportedPreviewSizes(cameraId, mCameraManager, in openDevice() 644 … mOrderedVideoSizes = getSupportedVideoSizes(cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in openDevice() 645 mOrderedStillSizes = getSupportedStillSizes(cameraId, mCameraManager, null); in openDevice() 865 new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in isReprocessSupported()
|
D | Camera2MultiViewTestCase.java | 442 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in open() 444 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(mCameraId), in open() 448 mCameraId, mCameraManager, in open()
|
/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/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | UserRestrictionsParentTest.java | 54 private CameraManager mCameraManager; field in UserRestrictionsParentTest 75 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in setUp() 76 assertNotNull(mCameraManager); in setUp() 179 if (mCameraManager.getCameraIdList() == null in checkCanOpenCamera() 180 || mCameraManager.getCameraIdList().length == 0) { in checkCanOpenCamera() 188 successToOpen = CameraUtils.blockUntilOpenCamera(mCameraManager, mBackgroundHandler); in checkCanOpenCamera()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/ |
D | CameraBokehActivity.java | 115 private CameraManager mCameraManager; field in CameraBokehActivity 218 mCameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE); in onCreate() 220 mCameraIdList = mCameraManager.getCameraIdList(); in onCreate() 223 mCameraManager.getCameraCharacteristics(id); in onCreate() 304 mBlockingCameraManager = new BlockingCameraManager(mCameraManager); in onCreate() 597 mCameraCharacteristics = mCameraManager.getCameraCharacteristics(mCameraId); in setUpCamera()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsService.java | 172 private CameraManager mCameraManager = null; field in ItsService 278 mCameraManager = (CameraManager) this.getSystemService(Context.CAMERA_SERVICE); in onCreate() 279 if (mCameraManager == null) { in onCreate() 282 mBlockingCameraManager = new BlockingCameraManager(mCameraManager); in onCreate() 400 mItsCameraIdList = ItsUtils.getItsCompatibleCameraIds(mCameraManager); in openCameraDevice() 406 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(camId); in openCameraDevice() 422 mCameraCharacteristics = mCameraManager.getCameraCharacteristics(cameraId); in openCameraDevice() 429 mPhysicalCameraChars.put(id, mCameraManager.getCameraCharacteristics(id)); in openCameraDevice() 986 devices = mCameraManager.getCameraIdList(); 997 mCameraManager.getCameraCharacteristics(cameraId); [all …]
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 942 if (mCameraManager) { in ~PreviewTestCase() 943 ACameraManager_delete(mCameraManager); in ~PreviewTestCase() 944 mCameraManager = nullptr; in ~PreviewTestCase() 1014 mCameraManager, &mCameraIdList); in initWithErrorLog() 1023 ret = ACameraManager_registerAvailabilityCallback(mCameraManager, &mServiceCb); in initWithErrorLog() 1040 mCameraManager, &mServiceCb); in deInit() 1100 mCameraManager, cameraId, &chars); in getCameraChars() 1115 camera_status_t ret = ACameraManager_getCameraCharacteristics(mCameraManager, id, &chars); in getCameraChars() 1139 return ACameraManager_openCamera(mCameraManager, cameraId, &mDeviceCb, &mDevice); in openCamera() 1666 if (!mCameraManager) { in createManager() [all …]
|
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
D | CameraDeviceInfo.java | 59 private CameraManager mCameraManager; field in CameraDeviceInfo.CameraCharacteristicsStorer 68 mCameraManager = cameraManager; in CameraCharacteristicsStorer() 74 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in storeCameraInfo() 90 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in storePhysicalCameraInfo()
|