diff options
author | Vinit Deshpande <vinitd@google.com> | 2015-05-20 14:27:49 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2015-05-21 13:17:03 -0700 |
commit | 29ad7c7000393751a0ab0e1a17912db7866d4ff8 (patch) | |
tree | c1dce8304ea80dceff75d49be641d0ec0f6ad5f6 /wifi | |
parent | 3244a6633680cf98fa7a55534e3ebf2dea7389ee (diff) | |
download | frameworks_base-29ad7c7000393751a0ab0e1a17912db7866d4ff8.zip frameworks_base-29ad7c7000393751a0ab0e1a17912db7866d4ff8.tar.gz frameworks_base-29ad7c7000393751a0ab0e1a17912db7866d4ff8.tar.bz2 |
Indicate failed scans with EXTRA_RESULTS_UPDATED
This flag indicates if scan was successful and results were
updated. It will be set to false if a scan is not performed
(intentionally) or if it failed to produce any results.
Bug: 20642015
Change-Id: I06a1fdd684932db68891ee28d5a049980f483f0f
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index f2c2a28..64fa0e5 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -403,6 +403,14 @@ public class WifiManager { */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String SCAN_RESULTS_AVAILABLE_ACTION = "android.net.wifi.SCAN_RESULTS"; + + /** + * The result of previous scan, reported with {@link #SCAN_RESULTS_AVAILABLE_ACTION}. + * @return true scan was successful, results updated + * @return false scan was not successful, results haven't been updated since previous scan + */ + public static final String EXTRA_RESULTS_UPDATED = "resultsUpdated"; + /** * A batch of access point scans has been completed and the results areavailable. * Call {@link #getBatchedScanResults()} to obtain the results. |