Skip to content
Snippets Groups Projects
  1. Oct 23, 2023
  2. Oct 22, 2023
  3. Oct 21, 2023
  4. Oct 20, 2023
  5. Oct 19, 2023
  6. Oct 18, 2023
    • Paul Hu's avatar
      Add expired services removal flag · f3fe3333
      Paul Hu authored
      The TTL check and removal of expired services is currently only
      performed when a mDNS query is sent. This can result in expired
      services remaining in the cache if no queries are sent. To
      address this, the remaining TTL will be checked when retrieving
      services from the MdnsServiceCache. Add a new flag to enable
      the expired services removal feature. This feature will be
      implemented in subsequent changes.
      
      Bug: 265787401
      Bug: 304649384
      Test: atest FrameworksNetTests CtsNetTestCases
      Change-Id: I30f0eea568ee45d363cc02821de0921d6040f981
      f3fe3333
    • Junyu Lai's avatar
      Support shell command to get bpf program id · 452e464e
      Junyu Lai authored
      Test: atest NetworkStatsIntegrationTest#testBpfProgramAttachStatus
      Bug: 292156770
      
      Change-Id: I815be0f3f3592442939872f98e3ad9d224a6aeb6
      452e464e
    • Junyu Lai's avatar
      Dump bpf program status in dumpsys · 155760b5
      Junyu Lai authored
      Sample output:
      Bpf Program Status:
        CGROUP_INET_INGRESS: 21
        CGROUP_INET_EGRESS: 22
        CGROUP_INET_SOCK_CREATE: 28
        CGROUP_INET4_BIND: 30
        CGROUP_INET6_BIND: 31
      
      Test: adb shell dumpsys connectivity
      Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.ConnectivityServiceTest#testDumpDoesNotCrash
      Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ConnectivityServiceTest#testDumpDoesNotCrash
      Bug: 292156770
      Change-Id: I312c90c524af12d093536156d6d5c6febd64305a
      155760b5
    • Chalard Jean's avatar
      Reapply "Simplify addRoutesToLocalNetwork calls" · 7f2b3dab
      Chalard Jean authored
      This reverts commit 316346be.
      
      Change-Id: I86977f6e7a5451d037c7ea6fee5c4bc7082935ff
      7f2b3dab
    • Chalard Jean's avatar
      Reapply "Add LocalNetworkConfig" · f9d0e3e9
      Chalard Jean authored
      This reverts commit 6eea22b1.
      
      Change-Id: I0a2cef4ee992577674c92ecd384dc6f4361afa02
      f9d0e3e9
    • Junyu Lai's avatar
  7. Oct 17, 2023
    • Jean Chalard's avatar
    • Junyu Lai's avatar
      5606bba1
    • Junyu Lai's avatar
      Respect SkipPresubmit annotation for ConnectivityCoverageTests · 86298be5
      Junyu Lai authored
      Follow-up from aosp/2788197, the CL does not work since
      SkipPresubmit annotation is not excluded from TEST_MAPPING for
      ConnectivityCoverageTests.
      
      Test: TH
      Bug: 302325928
      Change-Id: I2d953f19e5d5eb5f5d8fdf4faf335d603bae42a0
      86298be5
    • Junyu Lai's avatar
      Move dumpsys to handler thread · f8dba342
      Junyu Lai authored
      I0afdda023208c3f8620cb5b89add66448af596d7 added some assertions
      to ensure NetworkAgentInfo can only be accessed from the handler
      thread. This is good to eliminate any potential concurrent
      accessing problem. Howver, dumpsys runs on binder thread, this
      change breaks dumpsys functionality.
      
      Thus, this change:
        1. Copy Handler#runWithScissors() and related class
           locally since they are @hide methods.
        2. Run doDump on the handler thread and waits for return.
      
      Test: adb shell dumpsys connectivity
      Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.HandlerUtilsTest
      Fix: 303348620
      Change-Id: Ic3a22f5d370bbf8c18b1972e86d695b6ad61bd0d
      f8dba342
    • Chalard Jean's avatar
      Reapply "Tell netd about local networks" · e0aaca5a
      Chalard Jean authored
      This reverts commit cc409153.
      
      Change-Id: Ied6bdb9b94e08e2bfe1092765d0f4591e603c3eb
      e0aaca5a
    • Junyu Lai's avatar
      Add synchronized block when accessing global variables · 6d0bdd19
      Junyu Lai authored
      This is catched by errorprone where global variables accessing
      is not protected by the declared lock, which could lead to a
      potiential race problem where these variables are changed but
      cannot be seen for the invocation.
      
      This is also safe since:
        1. The method called inside mDefaultNetworks is already holding
           the same lock.
        2. Multiple global variables are protected by this synchronized
           block.
      
      Test: TH
      Fix: 181642673
      Change-Id: I58e7f124de1f0291e9323ab0b9cf8f52cec32818
      6d0bdd19
Loading