- Feb 09, 2024
-
-
Yan Yan authored
Bug: 319532485 Test: Verified the return value on husky (arm) and cuttlefish (x86_64) Change-Id: I8fd53b0f137ad701e051644eafaa12c2a5cf3e7f
-
- Jan 19, 2024
-
-
Chiachang Wang authored
-
- Jan 18, 2024
-
-
Mohannad Farrag authored
-
Yan Yan authored
-
Mohannad Farrag authored
* Push the test-data to the device in the expected destination, this is needed to get rid of the divergance in TestFilesInstaller. * Stop jarjaring tests Jni classes. Test: TH Bug: 304217500 Change-Id: I07fa7ed09f90bf286805479edc5238b6268d59f0
-
Mohannad Farrag authored
-
Danuta Brotikovskaya authored
-
Mohannad Farrag authored
* After supporting netty, the certificates files are needed to start up the HTTP server. Those files must be moved to the emulator which happens through the changes in AndroidTest.xml, isolated-storage has been disabled to allow the emulator to access the storage freely without restriction. Otherwise I will have to change the destination of the data files which will result in divergence. * Added the newly introduced test utility java classes including netty to the `jarjar_excludes` as they must not be jarjared because they are not part of the bootclasspath. Test: atest NetHttpTests Bug: 319629150 Bug: 304217500 Change-Id: I2331873a9e178783319f889a377ba7e390ecdd6f
-
Danuta Brotikovskaya authored
Test: atest FrameworksNetTests Bug: 320588833 Change-Id: I8f80dee7b90a499bf761fdcccbc33182df259332
-
Chiachang Wang authored
-
Junyu Lai authored
* changes: Fix incorrect nullability annotations Add helper method to enfore a package name belongs to an uid
-
Chiachang Wang authored
This commit addresses the review feeback of aosp/2864606 to add a wtf log for unexpected cases. Bug: 320842025 Test: m Change-Id: I1581b0e754b74aac72278a0db61d9836618d50b5
-
Chiachang Wang authored
Address format check issue to remove unused import. Test: m Change-Id: Id3d6838b26ccdfd6d24a5c18ec45d2c97af22796
-
Handa Wang authored
This is because the test case relies on **simulation** Thread radio, which is currently only available on CuttleFish. Bug: 295843010 Test: atest android.net.thread.BorderRoutingTest Change-Id: Icd29d91c9ec9912e27191e97fe7f58e9067c1d8c
-
Junyu Lai authored
Some callers of openSessionInternal could have null package name. Update nullability annotations accordingly. Test: TH Bug: N/A Change-Id: Ifafafcd64612c99e5174364a010ec95415702b0d
-
Junyu Lai authored
This is no-op refactor to move utility methods from ConnectivityService to a common place. Test: atest NetworkStaticLibTests#com.android.net.moduletests.util.PermissionUtilsTest#testEnforcePackageNameMatchesUid Bug: N/A Change-Id: I5802dedcc91fa6e130a5c534bba5080ca37dbeec
-
Yan Yan authored
Bug: 319532485 Test: Verified the return value on husky(64-bit kernel) and mokey_go32 (32-bit kernel) Test: NetworkUtilsTest#testIsKernel64Bit Change-Id: I929ce23932698b44a72ce4f35e2bd5a41ba472ee
-
- Jan 17, 2024
-
-
Handa Wang authored
Bug: 295843010 Change-Id: I47fe9f00dff804d5e9c112336c5972b6a80760cf
-
Danuta Brotikovskaya authored
-
- Jan 16, 2024
-
-
Danuta Brotikovskaya authored
Bug: 278833398 Test: atest FrameworksNetTests Change-Id: I95a8c8dddd2d8f6863fe64cd4a65ef48dfb5153a
-
Paul Hu authored
-
Junyu Lai authored
* changes: Support multiple addresses in PacketBridge Remove NAPT from PacketForwarder
-
Remi NGUYEN VAN authored
-
Paul Hu authored
Fix current leaks in CSTest related tests, which leaked the ConnectivityService and AlarmManager handler threads, and enable the checks. Using @DevSdkIgnoreRunner.MonitorThreadLeak ensures that tests properly cleanup threads (in particular handler threads), as many leaked threads could affect other tests. Fix: 308520131 Test: atest ConnectivityCoverageTests Change-Id: Ia6fb2c97f7a1740bafc0ab549440fdbeb1d5fad6
-
Kangping Dong authored
-
Kangping Dong authored
To make sure that apps can register for Thread network by specifying only TRANSPORT_THREAD. This prevents regression given aosp/2873154 was considered a short-term solution. Bug: 313000440 Test: atest CtsThreadNetworkTestCases:android.net.thread.cts.ThreadNetworkControllerTest#threadNetworkCallback_deviceAttached_threadNetworkIsAvailable Change-Id: I7860c50b092439f39e5d8c437de1863b0633b7a0
-
- Jan 15, 2024
-
-
Remi NGUYEN VAN authored
Instead of (wrongly) looking at the DNS message flags for the Query Unicast bit, look at the flag in the question record. The previous bug means that all queries would be replied multicast instead of sometimes unicast. The fix is flagged off as this is a behavior change that may affect performance and latency. Bug: 289482497 Test: atest Change-Id: I08e30c4ffa747c9073d631e8addca1278ea40648
-
Junyu Lai authored
Test: atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest Bug: N/A Change-Id: Icaef559d54f8d7ce06fb9bf231330235ee01ab8f
-
Junyu Lai authored
Consider below scenario: Internal address: 1.2.3.4 External address: 5.6.7.8 Remote address: 8.8.8.8 When a packet was sent from 1.2.3.4 to 8.8.8.8, the current design translate it to a packet from 8.8.8.8 to 5.6.7.8 and foward it to the external interface. However, when the response is received from the external interface, there is a need to remember what is the original address to forward to. Thus, an address translation mechanism was introduced in current design. This change simplify PacketForwarder by removing the address translation. Consider, if the 2 interfaces are using the same address. Internal address: 1.2.3.4 External address: 1.2.3.4 Remote address: 8.8.8.8 When a packet was sent from 1.2.3.4 to 8.8.8.8, simply swap source and destination and and foward it to the external interface. When there is a response from the external interface, the same process can be done, this removes the need of address translation. Test: atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest Test: atest CtsHostsideNetworkTests:com.android.cts.net.HostsideVpnTests Bug: N/A Change-Id: I86f2e774e9112905e5255b5a28c927562a42ab84
-
Junyu Lai authored
-
Junyu Lai authored
This addresses API council review feedback at b/307695368 Test: TH Fix: 307695368 Change-Id: Ifc8cb890ff73be423d38e06a516853da4b9ee97f
-
- Jan 12, 2024
-
-
Remi NGUYEN VAN authored
MulticastPacketReader uses an InetSocketAddress as a buffer that gets filled for each incoming packet for the source address. Similarly to the receive buffer, it should not be used outside of the handlePacket method, as it will be modified on the handler thread when further packets are received. Fix the current usage in MdnsInterfaceAdvertiser/MdnsRecordRepository. Fortunately due to a bug packets are never replied unicast, so today the MdnsRecordRepository code using the source address never triggers, even though it may be circulating an incorrect source address instance that changes over time. Test: atest Change-Id: I4cadfa6e54d1b37d9a6b0f8ca0269193a229bc51
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Tomasz Wasilczyk authored
-
- Jan 11, 2024
-
-
Treehugger Robot authored
* changes: Don't jarjar org.chromium.net.LogcatCapture Patch crrev/c/5152885 Disable failing tests for Cronet import v121.0.6103.2
-
Kangping Dong authored
-
Remi NGUYEN VAN authored
-
Remi NGUYEN VAN authored
Fix current leaks in ConnectivityServiceIntegrationTest, which leaked the ConnectivityService and CarrierPrivilegeAuthenticator handler threads, and enable the checks. Using @DevSdkIgnoreRunner.MonitorThreadLeak ensures that tests properly cleanup threads (in particular handler threads), as many leaked threads could affect other tests. Bug: 310659032 Test: atest --rerun-until-failure 20 Change-Id: Ia62d33d86217fef1d03532bb51c890a90430a70e
-
Remi NGUYEN VAN authored
ConnectivityServiceTest creates hundreds of NetworkAgentWrapper, without stopping their HandlerThread. This leaks a lot of threads while tests are running. Ensure the threads are stopped in ConnectivityServiceTest, and integration tests that also use NetworkAgentWrapper. Test: atest, watch adb shell ps -T [test package pid] Bug: 310659032 Change-Id: I34f367b2efe3d05e1db5eab4c9fd93ee79c1b683
-