From 597492c963725366b320678786d241e7f654e347 Mon Sep 17 00:00:00 2001 From: Soonil Nagarkar Date: Wed, 27 May 2015 11:23:37 -0700 Subject: Add NO_BATCH flag to WifiScanner Change-Id: Idd521f724684986ff84306327d42b810f7b30245 (cherry picked from commit b9e6d98c6c0a05ebfc73a14d1ac2a47d58290241) --- wifi/java/android/net/wifi/WifiScanner.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wifi') 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} -- cgit v1.1