diff --git a/graphics/composer/2.1/vts/functional/Android.bp b/graphics/composer/2.1/vts/functional/Android.bp index e137afb27a..9e703d8f0b 100644 --- a/graphics/composer/2.1/vts/functional/Android.bp +++ b/graphics/composer/2.1/vts/functional/Android.bp @@ -21,6 +21,7 @@ cc_test { // TODO(b/64437680): Assume these libs are always available on the device. shared_libs: [ + "libbase", "libfmq", "libsync", "android.hardware.graphics.mapper@2.0", diff --git a/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp b/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp index 4fee560def..f0250c07f3 100644 --- a/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp +++ b/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp @@ -17,6 +17,7 @@ #define LOG_TAG "graphics_composer_hidl_hal_test" #include +#include #include #include #include @@ -1102,3 +1103,15 @@ INSTANTIATE_TEST_SUITE_P( } // namespace graphics } // namespace hardware } // namespace android + +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + + using namespace std::chrono_literals; + if (!android::base::WaitForProperty("init.svc.surfaceflinger", "stopped", 10s)) { + ALOGE("Failed to stop init.svc.surfaceflinger"); + return -1; + } + + return RUN_ALL_TESTS(); +} diff --git a/graphics/composer/2.2/vts/functional/Android.bp b/graphics/composer/2.2/vts/functional/Android.bp index 16e9138fb5..6aa836c7b9 100644 --- a/graphics/composer/2.2/vts/functional/Android.bp +++ b/graphics/composer/2.2/vts/functional/Android.bp @@ -31,6 +31,7 @@ cc_test { "libEGL", "libGLESv1_CM", "libGLESv2", + "libbase", "libfmq", "libgui", "libhidlbase", diff --git a/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp b/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp index 4d7df1c0e0..31ec88513c 100644 --- a/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp +++ b/graphics/composer/2.2/vts/functional/VtsHalGraphicsComposerV2_2TargetTest.cpp @@ -17,6 +17,7 @@ #define LOG_TAG "graphics_composer_hidl_hal_test@2.2" #include +#include #include #include #include @@ -700,3 +701,15 @@ INSTANTIATE_TEST_SUITE_P( } // namespace graphics } // namespace hardware } // namespace android + +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + + using namespace std::chrono_literals; + if (!android::base::WaitForProperty("init.svc.surfaceflinger", "stopped", 10s)) { + ALOGE("Failed to stop init.svc.surfaceflinger"); + return -1; + } + + return RUN_ALL_TESTS(); +} \ No newline at end of file diff --git a/graphics/composer/2.3/vts/functional/Android.bp b/graphics/composer/2.3/vts/functional/Android.bp index 1ab6b3b88d..1cbb60e555 100644 --- a/graphics/composer/2.3/vts/functional/Android.bp +++ b/graphics/composer/2.3/vts/functional/Android.bp @@ -21,6 +21,7 @@ cc_test { // TODO(b/64437680): Assume these libs are always available on the device. shared_libs: [ + "libbase", "libfmq", "libhidlbase", "libsync", diff --git a/graphics/composer/2.3/vts/functional/VtsHalGraphicsComposerV2_3TargetTest.cpp b/graphics/composer/2.3/vts/functional/VtsHalGraphicsComposerV2_3TargetTest.cpp index a4c1b63f3c..8b42654a55 100644 --- a/graphics/composer/2.3/vts/functional/VtsHalGraphicsComposerV2_3TargetTest.cpp +++ b/graphics/composer/2.3/vts/functional/VtsHalGraphicsComposerV2_3TargetTest.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -630,3 +631,15 @@ INSTANTIATE_TEST_SUITE_P( } // namespace graphics } // namespace hardware } // namespace android + +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + + using namespace std::chrono_literals; + if (!android::base::WaitForProperty("init.svc.surfaceflinger", "stopped", 10s)) { + ALOGE("Failed to stop init.svc.surfaceflinger"); + return -1; + } + + return RUN_ALL_TESTS(); +} \ No newline at end of file diff --git a/graphics/composer/2.4/vts/functional/Android.bp b/graphics/composer/2.4/vts/functional/Android.bp index d0209b7af3..cab549c50b 100644 --- a/graphics/composer/2.4/vts/functional/Android.bp +++ b/graphics/composer/2.4/vts/functional/Android.bp @@ -21,6 +21,7 @@ cc_test { // TODO(b/64437680): Assume these libs are always available on the device. shared_libs: [ + "libbase", "libfmq", "libsync", "android.hardware.graphics.mapper@2.0", diff --git a/graphics/composer/2.4/vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp b/graphics/composer/2.4/vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp index e6ecf933b3..bcb2213b7d 100644 --- a/graphics/composer/2.4/vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp +++ b/graphics/composer/2.4/vts/functional/VtsHalGraphicsComposerV2_4TargetTest.cpp @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -685,3 +686,15 @@ TEST_P(GraphicsComposerHidlCommandTest, getLayerGenericMetadataKeys) { } // namespace graphics } // namespace hardware } // namespace android + +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + + using namespace std::chrono_literals; + if (!android::base::WaitForProperty("init.svc.surfaceflinger", "stopped", 10s)) { + ALOGE("Failed to stop init.svc.surfaceflinger"); + return -1; + } + + return RUN_ALL_TESTS(); +} \ No newline at end of file