Home
last modified time | relevance | path

Searched refs:mCameraManager (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/permission/src/android/permission/cts/
DCamera2PermissionTest.java42 private CameraManager mCameraManager; field in Camera2PermissionTest
52 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in setContext()
53 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext()
63 mCameraIds = mCameraManager.getCameraIdList(); in setUp()
104 mCameraManager.unregisterAvailabilityCallback(availabilityListener); in testAvailabilityCallback()
105 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback()
106 mCameraManager.unregisterAvailabilityCallback(availabilityListener); in testAvailabilityCallback()
107 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback()
108 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback()
109 mCameraManager.unregisterAvailabilityCallback(availabilityListener); in testAvailabilityCallback()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java61 private CameraManager mCameraManager; field in CameraManagerTest
71 mCameraManager = (CameraManager)context.getSystemService(Context.CAMERA_SERVICE); in setContext()
72 assertNotNull("Can't connect to camera manager", mCameraManager); in setContext()
134 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerGetDeviceIdList()
151 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetDeviceIdList()
192 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerGetCameraCharacteristics()
194 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetCameraCharacteristics()
202 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerInvalidDevice()
211 mCameraManager.getCameraCharacteristics( in testCameraManagerInvalidDevice()
227 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerOpenCamerasSerially()
[all …]
DFlashlightTest.java58 new StaticMetadata(mCameraManager.getCameraCharacteristics(id), in setUp()
78 mCameraManager.registerTorchCallback(torchListener, mHandler); // should get OFF in testSetTorchModeOnOff()
80 mCameraManager.setTorchMode(id, true); // should get ON in testSetTorchModeOnOff()
82 mCameraManager.setTorchMode(id, false); // should get OFF in testSetTorchModeOnOff()
97 mCameraManager.unregisterTorchCallback(torchListener); in testSetTorchModeOnOff()
103 mCameraManager.registerTorchCallback(torchListener, mHandler); // should get OFF. in testSetTorchModeOnOff()
108 mCameraManager.setTorchMode(id, true); in testSetTorchModeOnOff()
115 mCameraManager.setTorchMode(id, false); in testSetTorchModeOnOff()
125 mCameraManager.unregisterTorchCallback(torchListener); in testSetTorchModeOnOff()
149 mCameraManager.registerTorchCallback(executor, torchListener); in testTorchCallback()
[all …]
DAllocationTest.java80 private CameraManager mCameraManager; field in AllocationTest
98 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in setContext()
99 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext()
105 mCameraIds = mCameraManager.getCameraIdList(); in setUp()
549 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testBlackWhite()
559 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testBlackWhite()
628 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testParamSensitivity()
638 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testParamSensitivity()
765 assertNotNull("No camera manager", mCameraManager); in forEachCamera()
771 mCameraManager.getCameraCharacteristics(mCameraIds[i]); in forEachCamera()
[all …]
DExtendedCameraCharacteristicsTest.java70 private CameraManager mCameraManager; field in ExtendedCameraCharacteristicsTest
118 mCameraManager = (CameraManager)context.getSystemService(Context.CAMERA_SERVICE); in setContext()
119 assertNotNull("Can't connect to camera manager", mCameraManager); in setContext()
125 mIds = mCameraManager.getCameraIdList(); in setUp()
129 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(mIds[i]); in setUp()
230 mIds[counter], mCameraManager, FULLHD); in testAvailableStreamConfigs()
611 ImageFormat.JPEG, mIds[counter], mCameraManager)); in testStaticBurstCharacteristics()
1203 mIds[counter], mCameraManager); in testStreamConfigurationMap()
1260 mIds[counter], mCameraManager); in testConstrainedHighSpeedCapability()
1440 mCameraManager.getCameraCharacteristics(physicalCameraId); in testLogicalCameraCharacteristics()
DPerformanceTest.java136 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(id)); in testCameraLaunch()
305 id, mCameraManager, ImageFormat.YUV_420_888, /*bound*/null).get(0); in testSingleCapture()
470 id, mCameraManager, ImageFormat.YUV_420_888, /*bound*/null).get(0); in testMultipleCapture()
1068 cameraId, mCameraManager, format, in initializeImageReader()
1078 mCameraManager, cameraId, mCameraListener, mHandler); in simpleOpenCamera()
1080 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in simpleOpenCamera()
DLogicalCameraDeviceTest.java89 mCameraManager.getCameraCharacteristics(cameraId), in setUp()
524 cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in findCommonPreviewSize()
529 mCameraManager.getCameraCharacteristics(physicalCameraId); in findCommonPreviewSize()
535 getSupportedPreviewSizes(physicalCameraId, mCameraManager, PREVIEW_SIZE_BOUND)); in findCommonPreviewSize()
DSurfaceViewPreviewTest.java204 Size maxYuvSize = getSupportedPreviewSizes(cameraId, mCameraManager, null).get(0); in preparePerformanceTestByCamera()
758 mCamera.getId(), mCameraManager, PREVIEW_SIZE_BOUND); in previewTestByCamera()
813 Size maxYuvSize = getSupportedPreviewSizes(cameraId, mCameraManager, yuvSizeBound).get(0); in surfaceSetTestByCamera()
DStaticMetadataTest.java546 cameraId, mCameraManager); in getFpsForMaxSize()
564 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in initStaticMetadata()
DCameraDeviceTest.java596 if (!(new StaticMetadata(mCameraManager.getCameraCharacteristics(mCameraIds[i]))). in testChainedOperation()
604 mCameraManager.openCamera(mCameraIds[i], cameraListener, mHandler); in testChainedOperation()
906 CameraCharacteristics characteristics = mCameraManager.getCameraCharacteristics(cameraId); in testSessionParametersStateLeakByCamera()
1086 CameraCharacteristics characteristics = mCameraManager.getCameraCharacteristics(cameraId); in testCreateSessionWithParametersByCamera()
1193 Size yuvSize = getSortedSizesForFormat(cameraId, mCameraManager, ImageFormat.YUV_420_888, in testCreateSessionsByCamera()
1195 Size jpegSize = getSortedSizesForFormat(cameraId, mCameraManager, ImageFormat.JPEG, in testCreateSessionsByCamera()
1837 createDefaultImageReader(getMaxDepthSize(mCamera.getId(), mCameraManager), in prepareCapture() local
DBurstCaptureTest.java89 cameraId, mCameraManager, ImageFormat.YUV_420_888, /*bound*/null).get(0); in yuvBurstTestByCamera()
/cts/tests/tests/graphics/jni/
DCameraTestHelpers.cpp37 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()
DCameraTestHelpers.h66 ACameraManager *mCameraManager{nullptr};
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/flashlight/
DCameraFlashlightActivity.java44 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/
DEnableZslTest.java44 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/
DCamera2AndroidTestCase.java66 protected CameraManager mCameraManager; field in Camera2AndroidTestCase
88 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in setContext()
89 assertNotNull("Can't connect to camera manager!", mCameraManager); in setContext()
109 mCameraIds = mCameraManager.getCameraIdList(); in setUp()
120 mCameraManager.getCameraCharacteristics(cameraId), in setUp()
128 String[] cameraIdsPostTest = mCameraManager.getCameraIdList(); in tearDown()
211 mCameraManager, cameraId, listener, mHandler); in openDevice()
213 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in openDevice()
217 cameraId, mCameraManager, in openDevice()
219 … mOrderedVideoSizes = getSupportedVideoSizes(cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in openDevice()
[all …]
DCamera2SurfaceViewTestCase.java89 protected CameraManager mCameraManager; field in Camera2SurfaceViewTestCase
132 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in setUp()
133 assertNotNull("Unable to get CameraManager", mCameraManager); in setUp()
134 mCameraIds = mCameraManager.getCameraIdList(); in setUp()
147 String[] cameraIdsPostTest = mCameraManager.getCameraIdList(); in tearDown()
592 mCameraManager, cameraId, mCameraListener, mHandler); in openDevice()
594 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in openDevice()
597 mOrderedPreviewSizes = getSupportedPreviewSizes(cameraId, mCameraManager, in openDevice()
599 m1080pBoundedOrderedPreviewSizes = getSupportedPreviewSizes(cameraId, mCameraManager, in openDevice()
601 … mOrderedVideoSizes = getSupportedVideoSizes(cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in openDevice()
[all …]
DCamera2MultiViewTestCase.java74 private CameraManager mCameraManager; field in Camera2MultiViewTestCase
93 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in setUp()
94 assertNotNull("Unable to get CameraManager", mCameraManager); in setUp()
95 mCameraIds = mCameraManager.getCameraIdList(); in setUp()
118 String[] cameraIdsPostTest = mCameraManager.getCameraIdList(); in tearDown()
434 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in open()
436 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(mCameraId), in open()
440 mCameraId, mCameraManager, in open()
/cts/tests/tests/media/libimagereaderjni/
DAImageReaderCts.cpp81 mCameraManager = ACameraManager_create(); in initCamera()
82 if (mCameraManager == nullptr) { in initCamera()
87 ret = ACameraManager_getCameraIdList(mCameraManager, &mCameraIdList); in initCamera()
104 ret = ACameraManager_openCamera(mCameraManager, mCameraId, &mDeviceCb, &mDevice); in initCamera()
110 ret = ACameraManager_getCameraCharacteristics(mCameraManager, mCameraId, &mCameraMetadata); in initCamera()
216 if (mCameraManager) { in closeCamera()
217 ACameraManager_delete(mCameraManager); in closeCamera()
218 mCameraManager = nullptr; in closeCamera()
247 ACameraManager* mCameraManager = nullptr; member in __anond2bb31fa0111::CameraHelper
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCameraPolicyTest.java40 private CameraManager mCameraManager; field in CameraPolicyTest
58 mCameraManager = (CameraManager) getContext().getSystemService(Context.CAMERA_SERVICE); in setUp()
132 .blockUntilOpenCamera(mCameraManager, mBackgroundHandler); in checkCanOpenCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java77 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/
DSystemFeaturesTest.java68 private CameraManager mCameraManager; field in SystemFeaturesTest
87 mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in setUp()
148 String[] cameraIds = mCameraManager.getCameraIdList(); in checkCamera2Features()
156 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in checkCamera2Features()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java141 private CameraManager mCameraManager = null; field in ItsService
236 mCameraManager = (CameraManager) this.getSystemService(Context.CAMERA_SERVICE); in onCreate()
237 if (mCameraManager == null) { in onCreate()
240 mBlockingCameraManager = new BlockingCameraManager(mCameraManager); in onCreate()
353 devices = mCameraManager.getCameraIdList(); in openCameraDevice()
360 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(camId); in openCameraDevice()
376 mCameraCharacteristics = mCameraManager.getCameraCharacteristics( in openCameraDevice()
902 devices = mCameraManager.getCameraIdList();
914 mCameraManager.getCameraCharacteristics(cameraId);
930 devices = mCameraManager.getCameraIdList();
[all …]
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp560 if (mCameraManager) { in ~PreviewTestCase()
561 ACameraManager_delete(mCameraManager); in ~PreviewTestCase()
562 mCameraManager = nullptr; in ~PreviewTestCase()
628 mCameraManager, &mCameraIdList); in initWithErrorLog()
633 ret = ACameraManager_registerAvailabilityCallback(mCameraManager, &mServiceCb); in initWithErrorLog()
648 mCameraManager, &mServiceCb); in deInit()
692 return ACameraManager_openCamera(mCameraManager, cameraId, &mDeviceCb, &mDevice); in openCamera()
1066 if (!mCameraManager) { in createManager()
1067 mCameraManager = ACameraManager_create(); in createManager()
1069 return mCameraManager; in createManager()
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java54 private CameraManager mCameraManager; field in CameraDeviceInfo.CameraCharacteristicsStorer
63 mCameraManager = cameraManager; in CameraCharacteristicsStorer()
69 CameraCharacteristics chars = mCameraManager.getCameraCharacteristics(cameraId); in storeCameraInfo()

12