WifiServiceImpl: check app status for startLOHS
When apps register a request for LOHS, they should be the foreground app
at the time of the request. If the requesting app is not the foreground
app, the ERROR_INCOMPATIBLE_MODE error will be returned.
Bug: 62356000
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: softap integration tests locally
Test: in progress LOHS integration tests locally
Test: cts-tradefed run cts-dev --module CtsNetTestCases -t
android.net.wifi.cts.WifiManagerTest
Change-Id: Ic51bbc28478f90983555943a45f4fd70f4b2b385
3 files changed