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

Commit 370ba060 authored by Ned Burns's avatar Ned Burns
Browse files

Significantly increase group coalesce time

Manual testing suggests that it can take between 3-20ms for a
notification to make its way all the way through NoMan to us. This means
that groups of a significant size (~25) might be expected to take ~200ms
to completely arrive. Roughly doubling that to account for slower
hardware or a swamped system gets us to ~500ms.

Test: manual
Change-Id: Ia13fc2e88c2c714efa2d46ff98e488627360680c
parent b4632bca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ public class NotifCoordinators implements Dumpable {

    @Override
    public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
        pw.println();
        pw.println(TAG + ":");
        for (Coordinator c : mCoordinators) {
            pw.println("\t" + c.getClass());
+2 −2
Original line number Diff line number Diff line
@@ -299,5 +299,5 @@ public class GroupCoalescer implements Dumpable {
        void onNotificationBatchPosted(List<CoalescedEvent> events);
    }

    private static final int GROUP_LINGER_DURATION = 40;
    private static final int GROUP_LINGER_DURATION = 500;
}