OSDN Git Service

Tell the system when tethering offload hits a limit.
authorLorenzo Colitti <lorenzo@google.com>
Tue, 15 Aug 2017 10:25:51 +0000 (19:25 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Fri, 18 Aug 2017 15:15:31 +0000 (00:15 +0900)
commit9f0baa94ca28f67e162d3ad04ca6d0e17ee5e314
tree34ed3ff01daf584a939968052cdf4094eb9474f0
parentdeb4eb5d05ccf983adcb7252c98c2580a8a36c60
Tell the system when tethering offload hits a limit.

Add a new tetherLimitReached method to INetworkManagementService,
and call it when the HAL notifies OffloadController because the
limit has been reached.

Bug: 29337859
Bug: 32163131
Test: builds
Test: OffloadControllerTest passes

(cherry picked from commit d66cf56ba662f10f2da1d0f844116632ad0a0dbb)

Change-Id: I89719fe7ec8bfd3c85d6cdca9c0d449aea86ef9d
Merged-In: I026e6aa9e7b371f316c0d97c3cf5e78abc1f5263
core/java/android/os/INetworkManagementService.aidl
services/core/java/com/android/server/NetworkManagementService.java
services/core/java/com/android/server/connectivity/tethering/OffloadController.java
tests/net/java/com/android/server/connectivity/tethering/OffloadControllerTest.java