diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2013-08-05 10:39:37 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2013-08-20 21:29:05 +0900 |
commit | 5c7daac2e3d9020185699ba554d763b825ab1778 (patch) | |
tree | 25f84073a4d0617256871b0ad1edae8d98705898 /services/java/com/android/server/connectivity | |
parent | df86a9f2e92d077386b146fe483b2cf14850737d (diff) | |
download | frameworks_base-5c7daac2e3d9020185699ba554d763b825ab1778.zip frameworks_base-5c7daac2e3d9020185699ba554d763b825ab1778.tar.gz frameworks_base-5c7daac2e3d9020185699ba554d763b825ab1778.tar.bz2 |
Notify IP address changes to interface observers.
1. Add addressUpdated and addressRemoved methods to
INetworkManagementEventObserver. (The -Updated method is not
called -Added because it gets called for both adds and
changes.) Update all its callers in the tree.
2. Make NetworkManagementService parse IP address notifications
from NetlinkHandler and call the address{Removed,Updated} on
its observers.
Bug: 10232006
Change-Id: Ieb185dbba052bdbff03caafc0cf5397a7f04dc6d
Diffstat (limited to 'services/java/com/android/server/connectivity')
-rw-r--r-- | services/java/com/android/server/connectivity/Tethering.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/java/com/android/server/connectivity/Tethering.java b/services/java/com/android/server/connectivity/Tethering.java index 22a7841..fb4c1cf 100644 --- a/services/java/com/android/server/connectivity/Tethering.java +++ b/services/java/com/android/server/connectivity/Tethering.java @@ -315,6 +315,10 @@ public class Tethering extends INetworkManagementEventObserver.Stub { } } + public void addressUpdated(String address, String iface, int flags, int scope) {} + + public void addressRemoved(String address, String iface, int flags, int scope) {} + public void limitReached(String limitName, String iface) {} public void interfaceClassDataActivityChanged(String label, boolean active) {} |