c79666b79e273ceaa2f74090b02ca6cf83c61387 |
|
27-Jan-2016 |
Peter Qiu <zqiu@google.com> |
WifiApConfigStore refactoring Here are main changes to WifiApConfigStore: - add public APIs to get/set AP configurations, instead of doing it via message passing between state machines. - remove unnecessary statemachine logics. - remove the use of a dedicated thread for writing configuration file, the reason is that the file size is fairly small, seems unnecessary to create a separate thread just for that (which adds complexity). - handle setting of "null" ap configuration, by falling back to use the default configuration. - add unit tests With this refactoring, WifiApConfigStore becomes more self-contained, which can be easily reused by other modules (e.g. upcoming SoftApManager). Bug: 26727266 TEST=runtest frameworks-wifi TEST=manual test: update/enable WiFi hotspot Change-Id: If438d5be7eaf59f0f2d35ed25a899cef93c5a638
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiApConfigStoreTest.java
|