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

Commit e15af4c3 authored by Avichal Rakesh's avatar Avichal Rakesh Committed by Automerger Merge Worker
Browse files

Merge "Camera: Fix test to use 64 bit pointer in stream use cases" into tm-dev am: 10a95610

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17326056

Change-Id: I190c40064fc5d8ddf72040395d96fc6058f59362
parents dc7fce44 10a95610
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -2989,8 +2989,8 @@ TEST_P(CameraAidlTest, configureStreamsUseCases) {
        auto retcode = find_camera_metadata_ro_entry(
                staticMeta, ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES, &entry);
        if ((0 == retcode) && (entry.count > 0)) {
            supportedUseCases.insert(supportedUseCases.end(), entry.data.i32,
                                     entry.data.i32 + entry.count);
            supportedUseCases.insert(supportedUseCases.end(), entry.data.i64,
                                     entry.data.i64 + entry.count);
        } else {
            supportedUseCases.push_back(ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES_DEFAULT);
        }
@@ -3034,12 +3034,13 @@ TEST_P(CameraAidlTest, configureStreamsUseCases) {

            bool combSupported;
            ret = cameraDevice->isStreamCombinationSupported(config, &combSupported);
            ASSERT_TRUE((ret.isOk()) || (static_cast<int32_t>(Status::OPERATION_NOT_SUPPORTED) ==
                                         ret.getServiceSpecificError()));
            if (ret.isOk()) {
                ASSERT_EQ(combSupported, useCaseSupported);
            if (static_cast<int32_t>(Status::OPERATION_NOT_SUPPORTED) ==
                ret.getServiceSpecificError()) {
                continue;
            }

            ASSERT_TRUE(ret.isOk());
            ASSERT_EQ(combSupported, useCaseSupported);

            std::vector<HalStream> halStreams;
            ret = mSession->configureStreams(config, &halStreams);