summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2016-09-08 13:26:55 -0700
committerFelipe Leme <felipeal@google.com>2016-09-08 13:57:06 -0700
commit84d3973d854aef6678624aa8773c5b0c12f24419 (patch)
treeb2a2f18c67a7c0c365b31c388a98161fa23f1d52 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0970046adf578c0003d5bfbd19a0ca58c18d96cc (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). Fixes: 31281543 Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests Change-Id: If720a7112c72a18193ea9614ae187b7ed9c741ec
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions