diff options
author | Felipe Leme <felipeal@google.com> | 2016-09-08 13:26:55 -0700 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2016-09-09 03:19:23 +0000 |
commit | bc853dd7f659f82da7b33393b2fa37772aab2155 (patch) | |
tree | dce9f6e520132057393b35b91b046cb257ffe1e1 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 167d7cac80eb451d67903b3b8f131a894eae8444 (diff) |
Calls setUidFirewallRules() and enableFirewallChain() asynchronously.
The updateRulesForRestrictPowerUL() method is used to set the
power-related restrictions for all apps and it ends up by calling
NetworkManagerService twice (and each call spawns an iptables process,
which takes ~50ms to complete). This method is called on some critical
paths, like when the device leaves Doze Light mode.
This change makes these calls asynchronously, hence reducing the delay
on such critical paths in the O(100ms).
BUG: 31281543
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: If720a7112c72a18193ea9614ae187b7ed9c741ec
(cherry picked from commit 84d3973d854aef6678624aa8773c5b0c12f24419)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions