Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8258ffc5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Camera: Update stream consumer usage flag" into oc-mr1-dev

parents efadc19b bba0a549
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -2213,7 +2213,7 @@ TEST_F(CameraHidlTest, configureStreamsAvailableOutputs) {
                                 static_cast<uint32_t>(it.width),
                                 static_cast<uint32_t>(it.height),
                                 static_cast<PixelFormat>(it.format),
                                 0,
                                 GRALLOC1_CONSUMER_USAGE_HWCOMPOSER,
                                 0,
                                 StreamRotation::ROTATION_0};
                ::android::hardware::hidl_vec<Stream> streams = {stream};
@@ -2257,7 +2257,7 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) {
                             static_cast<uint32_t>(0),
                             static_cast<uint32_t>(0),
                             static_cast<PixelFormat>(outputStreams[0].format),
                             0,
                             GRALLOC1_CONSUMER_USAGE_HWCOMPOSER,
                             0,
                             StreamRotation::ROTATION_0};
            ::android::hardware::hidl_vec<Stream> streams = {stream};
@@ -2272,7 +2272,7 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) {
                      static_cast<uint32_t>(UINT32_MAX),
                      static_cast<uint32_t>(UINT32_MAX),
                      static_cast<PixelFormat>(outputStreams[0].format),
                      0,
                      GRALLOC1_CONSUMER_USAGE_HWCOMPOSER,
                      0,
                      StreamRotation::ROTATION_0};
            streams[0] = stream;
@@ -2288,7 +2288,7 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) {
                          static_cast<uint32_t>(it.width),
                          static_cast<uint32_t>(it.height),
                          static_cast<PixelFormat>(UINT32_MAX),
                          0,
                          GRALLOC1_CONSUMER_USAGE_HWCOMPOSER,
                          0,
                          StreamRotation::ROTATION_0};
                streams[0] = stream;
@@ -2303,7 +2303,7 @@ TEST_F(CameraHidlTest, configureStreamsInvalidOutputs) {
                          static_cast<uint32_t>(it.width),
                          static_cast<uint32_t>(it.height),
                          static_cast<PixelFormat>(it.format),
                          0,
                          GRALLOC1_CONSUMER_USAGE_HWCOMPOSER,
                          0,
                          static_cast<StreamRotation>(UINT32_MAX)};
                streams[0] = stream;
@@ -2383,7 +2383,7 @@ TEST_F(CameraHidlTest, configureStreamsZSLInputOutputs) {
                                           static_cast<uint32_t>(outputIter.width),
                                           static_cast<uint32_t>(outputIter.height),
                                           static_cast<PixelFormat>(outputIter.format),
                                           0,
                                           GRALLOC1_CONSUMER_USAGE_HWCOMPOSER,
                                           0,
                                           StreamRotation::ROTATION_0};

@@ -2441,7 +2441,7 @@ TEST_F(CameraHidlTest, configureStreamsPreviewStillOutputs) {
                                            static_cast<uint32_t>(previewIter.width),
                                            static_cast<uint32_t>(previewIter.height),
                                            static_cast<PixelFormat>(previewIter.format),
                                            0,
                                            GRALLOC1_CONSUMER_USAGE_HWCOMPOSER,
                                            0,
                                            StreamRotation::ROTATION_0};
                    Stream blobStream = {streamId++,
@@ -2449,7 +2449,7 @@ TEST_F(CameraHidlTest, configureStreamsPreviewStillOutputs) {
                                         static_cast<uint32_t>(blobIter.width),
                                         static_cast<uint32_t>(blobIter.height),
                                         static_cast<PixelFormat>(blobIter.format),
                                         0,
                                         GRALLOC1_CONSUMER_USAGE_CPU_READ,
                                         0,
                                         StreamRotation::ROTATION_0};
                    ::android::hardware::hidl_vec<Stream> streams = {previewStream, blobStream};
@@ -2501,7 +2501,7 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) {
                             static_cast<uint32_t>(hfrStream.width),
                             static_cast<uint32_t>(hfrStream.height),
                             static_cast<PixelFormat>(hfrStream.format),
                             0,
                             GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER,
                             0,
                             StreamRotation::ROTATION_0};
            ::android::hardware::hidl_vec<Stream> streams = {stream};
@@ -2520,7 +2520,7 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) {
                      static_cast<uint32_t>(0),
                      static_cast<uint32_t>(0),
                      static_cast<PixelFormat>(hfrStream.format),
                      0,
                      GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER,
                      0,
                      StreamRotation::ROTATION_0};
            streams[0] = stream;
@@ -2535,7 +2535,7 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) {
                      static_cast<uint32_t>(UINT32_MAX),
                      static_cast<uint32_t>(UINT32_MAX),
                      static_cast<PixelFormat>(hfrStream.format),
                      0,
                      GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER,
                      0,
                      StreamRotation::ROTATION_0};
            streams[0] = stream;
@@ -2550,7 +2550,7 @@ TEST_F(CameraHidlTest, configureStreamsConstrainedOutputs) {
                      static_cast<uint32_t>(hfrStream.width),
                      static_cast<uint32_t>(hfrStream.height),
                      static_cast<PixelFormat>(UINT32_MAX),
                      0,
                      GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER,
                      0,
                      StreamRotation::ROTATION_0};
            streams[0] = stream;
@@ -2603,7 +2603,7 @@ TEST_F(CameraHidlTest, configureStreamsVideoStillOutputs) {
                                          static_cast<uint32_t>(videoIter.width),
                                          static_cast<uint32_t>(videoIter.height),
                                          static_cast<PixelFormat>(videoIter.format),
                                          0,
                                          GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER,
                                          0,
                                          StreamRotation::ROTATION_0};
                    Stream blobStream = {streamId++,
@@ -2611,7 +2611,7 @@ TEST_F(CameraHidlTest, configureStreamsVideoStillOutputs) {
                                         static_cast<uint32_t>(blobIter.width),
                                         static_cast<uint32_t>(blobIter.height),
                                         static_cast<PixelFormat>(blobIter.format),
                                         GRALLOC_USAGE_HW_VIDEO_ENCODER,
                                         GRALLOC1_CONSUMER_USAGE_CPU_READ,
                                         0,
                                         StreamRotation::ROTATION_0};
                    ::android::hardware::hidl_vec<Stream> streams = {videoStream, blobStream};
@@ -3291,7 +3291,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};