Modified the WifiInfoTest test to test linkspeed
APIs getRxLinkSpeed() and getTxLinkSpeed()
Bug:118820339
Test: atest WifiInfoTest
Change-Id: Ic49b01bd546894b3b54e70c7bb82a4b15248a8bf
This is a following commit for cts of asynchronous DNS query API.
Change test path and adjust for the API changing.
Test: build
atest CtsNativeNetDnsTestCases
Change-Id: I7bc20a4d61293fc1d9e330250455709982639330
This change adds tests for the security checks in IpSecService, ensuring
that the MANAGE_IPSEC_TUNNELS appOp is granted before anything can run.
Bug: 115685048
Test: This, passes on aosp_taimen-eng
Change-Id: Ide50c71548847bedbcaa75410b4696ed29404ab5
This change adds test for creation and address additions of IPsec tunnel
mode.
Bug: 72458318
Test: Ran on aosp_taimen-eng
Change-Id: If9d7e5ef35d37242d452eb7386cd5f5b80f6351f
WifiManager#addNetwork(.) is deprecated - need to remove all
tests which exercise it. The deprecation logic is already
tested in WifiManagerTest#testDeprecatedApis().
Bug: 121284726
Test: atest WifiEnterpriseConfigTest
Change-Id: I599fea92b3a0c9e223948d3f1fc841031bb12770
The WifiManager#setWifiEnabled() is deprecated and no longer functions
for non-Settings apps.
Replace that call with the equivalent shell command which can be spawned
from the CTS test.
Bug: 121284726
Test: atest android.net.cts.ConnectivityManagerTest
Test: atest SingleDeviceTest
Test: atest WifiRttTest
Test: atest ConcurrencyTest
Test: atest ScanResultTest
Test: atest WifiInfoTest
Test: atest WifiEnterpriseConfigTest
Change-Id: Ib9b5e05e51f9369a045e13f02cd78c979ba807b3
MyForegroundService.java will change to background service during
testing,It’s ADJ will be 900. When run on a 512M project, it will
easily killed due to low memory.
Only set BIND_NOT_FOREGROUND and remove BIND_ALLOW_OOM_MANAGEMENT.
So MyForegroundService can still change process state between foreground
and background by startFround()/stopFround(). But it's ADJ will not too
high in background.
Bug: 120038371
Test: VTS, ran the test 5 times and it passed 5 times
Change-Id: I555366db7dd9904bc119bea94efbbe6422764f69
Test: tf/cts unit tests
./cts-tradefed run cts-dev -m CtsNetTestCases --shard-count 2 (with and
without sim card)
./cts-tradefed run cts-dev -m CtsCarrierApiTestCases --shard-count 2
(with and without uicc sim card)
Bug: 69367250
Change-Id: Iea26d1ea7528544aa39193adbec51418b1b35a86
Merged-In: Idcd35b9345be32658a1fd44027b03e5a47ff7e88
Test: tf/cts unit tests
./cts-tradefed run cts-dev -m CtsNetTestCases --shard-count 2 (with and
without sim card)
./cts-tradefed run cts-dev -m CtsCarrierApiTestCases --shard-count 2
(with and without uicc sim card)
Bug: 69367250
Change-Id: Idcd35b9345be32658a1fd44027b03e5a47ff7e88
Add a new CTS test to ensure that set device mobility permission is
granted to at most 1 app.
Bug: 120097108
Test: "atest WifiManagerTest" after installing app with new
permission granted
Change-Id: Ifda2163da6da9e9365c440d47031d25f92c6c375
Ensuring that app idle network whitelisting works as expected and does
not override other power saving restrictions.
Bug: 117846754
Bug: 111423978
Test: atest CtsHostsideNetworkTests
and atest NetworkPolicyManagerServiceTest
Change-Id: I09172184e2fe543d6723639e5e62ae6afd5a6087
Vpn test would destroy socket. If adb run over network, adb
socket would be killed during Vpn test. Then, test stop due to
adb disconnect.
Bug: 119382723
Test: - build pass
- run cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideVpnTests
Change-Id: I91b4ab018a9e7fc73dcb7969e4a6520d6b27d629
Add a new test to ensure that the NETWORK_MANAGED_PROVISIONING is only
granted to the correct app.
Bug: 115980767
Test: atest WifiManagerTest
Change-Id: Ifca1fcd81e201134bbb4173c3f142cca91ed49f9
Remove/Modify tests that are invoking the deprecated API's. Use the
shell automator to toggle wifi state.
CTS tests for the replacement API surface (i.e NetworkRequest &
NetworkSuggestion) will be added later.
Bug: 115504728
Test: `atest android.net.wifi.cts.WifiManagerTest`
Change-Id: I04b3e1572ddfd31b28639185e5cf54dd70a1ae42
Due to exposing api of toSafeString, add coresponding testing
for it.
Bug: 119153962
Test: atest UriTest
Change-Id: I156b2b03ee9c1d4a05ac635b4f684c5b4dcfca08
The dependency is unnecessary as by default conscrypt
is included in the "standard libraries".
Test: build
Bug: 113148576
Change-Id: I30d68049215c61931bdd7aa5e2a0f125e6d1bf90
The only exception is automotive builds which may start local-only
hotspot at 5Ghz
Bug:115666270
Test: run cts -m CtsNetTestCases -t
android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotSuccess
Change-Id: Ic3df22dab4ee93b531b92e6ed38adfa2b75880c7
Add a much more verbose message for the common failure case in which
the CTS is run without an AP which supports IEEE 802.11mc / RTT. That
may help speed up issue resolution.
Bug: 116849381
Test: atest WifiRttTest
Change-Id: I4ea3fbe17563f0087a013cbf48f7f601fec7e363
Location Wi-Fi scanning should not be turned off when the screen turns off.
Bug: 113876483
Test: Run CTS, manually toggle location Wi-Fi scanning off right after the screen
turns on and observe failure.
Test: Run CTS with location Wi-Fi scanning initially turned off and observe failure.
Test: Run CTS with location Wi-Fi scanning initially turned on and observe
success.
Change-Id: I092a3854b6365de72c2cfe38a55a0e1cedfcabd9
This access is going away for apps. Move these tests to hostside
tests to be executed by the shell domain.
Test: atest cts/hostsidetests/net/src/com/android/cts/net/ProcNetTest.java
Test: atest android.net.cts.ConnectivityManagerTest
Test: atest android.net.cts.IpSecSysctlTest
Test: atest android.net.cts.MultinetworkSysctlTest
Bug: 116053204
Change-Id: Id7e867184dd344a2d877515956e76019d627788b
Test connection->UID resolution for both UDP and TCP connections.
Bug: 9496886
Bug: 109758967
Test: atest HostsideVpnTests
Change-Id: Ic17c64df74f65d788fd3d95a25af3c5b44946881