From 49f29f155e729fd02eeae18b98cfc6ee4910ad3f Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Thu, 20 Apr 2017 15:55:15 -0700 Subject: [AWARE] Specify a match of only the first discovery Configure all subscriber service discovery to wake up the host only on the first match. Reduce power. Bug: 37547045 Test: unit tests and integration (sl4a) tests passing. Change-Id: If94462579244f87e624534e75e1707474588eda0 --- .../src/com/android/server/wifi/aware/WifiAwareServiceImplTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareServiceImplTest.java index 0ffb04bd2..b5e12d29c 100644 --- a/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareServiceImplTest.java +++ b/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareServiceImplTest.java @@ -601,8 +601,7 @@ public class WifiAwareServiceImplTest { // caught by the Builder. Want to test whether service side will catch invalidly // constructed configs. SubscribeConfig subscribeConfig = new SubscribeConfig(serviceName.getBytes(), ssi, - matchFilter, SubscribeConfig.SUBSCRIBE_TYPE_PASSIVE, 0, - SubscribeConfig.MATCH_STYLE_ALL, true); + matchFilter, SubscribeConfig.SUBSCRIBE_TYPE_PASSIVE, 0, true); int clientId = doConnect(); IWifiAwareDiscoverySessionCallback mockCallback = mock( IWifiAwareDiscoverySessionCallback.class); -- cgit v1.2.3