Skip to content
Snippets Groups Projects
  1. Nov 04, 2021
  2. Nov 02, 2021
  3. Nov 01, 2021
  4. Oct 29, 2021
  5. Oct 28, 2021
  6. Oct 27, 2021
    • Chalard Jean's avatar
      Apply a workaround, and try to detect a system crash · 524f0b1d
      Chalard Jean authored
      This will prevent the system crash in b/194394697, and on T try to
      detect the issue much earlier and crash the system at that time
      together with much more expansive logs.
      
      Bug: 194394697
      Test: ConnectivityServiceTest
      Change-Id: Ia4be82179160216d41bf4d88b896e4814385063a
      524f0b1d
  7. Oct 26, 2021
    • Aaron Huang's avatar
      Add a test for metered/non-metered mobile network · 2685c929
      Aaron Huang authored
      NetworkTemplate.buildTemplateMobileWithRatType() supports
      to build a template with metered filter, so a mobile network
      is metered or non-metered should be tested.
      
      This commit also rename buildMobile3gState to buildMobileState
      because originally this method uses NetworkInfo to simulate the
      network type. The NetworkInfo related codes were removed.
      Currently, setMobileRatTypeAndWaitForIdle is used to simulate
      the network type in test.
      
      Ignore-AOSP-First: The parent of this change contains a CL will
      conflict with internal tree so ignore AOSP first.
      Bug: 183776809
      Test: this
      Change-Id: I8e54e2acb06db81fb0eaf330c4fd7cb391b01ff3
      2685c929
    • Aaron Huang's avatar
      Add a test for NetworkIdentity.getMetered() · eaca5b19
      Aaron Huang authored
      NetworkIdentity has adapted NET_CAPABILITY_TEMPORARILY_NOT_METERED
      network capability so add a test case for it.
      
      Ignore-AOSP-First: The parent of this change contains a CL will
      conflict with internal tree so ignore AOSP first.
      Bug: 183776809
      Test: this
      Change-Id: I2ca2a8b4db664b76a5a5ee82fcff451efd87c8ff
      eaca5b19
    • Lucas Lin's avatar
      Merge changes Ib2d54e53,Ieb606d2b · c5e61cc5
      Lucas Lin authored
      * changes:
        Test if underlying networks are the same as what VpnService sets
        Convert VpnTest to JUnit4
      c5e61cc5
    • Aaron Huang's avatar
    • lucaslin's avatar
      Test if underlying networks are the same as what VpnService sets · cacd5b0d
      lucaslin authored
      If VpnService set null as the underlying networks, then the
      underlying networks will be set as system defeult network.
      If VpnService set an empty array as the underlying networks, then
      the underlying networks of VPN will not be set to any networks.
      If VpnService set a network which is not null or an empty array,
      then the underlying networks of VPN should be the same as this
      one.
      
      Bug: 191918368
      Test: atest CtsHostsideNetworkTests:HostsideVpnTests
      Change-Id: Ib2d54e53960e5f899cb8d4cfaa6705ca676354ca
      cacd5b0d
    • lucaslin's avatar
      Convert VpnTest to JUnit4 · d2de904d
      lucaslin authored
      This is to fix the error in errorprone target, the error message
      is: [JUnit4ClassUsedInJUnit3] Assume cannot be used inside a
      JUnit3 class. Convert your class to JUnit4 style.
      The error method is: assumeTrue()
      
      Bug: 191918368
      Test: atest CtsHostsideNetworkTests:HostsideVpnTests
      Change-Id: Ieb606d2ba31cc19510425114c76fd77417227f2c
      d2de904d
    • Chalard Jean's avatar
      Merge "No-op cleanup" · e88bfbc0
      Chalard Jean authored
      e88bfbc0
  8. Oct 25, 2021
    • lucaslin's avatar
      Add tests for testing if [start|finish]Op is called or not · d4e7b00b
      lucaslin authored
      Add a test for testing if [start|finish]Op will be called when
      [start|stop]VpnProfile is called.
      Also add a test to ensure that the startOp will not be called
      again when seamless handover is happened.
      
      Bug: 197135981
      Test: atest FrameworksNetTests:VpnTest
      Change-Id: I778ea4edf7c4a2d20b3b8e1877e7942feac5372a
      d4e7b00b
    • Aaron Huang's avatar
      Update callers to use buildTemplateMobileWithRatType with metered · 6359ebd0
      Aaron Huang authored
      The method buildTemplateMobileWithRatType is updated to take
      metered as a parameter so the callers should be updated to
      the new version.
      
      Bug: 183776809
      Test: atest FrameworksNetTest
      Change-Id: I859514b93705f9ee4f9ae4b0bcddcb61005a78ff
      Merged-In: I859514b93705f9ee4f9ae4b0bcddcb61005a78ff
      6359ebd0
    • Chalard Jean's avatar
      No-op cleanup · a3578a54
      Chalard Jean authored
      Binders from the system server don't help, because if the process
      dies there is nobody to listen to its binder deaths.
      
      Test: ConnectivityServiceTest
      Change-Id: I993cb9481edfaeb652b875be7f90166db16d0e1d
      a3578a54
  9. Oct 21, 2021
  10. Oct 20, 2021
Loading