OSDN Git Service

Stop unnecessary tethering reconfigurations
authorErik Kline <ek@google.com>
Sat, 8 Jul 2017 11:36:37 +0000 (20:36 +0900)
committerErik Kline <ek@google.com>
Mon, 10 Jul 2017 09:17:58 +0000 (18:17 +0900)
commit6ee73daa0aa90620e4b2cb13ead4b53d16f45010
treeda127ef67b30970e25f290679cafa6a0e77f37a9
parente72ec3cab2dbc1ca1b521a1171813e019432f3bc
Stop unnecessary tethering reconfigurations

The TetheringConfiguraiton is retrieved at startup and on every
ACTION_CONFIGURATION_CHANGED broadcast.  Re-retrieving the config
at every upstream selection is unnecessary and fills up the logs.

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
Bug: 32163131
Bug: 63250751
Change-Id: Ia6276ada690aa3e4870bb83dc4bf3ddcddc35e7b
services/core/java/com/android/server/connectivity/Tethering.java
services/core/java/com/android/server/connectivity/tethering/TetheringConfiguration.java