Home
last modified time | relevance | path

Searched refs:mTestRule (Results 1 – 3 of 3) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DPerformanceTest.java132 public final Camera2AndroidTestRule mTestRule = new Camera2AndroidTestRule(mContext); field in PerformanceTest
177 double[] avgCameraLaunchTimes = new double[mTestRule.getCameraIdsUnderTest().length]; in testCameraLaunch()
180 for (String id : mTestRule.getCameraIdsUnderTest()) { in testCameraLaunch()
194 mTestRule.getCameraManager().getCameraCharacteristics(id); in testCameraLaunch()
195 mTestRule.setStaticInfo(new StaticMetadata(ch)); in testCameraLaunch()
196 boolean isColorOutputSupported = mTestRule.getStaticInfo().isColorOutputSupported(); in testCameraLaunch()
201 mTestRule.getStaticInfo().isDepthOutputSupported()); in testCameraLaunch()
213 mTestRule.getReader().setOnImageAvailableListener( in testCameraLaunch()
214 imageListener, mTestRule.getHandler()); in testCameraLaunch()
248 mTestRule.closeDevice(id); in testCameraLaunch()
[all …]
DCameraExtensionCharacteristicsTest.java81 public final Camera2AndroidTestRule mTestRule = new Camera2AndroidTestRule(mContext); field in CameraExtensionCharacteristicsTest
121 mTestRule.setCamera(CameraTestUtils.openCamera( in openDevice()
122 mTestRule.getCameraManager(), cameraId, in openDevice()
123 mTestRule.getCameraListener(), mTestRule.getHandler())); in openDevice()
124 mTestRule.getCollector().setCameraId(cameraId); in openDevice()
125 mTestRule.setStaticInfo(new StaticMetadata( in openDevice()
126 mTestRule.getCameraManager().getCameraCharacteristics(cameraId), in openDevice()
145 mTestRule.getStaticInfo().getAvailableSizesForFormatChecked(ImageFormat.PRIVATE, in verifySupportedSizes()
153 mTestRule.closeDevice(cameraId); in verifySupportedSizes()
165 mTestRule.getStaticInfo().getAvailableSizesForFormatChecked(format, in verifySupportedSizes()
[all …]
DCameraExtensionSessionTest.java134 private Camera2AndroidTestRule mTestRule = null; field in CameraExtensionSessionTest
142 mTestRule = new Camera2AndroidTestRule(mContext); in setUp()
143 mTestRule.before(); in setUp()
169 if (mTestRule != null) { in tearDown()
170 mTestRule.after(); in tearDown()
205 new StaticMetadata(mTestRule.getCameraManager().getCameraCharacteristics(id)); in testBasicExtensionLifecycle()
211 mTestRule.getCameraManager().getCameraExtensionCharacteristics(id); in testBasicExtensionLifecycle()
228 new HandlerExecutor(mTestRule.getHandler()), sessionListener); in testBasicExtensionLifecycle()
231 mTestRule.openDevice(id); in testBasicExtensionLifecycle()
232 CameraDevice camera = mTestRule.getCamera(); in testBasicExtensionLifecycle()
[all …]