android_packages_modules_Co.../tests/net/java/com/android/server
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
..
connectivity Add static for constant 2021-03-25 10:16:34 +00:00
net Support Dual ViLTE stats 2021-03-15 10:00:59 +08:00
ConnectivityServiceTest.java Assign the bit calculation as long to prevent overflow 2021-04-07 02:06:33 +00:00
IpSecServiceParameterizedTest.java Merge changes I852e3a53,I86755647,I0ed8b0c6 2021-02-22 06:49:39 +00:00
IpSecServiceRefcountedResourceTest.java Remove unused INetworkManagementService from IpSecService 2021-02-08 08:05:00 +00:00
IpSecServiceTest.java Add a new API to get the network ID range of IPSec tunnel interface 2021-03-12 00:46:33 +08:00
LegacyTypeTrackerTest.kt Remove usage of networkAttributes 2021-03-16 16:01:40 +09:00
NetIdManagerTest.kt Move utils from network stack to libs. 2020-07-29 21:15:48 +09:00
NetworkManagementServiceTest.java Merge "[IT4.2] Update argument type of interfaceClassDataActivityChanged" 2020-12-28 01:05:28 +00:00
NsdServiceTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00