- Nov 04, 2021
-
-
markchien authored
After separat BpfMap to a library, its package name is jarjar to com.android.network.stack.util*. Also jarjar BpfMap of TetheringPrivilegedTests to fix crash in jni registered. Bug: 179733303 Test: atest TetheringPrivilegedTests Change-Id: Ia9bc819a44fe26bf2ff7a46351ea60f2eeb02933
-
Maciej Żenczykowski authored
-
- Nov 02, 2021
-
-
Treehugger Robot authored
-
- Nov 01, 2021
-
-
Kimberly Kreider authored
-
Treehugger Robot authored
-
Chalard Jean authored
-
Chalard Jean authored
This timeout is not very useful but will be incurred every time Test: ConnectivityServiceTest Change-Id: Ia7c76c7c7a148f14844d098be267e16c215776f5
-
paulhu authored
Save permission update result when package added / package removed / setting changed. Log: Permission Monitor: Interface filtering rules: Update log: 2021-10-27T11:04:23.472 - Package remove: name=com.vzw.apnlib, uid=10001, nPerm=(NONE/NONE), tPerm=UNINSTALLED 2021-10-27T11:03:38.307 - Setting change: update={}, remove={10001=1} 2021-10-27T11:02:22.589 - Setting change: update={10001=2}, remove={} 2021-10-27T11:01:08.615 - Package add: name=com.vzw.apnlib, uid=10001, nPerm=(NONE/NONE), tPerm=NONE Bug: 204260474 Test: build / flash / adb shell dumpsys connectivity Change-Id: I889a8f2c82751f227655b39a4281a6f044508a86
-
Lucas Lin authored
-
Mark Chien authored
-
Chalard Jean authored
Mockito's mocks are not thread-safe. The dependencies object is used both on the test thread (to set it up) and in the CS handler thread. This can't work with a mock. Bug: 195626111 Test: ConnectivityServiceTest Change-Id: Ia989dd71c3133513a90bc1d1957419fb1b74c300
-
- Oct 29, 2021
-
-
Tyler Wear authored
Move bpfmap to frameworks/libs/net/common/native. Bug: 179733303 Change-Id: Id08b216ec6a64968d66d7990f91ea7ce222a1154
-
Chalard Jean authored
Test: TetheringTests Change-Id: I35b36538463a7fc2f02e142719c898d1694b2d6b
-
markchien authored
Bug: 201480425 Test: m Change-Id: I527c894eff3c068080995333ab8b372ab2aa38a0
-
- Oct 28, 2021
-
-
Treehugger Robot authored
-
Remi NGUYEN VAN authored
-
Chalard Jean authored
-
Chalard Jean authored
Test: ConnectivityServiceTest Change-Id: If5235443217ad4abbdd40e89d5721d4f7832d52f
-
Remi NGUYEN VAN authored
Replace SkipPresubmit with RequiresDevice on relevant tests, as RequiresDevices is more standard and more specific. This allows creating test configurations using virtual devices which are not necessarily in presubmit. Bug: 201014262 Test: TH needs to verify test mapping run with new annotation Change-Id: I6758d2a41a9a987a5244e47e4795bc49889c4d61
-
- Oct 27, 2021
-
-
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
-
- Oct 26, 2021
-
-
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
-
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
-
Lucas Lin authored
* changes: Test if underlying networks are the same as what VpnService sets Convert VpnTest to JUnit4
-
Aaron Huang authored
-
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
-
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
-
Chalard Jean authored
-
- Oct 25, 2021
-
-
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
-
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
-
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
-
- Oct 21, 2021
-
-
Anton Hansson authored
-
Lucas Lin authored
-
lucaslin authored
The previous design just set a valid private DNS and checked whether onCapabilitiesChanged() has received and NetworkCapabilities#isPrivateDnsBroken is false. It cannot ensure that the private DNS is working until the network is validated. So change the design to waiting the network to be validated after setting a valid private DNS. Bug: 196769780 Test: atest CtsNetTestCases:ConnectivityManagerTest Change-Id: I9c173a70e2b81788efa2ecbf928acda0379846da
-
Lucas Lin authored
-
- Oct 20, 2021
-
-
Kimberly Kreider authored
Bug: 203466102 Test: build locally and verified contents Change-Id: I7cccb54c0ad1a3bd8da0bcb7ad6474aa1e734299
-
Treehugger Robot authored
-
Chalard Jean authored
-
Chalard Jean authored
Now that S has gone to AOSP, this dependency is no longer needed. It is, on the contrary, harmful as it prevents us from adding shims that depend on T APIs in AOSP. Test: builds Change-Id: I64f0f394e826e58a9b7e772043bb6008428892e6
-
Anton Hansson authored
Connectivity's metalava invocation does not depend on framework-wifi, so these references fail to resolve, and as a result metalava currently removes the import. Fully qualify the references instead, to avoid both metalava trying to resolve the dependency, and having to depend on framework-wifi just for javadoc. Bug: 186197911 Test: build the sdk (with connectivity module stubs as input) Change-Id: I7129821b9a0d08d06f8e977a3c17fa5f5f6f9cee
-
Treehugger Robot authored
-