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

Commit cfeb079d authored by Danae Savvidi's avatar Danae Savvidi
Browse files

Update logging line to add client_count in DisplayEventCallbackOccurred atom

To log number of unique clients that received the event.

Bug: 433483856
Flag: com.android.server.display.feature.flags.enable_logging_for_display_events
Test: atest DisplayServiceTests
Test: atest DisplayFrameworkStatsLoggerTest
Change-Id: Ic3214257261aa5cf49515f61c30d894e2e600a1a
parent 07d74c4c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ public final class DisplayFrameworkStatsLogger {
        FrameworkStatsLog.write(
                FrameworkStatsLog.DISPLAY_EVENT_CALLBACK_OCCURRED,
                toProtoEventType(event),
                notifiedUids.copyKeys());
                notifiedUids.copyKeys(),
                notifiedUids.size());
    }

    /**
+3 −3
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public class DisplayFrameworkStatsLoggerTest {
                .write(
                        FrameworkStatsLog.DISPLAY_EVENT_CALLBACK_OCCURRED,
                        expectedProtoType,
                        uidMap.copyKeys());
                        uidMap.copyKeys(), 2);
    }

    @Test
@@ -92,7 +92,7 @@ public class DisplayFrameworkStatsLoggerTest {
                .write(
                        FrameworkStatsLog.DISPLAY_EVENT_CALLBACK_OCCURRED,
                        expectedProtoType,
                        uidMap.copyKeys());
                        uidMap.copyKeys(), 1);
    }

    @Test
@@ -113,6 +113,6 @@ public class DisplayFrameworkStatsLoggerTest {
                .write(
                        FrameworkStatsLog.DISPLAY_EVENT_CALLBACK_OCCURRED,
                        expectedProtoType,
                        uidMap.copyKeys());
                        uidMap.copyKeys(), 1);
    }
}