Skip to content
Snippets Groups Projects
  1. Jan 10, 2024
    • Junyu Lai's avatar
    • Junyu Lai's avatar
      Migrate Tethering#dump to use runWithScissorsForDump · 2ff42d26
      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
      2ff42d26
  2. Jan 09, 2024
  3. Jan 08, 2024
    • Kangping Dong's avatar
    • Kangping Dong's avatar
      [Thread] start / initialize Thread service early · 56354a96
      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
      56354a96
  4. Jan 05, 2024
  5. Jan 04, 2024
  6. Jan 03, 2024
  7. Jan 02, 2024
    • Rex Hoffman's avatar
      Uptesting is moving folks to /external/robolectric from /external/robolectric-shadows · 242899b8
      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
      242899b8
    • Zhanglong Xia's avatar
      Add Thread resource overlay support · 125a43c1
      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
      125a43c1
    • Zhanglong Xia's avatar
      Set Thread Network country code from location country code · d385e7ee
      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
      d385e7ee
    • Yuyang Huang's avatar
      Remove the redundant @return comment to fix build warning · 69f11d01
      Yuyang Huang authored
      Test: TH
      Change-Id: Idc661b6a2ca4ca25ea06e30cae87967a37e9c3fc
      69f11d01
  8. Dec 29, 2023
  9. Dec 28, 2023
  10. Dec 27, 2023
    • Karl Shaffer's avatar
    • Kangping Dong's avatar
      [Thread] make InfraInterfaceController mockable · d5cee262
      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
      d5cee262
    • Ken Chen's avatar
      Stop registering native mdns service · 80c9f6f3
      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
      80c9f6f3
Loading