Skip to content
Snippets Groups Projects
  1. Feb 21, 2024
  2. Feb 20, 2024
  3. Feb 19, 2024
  4. Feb 17, 2024
  5. Feb 16, 2024
  6. Feb 15, 2024
  7. Feb 14, 2024
    • Wonsik Kim's avatar
      7adef106
    • Suprabh Shukla's avatar
      Filter out uninteresting UidObserver callbacks in NPMS · 75215f12
      Suprabh Shukla authored
      NPMS depends on three different process state thresholds for evaluating
      network access. But holding the common lock for evaluating the network
      rules may cause a lot of contention on the handler as uid changes are
      frequent.
      Separating out a fast check to filter out uninteresting proc-state
      callbacks before posting to the handler for full evaluation of the
      rules. This is especially useful when we use no cutpoint for the uid
      observer registration.
      
      This also fixes an inconsistency where changes crossing
      TOP_THRESHOLD_STATE may not be received if the app transitioned
      from some process-states below BFGS.
      
      Test: atest FrameworksServicesTests:NetworkPolicyManagerServiceTest
      Test: atest CtsHostsideNetworkTests
      
      Bug: 319728914
      Change-Id: Ia7a5aef1ce9705a55912749985c7ee950c24ac84
      75215f12
Loading