OSDN Git Service

Allow more than one source of tethering statistics.
authorLorenzo Colitti <lorenzo@google.com>
Mon, 10 Jul 2017 10:06:57 +0000 (19:06 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Tue, 18 Jul 2017 15:54:54 +0000 (00:54 +0900)
commit07f1304cfe9efbde7f90895a948b3170a3f0d0ec
tree009b34b0d3e072ab220248961b162ca585accdff
parentd2c8dcfcfe4cdc4fb4d3d86a8a7e6e7d43fdd9c0
Allow more than one source of tethering statistics.

Currently, netd is the only source of tethering statistics.
In order to support multiple sources, define a new
ITetheringStatsProvider interface that can be registered with
NetworkManagmentService. Convert the existing code into the
first ITetheringStatsProvider.

(cherry picked from commit ef7b2a13ce4c34950b52de27dcf65b74388d7b3d)

Bug: 29337859
Bug: 32163131
Test: builds, boots
Test: tethering stats continue to be collected
Change-Id: Ie1b5a5e47ae4bf5af922365b09fa241e834236e4
Merged-In: Ie1b5a5e47ae4bf5af922365b09fa241e834236e4
Android.mk
core/java/android/net/ITetheringStatsProvider.aidl [new file with mode: 0644]
core/java/android/os/INetworkManagementService.aidl
services/core/java/com/android/server/NetworkManagementService.java