Loading camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp +30 −16 Original line number Diff line number Diff line Loading @@ -2453,7 +2453,8 @@ TEST_F(CameraHidlTest, configureStreamsAvailableOutputs) { Stream stream = {streamId, StreamType::OUTPUT, static_cast<uint32_t> (it.width), static_cast<uint32_t> (it.height), static_cast<PixelFormat> (it.format), 0, 0, static_cast<PixelFormat> (it.format), GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = {stream}; StreamConfiguration config = {streams, Loading Loading @@ -2502,7 +2503,8 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) { static_cast<uint32_t> (0), static_cast<uint32_t> (0), static_cast<PixelFormat> (outputStreams[0].format), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = {stream}; StreamConfiguration config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading @@ -2517,7 +2519,8 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) { static_cast<uint32_t> (UINT32_MAX), static_cast<uint32_t> (UINT32_MAX), static_cast<PixelFormat> (outputStreams[0].format), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading @@ -2532,7 +2535,8 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) { static_cast<uint32_t> (it.width), static_cast<uint32_t> (it.height), static_cast<PixelFormat> (UINT32_MAX), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading @@ -2546,7 +2550,8 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) { static_cast<uint32_t> (it.width), static_cast<uint32_t> (it.height), static_cast<PixelFormat> (it.format), 0, 0, static_cast<StreamRotation> (UINT32_MAX)}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, static_cast<StreamRotation> (UINT32_MAX)}; streams[0] = stream; config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading Loading @@ -2623,12 +2628,14 @@ TEST_F(CameraHidlTest, configureStreamsZSLInputOutputs) { Stream inputStream = {streamId++, StreamType::INPUT, static_cast<uint32_t> (input.width), static_cast<uint32_t> (input.height), static_cast<PixelFormat> (input.format), 0, 0, static_cast<PixelFormat> (input.format), 0, 0, StreamRotation::ROTATION_0}; Stream outputStream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (outputIter.width), static_cast<uint32_t> (outputIter.height), static_cast<PixelFormat> (outputIter.format), 0, 0, static_cast<PixelFormat> (outputIter.format), GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = { Loading Loading @@ -2690,12 +2697,14 @@ TEST_F(CameraHidlTest, configureStreamsPreviewStillOutputs) { Stream previewStream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (previewIter.width), static_cast<uint32_t> (previewIter.height), static_cast<PixelFormat> (previewIter.format), 0, 0, static_cast<PixelFormat> (previewIter.format), GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; Stream blobStream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (blobIter.width), static_cast<uint32_t> (blobIter.height), static_cast<PixelFormat> (blobIter.format), 0, 0, static_cast<PixelFormat> (blobIter.format), GRALLOC1_CONSUMER_USAGE_CPU_READ, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = { previewStream, blobStream}; Loading Loading @@ -2751,7 +2760,8 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) { Stream stream = {streamId, StreamType::OUTPUT, static_cast<uint32_t> (hfrStream.width), static_cast<uint32_t> (hfrStream.height), static_cast<PixelFormat> (hfrStream.format), 0, 0, static_cast<PixelFormat> (hfrStream.format), GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = {stream}; StreamConfiguration config = {streams, Loading @@ -2767,7 +2777,8 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) { stream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (0), static_cast<uint32_t> (0), static_cast<PixelFormat> (hfrStream.format), 0, 0, static_cast<PixelFormat> (hfrStream.format), GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, Loading @@ -2782,7 +2793,8 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) { stream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (UINT32_MAX), static_cast<uint32_t> (UINT32_MAX), static_cast<PixelFormat> (hfrStream.format), 0, 0, static_cast<PixelFormat> (hfrStream.format), GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, Loading @@ -2796,7 +2808,8 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) { stream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (hfrStream.width), static_cast<uint32_t> (hfrStream.height), static_cast<PixelFormat> (UINT32_MAX), 0, 0, static_cast<PixelFormat> (UINT32_MAX), GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, Loading Loading @@ -2854,12 +2867,13 @@ TEST_F(CameraHidlTest, configureStreamsVideoStillOutputs) { static_cast<uint32_t> (videoIter.width), static_cast<uint32_t> (videoIter.height), static_cast<PixelFormat> (videoIter.format), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; Stream blobStream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (blobIter.width), static_cast<uint32_t> (blobIter.height), static_cast<PixelFormat> (blobIter.format), GRALLOC_USAGE_HW_VIDEO_ENCODER, 0, GRALLOC1_CONSUMER_USAGE_CPU_READ, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = { videoStream, blobStream}; Loading Loading @@ -3588,7 +3602,7 @@ void CameraHidlTest::configurePreviewStream(const std::string &name, static_cast<uint32_t> (outputPreviewStreams[0].width), static_cast<uint32_t> (outputPreviewStreams[0].height), static_cast<PixelFormat> (outputPreviewStreams[0].format), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = {*previewStream}; StreamConfiguration config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading Loading
camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp +30 −16 Original line number Diff line number Diff line Loading @@ -2453,7 +2453,8 @@ TEST_F(CameraHidlTest, configureStreamsAvailableOutputs) { Stream stream = {streamId, StreamType::OUTPUT, static_cast<uint32_t> (it.width), static_cast<uint32_t> (it.height), static_cast<PixelFormat> (it.format), 0, 0, static_cast<PixelFormat> (it.format), GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = {stream}; StreamConfiguration config = {streams, Loading Loading @@ -2502,7 +2503,8 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) { static_cast<uint32_t> (0), static_cast<uint32_t> (0), static_cast<PixelFormat> (outputStreams[0].format), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = {stream}; StreamConfiguration config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading @@ -2517,7 +2519,8 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) { static_cast<uint32_t> (UINT32_MAX), static_cast<uint32_t> (UINT32_MAX), static_cast<PixelFormat> (outputStreams[0].format), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading @@ -2532,7 +2535,8 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) { static_cast<uint32_t> (it.width), static_cast<uint32_t> (it.height), static_cast<PixelFormat> (UINT32_MAX), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading @@ -2546,7 +2550,8 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) { static_cast<uint32_t> (it.width), static_cast<uint32_t> (it.height), static_cast<PixelFormat> (it.format), 0, 0, static_cast<StreamRotation> (UINT32_MAX)}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, static_cast<StreamRotation> (UINT32_MAX)}; streams[0] = stream; config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading Loading @@ -2623,12 +2628,14 @@ TEST_F(CameraHidlTest, configureStreamsZSLInputOutputs) { Stream inputStream = {streamId++, StreamType::INPUT, static_cast<uint32_t> (input.width), static_cast<uint32_t> (input.height), static_cast<PixelFormat> (input.format), 0, 0, static_cast<PixelFormat> (input.format), 0, 0, StreamRotation::ROTATION_0}; Stream outputStream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (outputIter.width), static_cast<uint32_t> (outputIter.height), static_cast<PixelFormat> (outputIter.format), 0, 0, static_cast<PixelFormat> (outputIter.format), GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = { Loading Loading @@ -2690,12 +2697,14 @@ TEST_F(CameraHidlTest, configureStreamsPreviewStillOutputs) { Stream previewStream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (previewIter.width), static_cast<uint32_t> (previewIter.height), static_cast<PixelFormat> (previewIter.format), 0, 0, static_cast<PixelFormat> (previewIter.format), GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; Stream blobStream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (blobIter.width), static_cast<uint32_t> (blobIter.height), static_cast<PixelFormat> (blobIter.format), 0, 0, static_cast<PixelFormat> (blobIter.format), GRALLOC1_CONSUMER_USAGE_CPU_READ, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = { previewStream, blobStream}; Loading Loading @@ -2751,7 +2760,8 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) { Stream stream = {streamId, StreamType::OUTPUT, static_cast<uint32_t> (hfrStream.width), static_cast<uint32_t> (hfrStream.height), static_cast<PixelFormat> (hfrStream.format), 0, 0, static_cast<PixelFormat> (hfrStream.format), GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = {stream}; StreamConfiguration config = {streams, Loading @@ -2767,7 +2777,8 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) { stream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (0), static_cast<uint32_t> (0), static_cast<PixelFormat> (hfrStream.format), 0, 0, static_cast<PixelFormat> (hfrStream.format), GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, Loading @@ -2782,7 +2793,8 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) { stream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (UINT32_MAX), static_cast<uint32_t> (UINT32_MAX), static_cast<PixelFormat> (hfrStream.format), 0, 0, static_cast<PixelFormat> (hfrStream.format), GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, Loading @@ -2796,7 +2808,8 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) { stream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (hfrStream.width), static_cast<uint32_t> (hfrStream.height), static_cast<PixelFormat> (UINT32_MAX), 0, 0, static_cast<PixelFormat> (UINT32_MAX), GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; streams[0] = stream; config = {streams, Loading Loading @@ -2854,12 +2867,13 @@ TEST_F(CameraHidlTest, configureStreamsVideoStillOutputs) { static_cast<uint32_t> (videoIter.width), static_cast<uint32_t> (videoIter.height), static_cast<PixelFormat> (videoIter.format), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER, 0, StreamRotation::ROTATION_0}; Stream blobStream = {streamId++, StreamType::OUTPUT, static_cast<uint32_t> (blobIter.width), static_cast<uint32_t> (blobIter.height), static_cast<PixelFormat> (blobIter.format), GRALLOC_USAGE_HW_VIDEO_ENCODER, 0, GRALLOC1_CONSUMER_USAGE_CPU_READ, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = { videoStream, blobStream}; Loading Loading @@ -3588,7 +3602,7 @@ void CameraHidlTest::configurePreviewStream(const std::string &name, static_cast<uint32_t> (outputPreviewStreams[0].width), static_cast<uint32_t> (outputPreviewStreams[0].height), static_cast<PixelFormat> (outputPreviewStreams[0].format), 0, 0, StreamRotation::ROTATION_0}; GRALLOC1_CONSUMER_USAGE_HWCOMPOSER, 0, StreamRotation::ROTATION_0}; ::android::hardware::hidl_vec<Stream> streams = {*previewStream}; StreamConfiguration config = {streams, StreamConfigurationMode::NORMAL_MODE}; Loading