Add Connection Info on Android and count received voice

Connection Info gains a "Voice received" section on both frontends,
counting what our own playback made of a speaker's voice (everyone's,
for ourselves): packets received, frames played and missed, packets
out of order, dropped as too late, and discarded as copies. Android
gets the window itself as a page from the client sheet.

The rows and their formatting live in core, shared by both frontends;
the Swing dialog keeps its tabs on one row. A minute's bandwidth now
shows as the average rate it is labelled as, not the minute's bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-06 20:26:59 +00:00
co-authored by Claude Opus 5.5
parent c8c54bd381
commit 9458ff3400
14 changed files with 437 additions and 198 deletions
@@ -88,6 +88,21 @@ class VoiceStreamTest {
assertEquals(List.of(true, false), talk);
}
@Test
void countsWhatCameInAndWhatWasMissing() {
offer(0, 1);
offer(2, 3);
offer(1, 2); // out of order, still in time
offer(2, 3); // a copy
pull();
pull();
pull();
pull(); // 3 never arrives: concealed
offer(3, 4); // too late, dropped
offer(3, 4); // a copy of that
assertEquals(new VoiceReceiveStats(6, 3, 1, 1, 1, 2), stream.stats());
}
@Test
void theTalkersStopEndsTheBurst() {
offer(0, 1);