Commit Graph

2251 Commits

Author SHA1 Message Date
Ricky Wai
087de1c815 Set empty watchlist test config before CTS
Test: CTS pass
Bug: 63908748
Change-Id: I8b607feb44f873aced1ae3c2ff02c02f0553fb10
2018-03-30 23:56:35 +00:00
Fyodor Kupolov
9636bf48f8 Allow cleartext traffic for the test app
Test: HostsideRestrictBackgroundNetworkTests
Bug: 75978847
Change-Id: I8962a0e30120ffb4e98b1fb661df277236715656
2018-03-22 15:19:52 -07:00
Benedict Wong
458bdc8532 Add tests for IPsec SPI expiration timer changes
This change adds tests to ensure that SPI expiration timers are set to a
high value, greater than 1 hour (3600s).

Bug: 72316671
Test: Ran this, and MultiNetworkSysCtlTest.
Merged-In: Ib4776322bd5df772a3700b6e7ed1b5e7ed6b4637
Change-Id: Ib4776322bd5df772a3700b6e7ed1b5e7ed6b4637
(cherry picked from commit 45bc61034edee35d4ea5ab1753e15411d4c9d15c)
2018-03-20 11:29:58 -07:00
TreeHugger Robot
b93a68bb8c Merge "[NET][WIFI] Add OWNERS file for Net + Wi-Fi Aware/RTT tests" into pi-dev 2018-03-20 01:07:32 +00:00
Etan Cohen
c61122e056 [NET][WIFI] Add OWNERS file for Net + Wi-Fi Aware/RTT tests
Add OWNERS file for:
- Default net
- Wi-Fi Aware/RTT

Bug: 74954883
Test: N/A
Change-Id: I80105cd68be10b268bd9277e43e6ff08683a47fc
2018-03-19 23:24:02 +00:00
Etan Cohen
d0c37e8d1b [RTT] Remove testAvailabilityStatusChange because of lack of triggering API
The availability status change test performs the following:
- Disable RTT
- Verifies broadcast informing of RTT status change arrives (and then
  validates disabled)
- Enable RTT
- Verifies broadcast informing of RTT status change arrives (and then
  validates enabled)

However: there is no API available to CTS (to apps) to disable RTT in
a robust way:
- No APM control API
- Disabling Wi-Fi is possible but that only disables RTT if scans are
  also disabled and there is no API for that and the rest of the tests
  requires scans to be on (higher priority tests).

Bug: 74518964
Test: atest CtsNetTestCases:WifiRttTest
Change-Id: Ieaeca065661cebae1921933fad56f82dd6f30c2f
2018-03-15 11:41:20 -07:00
Etan Cohen
47d58e2a69 [RTT] Modify CTS tests to use associated AP information
Update the test to use the associated AP as the test AP:
- Make sure associated
- Find associated AP
- Disable Wi-Fi
- Run test
- Enable Wi-Fi

Bug: 74518964
Test: CtsNetTestCases:WifiRttTest pass
Change-Id: I0ee4eb56f32b4b3d119b86442d8e5912a6694fc8
2018-03-14 17:25:12 -07:00
Roshan Pius
9b397a50e5 Merge "WifiManagerTest: Check if scan is currently available" into pi-dev 2018-03-14 15:25:37 +00:00
Etan Cohen
fbb4ac835d [RTT] Disable RTT CTS
Pending infrastructure support for RTT APs.

Bug: t/31350604
Bug: b/74457054
Test: atest CtsNetTestCases:WifiRttTest
Change-Id: I23c3912336de17bec6717f79b10e1f83e0717658
2018-03-13 17:00:10 +00:00
Etan Cohen
439c05ce8b [RTT] CTS for the public Wi-Fi RTT APIs
Baseline set of tests for the public Wi-Fi RTT API.

Note: some of these tests require an IEEE 802.11mc capable AP.

Bug: 63446747
Test: tests pass
Change-Id: I176d9adbef15ce1c33b4572d5eb7e6cdf672f021
2018-03-13 07:55:16 -07:00
Roshan Pius
ace44ad873 WifiManagerTest: Check if scan is currently available
Changes in the CL:
a) Separate the scan part of testWifiManagerActions test into a
separate test.
b) The new scan test should check the |WIFI_SCAN_AVAILABLE| broadcast to
determine if the scan is expected to pass or not.

