Keep track of Calling UID for WifiLock acquisition
In current implementation, when processing a request to acquire a WifiLock,
the calling UID is lost when switching context to the wifi thread. This
results in acquisition is attributed to the wifi handler thread.
This commit keeps track of the calling UID so attribution is done
correctly.
Bug: 130798029
Test: atest com.android.wifi.server
Test: cts-tradefed run cts-dev -t android.cts.statsd.atom.UidAtomTests#testWifiLockHighPerf
Test: cts-tradefed run cts-dev -t android.cts.statsd.atom.UidAtomTests#testWifiLockLowLatency
Change-Id: I37f714ee2bfcf2c4cf47b8c1821837b98a1d187b
1 file changed