No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Cody Kesting f1120be78b Report result SKIPPED in ConnDiags if the network is not validated.
This CL updates ConnectivityDiagnostics to report
NETWORK_VALIDATION_RESULT_SKIPPED when the platform does not validate
the reported Network. This CL also updates the behavior for
ConnectivityManager#reportNetworkConnectivity, such that it will always
generate a ConnectivityReport on the reported network. If the reported
connectivity does not match the known connectivity of this network, the
network is revalidated and a report is generated. Otherwise,
revalidation is not performed and the cached ConnectivityReport is sent
instead.

This CL also updates ConnDiags behavior for calls to
ConnectivityManager#reportNetworkConnectivity. Specifically, ConnDiags
callbacks are only notified for these calls if:
  a) the call causes the Network to be re-validated, or
  b) the callback registrant was the caller of
     #reportNetworkConnectivity().
For b), the caller is always guaranteed to receive a ConnectivityReport
(a fresh report if the Network is re-validated, else the cached report).

Bug: 162407730
Test: atest FrameworksNetTests ConnectivityDiagnosticsManagerTest
Change-Id: I78b78919d5b0f09348dfdd5fdb37418b8c7f861f
2021-07-01 17:38:16 -07:00
core am 558aeb90: Merge "Make NetworkCapabilities publicly immutable." into lmp-preview-dev 2014-06-12 18:49:07 +00:00
framework Trigger the network score update after setting test allow bad wifi 2021-06-30 16:41:59 +08:00
service Report result SKIPPED in ConnDiags if the network is not validated. 2021-07-01 17:38:16 -07:00
services am 558aeb90: Merge "Make NetworkCapabilities publicly immutable." into lmp-preview-dev 2014-06-12 18:49:07 +00:00
tests Report result SKIPPED in ConnDiags if the network is not validated. 2021-07-01 17:38:16 -07:00
Tethering Enable tethering to perform its own hidden API processing 2021-06-30 00:00:41 +01:00
.gitignore Add a .gitignore in packages/modules/Connectivity. 2020-11-27 18:09:21 +09:00
OWNERS Revert "Add owners block for migration" 2021-05-31 10:34:04 +00:00
PREUPLOAD.cfg Add repo hooks for packages/modules/Connectivity. 2020-11-27 18:09:24 +09:00
TEST_MAPPING Merge "Add ConnectivityCoverageTests to postsubmit" 2021-06-24 06:32:36 +00:00