Fixed flakiness of TIRE_PRESSURE CTS test

The flakiness was due to the original continuous property test callback waiting for 2 * # of area IDs events instead of 2 of events per area ID. So because TIRE_PRESSURE might have 4 area IDs for each of the wheels, it would collect 8 total events. However, because there was no area ID distinction, it was possible that it collected 2 fl, 2fr, 1rr, and 3lr events. This would cause the test to fail because the tests checks that 2 events were received for each area ID.

The updates to this test ensure that at least 2 events are collected for each area ID, and the test checks that at least 2 events are received for each area ID.

Fix: 242066485
Test: atest CarPropertyManagerTest
Change-Id: I4a9d2892316f1ec0bc44ebc7a410897abe641e7d
1 file changed