diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2015-05-01 16:55:00 -0700 |
---|---|---|
committer | Sanket Padawe <sanketpadawe@google.com> | 2015-05-01 16:55:00 -0700 |
commit | 7094d22022c8e0c6ad71920b101434dded8a276e (patch) | |
tree | b65b3dc819268c9d9f9eac4f8cf18cc4318dd0e7 /wifi/java/android | |
parent | 24ea865f0fd3b1ceafb3786bbed20ea345bc5cc0 (diff) | |
download | frameworks_base-7094d22022c8e0c6ad71920b101434dded8a276e.zip frameworks_base-7094d22022c8e0c6ad71920b101434dded8a276e.tar.gz frameworks_base-7094d22022c8e0c6ad71920b101434dded8a276e.tar.bz2 |
Adding "Connected, no Internet" string in Wifi nw summary.
Bug: 17380953
Change-Id: I9664bcbf33832fe722e7d2b3125939287ee98098
Diffstat (limited to 'wifi/java/android')
-rw-r--r-- | wifi/java/android/net/wifi/IWifiManager.aidl | 3 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index 0e888e8..00cdc71 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -25,6 +25,7 @@ import android.net.wifi.WifiChannel; import android.net.wifi.ScanResult; import android.net.wifi.WifiConnectionStatistics; import android.net.wifi.WifiActivityEnergyInfo; +import android.net.Network; import android.net.DhcpInfo; @@ -168,5 +169,7 @@ interface IWifiManager void disableEphemeralNetwork(String SSID); void factoryReset(); + + Network getCurrentNetwork(); } diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 3205351..5e99672 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -2804,4 +2804,17 @@ public class WifiManager { } catch (RemoteException e) { } } + + /** + * Get Network object of current wifi network + * @return Get Network object of current wifi network + * @hide + */ + public Network getCurrentNetwork() { + try { + return mService.getCurrentNetwork(); + } catch (RemoteException e) { + return null; + } + } } |