Bug: 72863107
Test: `atest
android.net.wifi.cts.WifiManagerTest#testWifiManagerActions`
Test: `atest
android.net.wifi.cts.WifiManagerTest#
testWifiManagerScanWhenWifiOffLocationTurnedOn`
Change-Id: I595c73152459ab09ad4061997b02a7165106915c
2018-03-09 16:31:53 -08:00
Etan Cohen
c548e56342 Merge "[AWARE] Update CTS for (new) Aware Location Mode behavior" 2018-03-02 15:48:23 +00:00
Eugene Susla
618eb894c9 Merge "Fix ConnectivityManagerTest" 2018-03-01 20:50:29 +00:00
Etan Cohen
aca8ac117e [AWARE] Update CTS for (new) Aware Location Mode behavior
Aware is now disabled whenever Location Mode is off. Update CTS
to check for Location Mode and fail if not available with relevant
notification.

Bug: 70218191
Test: CTS tests fail with Location Mode off
Test: CTS tests pass (with known failure for MAC randomization) with Location Mode on
Change-Id: I0739012a2a5fce56e76c1607e7b700c12fa8e083
2018-03-01 08:05:34 -08:00
Eugene Susla
3038dd2b7d Fix ConnectivityManagerTest
Fixes: 72455858
Test: ensure bug fixed
Change-Id: I843cb0f15389472a81f61d5c0b5814423c231fe4
2018-02-28 14:35:12 -08:00
Chenbo Feng
3aedd8b21a Check qtaguid support before private stats test
The AccessPrivateDataTest and CreatePrivateDataTest is directly testing
the proc file of xt_qtaguid module. These two test will no longer valid
after we block the access from untrusted app to qtaguid proc file. So
remove the AccessPrivateDataTest and added a new qtaguid test to make
sure apps with SDK 28 or above cannot access qtaguid proc file.

Bug: 30950746
Bug: 68774956
Test: run cts -m CtsAppSecurityHostTestCases \
	-t android.appsecurity.cts.AppSecurityTests

Change-Id: I957ba31fea392982e7d15eda2afd9580299192f2
2018-02-28 02:54:32 -08:00
Anton Hansson
4cfa3beb5c resolve merge conflicts of 1381b1d9a77260d78a3a67359e16c06ee388d37b to oc-mr1-dev-plus-aosp
am: 0c02379ec1  -s ours

Change-Id: I8bc040bea87ffb581568eae69cafb2c65fca9412
2018-02-26 17:08:31 +00:00
Anton Hansson
0c02379ec1 resolve merge conflicts of 1381b1d9a77260d78a3a67359e16c06ee388d37b to oc-mr1-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Merged-In: I5afdfc8e1e523768db9065dd3571cb31bc1dfac5
Change-Id: I5c5b85f516dba0d403eeee06055953931d2198aa
2018-02-26 15:36:28 +00:00
Anton Hansson
fed17889c7 Merge "cts: Set LOCAL_SDK_VERSION where possible." 2018-02-26 13:57:25 +00:00
Anton Hansson
505cbf0342 cts: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I687153389dd4bfab1c83df5d9af83d89bed76fd4
Merged-In: I5afdfc8e1e523768db9065dd3571cb31bc1dfac5
2018-02-26 12:09:09 +00:00
Anton Hansson
9a9ceeff6a cts: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I5afdfc8e1e523768db9065dd3571cb31bc1dfac5
2018-02-23 11:11:11 +00:00
Sudheer Shanka
2bf68eba3a Update the battery charging status when turning battery on/off.
Bug: 72656089
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
      com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: Ida6d3ff4a78c91e656b49a26006603973753c808
2018-02-13 15:59:28 -08:00
Sudheer Shanka
dc134af7aa Update netpolicy tests to not assume DUT will be plugged-in.
Bug: 73037837
Bug: 72656089
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
      com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: I79aaaf083255626896901fcfdade70b4705cfc06
2018-02-10 15:43:59 -08:00
jdesprez
48f31fac64 Replace TestIdentifier by TestDescription
Large scale update of our test interface.

Test: build all targets
Bug: 70543295
Change-Id: I1600b8b950fe34bf4656e7769b8f7d3f365e3c0b
2018-02-07 16:37:13 -08:00
Adam Vartanian
57e1941be9 Merge changes from topic "am-325cd506-a538-4cb7-a65c-bc30576c59e9" into oc-dev am: fb27c032ff am: 3c22d6bea8 am: bbc39aba5b
am: df4e5f9902

