summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorWei Wang <weiwa@google.com>2014-07-08 21:37:01 -0700
committerWei Wang <weiwa@google.com>2014-07-10 11:29:21 -0700
commit35d552f7adf0ccffbd78c4220862188a198dda7d (patch)
treee92de031bba35ea102c7857fa5b4ff574455e764 /wifi
parentf3e83e45034d99521d748e21ba2a8d3de60e968a (diff)
downloadframeworks_base-35d552f7adf0ccffbd78c4220862188a198dda7d.zip
frameworks_base-35d552f7adf0ccffbd78c4220862188a198dda7d.tar.gz
frameworks_base-35d552f7adf0ccffbd78c4220862188a198dda7d.tar.bz2
Make WifiScanner System API
Change-Id: I0e2ebae998165abbb48a8cee0a3723ace2ca99e5
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiScanner.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiScanner.java b/wifi/java/android/net/wifi/WifiScanner.java
index 21b700d..9b6840c 100644
--- a/wifi/java/android/net/wifi/WifiScanner.java
+++ b/wifi/java/android/net/wifi/WifiScanner.java
@@ -16,6 +16,7 @@
package android.net.wifi;
+import android.annotation.SystemApi;
import android.content.Context;
import android.os.Handler;
import android.os.HandlerThread;
@@ -42,6 +43,7 @@ import java.util.concurrent.CountDownLatch;
* .WIFI_SCANNING_SERVICE)}.
* @hide
*/
+@SystemApi
public class WifiScanner {
/** no band specified; use channel list instead */
@@ -78,6 +80,7 @@ public class WifiScanner {
* Generic action callback invocation interface
* @hide
*/
+ @SystemApi
public static interface ActionListener {
public void onSuccess();
public void onFailure(int reason, String description);
@@ -313,6 +316,7 @@ public class WifiScanner {
}
/** @hide */
+ @SystemApi
public static class WifiChangeSettings implements Parcelable {
public int rssiSampleSize; /* sample size for RSSI averaging */
public int lostApSampleSize; /* samples to confirm AP's loss */
@@ -443,6 +447,7 @@ public class WifiScanner {
}
/** @hide */
+ @SystemApi
public void configureWifiChange(WifiChangeSettings settings) {
validateChannel();
sAsyncChannel.sendMessage(CMD_CONFIGURE_WIFI_CHANGE, 0, 0, settings);
@@ -457,6 +462,7 @@ public class WifiScanner {
}
/** @hide */
+ @SystemApi
public static class HotlistSettings implements Parcelable {
public HotspotInfo[] hotspotInfos;
public int apLostThreshold;