Lorenzo Colitti
5ab70251e8
Add onBlockedStatusChanged(Network, int) to NetworkCallback.
...
This is similar to onBlockedStatusChanged(Network, boolean) but
it allows the callback holder to know the exact reason why
networking was blocked. It is useful to privileged system
components such as JobScheduler that are able to ignore some
blocked reasons but not others.
Also add a new BLOCKED_REASON_LOCKDOWN_VPN that is used when
networking is blocked because an always-on VPN is in
lockdown mode.
Also move BLOCKED_METERED_REASON_MASK to ConnectivityManager.
This is necessary because ConnectivityService must ensure that
the blocked status callbacks are correctly sent when meteredness
changes (e.g., a UID that is blocked on metered networks will
become unblocked on a network that becomes unmetered). In order
to do this it needs to know which reasons apply only on metered
networks.
Bug: 165835257
Test: unit tests in subsequent CLs in the stack
Change-Id: I647db4f5a01280be220288e73ffa85c15bec9370
2021-03-26 02:37:19 +09:00
..
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2020-12-16 00:14:52 +00:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2020-12-08 08:36:28 -07:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-18 10:36:56 +00:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2020-12-08 08:36:28 -07:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-03-26 02:37:19 +09:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-18 13:15:03 +00:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2020-12-08 08:36:28 -07:00
2021-02-16 04:09:57 -08:00
2021-02-21 09:39:53 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-01 08:23:53 +00:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-21 09:39:53 -08:00
2021-03-23 17:42:12 -07:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00
2021-02-16 04:09:57 -08:00