- Jan 29, 2024
-
-
Remi NGUYEN VAN authored
If a service is found without a requested subtype, then updated to have that subtype, onServiceUpdated would be sent instead of onServiceFound. Fix this by tracking which services have been found by each listener, as whether a service is newly found or updated depends on the options (in this case the subtype filter) of each listener. Fixes: 317167170 Test: atest Change-Id: If8dbe04d858082a872c0f068433a3680331c670b
-
- Jan 12, 2024
-
-
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
-
Kangping Dong authored
Bug: 265095929 Test: atest CtsNetTestCases FrameworksNetTests Change-Id: Ie94757eee79ab8fe414d88cc2661588536d6924a
-
- Jan 10, 2024
-
-
Treehugger Robot authored
-
Junyu Lai authored
-
Paul Hu authored
The method NsdService#maybeStopDaemon is currently being executed regardless of whether the daemon has been started or not. However, the mMDnsManager object is always null after Android V. This means that the null check within the method will always be triggered, resulting in a wtf log entry. To address this, the sequence of checks should be adjusted so that the mMDnsManager null check is performed only after verifying that the daemon has indeed started up. Fix: 318874425 Test: Run the NsdManagerTest and check no wtf logs. Change-Id: Id5bba3a5c6b54df214761ad382f81a6f0a79a907
-
Junyu Lai authored
This change includes: 1. Refactor the logic in Tethering#dump into utils class. 2. Move the utils class to a common place which could be referenced from other sub-modules. 3. Add @MonitorThreadLeak annotation to enforce there is no thread leak problem. Test: atest FrameworksNetTests NetworkStaticLibTests Test: atest ConnectivityCoverageTests:com.android.networkstack.tethering.TetheringTest#testDumpTetheringLog Test: adb shell dumpsys tethering (with hardcoded exception) Fix: 312669345 Change-Id: Ia6fdfeeec2110afa0ec9e056e9db3843748845c3
-
- Jan 09, 2024
-
-
Tomasz Wasilczyk authored
Bug: 175635923 Test: m MODULES-IN-packages-modules-Connectivity Change-Id: I94dafe991ccd73450671ea68eaf65b787dc1d0fa
-
Mohannad Farrag authored
This is a test-only utility class that must not be jarjared. If it is jarjared then it becomes inaccessible to testing. Test: atest NetHttpTests Bug: 314275954 Change-Id: I6cb8eeca58b3dc506cd1e6f1fb6de00df9086509
-
Mohannad Farrag authored
See https://chromium-review.googlesource.com/c/chromium/src/+/5152885 Bug: 314275954 Bug: 311373434 Change-Id: I1a846c8c8206aa0d17f1fe70740881e72921d179
-
Treehugger Robot authored
-
Kangping Dong authored
-
Kangping Dong authored
Define this flag for guarding UserManager#DISALLOW_THREAD_NETWORK Bug: 307679182 Change-Id: I69c578d76f3aac250bb733aac74754c127ae453b
-
Kangping Dong authored
This is not required for code in the mainline module since the flag infra is not supported for mainline. But we will need to write code in UserManager and it needs to be guarded by new Thread flags. Note that Merged-In is added to skip merging this CL into the udc-mainline-prod branch because trunk stable flagging is not supported there Bug: 307679182 Test: m Merged-In: I88c993680976d2e10d672bfdbf45119f2db13868 Change-Id: Id53fa3e7c9592b04f37f4cbd7dcd0499859e59ed
-
Handa Wang authored
Currently requestThreadNetwork is called in registerThreadNetwork. This creates a new NetworkCallback for Thread every time when Thread is turned on. We'd better just use one callback to avoid potential issues. Bug: 319179354 Change-Id: I96bad351f089b32a9acd919dea2e2b6b2aea68d2
-
- Jan 08, 2024
-
-
Kangping Dong authored
-
Kangping Dong authored
We need to do initialization work and start OT daemon when system_server boots. But the initialize() is called at the phase PHASE_BOOT_COMPLETED which is too late as Apps (e.g. Google Play Services) can be started before this phase. This commit changes to start the Thread service earlier at the phase PHASE_SYSTEM_SERVICES_READY. Other services such as Wi-Fi, Bluetooth, Ethernet and Nearby all starts / initializes at this phase. This commit resolves comment aosp/2737373/comment/d65b9446_8a08117c Bug: 318787467 Test: atest CtsThreadNetworkTestCases Change-Id: I7b7b8551b9114cbf07f995b64316c7b420d868b6
-
- Jan 05, 2024
-
-
Ken Chen authored
Address comments from android-api-council review. Bug: 310992535 Change-Id: I722725bd3d3a3df1687721175e9434efae9da37a Test: presubmit
-
Natasha Lee authored
-
Remi NGUYEN VAN authored
The cell network may reconnect on carrier config change, so a cell network requested before that may be disconnected after the change. Only request the cell network after the carrier config change, so the network connected after the change is used for the test. Bug: 316154796 Test: atest Change-Id: Id8cd49ae352fd7899cb45efecd5ccfd760a7b1eb
-
- Jan 04, 2024
-
-
Kangping Dong authored
-
Kangping Dong authored
Test: atest CtsThreadNetworkTestCases Change-Id: Id7c52532988048e4473591092ac60eb66b1b7bcb
-
Treehugger Robot authored
* changes: Make getProviderIfaceStats return Entry Return Entry from TrafficStats JNI
-
Junyu Lai authored
This refactoring makes the method return Entry for follow-up changes to perform arithmetic operations on them easily. This change also removes error handling when the type is unsupported when calling getProviderIfaceStats because it cannot happen in practice. Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest Bug: N/A Change-Id: Id26a24c80bb87c399972ef8c3abf16e0f4719cb1
-
- Jan 03, 2024
-
-
Spandan Das authored
-
Kangping Dong authored
-
Yang Sun authored
The ThreadPersistentSetting class can be used to read/store key value pairs in ThreadPersistentSetting.xml file. Bug: 299243765 Test: atest ThreadNetworkUnitTests:com.android.server.thread.ThreadPersistentSettingTest Change-Id: I564ce8373e6af8f5cdf066a579bec46bfffecb72
-
Kangping Dong authored
-
Zhanglong Xia authored
Bug: b/309357909 Test: Run `atest ThreadNetworkUnitTests`. Change-Id: I51c297a5c30fb114a6e3fb8b54cdbfef142001b3
-
Kangping Dong authored
Adds the Thread service unit test skeleton and make the services testable. Initially, a few trivial unit tests for existing APIs are added in ThreadNetworkControllerServiceTest.java, and more tests will be added in separate CLs later. Bug: 317555104 Change-Id: I7b9e5f3663493d8da2448568de792e4272ee1df6
-
Junyu Lai authored
This is no-op refactoring which returns [tx|rx][Bytes|Packets] to the service instead of passing type to JNI and return only 1 value. This is needed for the follow-up changes to caching values in a row in the service side. This change also remove unused JNI methods. Test: atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest Bug: N/A Change-Id: I3b6ac97e6a1bff49cffe6153ffc2618f37a9deb4
-
Zhanglong Xia authored
-
Yuyang Huang authored
-