OSDN Git Service

WifiCond: getScanStats() API in OffloadSCanManager
authorSohani Rao <sohanirao@google.com>
Fri, 14 Apr 2017 23:20:08 +0000 (16:20 -0700)
committerSohani Rao <sohanirao@google.com>
Wed, 3 May 2017 16:13:06 +0000 (09:13 -0700)
commitf33517d79737dd96e5d86ed45ab095be3a4c4773
tree1067efbaaa91775eac4bea13dd614e92ef86df2c
parent2a270852b006b16d500ca11a6e30d3a1a16ba200
WifiCond: getScanStats() API in OffloadSCanManager

Introduce new API in OffloadScanManager getScanStats() to get scan stats
from Offload HAL. Created a parcelable NativeScanStats struct to export
this data and corresponding unit test coverage. Also included unit tests
to verify conversion from ScanStats in Offload HAL format to Wificond
format.

Test: Unit tests
Bug: 32842314
Change-Id: I82bec2cc42635588ef8cb3fd0ad3206242349645
14 files changed:
Android.mk
scanning/offload/offload_scan_manager.cpp
scanning/offload/offload_scan_manager.h
scanning/offload/offload_scan_utils.cpp
scanning/offload/offload_scan_utils.h
scanning/offload/scan_stats.cpp [new file with mode: 0644]
scanning/offload/scan_stats.h [new file with mode: 0644]
tests/offload_hal_test_constants.cpp [new file with mode: 0644]
tests/offload_hal_test_constants.h [new file with mode: 0644]
tests/offload_scan_manager_test.cpp
tests/offload_scan_utils_test.cpp
tests/offload_test_utils.cpp
tests/offload_test_utils.h
tests/scan_stats_unittest.cpp [new file with mode: 0644]