Skip to content
Snippets Groups Projects
  1. Feb 11, 2022
  2. Feb 10, 2022
  3. Feb 09, 2022
    • James Mattis's avatar
      Add @SupressLint to get around incorrect warning. · d8afb66b
      James Mattis authored
      EthernetNetworkSpecifier is being moved from being @SystemApi to public.
      This is causing the linter to incorrectly throw errors when building on
      erro prone. Add @SupressLint to the method causing the errors prevents
      the incorrect warning from causing build failures.
      
      Tracking bug b/193460475 - TODO to remove once fixed.
      
      cherry pick of http://ag/16822701
      
      Bug: 210485380
      Test: build errorprone
      Change-Id: Id297e739a2288ccc232c6b989ec7fee41837a910
      Merged-In: Id297e739a2288ccc232c6b989ec7fee41837a910
      d8afb66b
    • Patrick Rohr's avatar
      Merge changes from topic "bandwidth-limiting" · 6b5b7b40
      Patrick Rohr authored
      * changes:
        Add bandwidth limiting to CS
        Add setting that controls network rate limit
      6b5b7b40
    • Jean Chalard's avatar
    • Jean Chalard's avatar
    • Remi NGUYEN VAN's avatar
      Add visibility for core tests · 85a4e078
      Remi NGUYEN VAN authored
      Allow core tests to use hidden connectivity APIs. Benchmark tests in
      particular cannot be run without these.
      
      Ignore-AOSP-First: Avoiding merge conflicts, cherry-pick will follow
      Bug: 197717846
      Test: m
        (cherry-picked from ag/16772124)
      Change-Id: Ia01f24317d14b063f9a7e24c3ada11b140641c50
      Merged-In: Ia01f24317d14b063f9a7e24c3ada11b140641c50
      85a4e078
    • Nucca Chen's avatar
      34e16b95
    • Patrick Rohr's avatar
      Add bandwidth limiting to CS · 2857ac4d
      Patrick Rohr authored
      Adds ingress rate limiting functionality to ConnectivityService. The tc
      rate limit is installed before we tell netd about the interface, and
      removed after the network is removed from netd. When the setting
      changes, the old rate limit needs to be removed before a new one can be
      added (unfortunately, we cannot use NLM_F_REPLACE when configuring the
      tc-police filter).
      
      Currently, this functionality is always enabled, but may or may not work
      based on kernel support.
      
      Bug: 157552970
      Test: atest FrameworksNetTests:ConnectivityServiceTest
      Change-Id: I4e64b2c40490f061e42b40a1b1b3a6618c3d1a87
      2857ac4d
    • Patrick Rohr's avatar
      Add setting that controls network rate limit · a2084363
      Patrick Rohr authored
      The INGRESS_RATE_LIMIT_BYTES_PER_SECOND setting controls the rate limit
      for internet networks. If set to -1, no rate limit applies.  There is
      one global rate limit that will be applied to all networks with
      NET_CAPABILITY_INTERNET.
      
      Test: atest ConnectivitySettingsManagerTest
      Bug: 157552970
      Change-Id: Ia82aa867686d484ce46734f76d4a48bf864eff84
      a2084363
    • Treehugger Robot's avatar
      Merge changes from topic "split-pre-jarjar" · 0ad3becd
      Treehugger Robot authored
      * changes:
        Enable framework-connectivity-t-pre-jarjar for service-t
        Split out connectivity-t-pre-jarjar and tests
      0ad3becd
    • Junyu Lai's avatar
      [MS55.2] Move NetworkStateSnapshot into module folder · dc0d521f
      Junyu Lai authored
      framework-connectivity need to see the aidl files when
      compiling IConnectivityManager.aidl, and it can only
      include the files by specifying aidl include_dirs.
      Thus, move the file into the module since the one outside
      of the module is going to be deleted soon.
      
      Ignore-AOSP-First: Avoiding conflicts; cherry-pick will follow
      Test: TH
      Bug: 197717846
      Change-Id: Ide7431d0c98aebd389bee86d13ff44f5ef8b8283
      Merged-In: Ide7431d0c98aebd389bee86d13ff44f5ef8b8283
      dc0d521f
    • Aaron Huang's avatar
    • Hungming Chen's avatar
      Move Tether4Key and Tether4Value to common libs · 887a22cc
      Hungming Chen authored
      EthernetTetheringTest needs to parse BPF map content for IPv4
      forwarding rule tests. Move the struct class files to common
      libs.
      
      Compare Tether4{Key, Value}.java between frameworks/libs/net/common
      and packages/modules/Connectivity/Tethering.
      There is only the package name change as expected.
      
      $ diff packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/Tether4Key.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/Tether4Key.java
      17c17
      < package com.android.networkstack.tethering;
      ---
      > package com.android.net.module.util.bpf;
      
      $ diff packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/Tether4Value.java frameworks/libs/net/common/device/com/android/net/module/util/bpf/Tether4Value.java
      17c17
      < package com.android.networkstack.tethering;
      ---
      > package com.android.net.module.util.bpf;
      
      Test: atest TetheringCoverageTests
      
      Change-Id: I73c180fa4129aefde1e64ecbafe928f388b061d6
      887a22cc
    • junyulai's avatar
      Enable framework-connectivity-t-pre-jarjar for service-t · 91e3dc2f
      junyulai authored
      framework-connectivity-t-pre-jarjar build target is needed
      by service-t, thus, enabled this target on sc-mainline-prod
      but still keep framework-connectivity-t disabled.
      
      Bug: 204830222
      Test: m
      Change-Id: I03cbdb57966b746f3c93e989394a4dc999fe863a
      91e3dc2f
    • Remi NGUYEN VAN's avatar
      Split out connectivity-t-pre-jarjar and tests · 2ba9dbe1
      Remi NGUYEN VAN authored
      The pre-jarjar variant is necessary so that service-t can depend on
      hidden symbols in framework-t that reference (for example as parameter)
      classes that are jarjared.
      Without this, when depending on framework-connectivity-tiramisu.impl,
      service-connectivity-t would see post-jarjar symbols that do not match
      the classnames it uses in its code.
      
      Also split FrameworksNetTestsLib so that the same jarjar rules can be
      applied between the tests and the module, avoiding different errors
      between FrameworksNetTests and ConnectivityCoverageTests.
      
      Ignore-AOSP-First: Avoiding conflicts; cherry-pick will follow
      Bug: 204830222
      Test: m
      Change-Id: I3d0c081c4a7422e128beee11c0156f01b0377c96
      Merged-In: I3d0c081c4a7422e128beee11c0156f01b0377c96
      2ba9dbe1
    • Ken Chen's avatar
      d04a1ef4
    • Chiachang Wang's avatar
      Change naming of excludeLocalRoutes · f8908749
      Chiachang Wang authored
      Address API review feedback to change naming of
      setExcludedLocalRoutesVpn and getter.
      
      Bug: 217742354
      Test: atest FrameworksNetTests
      Change-Id: I57bbf55c7aba1c86ec8687d2431a50b37e63c6d0
      f8908749
    • Chalard Jean's avatar
      Pass the NetworkAgentConfig to NetworkMonitor. · d490072c
      Chalard Jean authored
      When the network is a VPN, NetworkMonitor needs to know whether
      the VPN requests validation, and that information is stored in
      NetworkAgentConfig. Pass it.
      
      Test: FrameworksNetTests
      Change-Id: I3616f0796b69ce054d92213aafdef43ba7041596
      d490072c
    • Chalard Jean's avatar
      Mark NetworkAgentConfig fit for inclusion in stable AIDL · 3068ce73
      Chalard Jean authored
      Test: m together with its topic
      Change-Id: I897a2081fb48a614f28d9ec3965f99cca9f8ec62
      3068ce73
    • Jean Chalard's avatar
    • Michael Groover's avatar
      07621512
    • Ken Chen's avatar
      Change gid of cgroupskb/<ingress|egress>/stats · e541aa40
      Ken Chen authored
      Change gid BPF programs from AID_ROOT to AID_SYSTEM because
      system_server needs to access them.
      
      Bug: 202086915
      Test: test in Ib0e935ee2b714ac61daceba6d13fa7a20f97f68f
      Change-Id: I8c0019f141414994aad2986cc5dfdb7dd027a36a
      e541aa40
  4. Feb 08, 2022
Loading