- Jan 24, 2024
-
-
Kangping Dong authored
this flag is moved to frmeworks/base. Bug: 319044650 Bug: 321624552 Change-Id: Ic068eb5e3cd2a7b4898a4f9a33b24ed8eed661f3
-
- Jan 21, 2024
-
-
Handa Wang authored
Merge "Make ThreadNetworkController.setTestNetworkAsUpstream require NETWORK_SETTINGS permission" into main
-
- Jan 20, 2024
-
-
Yuyang Huang authored
-
- Jan 19, 2024
-
-
Suprabh Shukla authored
-
Maciej Żenczykowski authored
-
Handa Wang authored
This CL contains following enhancements: - Enforce NETWORK_SETTINGS permission for ThreadNetworkController.setTestNetworkAsUpstream. - Move the setTestNetworkAsUpstream in ThreadNetworkControllerService to make the order of methods more logical. - Update the test case name in BorderRoutingTest. Bug: 295843010 Bug: 320842152 Change-Id: I82edac6c819dd637f4c98f31368a1b520338ce24
-
Yuyang Huang authored
-
Chiachang Wang authored
-
Chiachang Wang authored
The original patch (aosp/2891011) incorrectly counted TCP sockets with keepalive enabled for VPNs. This issue was caused by the UID range verification. On bypassable VPNs, the socket mark is always correct. It's possible for an app that is not in the UID ranges to establish a socket on the VPN. But that socket should be counted for the purposes of keepalive. The old code would correctly count it and the new code will incorrectly not count it. Also, the UID range verification does not help on non-bypassable VPNs since the socket mark is always the mark of default network, not the socket mark of the VPN. Instead of reverting the entire patch, this commit removes the UID range mechanism. The code refactoring from the original commit (which used structured classes to read socket information) has been kept as it is a valuable improvement. Bug: 320842519 Test: atest FrameworksNetTests Change-Id: I00731796144c982b9fd4d9771f3d0db1f1529a89
-
Junyu Lai authored
-
Suprabh Shukla authored
The definition of background can be fluid and ambiguous. Refactored all code to be explicit about process states when making assertions. No functional change is expected to tests. Test: atest CtsHostsideNetworkTests Bug: 304347838 Change-Id: Ibc614d74f46d436cad4586c1d309bbb3648b8eb1 Merged-In: Ibc614d74f46d436cad4586c1d309bbb3648b8eb1
-
Chiachang Wang authored
-
- Jan 18, 2024
-
-
Maciej Żenczykowski authored
currently we have: org.junit.ComparisonFailure: expected:<[]bic> but was:<[cu]bic> at org.junit.Assert.assertEquals(Assert.java:117) but this is the reverse of the intended error: org.junit.ComparisonFailure: expected:<[cu]bic> but was:<bic> at org.junit.Assert.assertEquals(Assert.java:117) method signature: public static void assertEquals(Object expected, Object actual) Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I322ea162f2818aaa1beba5c1b9febcf97d29eea1
-
Mohannad Farrag authored
-
Maciej Żenczykowski authored
(and adjust indents to be saner) Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I2e52131fa51782dc89ddbfda4c9239a142376c56
-
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
-
Junyu Lai authored
Test: TH Fix: 320842133 Change-Id: I3efa5186e5e2c39ec6c7430dfd726ac86ffcb954
-
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
-