android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej Żenczykowski 785793fe19 BpfNetMaps.java - uid U32 -> S32
This converts the key, which is a uid, of sUidOwnerMap & sUidPermissionMap from U32 to S32.

The kernel is actually not consistent in whether uids & gids
are signed or unsigned, and neither is our Java code, which
also commonly uses just 'int' for uid.  In practice values
greater or equal to 2**31 often don't quite work right.
For example icmp sockets are enabled via a sysctl that
takes a minimum and maximum gid - and these are signed int32s.

It's worth pointing out that these functions already accept int's
as arguments, so when converting them to U32 (and thus long) they
technically previously did the wrong thing (though it's unlikely
it ever mattered).

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I7b389a1cf822c56134b20df5ded269963f5bf69f
2022-09-17 06:06:23 +00:00
..
connectivity Merge "Replace requestNetwork with registerSystemDefaultNetworkCallback" 2022-09-15 09:00:39 +00:00
ethernet Convert EthTrackTest from when() to doReturn() 2022-09-01 18:02:12 +09:00
net Migrate BpfInterfaceMapUpdater from U32 to S32 2022-09-16 04:46:10 +00:00
BpfNetMapsTest.java BpfNetMaps.java - uid U32 -> S32 2022-09-17 06:06:23 +00:00
ConnectivityServiceTest.java Merge "Add tests for captive/partial after roam and ignore roam failures" 2022-09-16 07:49:24 +00:00
IpSecServiceParameterizedTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecServiceRefcountedResourceTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecServiceTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
LegacyTypeTrackerTest.kt Build ethernet framework source into framework-connectivity-tiramisu 2022-03-14 14:06:35 +00:00
NetIdManagerTest.kt Address comments on aosp/1781202 2022-08-17 07:11:55 +00:00
NetworkManagementServiceTest.java Split updateMeteredNetwork{Allow, Deny}List into add and remove 2022-03-09 11:17:27 +08:00
NsdServiceTest.java Add null check for clientInfo 2022-08-16 07:21:55 +00:00
VpnManagerServiceTest.java Verify lock down related flows 2022-08-05 02:00:16 +00:00
VpnTestBase.java Test VPN app exclusion 2022-06-29 06:15:41 +00:00