summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2013-10-31 23:30:47 +0900
committerLorenzo Colitti <lorenzo@google.com>2013-11-25 17:24:30 +0900
commit132fe8d27dcb45b363dff3eeb347ff2f4cf60901 (patch)
tree0e4c3338fd9e8562438f3e83f6f32c0f78aa4402 /services
parentdbccd44a638ae8705a5b14bff8b2dd74abc26045 (diff)
downloadframeworks_base-132fe8d27dcb45b363dff3eeb347ff2f4cf60901.zip
frameworks_base-132fe8d27dcb45b363dff3eeb347ff2f4cf60901.tar.gz
frameworks_base-132fe8d27dcb45b363dff3eeb347ff2f4cf60901.tar.bz2
Use BaseNetworkObserver in Tethering.
Tethering currently inherits from the AIDL interface INetworkManagementEventObserver, so it has to provide no-op implementations of all the interface's methods. Inherit from BaseNetworkObserver and get rid of the no-ops. [Cherry-pick of f4e90eac87bc31611ddd80c46fc924d35ce66c1c] Bug: 9180552 Change-Id: I74859b0d77951005651aaaa418185857e40eeedb
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/connectivity/Tethering.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/services/java/com/android/server/connectivity/Tethering.java b/services/java/com/android/server/connectivity/Tethering.java
index 231a40a..adf1dfc 100644
--- a/services/java/com/android/server/connectivity/Tethering.java
+++ b/services/java/com/android/server/connectivity/Tethering.java
@@ -51,6 +51,7 @@ import com.android.internal.util.IState;
import com.android.internal.util.State;
import com.android.internal.util.StateMachine;
import com.android.server.IoThread;
+import com.android.server.net.BaseNetworkObserver;
import com.google.android.collect.Lists;
import java.io.FileDescriptor;
@@ -70,7 +71,7 @@ import java.util.Set;
*
* TODO - look for parent classes and code sharing
*/
-public class Tethering extends INetworkManagementEventObserver.Stub {
+public class Tethering extends BaseNetworkObserver {
private Context mContext;
private final static String TAG = "Tethering";
@@ -315,14 +316,6 @@ 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) {}
-
public int tether(String iface) {
if (DBG) Log.d(TAG, "Tethering " + iface);
TetherInterfaceSM sm = null;