From 3a90dcdb6089e2a5822f28612ad799c3b86d1ece Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Fri, 13 Dec 2019 18:33:16 -0800 Subject: [PATCH] [AWARE] Add API to expose supported cipher suites Provide a new Aware capabilities API which exposes the supported cipher suites. These cipher suites are used to negotiate the data- path. The framework automatially selects the strongest cipher suite when it initiates a negotiation. Bug: 145697276 Test: (CTS) atest SingleDeviceTest Change-Id: Ifc735978aecf3a655ca3115a4659e636f69ebf31 --- .../net/src/android/net/wifi/aware/cts/SingleDeviceTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cts/net/src/android/net/wifi/aware/cts/SingleDeviceTest.java b/tests/cts/net/src/android/net/wifi/aware/cts/SingleDeviceTest.java index 1901f02cdc..5eb3e3680a 100644 --- a/tests/cts/net/src/android/net/wifi/aware/cts/SingleDeviceTest.java +++ b/tests/cts/net/src/android/net/wifi/aware/cts/SingleDeviceTest.java @@ -16,6 +16,8 @@ package android.net.wifi.aware.cts; +import static org.junit.Assert.assertNotEquals; + import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; @@ -39,7 +41,6 @@ import android.net.wifi.aware.WifiAwareManager; import android.net.wifi.aware.WifiAwareSession; import android.os.Handler; import android.os.HandlerThread; -import android.os.SystemClock; import android.platform.test.annotations.AppModeFull; import android.test.AndroidTestCase; @@ -421,6 +422,7 @@ public class SingleDeviceTest extends AndroidTestCase { assertEquals("Service Specific Information Length", characteristics.getMaxServiceSpecificInfoLength(), 255); assertEquals("Match Filter Length", characteristics.getMaxMatchFilterLength(), 255); + assertNotEquals("Cipher suites", characteristics.getSupportedCipherSuites(), 0); } /**