Aaron Huang 2e45e16ca5 Have NetworkPolicyManagerService listen onLinkPropertiesChanged callback
In current design, NPMS listens onThresholdReached() callback to
call updateNetworkRulesNL(), however, this callback mwill not be
called if data usage is not updated. Thus, it will cause to no
iptables rule for new metered interfaces.

Have NPMS listen onLinkProperitesChanged() callback and call
updateNetworkRulesNL() if interfaces has changed to add iptables
rules for new metered interfaces.

Bug: 225971066
Test: HostsideRestrictBackgroundNetworkTests
      HostsideRestrictBackgroundNetworkTests# \
      testDataAndBatterySaverModes_meteredNetwork \
      --iterations 100
Change-Id: I49f999efc3fbe0a6a325ec138a3f060c7285e6ad
2022-04-20 13:39:43 +08:00
2022-04-08 12:23:51 +01:00
…
…
2022-03-28 09:25:17 -07:00
2021-05-13 08:24:32 +00:00
2022-04-01 16:46:46 +00:00
2021-11-04 14:44:07 +00:00
…
2022-03-31 19:37:56 -07:00
2022-04-08 11:46:22 +01:00
…
2022-01-05 13:13:50 +00:00
…
…
2022-03-07 08:44:25 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%