OSDN Git Service

Update inferred policies from SubscriptionPlan.
authorJeff Sharkey <jsharkey@android.com>
Sun, 30 Jul 2017 22:52:51 +0000 (16:52 -0600)
committerJeff Sharkey <jsharkey@android.com>
Mon, 31 Jul 2017 22:54:41 +0000 (16:54 -0600)
commit0f2910c3dc20bb9667f9592a3af18a474ad319c3
treeee34d77fa0a385b265c67fd749ee7c86674365e5
parentb7479988d248add39ba6ce1fe71dea6f810fd54f
Update inferred policies from SubscriptionPlan.

When creating or updating inferred network policies, consult any
SubscriptionPlan information first, then fallback to CarrierService
values, before finally falling back to system defaults.

Dump known SubscriptionPlan values in dumpsys output for debugging.

Fix bug where updateNetworkRulesNL() tried calculating cycles when
non existed.

Test: builds, boots, subscription plans update
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Bug: 6392547464124815
Change-Id: I12257cada14f72890d5346e366643aac88de278e
services/core/java/com/android/server/net/NetworkPolicyManagerService.java