OSDN Git Service

Simplify UpstreamNetworkMonitor callback handling
authorErik Kline <ek@google.com>
Wed, 11 Jan 2017 08:34:50 +0000 (17:34 +0900)
committerErik Kline <ek@google.com>
Thu, 12 Jan 2017 04:43:00 +0000 (13:43 +0900)
commit452b4b72181d71373238dea3d261cf789f6c90fb
tree1e95afe9d09766f3891dd92407d7d6b76cdfd0e8
parentd8384b5c15d63e714f3c6d303cc225b810c6c139
Simplify UpstreamNetworkMonitor callback handling

In the callback post a lamba to the target state machine's handler
that does the processing we need before sending a notification to
the state machine.

No semantic change, just a bit cleaner.

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
    - tested basic wifi-to-mobile tethering (no DUN)
Bug: 32163131
Change-Id: I07e1b510c1ebaa5dffd42a3f16ba96e961cb58f1
services/core/java/com/android/server/connectivity/Tethering.java