Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9 am: c0fd000566

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

Change-Id: I5074deea886829be8ba8988377490f7d2ad2449b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
AOYAGI Takako 2023-03-15 23:32:36 +00:00 committed by Automerger Merge Worker
commit 16b926e728

View file

@ -560,6 +560,11 @@ TEST_P(SensorsHidlTest, CallInitializeTwice) {
}
TEST_P(SensorsHidlTest, CleanupConnectionsOnInitialize) {
if (getSensorsList().size() == 0) {
// No sensors
return;
}
activateAllSensors(true);
// Verify that events are received