Change-Id: I1f9a8d36b810c58a435d88f1acc19e61ed9bdd56
2018-02-03 23:42:59 +00:00
Adam Vartanian
df4e5f9902 Merge changes from topic "am-325cd506-a538-4cb7-a65c-bc30576c59e9" into oc-dev am: fb27c032ff am: 3c22d6bea8
am: bbc39aba5b

Change-Id: Ic129a3fdff54705ba345cd032a0b17ce502ac5c9
2018-02-02 03:58:55 +00:00
Adam Vartanian
bbc39aba5b Merge changes from topic "am-325cd506-a538-4cb7-a65c-bc30576c59e9" into oc-dev am: fb27c032ff
am: 3c22d6bea8

Change-Id: I2fe9d75f0bf5b94f2fa0b2d0a819f2b8281ccf7b
2018-02-02 03:32:08 +00:00
Adam Vartanian
3c22d6bea8 Merge changes from topic "am-325cd506-a538-4cb7-a65c-bc30576c59e9" into oc-dev
am: fb27c032ff

Change-Id: I459897b291fff063091f4d5e64330df4ade47c0c
2018-02-01 23:31:51 +00:00
Etan Cohen
4fa2e9968e Merge "[AWARE] Remove "Respond to ANY" API - dummy tests deprecated" 2018-01-31 16:05:05 +00:00
Ricky Wai
12a04fc52d Merge "Add CTS for verifying ConnectivityManager.getNetworkWatchlistConfigHash()" 2018-01-31 15:54:48 +00:00
Android Build Merger (Role)
ea75ff0609 [automerger] Add CTS test for URI fix. am: 85156429a2 am: 27914625b1 am: 662ce9724a am: 67ae9d3245 am: ad9fa4877c am: 2f52ceef6f am: 3bc75c3136 am: 1e65404eb8 am: 330b09b8a8 am: 119bbb1cdb
Change-Id: Ib52e5a020d679328e9d91534e636f6f89abb8781
2018-01-31 11:17:54 +00:00
Android Build Merger (Role)
330b09b8a8 [automerger] Add CTS test for URI fix. am: 85156429a2 am: 27914625b1 am: 662ce9724a am: 67ae9d3245 am: ad9fa4877c am: 2f52ceef6f am: 3bc75c3136 am: 1e65404eb8
Change-Id: I0232e8093dd78ed98e9d89ec0c062593b38a12a1
2018-01-31 11:17:45 +00:00
Android Build Merger (Role)
1e65404eb8 [automerger] Add CTS test for URI fix. am: 85156429a2 am: 27914625b1 am: 662ce9724a am: 67ae9d3245 am: ad9fa4877c am: 2f52ceef6f am: 3bc75c3136
Change-Id: I3e58d87b69ba1f32474550364e04324e6fc8fd88
2018-01-31 11:17:39 +00:00
Android Build Merger (Role)
3bc75c3136 [automerger] Add CTS test for URI fix. am: 85156429a2 am: 27914625b1 am: 662ce9724a am: 67ae9d3245 am: ad9fa4877c am: 2f52ceef6f
Change-Id: I164c155385cef9ca2ed8bb810d1c1e7be65e4458
2018-01-31 11:17:34 +00:00
Android Build Merger (Role)
2f52ceef6f [automerger] Add CTS test for URI fix. am: 85156429a2 am: 27914625b1 am: 662ce9724a am: 67ae9d3245 am: ad9fa4877c
Change-Id: Ie5d7744787cd7b700b42dc22ddc921f5b1965a01
2018-01-31 11:17:29 +00:00
Android Build Merger (Role)
67ae9d3245 [automerger] Add CTS test for URI fix. am: 85156429a2 am: 27914625b1 am: 662ce9724a
Change-Id: I29da2e67aa8c3ec9bde0d72c91ada85f160e39d9
2018-01-31 11:17:19 +00:00
Android Build Merger (Role)
27914625b1 [automerger] Add CTS test for URI fix. am: 85156429a2
Change-Id: Iedd07e900b8512737df2d0d6ca33920ef9bfd30b
2018-01-31 11:17:09 +00:00
Adam Vartanian
85156429a2 Add CTS test for URI fix.
Bug: 71360761
Test: cts -m CtsNetTestCases (on NYC branch)
Change-Id: I09a156040d4970b7b2f973e9bffcfc97a8ff2274
2018-01-31 10:47:13 +00:00
Hugo Benichi
746b3cee6f Merge "Add CTS coverage for MacAddress" am: e264485c55 am: 5e62adab76
am: 4750a2a9f8

