diff options
author | Soonil Nagarkar <sooniln@google.com> | 2015-05-27 11:23:37 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2015-06-03 05:17:57 +0000 |
commit | 597492c963725366b320678786d241e7f654e347 (patch) | |
tree | 1a418d7bb7b0194907354e6c3ee67b4e588894f9 | |
parent | f0742bdf0665810cc64d22c0c275bc8c8b7463f0 (diff) | |
download | frameworks_base-597492c963725366b320678786d241e7f654e347.zip frameworks_base-597492c963725366b320678786d241e7f654e347.tar.gz frameworks_base-597492c963725366b320678786d241e7f654e347.tar.bz2 |
Add NO_BATCH flag to WifiScanner
Change-Id: Idd521f724684986ff84306327d42b810f7b30245
(cherry picked from commit b9e6d98c6c0a05ebfc73a14d1ac2a47d58290241)
-rw-r--r-- | api/system-current.txt | 3 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/WifiScanner.java | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/api/system-current.txt b/api/system-current.txt index 264bc81..2839f68 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -21118,9 +21118,10 @@ package android.net.wifi { field public static final int REASON_NOT_AUTHORIZED = -4; // 0xfffffffc field public static final int REASON_SUCCEEDED = 0; // 0x0 field public static final int REASON_UNSPECIFIED = -1; // 0xffffffff - field public static final int REPORT_EVENT_AFTER_BUFFER_FULL = 0; // 0x0 + field public static final deprecated int REPORT_EVENT_AFTER_BUFFER_FULL = 0; // 0x0 field public static final int REPORT_EVENT_AFTER_EACH_SCAN = 1; // 0x1 field public static final int REPORT_EVENT_FULL_SCAN_RESULT = 2; // 0x2 + field public static final int REPORT_EVENT_NO_BATCH = 4; // 0x4 field public static final int WIFI_BAND_24_GHZ = 1; // 0x1 field public static final int WIFI_BAND_5_GHZ = 2; // 0x2 field public static final int WIFI_BAND_5_GHZ_DFS_ONLY = 4; // 0x4 diff --git a/wifi/java/android/net/wifi/WifiScanner.java b/wifi/java/android/net/wifi/WifiScanner.java index 4ead972..5f430f0 100644 --- a/wifi/java/android/net/wifi/WifiScanner.java +++ b/wifi/java/android/net/wifi/WifiScanner.java @@ -136,12 +136,17 @@ public class WifiScanner { } } - /** reports {@link ScanListener#onResults} when underlying buffers are full */ + /** reports {@link ScanListener#onResults} when underlying buffers are full + * @deprecated + */ + @Deprecated public static final int REPORT_EVENT_AFTER_BUFFER_FULL = 0; /** reports {@link ScanListener#onResults} after each scan */ public static final int REPORT_EVENT_AFTER_EACH_SCAN = 1; /** reports {@link ScanListener#onFullResult} whenever each beacon is discovered */ public static final int REPORT_EVENT_FULL_SCAN_RESULT = 2; + /** do not batch */ + public static final int REPORT_EVENT_NO_BATCH = 4; /** * scan configuration parameters to be sent to {@link #startBackgroundScan} |