Skip to content
Snippets Groups Projects
  1. Aug 01, 2023
    • Junyu Lai's avatar
      Deduplicate items after clear interface in NetworkStats · 23d89c0b
      Junyu Lai authored
      Follow-up from commit Ie60829a65d0d9b5b63ad353695a820c0586e3665,
      the interface field was cleared before returning the result to
      the caller. However, this can cause problems in the
      NetworkStats#subtract method. If the interface field is cleared,
      the findIndexHinted method can match to a wrong entry.
      This is because the keys of multiple entries will now be the
      same. This can cause the subtract result to be unexpectedly
      large and the return value of getUidStatsForTransport to be
      mismatched with the values retrieved from other APIs.
      
      Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest \
            FrameworksNetTests:android.net.connectivity.android.net.NetworkStatsTest
      Bug: 290728278
      Change-Id: I891ab29b8a2902663febc7c32b04417caf510926
      23d89c0b
    • Junyu Lai's avatar
      Refactor grouped by methods · 0b9c0835
      Junyu Lai authored
      This is a no-op refactoring, which re-write the group by methods
      to use a common method that can slice NetworkStats by a given
      lambda. This is useful for subsequent changes to slice NetworkStats
      with different conditions.
      
      Test: atest FrameworksNetTests:android.net.connectivity.android.net.NetworkStatsTest
      Bug: 290728278
      Change-Id: Ia28571021fba46fc59380798053ccdc91ddc6ae4
      0b9c0835
  2. Jul 28, 2023
  3. Jul 27, 2023
    • Mark's avatar
      Fix EtherentTetheringTest flaky · f5e4b90a
      Mark authored
      The first tethering test case may experience tethering restart
      with IP conflict handling. Tethering would cache the last
      upstreams so that the next enabled tethering avoids
      picking up the address that is in conflict with the upstreams.
      To protect subsequent tests, turn tethering on and off before
      running them.
      
      Bug: 254183718
      Test: atest CtsTetheringTest
            atest MtsTetheringTestLatestSdk
      Change-Id: I03729d3212a03bd9fcfe2c09cf327840f13b250c
      f5e4b90a
    • chiachangwang's avatar
      Increase timeout to deflake tests · 595fac08
      chiachangwang authored
      In failed log, VPN still process the migration which does not
      send the network capabilities update to network agent.
      In low performance devices like cuttlefish, it may sometimes
      cause flaky. Specify a longer timeout to deflake the test.
      
      Bug: 293233390
      Test: atest FrameworksNetTests
      Change-Id: I4e6c80c03e19efb448ee2806c5a250425b0e068f
      595fac08
    • Mark Chien's avatar
    • Mark Chien's avatar
    • Chalard Jean's avatar
      Address comment from ag/12107302 · f8d1d6c4
      Chalard Jean authored
      Test: trivial doc-only change
      Bug: 140807677
      Change-Id: I57440e8b54709a2f0e8c875d30f2c295fa3e1f3d
      f8d1d6c4
    • Mark's avatar
      Fix ConnectivityManagerTest#testFactoryReset flaky · 5fab2d6c
      Mark authored
      Listen SoftAp callback to make sure soft ap is disabled
      before start hotspot.
      
      Bug: 277856014
      Test: atest ConnectivityManagerTest#testFactoryReset
      
      Change-Id: I95050be703b7c97da7a14541ac74718fdcbd7f13
      5fab2d6c
    • Remi NGUYEN VAN's avatar
      Skip presubmit for flaky tests · 8db52a59
      Remi NGUYEN VAN authored
      Skip presubmit for tests that have been reported to be >0.5% flaky in
      presubmit, or in mainline-presubmit. Tests that only meet that criteria
      in mainline-presubmit are only marked as @SkipMainlinePresubmit.
      
      Ensure that the tests are still run in postsubmit so they can be moved
      back to presubmit after getting fixed.
      
      Test: TH
      Bug: 284534251
      Bug: 292174275
      Bug: 292173706
      Bug: 292174832
      Bug: 289879947
      Bug: 286701510
      Bug: 293239598
      Bug: 279846955
      Bug: 277567450
      Bug: 293239828
      Bug: 293240365
      Change-Id: I986a1079709057d3210016c50b632fe0f3bff1e2
      8db52a59
    • Mark Chien's avatar
      Revert "Diable ConnectivityManagerTest#testFactoryReset" · dfdc21bc
      Mark Chien authored
      This reverts commit f866acb6.
      
      Reason for revert: enable the test
      
      Change-Id: I00c2b32f0bf6fdb825d0edba8dcb74bcc7ad2fbf
      dfdc21bc
  4. Jul 26, 2023
  5. Jul 25, 2023
  6. Jul 24, 2023
Loading