Commit graph android_packages_modules_Co.../tests
Message SHA1
Merge "ClatCoordinator: wrap clatd information" am: a59eec920c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2028283

Change-Id: I10a0c09cd6e73461c10981f89ad5a5fe18c12291

Nucca Chen   authored and   Automerger Merge Worker   commited 2022-03-22 08:46:14 +00:00
594085e774
Merge "Add executors to NsdManager" am: b58df4bf13
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2027043

Change-Id: I93294667e79684652dba065583e651148a8d0991

Remi NGUYEN VAN   authored and   Automerger Merge Worker   commited 2022-03-22 08:46:00 +00:00
ef37e45e8a
Merge "ClatCoordinator: wrap clatd information"
Nucca Chen   authored and   Gerrit Code Review   commited 2022-03-22 08:40:15 +00:00
a59eec920c
Merge "Add executors to NsdManager"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2022-03-22 08:33:48 +00:00
b58df4bf13
ClatCoordinator: wrap clatd information
This is a preparation for accessing BPF program and map from existing
Java class. The new class ClatdTracker stores the clatd information
for forking clatd, accessing BPF maps and attaching BPF programs.
Using an object is easier to pass all required parameters and reuse
known resource.

Also refactor existing function and rename existing variables for this
commit.

Bug: 221213090
Test: atest FrameworksNetTests
Change-Id: I02ea889de89329c52710726fbcf1d2eac61707d7

Hungming Chen   commited 2022-03-22 15:20:17 +08:00
328d15271b
Merge "Extend timeout to deflake test" am: f7c071b1c4
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2033664

Change-Id: I106af9df7be12659cebff2f088b98a19eadbb244

Chiachang Wang   authored and   Automerger Merge Worker   commited 2022-03-22 01:01:10 +00:00
177ffffd25
Merge "Extend timeout to deflake test"
Chiachang Wang   authored and   Gerrit Code Review   commited 2022-03-22 00:43:36 +00:00
f7c071b1c4
Merge "Fix OWNERS issues" am: dc1832cd83
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2022776

Change-Id: Iafc9c40c49f2087f1ae552ef1f5a7cfee0a16364

Treehugger Robot   authored and   Automerger Merge Worker   commited 2022-03-21 11:27:05 +00:00
ac58a96c4a
Merge "Fix OWNERS issues"
Treehugger Robot   authored and   Gerrit Code Review   commited 2022-03-21 10:51:57 +00:00
dc1832cd83
Extend timeout to deflake test
CaptivePortalLoginActivity may load the page slowly in lower
performance devices. Test expects the login page to be loaded
within 10s. The flaky happened sometimes since loading page
took 10+ seconds and failed the test.

Extend the timeout from 10s to 20s to deflake the test.

Bug: 225800341
Test: atest CaptivePortalTest
Change-Id: I98ab3dbc78cb95eeee95d1c86ab286600c98390b

Chiachang Wang   commited 2022-03-21 15:50:39 +08:00
81c2d99a77
Merge "Allow sending of Administrator UIDs for *NETWORK_STACK" am: 0e75662808
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1761211

Change-Id: I7136333339ce5819000cbdec43836fd5f1d07304

Benedict Wong   authored and   Automerger Merge Worker   commited 2022-03-19 01:50:13 +00:00
e26f8d1bfe
Merge "Allow sending of Administrator UIDs for *NETWORK_STACK"
Benedict Wong   authored and   Gerrit Code Review   commited 2022-03-19 01:33:27 +00:00
0e75662808
Merge changes from topic "QosCallbackException" am: 7a4fcf4ed1
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2028285

Change-Id: I862f597bfcaeb8e99b0448d62739d42de1ea931a

Sewook Seo   authored and   Automerger Merge Worker   commited 2022-03-19 00:56:04 +00:00
7b83d68aae
Merge changes from topic "QosCallbackException"
* changes:
  CTS test for QosCallbackException
  Expose constructor of Exceptions.

