diff options
author | Vinit Deshpande <vinitd@google.com> | 2015-03-06 16:52:00 -0800 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2015-03-09 19:02:09 -0700 |
commit | 046ac5e6f78a80eef0bd22551b2d0011e96109e1 (patch) | |
tree | cfd32c9b5b05ce5d212b40c6b0c8246e0e55a6ff /wifi/java | |
parent | 0019e53e11b5387dbb037db52ff4833fe58cc651 (diff) | |
download | frameworks_base-046ac5e6f78a80eef0bd22551b2d0011e96109e1.zip frameworks_base-046ac5e6f78a80eef0bd22551b2d0011e96109e1.tar.gz frameworks_base-046ac5e6f78a80eef0bd22551b2d0011e96109e1.tar.bz2 |
Few changes to make API check happy [DO NOT MERGE]
These changes are made to make the API check in mwd-staging
happy. It doesn't look like they are needed in master branch;
so marking them as DO NOT MERGE.
Change-Id: I45363165b6a8ffe896cf9a31c0b3cb410aa69cba
Diffstat (limited to 'wifi/java')
-rw-r--r-- | wifi/java/android/net/wifi/WifiScanner.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/wifi/java/android/net/wifi/WifiScanner.java b/wifi/java/android/net/wifi/WifiScanner.java index cecd738..fea934f 100644 --- a/wifi/java/android/net/wifi/WifiScanner.java +++ b/wifi/java/android/net/wifi/WifiScanner.java @@ -417,6 +417,11 @@ public class WifiScanner { public void onPeriodChanged(int periodInMs); /** * reports results retrieved from background scan and single shot scans + * @deprecated in favor of {@link #onResults(ScanData[])} + */ + public void onResults(ScanResult[] results); + /** + * reports results retrieved from background scan and single shot scans */ public void onResults(ScanData[] results); /** @@ -447,12 +452,12 @@ public class WifiScanner { } /** * reports currently available scan results on appropriate listeners - * @return true if all scan results were reported correctly */ - public boolean getScanResults() { + public ScanResult[] getScanResults() { validateChannel(); Message reply = sAsyncChannel.sendMessageSynchronously(CMD_GET_SCAN_RESULTS, 0); - return reply.what == CMD_OP_SUCCEEDED; + // return reply.what == CMD_OP_SUCCEEDED; + return null; } /** |