Skip to content
Snippets Groups Projects
  1. Apr 20, 2022
    • easoncylee's avatar
      Convert apct/managed_provisioning/presubmit_test to Test Mapping Suite. · e2be3244
      easoncylee authored
      This CL is to convert CF presubmit tests to run in Test Mapping suite.
      It has been verified that the test coverage is the same as the original
      ATP config.
      
      Bug: 145165552
      Bug: 145574049
      
      Test: TreeHugger
            atest ManagedProvisioningTests
      Merged-In: I8234cc5cadae2ed2162cb09ec8695c7262fcdb2e
      Change-Id: I268448e682b7c45741a62fa3bc1157986f3827d1
      e2be3244
  2. Apr 19, 2022
  3. Apr 18, 2022
  4. Apr 17, 2022
  5. Apr 16, 2022
  6. Apr 15, 2022
    • Treehugger Robot's avatar
      d422089d
    • Wonsik Kim's avatar
    • Steven Moreland's avatar
      Implement getInterfaceHash/Version (omapi) · bfc79c8f
      Steven Moreland authored
      As these interfaces get frozen for TM, java services
      implementing the interfaces are required to implement getInterfaceHash
      and getInterfaceVersion [1]
      
      [1]
      https://source.android.com/devices/architecture/aidl/stable-aidl#new-meta-interface-methods
      
      Bug: 190577319
      Test: m
      Change-Id: I274f847ed8156acd0c4b288e306fcab2d380bcd5
      Merged-In: I274f847ed8156acd0c4b288e306fcab2d380bcd5
      bfc79c8f
    • Yan Yan's avatar
      Maximize VCN MTU when using IPv6 · eb00e3c7
      Yan Yan authored
      This commit maximizes VCN MTU by considering IP version. Specifically,
      VcnGateWayConnection stores/updates the IkeSessionConnectionInfo passed
      out from the IKE library during IKE setup and migration. By looking into
      the addresses stored in the IkeSessionConnectionInfo, VCN is able to
      know the IP family of the VCN tunnels.
      
      Bug: 222331693
      Test: atest FrameworksVcnTests(new tests), CtsVcnTestCases
      Change-Id: I9a2839d7827f1d6451546ec222129f286e94ae36
      eb00e3c7
    • Benedict Wong's avatar
      99e23bcc
    • Sudheer Shanka's avatar
      Merge changes Iad41fa42,Ie37173d0,Ib923eafb,I9bff481a,I631f5e01, ... · cc7dec54
      Sudheer Shanka authored
      * changes:
        Inform the app to wait only if procstate has affect on ntwk access.
        Inform Application thread to block for network rules to be updated.
        Update getUidProcessState to consider mPendingStartActivityUids.
        Inform AMS about the uid blocked reasons.
        Ignore older UID state change callbacks in NPMS.
        Inform NPMS about the app coming to the TOP state early.
        Optimize the handling of disabling doze state.
        Fix the arguments order to postBlockedReasonsChangedMsg.
        Avoid checking for idle state when the app is in top state.
        Update network rules for only uids that are installed.
        Fix logs in NetworkPolicyManagerService.
        Guard mUidBlockedState with a separate lock.
        Add SDK sandbox UIDs to network policy.
        Add some debugs to diagnose test failure.
      cc7dec54
    • Varun Shah's avatar
      e816d004
    • Kweku Adams's avatar
      Merge "BatteryStatsService: Fix wrong arguments passed to... · 97f4c617
      Kweku Adams authored
      Merge "BatteryStatsService: Fix wrong arguments passed to noteBluetoothScanStoppedFromSourceLocked."
      97f4c617
    • Sudheer Shanka's avatar
      Inform the app to wait only if procstate has affect on ntwk access. · 4613ce0a
      Sudheer Shanka authored
      Bug: 226299593
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: Iad41fa423844dee975c5063c03784e44a68bbfcd
      Merged-In: Iad41fa423844dee975c5063c03784e44a68bbfcd
      4613ce0a
    • Sudheer Shanka's avatar
      Inform Application thread to block for network rules to be updated. · 3bad67bf
      Sudheer Shanka authored
      Bug: 226299593
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: Ie37173d0d3f4034a74b834550920530166cd4201
      Merged-In: Ie37173d0d3f4034a74b834550920530166cd4201
      3bad67bf
    • Sudheer Shanka's avatar
      Update getUidProcessState to consider mPendingStartActivityUids. · 46ddc965
      Sudheer Shanka authored
      Bug: 226299593
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: Ib923eafb35c3e315e49dc7a896b5d3dcb8c6f896
      Merged-In: Ib923eafb35c3e315e49dc7a896b5d3dcb8c6f896
      46ddc965
    • Sudheer Shanka's avatar
      Inform AMS about the uid blocked reasons. · eb5e04ae
      Sudheer Shanka authored
      This will be used to let the application thread
      know whether or not to block for network rules to
      be updated when coming to the foreground.
      
      Bug: 226299593
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: I9bff481a0026fb57af8dbee580e617c8410f9ebe
      Merged-In: I9bff481a0026fb57af8dbee580e617c8410f9ebe
      eb5e04ae
    • Sudheer Shanka's avatar
      Ignore older UID state change callbacks in NPMS. · efa4f742
      Sudheer Shanka authored
      Since the onUidStateChanged() callbacks will be
      happening from more than one thread, we need to make
      sure we only handle the latest uid state change
      callbacks and ignore any older callbacks that could
      override the latest uid states in NPMS. In order to
      this, every uid state change will be associated with
      a unique seq number.
      
      Also, remove the UidRecord.lastDispatchedProcStateSeq.
      This was added as a safety measure to make sure we
      don't unnecessarily end up waiting but it isn't
      necessary and if we need to keep it, we need to add
      a way to access it without holding global AMS lock,
      which isn't worth the complexity.
      
      Bug: 226299593
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: I631f5e01f6627916a96c930c22849a1d11eab636
      Merged-In: I631f5e01f6627916a96c930c22849a1d11eab636
      efa4f742
    • Sudheer Shanka's avatar
      Inform NPMS about the app coming to the TOP state early. · 3d9f5e63
      Sudheer Shanka authored
      It's possible for an app to come to the TOP state before
      the oomAdj computation is done and we cannot wait for
      oomAdj computation to complete and then inform NPMS about
      the state change. So, inform NPMS early about the state
      change when we know the app is going to the TOP state.
      
      Bug: 226299593
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: I5d582618652cead179c419f7fe084283dd89d514
      Merged-In: I5d582618652cead179c419f7fe084283dd89d514
      3d9f5e63
    • Sudheer Shanka's avatar
      Optimize the handling of disabling doze state. · 28d4a8f2
      Sudheer Shanka authored
      When we are handling the callback for doze-disabled
      state, we don't have to recompute the network rules
      for all uids anymore since we started keeping track of
      individual restriction state for each uid. We can
      remove the doze restriction state from only blocked uids.
      
      We can also do the same when we are handling the
      doze-enabled state (and even other restrictions) but since
      NPMS doesn't get callbacks for every uid procstate change,
      it is possible we can miss blocking certain uids network.
      So, for now limiting the change to only doze-disabled state.
      
      Bug: 206518114
      Test: tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: I53e40af53aa00ff493e8e5050908220ae4dad729
      Merged-In: I53e40af53aa00ff493e8e5050908220ae4dad729
      28d4a8f2
    • Sudheer Shanka's avatar
      Fix the arguments order to postBlockedReasonsChangedMsg. · 63a7d711
      Sudheer Shanka authored
      Bug: 226402870
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideNetworkCallbackTests.java
      Change-Id: I1977034aa190b67de96d84d694c6546fd9318e79
      Merged-In: I1977034aa190b67de96d84d694c6546fd9318e79
      63a7d711
    • Chiachang Wang's avatar
    • Sudheer Shanka's avatar
      Avoid checking for idle state when the app is in top state. · 99b5c0cb
      Sudheer Shanka authored
      When we know that an app moved to a procstate that is considered
      an interaction event, the app will not be in idle state. So, avoid
      calling into UsageStatsService for idle state in this case.
      
      Bug: 209338078
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: I5648db595d2fd10a151da13e472fd905bcafe182
      Merged-In: I5648db595d2fd10a151da13e472fd905bcafe182
      99b5c0cb
    • Sudheer Shanka's avatar
      Update network rules for only uids that are installed. · c3580425
      Sudheer Shanka authored
      Not all apps are installed on all users, so only look
      at apps which are installed on each user when updating the
      rules.
      
      Bug: 209338078
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: I3d5327bf4acd9c043483ace7b89576801b9e4ef1
      Merged-In: I3d5327bf4acd9c043483ace7b89576801b9e4ef1
      c3580425
    • Sudheer Shanka's avatar
      Fix logs in NetworkPolicyManagerService. · fa63f444
      Sudheer Shanka authored
      We are printing allowlist instead of denylist
      and vice versa.
      
      Fixes: 225439337
      Test: manual
      Change-Id: Iacb78bbf1070a0a822110f961e0240eb10c42bf2
      Merged-In: Iacb78bbf1070a0a822110f961e0240eb10c42bf2
      fa63f444
    • Sudheer Shanka's avatar
      Guard mUidBlockedState with a separate lock. · 6e0d64b9
      Sudheer Shanka authored
      Instead of using the main 'mUidRulesFirstLock', add a
      granular lock for mUidBlockedState so that network state
      requests (which only use mUidBlockedState) doesn't get
      blocked on the highly contended 'mUidRulesFirstLock'.
      
      The risk with this change is that it is possible the
      underlying firewall rules are not consistent with the
      network blocked state that is returned to the apps.
      But technically, this is already case if there is an
      immediate update to network rules after app queries
      it's network access state.
      
      Bug: 209338078
      Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
      Change-Id: I6a913742647577256c9281dd8ebf4aa5422a49ee
      Merged-In: I6a913742647577256c9281dd8ebf4aa5422a49ee
      6e0d64b9
    • Martijn Coenen's avatar
      Add SDK sandbox UIDs to network policy. · d25240eb
      Martijn Coenen authored
      SDK sandbox processes run alongside app processes, and should follow
      the same network policy as the app that they belong to. For the relevant
      calls into the NetworkManager, add the corresponding SDK sandbox UID to
      make sure they have the same policy.
      
      Bug: 215012578
      Test: atest NetworkPolicyManagerServiceTest
      Change-Id: Iaa2283808071d285953a0de3ed018472a67a1510
      Merged-In: Iaa2283808071d285953a0de3ed018472a67a1510
      d25240eb
    • Sudheer Shanka's avatar
      Add some debugs to diagnose test failure. · a54743a2
      Sudheer Shanka authored
      Bug: 218308105
      Test: atest com.android.cts.net.HostsideRestrictBackgroundNetworkTests
      Change-Id: I29d117a20905c065e50a21591a763fdadd8d2a7b
      Merged-In: I29d117a20905c065e50a21591a763fdadd8d2a7b
      a54743a2
    • Wonsik Kim's avatar
      MediaCodecInfo: when explicitly specified reset default bitrate mode · 3ad8bdbd
      Wonsik Kim authored
      Bug: 229146532
      Test: presubmit
      Change-Id: I8bf0c36f471991ab546acd9cf47a3defc13d13ff
      3ad8bdbd
    • chiachangwang's avatar
      Support Ikev2VpnProfile provisioned with IkeTunnelConnectionParams · 5a52d311
      chiachangwang authored
      If the VpnProfile are built from an Ikev2VpnProfile provisioned
      with IkeTunnelConnectionParams, the related Ike options should
      come from the IkeTunnelConnectionParams. This commit also allow
      Vpn to recognize the new profile type which is built from an
      IkeTunnelConnectionParams.
      
      Bug: 223841137
      Test: atest FrameworksNetTests
      Test: Tested with aosp/2063922
      Change-Id: If817774bd940b8b75ec71e1a75bbd385a90ef18a
      5a52d311
    • Shumao's avatar
      BatteryStatsService: Fix wrong arguments passed to noteBluetoothScanStoppedFromSourceLocked. · f744dbac
      Shumao authored
      
      Arguments in the wrong order were passed to
      noteBluetoothScanStoppedFromSourceLocked in noteBleScanStopped,
      which may cause time errors in BatteryStats.
      
      Bug: N/A
      Test: N/A
      Change-Id: Ic022abb88f7482be509fb675ac1517334989bc10
      Signed-off-by: default avatarShumao Hou <shumao1129@gmail.com>
      f744dbac
    • Varun Shah's avatar
      Merge "Update OWNERS file." · 2c630f88
      Varun Shah authored
      2c630f88
  7. Apr 14, 2022
Loading