Sewook Seo   authored and   Gerrit Code Review   commited 2022-03-19 00:35:28 +00:00
7a4fcf4ed1
Allow sending of Administrator UIDs for *NETWORK_STACK
This change allows callers with the NETWORK_STACK or
PERMISSION_NETWORK_STACK to receive administrator UIDs. This will be
used by the VCN to ensure that administrator UIDs are accurately
populated, ensuring that the ConnectivityDiagnostics are triggered for
the VCN.

Bug: 193204385
Test: atest ConnectivityServiceTest
Change-Id: I3ecfbef6847dcc78adac05d0229719c97e3a220c

Benedict Wong   commited 2022-03-18 21:52:57 +00:00
a5604ea50f
Merge "Setup permissions for SDK sandbox UIDs." am: b643f2a356
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2020099

Change-Id: Icca15abc84d3b51ed44b5b13c31831146648d8ab

Martijn Coenen   authored and   Automerger Merge Worker   commited 2022-03-18 13:57:45 +00:00
f67e7c6352
Merge "Setup permissions for SDK sandbox UIDs."
Martijn Coenen   authored and   Gerrit Code Review   commited 2022-03-18 13:35:51 +00:00
b643f2a356
Fix OWNERS issues
Switch to a bug template that assigns the correct group.

Consolidate into one file to make it easier for humans as well as
machines to figure out the ownership.

Remove me from per-file ownership; no longer relevant, causes
confusion.

Bug: 224454753
Test: Presubmit
Change-Id: I84bf472fe56fe3f5927a626bde06cdd8cee8353a

Alan Stokes   commited 2022-03-18 10:52:02 +00:00
eae2ff9831
CTS test for QosCallbackException
Adding CTS test coverage for Exceptions realted to QosCallback

Bug: 224059548
Test: atest CtsNetTestCases
Change-Id: Iccd1d3259961a6e4a841395175e215724895786e

sewookseo   authored and   Sewook Seo   commited 2022-03-18 10:44:31 +00:00
27447c526a
Merge "Support ignoring validation failures after roam." am: 004cbbcdad
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2026185

Change-Id: I50fb615446b889b98ca0fe4c63bc8dc7a167a788

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2022-03-18 03:32:30 +00:00
2c4ba92b72
Merge "Support ignoring validation failures after roam."
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-03-18 03:15:49 +00:00
004cbbcdad
Merge changes from topic "ethernetmanagertest" am: 14c851ccc3
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1978069

Change-Id: I95907044d1ef728d1780f1b9bcb4a741a3213dab

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2022-03-18 02:51:43 +00:00
07aad5a3e0
Support ignoring validation failures after roam.
In some scenarios, Wi-Fi connectivity is disrupted after roam. If an application reacts to network errors by calling reportNetworkConnectivity(false), validation will immediately fail and the device will switch to cell data.

Add a way to ignore these validation failures for up to 10 seconds after Wi-Fi roams.

Bug: 216567577
Test: new unit tests

Change-Id: I58de486533bcc7c6e32b23536ae15bccb779e394

he_won.hwang   commited 2022-03-18 10:30:28 +09:00
881307a834
Add a CTS test for EthernetManager.InterfaceStateListener.
Test: CtsNetTestCases:android.net.cts.EthernetManagerTest
Change-Id: Ic956b5e52575a467b405fecf142c7f25925358d4

Lorenzo Colitti   authored and   Xiao Ma   commited 2022-03-17 13:42:34 +00:00
9e560d24c2
Add executors to NsdManager
Add executors to APIs added in T, and overloads with Executors for
consistency to register/resolve.

Bug: 218752665
Test: atest NsdManagerTest
Change-Id: I9d89ea8352aa8274a90bf6cb273d5b45828f53cc

Remi NGUYEN VAN   commited 2022-03-17 11:01:56 +00:00
59145dc7f8
Merge changes from topic "nullable-ipconfig" am: 1b13af010a
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2026565

Change-Id: I3564ece377766d0e3b2cb6f98209b00dc3a60697

Patrick Rohr   authored and   Automerger Merge Worker   commited 2022-03-17 07:04:24 +00:00
3a74a64079
Merge changes from topic "nullable-ipconfig"
* changes:
  Add test for nullable IpConfiguration
  Add Nullable IpConfiguration to ethernet update request
  Replace assertParcelSane with assertParcelingIsLossless

Patrick Rohr   authored and   Gerrit Code Review   commited 2022-03-17 06:17:02 +00:00
1b13af010a
Rename setAccessUids to setAllowedUids am: de665266cd
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1999075

Change-Id: Ie61c0a2285c8097b30c3c00473ed97209e149f4f

Chalard Jean   authored and   Automerger Merge Worker   commited 2022-03-17 04:55:18 +00:00
eeba8050f4
Add test for nullable IpConfiguration
Test: atest EthernetNetworkUpdateRequestTest
Change-Id: Ibf565d46cfac0d44976ee6187db7234bb082da41

Patrick Rohr   commited 2022-03-16 20:29:10 +01:00
fb82c3f702
Merge "Use int array for included and excluded uids" am: 2ccbfe9d8f
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2018920

Change-Id: I18b2d124a974541b693bcd8f96c8f2b46bb01052

Sooraj Sasindran   authored and   Automerger Merge Worker   commited 2022-03-16 18:22:41 +00:00
8b0350f4b6
Rename setAccessUids to setAllowedUids
Bug: 217725769
Test: ConnectivityServiceTest CtsNetTestCases
Change-Id: Ic8a3f91553d1462b7f54259c467fb90a950bdd59
Merged-In: I8860fbb353eedf5d01e9dc248e4d765046bd562c

Chalard Jean   authored and   Sooraj Sasindran   commited 2022-03-16 17:58:20 +00:00
de665266cd
Merge "Use int array for included and excluded uids"
Sooraj Sasindran   authored and   Gerrit Code Review   commited 2022-03-16 17:56:08 +00:00
2ccbfe9d8f
Build ethernet framework source into framework-connectivity-tiramisu am: 0a171c006c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1956052

Change-Id: If7c86d0404571920dddaba492dff4f06448eb141

Xiao Ma   authored and   Automerger Merge Worker   commited 2022-03-16 17:08:56 +00:00
22c83111ec
Replace assertParcelSane with assertParcelingIsLossless
Per review comment on aosp/2012897.

Test: atest EthernetNetworkUpdateRequestTest
Change-Id: Ie2f21d821709cc82af9294d70826f153506fda4f

Patrick Rohr   commited 2022-03-16 17:20:36 +01:00
ceae88da2d
Merge changes from topic "ethernet_mainline"
* changes:
  Fix the NPE thrown when starting Ethernet service in OS lower than T.
  Remove the stub ethernet service from Connectivity module.
  Update hidden API files for EthernetManager API move.
  Provide a stub ethernet service to build in sc-mainline-prod.
  Build ethernet framework source into framework-connectivity-tiramisu

Patrick Rohr   authored and   Gerrit Code Review   commited 2022-03-16 16:03:30 +00:00
6dde8ac532
Merge "Ensure SpiUnavailableException was thrown because of duplicate SPI" am: ef716bcb94
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2015999

Change-Id: I892118930e9729c483523f8d337a76b28236c6c3

Aaron Huang   authored and   Automerger Merge Worker   commited 2022-03-16 09:05:43 +00:00
50ade5403d
Merge "Ensure SpiUnavailableException was thrown because of duplicate SPI"
Aaron Huang   authored and   Gerrit Code Review   commited 2022-03-16 08:36:28 +00:00
ef716bcb94
Use int array for included and excluded uids
Use int array for included and excluded uids so that uses
same data type as in PreferentialNetworkServiceConfig

Bug: 217365439
Test: ran connectivity service unit tests
Change-Id: I9ac7e6498df2fd20b8397b2c110296e019c7389e

Sooraj Sasindran   commited 2022-03-16 07:19:11 +00:00
4904176454
Merge "Rename setUidForeground to noteUidForeground" am: 8b7896b51a
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2018880

Change-Id: Ibcc236d2807da26a9aeae3eab6d6b10361a58cb5

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2022-03-15 23:57:57 +00:00
cf9f545864
Merge "Rename setUidForeground to noteUidForeground"
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-03-15 23:33:26 +00:00
8b7896b51a
Setup permissions for SDK sandbox UIDs.
Applications may have an additional SDK sandbox process that should run
with the same network policy as the app itself. There is a 1:1 mapping
between appId and the SDK sandbox process that belongs to it; use that
mapping to set the same policy for SDK sandbox processes as for the app
that they belong to.

Bug: 215012578
Test: atest com.android.server.PermissionMonitorTest
Change-Id: Ibd2ada09c94d46e048f5731b90a721d8e85d3289

Martijn Coenen   commited 2022-03-15 10:06:39 +01:00
3f01be0407
Merge "Add a NetworkAgent API to indicate that a network will be replaced." am: 9f6e6c4e27
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1987457

Change-Id: Ic0993febcabeb115aa6728bfd3b74a17bdebf110

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2022-03-15 05:14:59 +00:00
27987f4800
Merge "Add a NetworkAgent API to indicate that a network will be replaced."
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-03-15 04:44:16 +00:00
9f6e6c4e27
Build ethernet framework source into framework-connectivity-tiramisu
- move ethernet APIs, build it into framework-connectivity-tiramisu
- start ethernet service from ConnectivityServiceInitializer
- fix EthernetManager dependnecy in Tethering module
- fix EthernetNetworkSpecifier dependency in framework-connectivity
- fix the ethernet related config resource

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I54857b8517649048a343c72797668394d5225766
Merged-In: I54857b8517649048a343c72797668394d5225766

Xiao Ma   commited 2022-03-14 14:06:35 +00:00
0a171c006c
Add a NetworkAgent API to indicate that a network will be replaced.
This is useful for link layers that disconnect but know they will
reconnect to a similar network soon, and do not want the device
to switch to another network until the reconnect happens. An
example is wifi switching to another network that is on a
different subnet without the device switching to cellular data.

This works by immediately destroying the network, so the link
layer can reuse the same interface name for the new network. It
would be possible to delay destroying the network until the new
network connects, but in practice this does not seem useful,
because the if the link layer reuses the interface, then the
interface will be undergoing reconfiguration, and will likely
not be usable for app traffic.

This CL also moves the call to onNetworkDestroyed into
destroyNativeNetwork. This is needed to ensure that the new
API calls onNetworkDestroyed even though most teardown
operations have not happened. This causes onNetworkDestroyed to
happen before the netId is marked free, but that shouldn't cause
any behavioural changes because netId allocation is an
implementation detail of ConnectivityService and is not
observable by apps or system components.

Bug: 216567577
Test: builds, boots
Test: atest FrameworksNetTests FrameworksNetIntegrationTests
Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest
Test: atest CtsNetTestCases:android.net.cts.NetworkAgentTest#testDestroyAndAwaitReplacement
Change-Id: I9f9e022fef66b31a29cce560413321075e992756

Lorenzo Colitti   commited 2022-03-14 21:52:37 +09:00
ffa2ed3d1c
Ensure SpiUnavailableException was thrown because of duplicate SPI
SpiUnavailableException.getSpi() is public API so it should be tested.

Test: CtsNetTestCases:IpSecManagerTest
Change-Id: I68856b80b0ec819b0603dfe0a06ff813be3c5dda

Aaron Huang   commited 2022-03-14 20:06:59 +08:00
3c6cc0c4e1
Merge "Rename redactNetworkCapabilitiesForPackage and update its javadoc" am: ba61dca57c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1998551

Change-Id: Ib1baaabec99dd6ded27276b5838ce655b1c49ef1

Lucas Lin   authored and   Automerger Merge Worker   commited 2022-03-14 08:22:22 +00:00
32a4959ebe
Merge "Rename redactNetworkCapabilitiesForPackage and update its javadoc"
Lucas Lin   authored and   Gerrit Code Review   commited 2022-03-14 08:05:08 +00:00
ba61dca57c
Merge "Add test coverage for NetworkStats.Bucket#getRoaming()" am: 23f5e54efa
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2017915

Change-Id: Ieee7feb81bff9287a52f92fd799807bf8fea3d3c

Aaron Huang   authored and   Automerger Merge Worker   commited 2022-03-10 12:32:10 +00:00
8751ae97b6
Merge "Add test coverage for NetworkStats.Bucket#getRoaming()"
Aaron Huang   authored and   Gerrit Code Review   commited 2022-03-10 12:14:10 +00:00
23f5e54efa