- Jan 09, 2024
-
-
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
-
- 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
-
Zhanglong Xia authored
-
Yuyang Huang authored
-
Zhanglong Xia authored
Bug: b/309357909 Test: Run `atest ThreadNetworkUnitTests`. Change-Id: I087cc0fc2b6c21fd9d3d4607f30c194214aeb37e
-
Zhanglong Xia authored
-
Zhanglong Xia authored
-
- Jan 02, 2024
-
-
Rex Hoffman authored
This commented out line references the old robolectric ("Robolectric_all-target") which is being replaced by Robolectric_all-target_upstream Bug: 314757990 Test: none, this is simply removing a commented out dep. Flag: NA Change-Id: I25eed6cef457bada06289656745ca5b5286bb467
-
Zhanglong Xia authored
This CL adds resource overlay support to allow developers to change the default configuration of using the location country code. Bug: b/311324956 Test: Set the resource overlay in cuttlefish, check the default configuration via the command `dumpsys thread_network`. Change-Id: Ide853975e8244f06a382b2eda4844e030539b95d
-
Zhanglong Xia authored
This CL selects the Thread country code from location country code. If the location country code is not avaliable, the country code `WW` will be selected as the default Thread country code. This CL also adds Shell commands for developers to override the Thread country code for testing. Bug: b/309357909 Test: Run `atest ThreadNetworkUnitTests`. Change-Id: Id87c293005f0e75922a72854b40c41837b74397f
-
Yuyang Huang authored
Test: TH Change-Id: Idc661b6a2ca4ca25ea06e30cae87967a37e9c3fc
-
- Dec 29, 2023
-
-
Zhanglong Xia authored
-
- Dec 28, 2023
-
-
Treehugger Robot authored
-
Kangping Dong authored
* changes: [Thread] use Context#enforceCallingOrSelfPermission [Thread] make InfraInterfaceController mockable
-
Kangping Dong authored
Context#enforceCallingPermission always throws SecurityException if we are not processing a Binder IPC. This specifically doesn't work with unit tests where the service APIs are called with mocked Binder interfaces. Bug: 317555104 Change-Id: I50be68487fb53907dbb1e3da7815fdf305047481
-
Remi NGUYEN VAN authored
-
- Dec 27, 2023
-
-
Karl Shaffer authored
-
Kangping Dong authored
It's generally discouraged to mock a static method, so this commit changes InfraInterfaceController#createIcmp6Socket to non-static method and inject InfraInterfaceController into ThreadNetworkControllerService as an external dependency. Bug: 317555104 Change-Id: I6f88c02858279223684c781dc065a9bf84ae15ab
-
Ken Chen authored
NsdService switched from Netd native solution to Java solution on Android U. MDNS service provided by Netd will be removed from Android V. 1. Stop registering native mdns service from V. 2. Stop startDaemon() in NsdManager from V. 3. As a double safety, return early in NsdService methods that call the native mdns service when platform version is V+. 4. Modify NsdManagerTest to cover V+ behavior. Bug: 298594687 Test: Build. Presubmit. Change-Id: Ifdac8f7a44aa57d93d453ba482ec473a2b531452
-
Kangping Dong authored
* changes: [mdns] add tests for verifying address of mDNS reply [mdns] fix wrong NSEC answer for unique RRs [mdns] fix duplicated records for multiple questions
-
Treehugger Robot authored
-
Remi NGUYEN VAN authored
Log.wtf should avoid crashes, while making sure that one can still notice if there is a problem. In particular, it may be possible that calling ensureIpServerStopped and ensureIpServerStarted could start forwarding before the previous IpServer has stopped it. Bug: 314260975 Change-Id: I047a673d2fe6f218192d3144fa0bd60ce8739a15 Test: TH
-
Mark authored
The first tethering test case might have a tethering restart when handling IP conflicts. Currently, we start a hotspot once before tethering, but the test is still flaky in Cuttlefish because it doesn't support hotspots. Instead, we'll start ethernet tethering. Bug: 254183718 Test: atest CtsTetheringTest Change-Id: I695d4e1b3f961893bc30b3144faf7ad7d2d70574
-
Mark authored
Bug: 254183718 Test: atest CtsTetheringTest Change-Id: Ie8bf908fc926a0b8b58559c8827951cbeaedc2c6
-
Mark Chien authored
-
Kangping Dong authored
Bug: 265095929 Test: atest FrameworksNetTests Change-Id: I3499fb9dfc24fec9648f9c97d6028c3fca4f925a
-
Kangping Dong authored
Existing MdnsRecordRepositiry#getReply will send a NSEC RR in the reply when 1) a query for a unique RR is not found or 2) any unique name which is included in the answer sections. The second one is not aligned with the spec: ``` On receipt of a question for a particular name, rrtype, and rrclass, for which a responder does have one or more unique answers, the responder MAY also include an NSEC record in the Additional Record Section indicating the nonexistence of other rrtypes for that name and rrclass. ``` This commit fixes the issue in 2) by checking that all unique records of the name are included in the answers before adding a NSEC record. Bug: 265095929 Test: atest FrameworksNetTests Change-Id: I0531fbccf98e69a50bb8a45e529caaed3ad80b59
-
Ken Chen authored
Error: ======================================================================== [NewApi] Field requires API level 35 (current min is 33): REGISTER_NSD_OFFLOAD_ENGINE + String.join(", ", List.of(REGISTER_NSD_OFFLOAD_ENGINE, NETWORK_STACK, ======================================================================== 1. The REGISTER_NSD_OFFLOAD_ENGINE is only available on API level 35. 2. The error message in the exception is incorrect. It should be 3 cases: V+, U, others. 3. Fix this Lint error because it will block aosp/2832130 merge. Bug: N/A Test: m; AOSP Gerrit Lint Change-Id: I03730f5a9d2e6e3f6848f729bb4120b86194c705
-
Remi NGUYEN VAN authored
-
Handa Wang authored
-
Mark authored
Before making enableEthernetTethering a static function, make its dependency variable static. Bug: 254183718 Test: atest CtsTetheringTest Change-Id: Id3781d67b3abc69b146fa704d4795bcfb2431a2a
-
Chiachang Wang authored
-
- Dec 26, 2023
-
-
Chris Göllner authored
This reverts commit c0baea54. Reason for revert: Checking if culprit of b/317506400 Change-Id: Icbe9d993c6d4bfdf305f2a4c7b8422095c8846a6 Bug: 317506400
-
Handa Wang authored
The duplicate entries make `CtsThreadNetworkTestCases` not included in presubmit. The `CtsThreadNetworkTestCases` was added in aosp/2804113 but was accidentally removed in aosp/2888526. Bug: 317769267 Bug: 297729075 Test: presubmit Change-Id: I184d21deddc0f0c247321a8d1afe5a8f8674f974
-
Handa Wang authored
-