Skip to content
Snippets Groups Projects
  1. Feb 08, 2021
    • Junyu Lai's avatar
      Merge changes from topic "vcn07" · 438f787c
      Junyu Lai authored
      * changes:
        Address comments on aosp/1550755
        [VCN07.1] Add test for bypassing VCN for non-internet request
      438f787c
    • junyulai's avatar
      Address comments on aosp/1550755 · 5ceb5c3c
      junyulai authored
      This CL bypass adding NOT_VCN_MANAGED on R device. And add TODOs
      for refactoring and adding test coverage.
      
      Test: atest CtsNetTestCasesLatestSdk:NetworkRequestTest on R device
      Bug: 175662146
      
      Change-Id: Id09b19c13f9a74e25d45689d2211418172dfaec8
      5ceb5c3c
  2. Feb 07, 2021
    • Sudheer Shanka's avatar
      Update meteredness of cellular networks for tests. · 8247993e
      Sudheer Shanka authored
      This would allow us to run both metered and unmetered networkpolicy
      related tests when the device is on a cellular network.
      
      Bug: 165343126
      Test: atest CtsHostsideNetworkTests:HostsideRestrictBackgroundNetworkTests
      Test: atest CtsHostsideNetworkTests:HostsideNetworkCallbackTests
      Change-Id: Id70856dffc920e74bda28583dba4dd851a832397
      Merged-In: Id70856dffc920e74bda28583dba4dd851a832397
      8247993e
  3. Feb 05, 2021
  4. Feb 02, 2021
  5. Jan 29, 2021
  6. Jan 27, 2021
  7. Jan 26, 2021
    • Lorenzo Colitti's avatar
      Remove IpServer.Dependencies#getIfIndex. · f3b201f8
      Lorenzo Colitti authored
      This code is unused.
      
      Test: atest TetheringTests
      Change-Id: Iaac422d72e8538b67798cb3ae3737deb7b426401
      f3b201f8
    • Lorenzo Colitti's avatar
      Address comments on aosp/1559686. · 51c1a95c
      Lorenzo Colitti authored
      Also remove some unnecessary line wrapping.
      
      Test: atest TetheringTests
      Change-Id: Ia7638b3198d7811cdbb34e959c50608cf1a656bf
      51c1a95c
    • Lorenzo Colitti's avatar
      Add an isEmpty convenience method to BpfMap. · 77262cea
      Lorenzo Colitti authored
      Test: new unit test
      Change-Id: Ibec09f328e24111aee4760af2f75ea5a80ba84c3
      77262cea
    • Lorenzo Colitti's avatar
      Address a TODO in BpfMapTest. · 7bf39e56
      Lorenzo Colitti authored
      Test: test-only change
      Change-Id: I9a47234979cbb161dfcd0c97c54c0476aa753c5e
      7bf39e56
    • Lorenzo Colitti's avatar
      Program the upstream IPv6 map in BpfCoordinator. · 5b1ed508
      Lorenzo Colitti authored
      - Add methods to start and stop IPv6 forwarding upstream
      - Populate the upstream IPv6 map when the first rule for any
        upstream/downstream pair is created.
      - Clear the upstream IPv6 map when the last rule for any
        upstream/downstream pair is deleted.
      
      Test: Added coverage to IpServerTest and BpfCoordinatorTest
      Change-Id: Ib041081e95f5f449489ab63138de034222ffac8f
      5b1ed508
    • Lorenzo Colitti's avatar
      Rename TetherDownstream6Value to Tether6Value. · d69a8862
      Lorenzo Colitti authored
      The two value types are identical so there is no need to have
      separate classes for them.
      
      Test: atest TetheringTests
      Change-Id: Ia622b082d0a44373d21f51222f5e675e5bde08e0
      d69a8862
    • Lorenzo Colitti's avatar
      Merge changes from topic "bpf_tether4_rename" · 3c356668
      Lorenzo Colitti authored
      * changes:
        merge Tether{Down,Up}stream4{Key,Value} - part 3 - fixups
        merge Tether{Down,Up}stream4{Key,Value} - part 2 - java
        merge Tether{Down,Up}stream4{Key,Value} - part 1 - C portion
      3c356668
    • Lorenzo Colitti's avatar
      Mark the EntitlementManager PendingIntents as immutable. · a36d65da
      Lorenzo Colitti authored
      These are read-only intents and should not be mutated by any
      app receiving them.
      
      Bug: 178324405
      Bug: 178249531
      Test: atest TetheringTests TetheringCoverageTests GtsTetheringTestCases
      Change-Id: I5395e7c19e6453640ad790f2b9a9ba22bbcefa88
      a36d65da
    • Lorenzo Colitti's avatar
      Fix a WTF in IpServerTest. · ae27ecf5
      Lorenzo Colitti authored
      Bug: 178324405
      Test: atest TetheringTests
      Change-Id: I2069ea79f982e6bb197388edd7820a05d1e651f1
      ae27ecf5
    • Maciej Żenczykowski's avatar
      merge Tether{Down,Up}stream4{Key,Value} - part 3 - fixups · 911a7267
      Maciej Żenczykowski authored
      
      Test: atest, TreeHugger
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: Ia7840698e80ded33d8e0b59efe1ca7267254b892
      911a7267
    • Maciej Żenczykowski's avatar
      merge Tether{Down,Up}stream4{Key,Value} - part 2 - java · 32874eb6
      Maciej Żenczykowski authored
      
      Generated via:
        git grep 'Tether(Down|Up)stream4(Key|Value)' | cut -d: -f1 | sort -u | while read i; do
          sed -r -i 's@TetherUpstream4Value@Tether4Value@g' "$i"
          sed -r -i 's@TetherDownstream4Value@Tether4Value@g' "$i"
          sed -r -i 's@TetherDownstream4Key@Tether4Key@g' "$i"
          sed -r -i 's@TetherUpstream4Key@Tether4Key@g' "$i"
        done
      
        cd Tethering/src/com/android/networkstack/tethering
        git mv TetherUpstream4Key.java Tether4Key.java
        git mv TetherUpstream4Value.java Tether4Value.java
      
        git diff TetherDownstream4Key.java Tether4Key.java
        git diff TetherDownstream4Value.java Tether4Value.java
        git rm TetherDownstream4Key.java
        git rm TetherDownstream4Value.java
      
      Fixup resulting 'import' duplication
        mcedit Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/BpfCoordinatorShimImpl.java
        mcedit Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/BpfCoordinatorShimImpl.java
        mcedit Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/BpfCoordinatorShim.java
        mcedit Tethering/tests/unit/src/android/net/ip/IpServerTest.java
      
      Test: N/A, requires follow up commit
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: I1dfc3108ca4bbd0cefc3420bc7e421594b62619c
      32874eb6
    • Maciej Żenczykowski's avatar
      merge Tether{Down,Up}stream4{Key,Value} - part 1 - C portion · 1feb8b4a
      Maciej Żenczykowski authored
      
      The keys are identical, and the values nearly so, this will make everyone's life easier.
      
      Test: git grep 'Tether(Down|Up)stream4(Key|Value)' finds nothing
        (note this requires follow up commits)
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: Ifbff2c617ac5834ea80f827eaf89ca81e862baec
      1feb8b4a
    • Lorenzo Colitti's avatar
      Merge changes I8cd6e49b,Ibb52c7b7 · dc4189f0
      Lorenzo Colitti authored
      * changes:
        [NFCT.TETHER.10] Add/delete IPv4 offload BPF rules to/from BPF map
        [NFCT.TETHER.9] Build IPv4 offload BPF rules for raw ip
      dc4189f0
  8. Jan 25, 2021
  9. Jan 23, 2021
  10. Jan 22, 2021
Loading