OSDN Git Service

WifiManager: implement watch LocalOnlyHotspot
authorRebecca Silberstein <silberst@google.com>
Thu, 27 Apr 2017 20:57:19 +0000 (13:57 -0700)
committerRebecca Silberstein <silberst@google.com>
Sun, 30 Apr 2017 07:38:22 +0000 (00:38 -0700)
commit4871da6b0715bf09b14fb593cfe112733d0c53ef
tree1dfd2b2fbc6367b6f2ea943f20505e0b617f6325
parentce74fc29b0247443199671d89d6bda58bb399a13
WifiManager: implement watch LocalOnlyHotspot

Implement new calls to watchLocalOnlyHotspot and
unregisterLocalOnlyHotspotObserver along with the classes
LocalOnlyHotspotObserver and LocalOnlyHotspotSubscription.

Added tests for watching LOHS and cancelling a LOHS subscription.

The calls will be exposed in a later CL.

Bug: 36704763
Test: compiles
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ia0a528191ae0897742304d8b61e9779ad721a450
wifi/java/android/net/wifi/WifiManager.java
wifi/tests/src/android/net/wifi/WifiManagerTest.java