TcpSocketMonitor: Add stats tables per sockets and per networks
This patch defines SocketEntry and TcpStats for tracking inside
TcpSocketMonitor per-socket and per-network tcp statistics.
For the time being, the following data is tracked:
- total packet sent and lost
- average rtt
- time diff between last packet sent and last ack received
Bug: 64147860
Test: tested manually, watching the result of
$ adb shell dumpsys netd tcp_socket_info
Change-Id: If032a4884ac5dcd693ccfc4bc738167d848a9833
2 files changed