android_packages_modules_Co.../tests/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chiachang Wang 7dd2a3d7db Assign the bit calculation as long to prevent overflow
The value should be assigned as a long to do the bit calculation
as the mNetworkCapabilities is intended to be a long. Otherwise,
the value will be temporary assigned into an integer then
assigned to the target long. When the bit shift calculation
is out of the integer scope, the calculation will overflow and
result in unexpected bebavior.

Without assigning to a long, ConnectivityServiceTest will get
Out-Of-Memory in StringBuilder while generating toString() in
NetworkCapabilities after updating tests to verify
NET_CAPABILITY_VSIM and NET_CAPABILITY_BIP.

Bug: 130869457
Test: atest FrameworksNetTests
Change-Id: I4d34c1215c7efb6dc352c314107792e3fa512ad7
2021-04-07 02:06:33 +00:00
..
common Merge "Move deduceRestrictedCapability to libs/net and rename it" 2021-04-01 11:37:51 +00:00
integration Add required permission to FrameworksNetIntegrationTests 2021-03-31 18:52:04 -07:00
java Assign the bit calculation as long to prevent overflow 2021-04-07 02:06:33 +00:00
res/raw NetworkStats: apply464xlatAdjustments - don't remove CLAT_UID 2020-05-28 02:44:20 -07:00
smoketest [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base 2021-02-16 04:09:57 -08:00
Android.bp Merge "Create ServiceConnectivityResources" 2021-03-16 02:29:31 +00:00
jarjar-rules.txt Address comments on aosp/1448415 2020-10-21 13:54:02 +09:00
TEST_MAPPING frameworks: add test group for auto tests 2021-03-09 15:54:39 -08:00