Removed the second "continue" to allow isFirstValidTask to be set to
false.
This is a follow-up fix from commit 91c5066c00.
Bug: 28754669
Change-Id: Ic852afaa78fc79bcd85b04e888975cd3bfc72094
We also need to freeze the override configuration so we don't report
the new configuration too early, which leads to bugs.
Bug: 27915587
Change-Id: Idffadbb02ab0311796caa760ae1f467fd2d17768
am: a02fbe1ea0
* commit 'a02fbe1ea00a9b6a5df5bd965be74ada7e496c8a':
Remove task based on object rather than position
Change-Id: I15abbf1a5877272ef71b0a08f21d249239f5981b
am: e1293b7d07
* commit 'e1293b7d07f5854337fef35a2e3b4338df90866e':
Remove task based on object rather than position
Change-Id: I74d2dec60c6e7173d818d92ac166143a6b292f40
Since the transition is picked from layout params from the activity
below, we need to manually override it.
Bug: 28750938
Change-Id: I7351c7d8bd14a393cba51d6afb1e644204217440
am: cc02a95cbd
* commit 'cc02a95cbd694927cd70d7b0d7921d3f10300b38':
Fixed connectivity state in some power saving scenarios.
Change-Id: I9ce60e8520c041e1345960a51394f8477c4ac49e
am: 25018d41f4
* commit '25018d41f482fe21a45eb2e739f22dc7cc937428':
Fixed connectivity state in some power saving scenarios.
Change-Id: I7ebe3864657d2147034ffae400312e94deb5ef35
am: 25018d41f4
* commit '25018d41f482fe21a45eb2e739f22dc7cc937428':
Fixed connectivity state in some power saving scenarios.
Change-Id: If76cc55916bbd7e5e4093b39ff81a40c1e43034c
am: 0fcf5474c8
* commit '0fcf5474c87efec3e6b0ead4c10080605b64c9f8':
Workaround for empty recents, defer the enter animation.
Change-Id: Iec9ac720e5d41094ec22d337faa8ea9c0313dcfc
am: 2b8dcdeda4
* commit '2b8dcdeda484c3ed92969420a19ba48c2f877c81':
Workaround for empty recents, defer the enter animation.
Change-Id: I9678058e4fdb7b207b9c9b0a2f1c2b40d47b8835
am: 2b8dcdeda4
* commit '2b8dcdeda484c3ed92969420a19ba48c2f877c81':
Workaround for empty recents, defer the enter animation.
Change-Id: Ie4b9c468c4b42a42cbbf0eb9892f074f771c6ea0
Is some cases, the adapter is changed before the AnimationListener is
fired. Thus we need to remove the task without relying on position.
BUG: 28703989
Change-Id: If5cfe8589bbf6938c6e57e8e4c7bd54de6e3bd68
am: f46fdf877e
* commit 'f46fdf877ef54adc236698635967ff79d7a0dfe2':
DPM control for remote input when locked
Change-Id: I7eb3cdf17b4a61865bfe85ae6d9c281b113aeb9f
am: 11c8f5315b
* commit '11c8f5315b195d6a63f981a7ff434fa7937ba5d3':
DPM control for remote input when locked
Change-Id: Id7074ffdc541d53d4607652cefc4bfdecaaaa335
am: 11c8f5315b
* commit '11c8f5315b195d6a63f981a7ff434fa7937ba5d3':
DPM control for remote input when locked
Change-Id: I330777f47f51dee00623ace614271f42b6d4fca7
NetworkPolicyManagerService (NPMS) manages 4 type of network restriction
when apps are running on background:
- Data Saver Mode (data usage restriction on metered-networks)
- Battery Saver Mode (power restriction on all networks)
- Doze Mode (power restriction on all networks)
- App Idle (power restriction on all networks)
These restrictions affects 2 parts of the system:
- Internal framework state on NPMS which is propagated to other internal
classes.
- External firewall rules (managed by netd).
Although each of the power-related restrictions have their own external firewall
rules, internally apps are whitelisted to them through the same
whitelist, and the current code is only updating the internal state (and
notifying the internal listeners) when Battery Saver Mode is on.
As a consequence of this problem, there are scenarios where an app
correctly does not have internet access (because the firewall rules are
properly set), but the NetworkInfo state returns the wrong state (like
CONNECTED / CONNECTED).
This CL fixes this problem by splitting the power-related logic from
updateRulesForRestrictBackgroundLocked() into its own
method (updateRulesForPowerRestrictionsLocked()), and making sure such
method is called whenever the firewall rules are updated.
Externally to this change, the CTS tests were also improved to verify
the apps get the proper connection state; it can be verified by running:
cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests \
-t com.android.cts.net.HostsideRestrictBackgroundNetworkTests
BUG: 28521946
Change-Id: Id5187eb7a59c549ef30e2b17627ae2d734afa789