diff options
| author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-09-20 21:27:54 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-09-20 21:27:54 +0000 |
| commit | dfa6e6f18650cfab8c8f6b7269ef131e391484ee (patch) | |
| tree | ae29f859cd3f1eb655cc7282c37619f78552dd6e /core/java | |
| parent | eda7bc5c84638fa2ee78d5d77e872989c9517bf1 (diff) | |
| parent | ce5d913387c7fa4792ccb0dd13d79b6636c300a7 (diff) | |
Merge "Allow WiFi components to manage interface up state"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/net/InterfaceConfiguration.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/net/InterfaceConfiguration.java b/core/java/android/net/InterfaceConfiguration.java index 8cdd15305018..ea53a71245a5 100644 --- a/core/java/android/net/InterfaceConfiguration.java +++ b/core/java/android/net/InterfaceConfiguration.java @@ -80,6 +80,14 @@ public class InterfaceConfiguration implements Parcelable { mFlags.add(FLAG_DOWN); } + /** + * Set flags so that no changes will be made to the up/down status. + */ + public void ignoreInterfaceUpDownStatus() { + mFlags.remove(FLAG_UP); + mFlags.remove(FLAG_DOWN); + } + public LinkAddress getLinkAddress() { return mAddr; } |
