diff options
author | Vinit Deshpande <vinitd@google.com> | 2014-08-11 21:52:05 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2014-12-15 11:14:45 -0800 |
commit | 1265a98965aa582cbb7724beb00fb2f4ff56bb82 (patch) | |
tree | 796bfbefda1dfb8dfac1b785457dcbeb05951c16 /wifi | |
parent | 12647d923d25f20a852b0cf7ed41f67a8b15da8f (diff) | |
download | frameworks_base-1265a98965aa582cbb7724beb00fb2f4ff56bb82.zip frameworks_base-1265a98965aa582cbb7724beb00fb2f4ff56bb82.tar.gz frameworks_base-1265a98965aa582cbb7724beb00fb2f4ff56bb82.tar.bz2 |
Introduce onLost event on bssid hotlist
Change-Id: I84c3174398fea9a1456fb007586c2c559dd3fe4d
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiScanner.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiScanner.java b/wifi/java/android/net/wifi/WifiScanner.java index aaa2f98..41b2f4e 100644 --- a/wifi/java/android/net/wifi/WifiScanner.java +++ b/wifi/java/android/net/wifi/WifiScanner.java @@ -468,6 +468,10 @@ public class WifiScanner { * @param results list of scan results, one for each access point visible currently */ public void onFound(ScanResult[] results); + /** indicates that access points were missed by on going scans + * @param results list of scan results, for each access point that is not visible anymore + */ + public void onLost(ScanResult[] results); } /** @hide */ @@ -813,6 +817,10 @@ public class WifiScanner { ((BssidListener) listener).onFound( ((ParcelableScanResults) msg.obj).getResults()); return; + case CMD_AP_LOST: + ((BssidListener) listener).onLost( + ((ParcelableScanResults) msg.obj).getResults()); + return; case CMD_WIFI_CHANGE_DETECTED: ((WifiChangeListener) listener).onChanging( ((ParcelableScanResults) msg.obj).getResults()); |