Create multiple foreground services and make
sure the process state reflects which FG service
type is running.
Also fix an existing test with hardcoded proc
state.
Bug: 111453223
Test: atest CtsAppTestCases
atest CtsHostsideNetworkTests
Change-Id: I309083d13452df58f6dc8e7089328acf260a2ed0
1. Test that android_res_nresult closes the fd.
2. Use "0" instead of ResNsendFlags(0) since
the type of flags is changed.
Test: build
atest CtsNativeNetDnsTestCases
Change-Id: I772fb3f70f52b84802bb352215a1639efeab1629
am: 0c088c9321 -s ours
am skip reason: change_id Idcd35b9345be32658a1fd44027b03e5a47ff7e88 with SHA1 c2b211f450 is in history
Change-Id: I8748466f0d4fc9f2aa9d20932bc4100693b17833
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