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
tree: 878f6008118192b3fd0c34dd5fab3e0989860474
  1. service/
  2. PREUPLOAD.cfg