bc853dd7f659f82da7b33393b2fa37772aab2155
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 84d3973d85)
Merge "Handle null packageName in PendingIntentRecord" into nyc-mr1-dev am:
6acd5e7361 am: 2f6eecbed0
…
remove 'useUpdatedTemplates' flag that's no longer supported. Fix build. am:
7dd9749246 am: ff8cb50979 am: 3578867216 am: 1696dcd4b4
…
Description
No description provided
Languages
Java
73.7%
Kotlin
14%
PowerBuilder
5.8%
C++
5.2%
AIDL
1%