Change-Id: I0a5ee9b767dbee5e8d5b2880454f6d3019892f7b
2018-01-30 23:44:08 +00:00
Hugo Benichi
4750a2a9f8 Merge "Add CTS coverage for MacAddress" am: e264485c55
am: 5e62adab76

Change-Id: Iab010dea545323650a7d03bf14edc84c69129f81
2018-01-30 23:39:35 +00:00
Hugo Benichi
83e4cf5085 Add CTS coverage for MacAddress
Bug: 71866627
Test: cts-tradefed run cts-dev --module CtsNetTestCases -t android.net.cts.MacAddressTest
Change-Id: I2d8702b154a485f89911e1affb7cee79692f3ac7
2018-01-30 14:40:51 +09:00
Ricky Wai
01be94c60f Add CTS for verifying ConnectivityManager.getNetworkWatchlistConfigHash()
Bug: 63908748
Test: cts-tradefed run cts -m CtsNetTestCases -t android.net.cts.NetworkWatchlistTest
Change-Id: I9c7c9349287a0a856aec128b3fa5560359921155
2018-01-29 14:11:14 +00:00
Etan Cohen
9a37de577c [AWARE] Remove "Respond to ANY" API - dummy tests deprecated
Aware API which permitted a Responder (Publisher) to accept data
path requests from ANY peer (as opposed to a specific peer with a
Peer ID or MAC address) is deprecated in the API update.

The CTS tests in any case cannot test the full exchange (which
requires 2 devices and is tested using CtsVerifier). They tested
the creation of a valid Network Specifier and a network request
which then times-out. However, the network request did not specify
a peer - a now deprecated API.

Update the tests:
- For OOB data-path specify a dummy MAC address
- Remove the in-band data-path tests since there is no public API
  to create a dummy PeerHandle.

Bug: 72175022
Test: CTS passes
Change-Id: I97b74d80d0f9dfdc43c4c743a18c960c05ab6a53
2018-01-24 17:00:44 -08:00
Dianne Hackborn
c565ba340d Merge "Fix issue #72116995: Add permission guarding Service#startForeground" 2018-01-24 17:58:49 +00:00
Jiyong Park
e2fea86b44 Use stubs libs for android.test.base/runner/mock
android.test.base/runner/mock libraries are shared libraries that are
built without SDK, but with framework interanl libraries (framework.jar,
etc). Apps or libs that are built with SDK (LOCAL_SDK_VERSION is set)
shouldn't use them, but instead the stubs version of the test framework
libraries, which are built using SDK.

This is because, the build system does not allow a module built with SDK
to depend on another module built without SDK. This has been
exceptionally allowed with warnings, but will soon be errors.

In order to prevent the expected build breakage, direct reference to the
shared libraries are all changed to the stubs libraries.

Note: no one has been using these shared libs statically. So, it is
guaranteed that they won't encounter a problem due to missing
<uses-library name="android.test.runner"/> even after this change.

Bug: 69899800
Test: m -j checkbuild
Change-Id: I278fcf0b7f4972c473462eb88c46a111b0ce7d89
2018-01-24 17:15:49 +09:00
Sudheer Shanka
bc642d878e Fix netpolicy cts failures due to missing FLAG_ACTIVITY_NEW_TASK.
Bug: 72219677
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
      com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: I076e10b09f7d8a65120e62ed50afb2d326b62267
2018-01-22 19:28:21 -08:00
Dianne Hackborn
568c73dec2 Fix issue #72116995: Add permission guarding Service#startForeground
Bug: 72116995
Test: atest CtsAppTestCases
Change-Id: Idd6dc142fe327c2471455a29473d4b9048bd1f08
2018-01-21 19:57:12 -08:00
jdesprez
83fa03fb3f Use TestRuNResult and testResult from Tf not ddmlib
Test: build cts, cts unit tests
Bug: 70543295
Change-Id: I0a23e3cd8466623a32b01ba6b56d35478679645c
2018-01-20 06:41:02 -08:00
nharold
f4e0b5bb52 Merge "IpSec - API Tweak for removeTransportModeTransforms" am: 1ca0e05919 am: c1f0cbb244
am: dc42b714fb

Change-Id: I30c1aec77926a8c6f5867a3364dc0b3b0ec38d49
2018-01-17 20:45:59 +00:00
nharold
dc42b714fb Merge "IpSec - API Tweak for removeTransportModeTransforms" am: 1ca0e05919
am: c1f0cbb244

Change-Id: I5ef872199f1b29b69799e82c0e5d13d87dc13711
2018-01-17 20:36:03 +00:00