Skip to content
Commit d2f1260c authored by JW Wang's avatar JW Wang
Browse files

Implement AppStateHelper#hasActiveNetwork

An app is said to be network active if it has sent
or received network data over the pas 10 minutes.

For now we monitor only WIFI and mobile network.
This should cover most cases of network usage.

Bug: 235306967
Test: atest CtsStagedInstallHostTestCases
Change-Id: Iac49bd83202932fc7a411cdc8a97e0a949c3f691
parent f8d1c26e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment