android_packages_modules_Co.../tests/net/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Benedict Wong 1425cf5655 Use TransformRecord to get SPI instead of SpiRecord
IpSecService.applyTunnelModeTransform() currently does not take an
SpiRecord instance, yet implicitly requires that the SpiRecord instance
is still alive based on the stored SpiRecord resourceId in
the TransformRecord's IpSecConfig.

This check is unnecessary, as the SpiRecord has been subsumed into the
TransformRecord, and the kernel resources are kept alive whether or
not the SpiRecord is still held by the user.

This allows users of the IpSecManager API to allocate short-lived SPIs
during the creation of an IpSecTransform, without having to keep track
of both of them (even though the SPI is no longer usable).

The TransformRecord.getSpiRecord() call is already used in
multiple other places in the same method.

Bug: 142072071
Test: New tests added, passing.
Change-Id: I1959f3080946267243564459ff4207647922566e
2019-10-18 21:04:59 +00:00
..
connectivity Factorize custom asserts. 2019-06-20 16:24:25 +09:00
net Remove all static members from NetworkStatsFactory. 2019-06-27 17:39:05 +09:00
ConnectivityServiceTest.java Merge "DO NOT MERGE - Merge Android 10 into master" 2019-09-05 16:53:23 +00:00
IpSecServiceParameterizedTest.java Use TransformRecord to get SPI instead of SpiRecord 2019-10-18 21:04:59 +00:00
IpSecServiceRefcountedResourceTest.java Fix remove-before-add for IpSecService RefcountedResource 2019-04-09 21:37:26 +00:00
IpSecServiceTest.java Revert "Add NATT keepalive resources and methods into IpSecService" 2019-05-10 00:58:18 +08:00
LegacyTypeTrackerTest.kt Fix an argument to the legacy broadcast 2019-04-23 02:36:32 +00:00
NetIdManagerTest.kt Add NetIdManagerTest 2019-09-04 15:57:58 +09:00
NetworkManagementServiceTest.java Cleanup NetworkManagementService for Netd commnads binder migrartion 2019-03-20 20:02:24 +08:00
NsdServiceTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00