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

Commit 57c9897f authored by ggranatiero's avatar ggranatiero Committed by Giuseppe Granatiero
Browse files

Populates the notificationCount field in DisplaySwitchLatencyEvent.

The change injects ActiveNotificationsInteractor into DisplaySwitchLatencyTracker and uses its allNotificationsCountValue to capture the number of notifications when the switch event begins.

Added a unit test to DisplaySwitchLatencyTrackTest that mocks ActiveNotificationsInteractor. The test verifies that the notification count provided by the mock is correctly recorded in the final logged event.

Test: atest DisplaySwitchLatencyTrackerTest
Bug: 304491690
Flag: EXEMPT minimal changes
Change-Id: I9288900d12c90804d933ca401de38915e46b8fb4
parent 21492f3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment