Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9 am: c0fd000566 am: 16b926e728 am: e760f283cc am: 006acfa520

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

Change-Id: Ie9b4ceed5b2378e672a3ec9d087f7f3cc8bccaea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
AOYAGI Takako 2023-03-16 01:26:29 +00:00 committed by Automerger Merge Worker
commit ee526c2d41

View file

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