Skip to content
Snippets Groups Projects
  1. Oct 25, 2023
  2. Oct 24, 2023
  3. Oct 23, 2023
    • Patrick Rohr's avatar
      Remove IA prefix option option-code from public constructor · b8af9d5c
      Patrick Rohr authored
      Since it is constant. Struct.parse() still requires a constructor that
      includes the code field, so it is marked protected.
      
      Test: TH
      Change-Id: Iccb4e3ec4078e0dcc73836f0d1b721146153da50
      b8af9d5c
    • Maciej Żenczykowski's avatar
    • Jordan Silva's avatar
    • Jordan Silva's avatar
      Revert "[BR07.1] Expose setDataSaverEnabled from ConnectivityManager" · 457ae0f0
      Jordan Silva authored
      Revert submission 2745215-npmsbpf
      
      DroidMonitor: Potential culprit for Bug 307256512 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
      
      
      Reason for revert: 307256512
      
      Reverted changes: /q/submissionid:2745215-npmsbpf
      
      Change-Id: I27119a7484453d1369bbdf71ad2479edec7d664f
      457ae0f0
    • Junyu Lai's avatar
      [BR01.1] Support BpfNetMapsReader · 626045a6
      Junyu Lai authored
      A helper class to *read* java BpfMaps. This is designed to
      provide direct bpf access in the caller process through
      ConnectivityManager APIs.
      
      The change also removes any statical link to
      net-utils-device-common-struct from service-connectivity.
      This is because net-utils-device-common-struct is already
      included in framework-connectivity. Including it again in
      service-connectivity would create a r8 build fail by circular
      dependency.
      
      Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.BpfNetMapsTest
      Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.net.module.util.StructTest
      Test: atest FrameworksNetTests:android.net.connectivity.android.net.BpfNetMapsReaderTest
      Bug: 297836825
      Change-Id: I7a6d2eb816d0dc7343167bddd672806b199f44fe
      626045a6
    • Hansen Kurli's avatar
      Merge changes Id9f81fdf,I3428e8b3,Ifa895f71,I61cd4751,I47a25e9f into main · 00fd1258
      Hansen Kurli authored
      * changes:
        Add tests for always on lockdown VPN on system user.
        Remove MockVpn.setAlwaysOnPackage() non-lockdown.
        Mock onUserAdded() and onUserRemoved()
        Refactor helper method to return integer ranges.
        Add tests for onUserAdded and onUserRemoved
      00fd1258
    • Junyu Lai's avatar
    • Hansen Kurli's avatar
      Mock Vpn.setAlwaysOnPackage(). · 2ddfc8ba
      Hansen Kurli authored
      Call setRequireVpnForUids() directly to mock an always on Vpn
      being enabled instead of calling the real Vpn method.
      
      Bug: 230548427
      Test: atest FrameworksNetTests
      Change-Id: I63d6547104cc6ee984413d4cf6027ceecd301ecc
      2ddfc8ba
    • Hansen Kurli's avatar
      Add tests for always on lockdown VPN on system user. · a09c6f29
      Hansen Kurli authored
      Add test coverage for Vpn.setAlwaysOnPackage() where the caller
      is system user to ensure uid = 0 is not restricted.
      
      Bug: 230548427
      Test: atest FrameworksNetTests
      Change-Id: Id9f81fdf0147597f64f8440b971930b3bd7b55e5
      a09c6f29
    • Chalard Jean's avatar
      Fix arg order to set-package-network-enabled in the CTS preparer · a27dca2f
      Chalard Jean authored
      Test: manual
      Change-Id: Ife55ed9dc152cd2c21e56b84201b9c34dbb04d46
      a27dca2f
    • Hansen Kurli's avatar
      Remove MockVpn.setAlwaysOnPackage() non-lockdown. · 9ae16e4e
      Hansen Kurli authored
      Remove calls to MockVpn.setAlwaysOnPackage() where lockdown is
      false as this does not cause any changes to occur. Also verify
      setRequireVpnForUids() is not called for this case in VpnTest.
      
      Bug: 230548427
      Test: atest FrameworksNetTests
      Change-Id: I3428e8b31b02975975be9e943e1f88cf0e80c5ee
      9ae16e4e
    • Mark's avatar
      SyncSM05.1: add testMultiDepthTransition · c352f3cb
      Mark authored
      Test: atest TetheringTests
      Change-Id: I427360f6a106b001123442ccd4802290d4f13369
      c352f3cb
    • Mark's avatar
      SyncSM05: add SyncStateMachineTest · 8f068a8a
      Mark authored
      A initial test for SyncStateMachine, will add more tests in the
      following changes.
      
      Test: atest SyncStateMachineTest
      Change-Id: Ie6dbbe22bfef40b1675d50243d14d0a235df1e3a
      8f068a8a
    • Hansen Kurli's avatar
      Mock onUserAdded() and onUserRemoved() · cd040621
      Hansen Kurli authored
      Replace calls to onUserAdded() and onUserRemoved() to their
      equivalent setUids() or setRequireVpnForUids() calls.
      
      Note coverage for the calls to Vpn were added in VpnTest.
      
      Bug: 230548427
      Test: atest FrameworksNetTests
      Change-Id: Ifa895f71f78bd3376216fd2759c7a5a33cd3aff1
      cd040621
    • Hansen Kurli's avatar
      Refactor helper method to return integer ranges. · 946cafb8
      Hansen Kurli authored
      Calls to setRequireVpnForUids() for Vpn lockdown actually uses a
      List instead of a Set of integer ranges.
      Add intRangesExcludingUids() to return the needed List of integer
      ranges and replace relevant usages of UidRange.toIntRanges() with
      it.
      
      Bug: 230548427
      Test: atest FrameworksNetTests
      Change-Id: I61cd4751ce2faeb129daa5ad5da7181e3c1df73c
      946cafb8
    • Junyu Lai's avatar
      Add test for cgroup bpf program status · 54e84ab0
      Junyu Lai authored
      This is useful to ensure cgroup bpf program is attached,
      which would lead to hard-debugging uid stats missing problem.
      
      Test: atest ConnectivityServiceIntegrationTest#testBpfProgramAttachStatus
      Bug: 292156770
      Change-Id: I16370497484aff29ed41cbb0d160e530731e1a4e
      54e84ab0
  4. Oct 22, 2023
  5. Oct 21, 2023
Loading