Sudheer Shanka
21163bc32d
CtsHostsideNetworkTests: Add more logging when the test fails.
...
Bug: 66015813
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I1dc0603011522f73c63dcb7f0f1422428f727fad
2017-09-29 17:13:32 -07:00
Sudheer Shanka
26e6bf91be
Merge "CtsHostsideNetworkTests: Add more logging when the test fails." into oc-mr1-dev
2017-09-27 21:00:54 +00:00
Lorenzo Colitti
b47b977afa
Ensure that Ethernet is supported if the service is running.
...
Currently, it's possible for isNetworkSupported() to return false
for TYPE_ETHERNET even if the device could otherwise support
Ethernet (e.g., via a USB host adapter). This can lead to APIs
APIs such as getActiveNetworkInfo and CONNECTIVITY_ACTION
behaving as if Ethernet was not present, even if it's connected.
Reduce the chance of this sort of misconfiguration by ensuring
that if the Ethernet service is running, isNetworkSupported
will return true for TYPE_ETHERNET. OEMs that would like the
function to return false should avoid starting the Ethernet
service.
(cherry picked from commit c4f38c2e5b )
Bug: 37359230
Test: ConnectivityManagerTest passes on aosp_bullhead
Change-Id: Iad8884bf7d12bbf661e5502b31f052a6e8457a6f
Merged-In: Iad8884bf7d12bbf661e5502b31f052a6e8457a6f
2017-09-27 17:32:15 +09:00
Sudheer Shanka
f23cf00410
CtsHostsideNetworkTests: Add more logging when the test fails.
...
Bug: 66015813
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I8e04e061b949a44e6c63bc56eba9612311065a4d
2017-09-26 18:19:43 -07:00
Sudheer Shanka
459e28159c
Fix flaky CtsHostsideNetworkTests.
...
'set metered-network' adb command is not blocking, it doesn't
wait for the network to be marked as metered. Updated test
to sleep and poll for metered status.
Bug: 64274313
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests \
-t com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: Ide3e1633167979bdca912c1c299ad17d988b537e
2017-09-13 18:17:01 -07:00
Sudheer Shanka
27547e6446
Merge "Add extra logging when the test fails." into oc-mr1-dev
2017-09-08 23:12:44 +00:00
Sudheer Shanka
518999df34
Add extra logging when the test fails.
...
When the test fails, dump network_management and netpolicy
services to help in debugging.
Bug: 64274313
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests \
-t com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I76287de2c7cd6f394af9768a69e2c0fabba3be25
2017-09-07 15:36:08 -07:00
Sudheer Shanka
314d003540
Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3 am: 662e13b57a am: 46f8aa6d48 am: 7cbb2f7587 am: b3b2ee88cd am: c4e9bdc085 -s ours am: 8ca874ff80 -s ours
...
am: 1608a09e47 -s ours
Change-Id: If433aa8fe124858e312b45c9a601e1c8c418ff18
2017-09-07 18:56:46 +00:00
Sudheer Shanka
1608a09e47
Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3 am: 662e13b57a am: 46f8aa6d48 am: 7cbb2f7587 am: b3b2ee88cd am: c4e9bdc085 -s ours
...
am: 8ca874ff80 -s ours
Change-Id: I3ddea2408f094af97ff024109ab3034c53f58608
2017-09-07 18:51:41 +00:00
Sudheer Shanka
e0ebf2197b
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev am: b5abc8f89b am: f0bc6efb5e am: be2d3c2871 am: c0c353f6d2 -s ours am: 384309dea0 -s ours
...
am: ad5a21d247 -s ours
Change-Id: I1ea827dcfad6cc5d54824195c7aff42da65d43a1
2017-09-07 18:50:19 +00:00
Sudheer Shanka
8ca874ff80
Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3 am: 662e13b57a am: 46f8aa6d48 am: 7cbb2f7587 am: b3b2ee88cd
...
am: c4e9bdc085 -s ours
Change-Id: I1ddc2ab2fb8c80d9455b7ee15e7fa4e929517c7a
2017-09-07 18:43:52 +00:00
Sudheer Shanka
ad5a21d247
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev am: b5abc8f89b am: f0bc6efb5e am: be2d3c2871 am: c0c353f6d2 -s ours
...
am: 384309dea0 -s ours
Change-Id: I550af6b29aef745ff10c7592de7f468b6a8859ff
2017-09-07 18:43:45 +00:00
Sudheer Shanka
1c3be623ba
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev am: b5abc8f89b -s ours am: b411a9d3c1 -s ours am: 054a3b98cb -s ours
...
am: 8a8d41cb6e -s ours
Change-Id: Ic5b7d64f16007fd4c1addb50abf4ff3feaae9a56
2017-09-07 18:41:58 +00:00
Sudheer Shanka
384309dea0
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev am: b5abc8f89b am: f0bc6efb5e am: be2d3c2871
...
am: c0c353f6d2 -s ours
Change-Id: Id8af45c896241c03d9ca43f9cd5825e77ffe6563
2017-09-07 18:35:44 +00:00
Sudheer Shanka
8a8d41cb6e
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev am: b5abc8f89b -s ours am: b411a9d3c1 -s ours
...
am: 054a3b98cb -s ours
Change-Id: I14f77d3571e1411cc7f233a7405c9757ead26396
2017-09-07 18:29:41 +00:00
Sudheer Shanka
b3b2ee88cd
Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3 am: 662e13b57a am: 46f8aa6d48
...
am: 7cbb2f7587
Change-Id: Idc1174d25aecef3bb5461d22a6d2bcf3fdf6bed3
2017-09-07 18:29:40 +00:00
Sudheer Shanka
7cbb2f7587
Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3 am: 662e13b57a
...
am: 46f8aa6d48
Change-Id: If6fb0012849a0b95344fa4ed5f2e3985340a03a1
2017-09-07 18:25:15 +00:00
Sudheer Shanka
be2d3c2871
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev am: b5abc8f89b
...
am: f0bc6efb5e
Change-Id: Ic20530cdbae02daf1133500e2778b8829331332b
2017-09-07 18:24:22 +00:00
Sudheer Shanka
054a3b98cb
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev am: b5abc8f89b -s ours
...
am: b411a9d3c1 -s ours
Change-Id: Iaaaa496a0b092e48d7acf7901a40e9767efedba6
2017-09-07 18:23:09 +00:00
Sudheer Shanka
46f8aa6d48
Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3
...
am: 662e13b57a
Change-Id: I0d070bfbe19666f77b9ae21c19893f776389fac0
2017-09-07 18:20:35 +00:00
Sudheer Shanka
b411a9d3c1
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev
...
am: b5abc8f89b -s ours
Change-Id: I6e63b41e0a0c499aeeab069da4666c4f42a18fc9
2017-09-07 18:19:13 +00:00
Sudheer Shanka
f0bc6efb5e
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev
...
am: b5abc8f89b
Change-Id: Ic3aee8310d6250d15a5414640dbd35cb66a7c18c
2017-09-07 18:17:21 +00:00
Sudheer Shanka
662e13b57a
Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev
...
am: 203361a0c3
Change-Id: I7bd246e79792960c53e12c166a255eabe7f428ed
2017-09-07 18:11:26 +00:00
Android Merger
b5abc8f89b
Merge "Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev am: 203361a0c3" into nougat-mr1-cts-dev
2017-09-07 18:08:35 +00:00
Sudheer Shanka
9418ecdc40
Merge "Increase timeout for ordered broadcast response." into nougat-cts-dev
...
am: 203361a0c3
Change-Id: Ifbd3594524de6fc45cb199345715794f9869c9d6
2017-09-07 18:08:27 +00:00
Sudheer Shanka
07e00f7523
Increase timeout for ordered broadcast response.
...
Bug: 65269531
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Merged-In: Ibdb84048b04405f234aa5ad9124eb70e9e592498
Merged-In: I99668396abcf7421cd7ffb9118e309aaecb80f07
Change-Id: I6f1de7ccc8d4164dc6f770b54863c04bb7d9e62e
2017-09-05 14:56:04 -07:00
Sudheer Shanka
46ec0e97b4
Add notification listener using the new shell command.
...
Adding notification listener by updating secure setting has
been deprecated.
Fixes: 65245599
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I98dbff45bffed592cba2cd964f1a148450a1197d
2017-08-31 17:42:41 -07:00
Bjoern Johansson
366172dea8
Skip WifiManager tests if WiFi is not supported am: d4c2d2aca3
...
am: 68842e0e90
Change-Id: Ieb5f6e429034cdef563f190be93a7203bc582302
2017-08-23 18:18:55 +00:00
Bjoern Johansson
68842e0e90
Skip WifiManager tests if WiFi is not supported
...
am: d4c2d2aca3
Change-Id: I87d6e927e5b739db343b013c212fc9fb1e076a98
2017-08-23 18:12:26 +00:00
Bjoern Johansson
d4c2d2aca3
Skip WifiManager tests if WiFi is not supported
...
Some of the WifiManager tests assumed that WiFi is always supported.
This is not true for all devices, for example the Android emulator, and
is not a requirement in the CDD.
BUG: 37633976
Test: Successfully ran 'run cts -m CtsNetTestCases'
Change-Id: Ia6d62e8d2b6e0b0c2ef2fafd50529e722e4419e4
(cherry picked from commit 9703adffd5e3bf85e482cdac45a1147caff4ac3d)
2017-08-23 15:52:48 +00:00
Bjoern Johansson
bd7f2904d9
Skip WifiManager tests if WiFi is not supported
...
Some of the WifiManager tests assumed that WiFi is always supported.
This is not true for all devices, for example the Android emulator, and
is not a requirement in the CDD.
BUG: 37633976
Test: Successfully ran 'run cts -m CtsNetTestCases'
Change-Id: Ia6d62e8d2b6e0b0c2ef2fafd50529e722e4419e4
2017-08-17 17:14:40 -07:00
Sudheer Shanka
a30a1edf9f
Add location permission to netpolicy test app.
...
As part of the test, wifi ssid needs to be extracted which
is guarded by ACCESS_COARSE_LOCATION permission.
Bug: 64274313
Test: cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I5c23b11dc1bf26a672bc1454ff1e2594935d43d8
2017-08-16 10:17:59 -07:00
shreerag
7f06181c86
Merge "No longer using specific watch device idle settings" into oc-dev am: 8bde47ae82
...
am: eb2c021f93
Change-Id: Iff4af17accb81c3111c0a7517dfcb295858ad48f
2017-08-10 00:05:26 +00:00
shreerag
eb2c021f93
Merge "No longer using specific watch device idle settings" into oc-dev
...
am: 8bde47ae82
Change-Id: I46f8f4bdfea7ae4f75119226cbaa100365a260db
2017-08-09 23:58:26 +00:00
TreeHugger Robot
8bde47ae82
Merge "No longer using specific watch device idle settings" into oc-dev
2017-08-09 23:44:19 +00:00
Lorenzo Colitti
b0a7fc43f3
Merge "Dup fds to stop finalizers from invalidating them." into nougat-mr1-cts-dev am: bfabfe75f9 am: 80c62eb79b am: d4df358e42 am: 929efe5914 am: c324d8efcc
...
am: 8331ccda31
Change-Id: I4b68b8229a71b49a65ed519e0239fa6ffbf85105
2017-08-09 17:16:19 +00:00
Lorenzo Colitti
8331ccda31
Merge "Dup fds to stop finalizers from invalidating them." into nougat-mr1-cts-dev am: bfabfe75f9 am: 80c62eb79b am: d4df358e42 am: 929efe5914
...
am: c324d8efcc
Change-Id: I2d471b52d69e8af0eae9e0548f58afeeabff9f3f
2017-08-09 16:53:47 +00:00
Lorenzo Colitti
c324d8efcc
Merge "Dup fds to stop finalizers from invalidating them." into nougat-mr1-cts-dev am: bfabfe75f9 am: 80c62eb79b am: d4df358e42
...
am: 929efe5914
Change-Id: Id08eca6a250dee0c809267b7e3c79b9bb7170f3b
2017-08-09 16:47:20 +00:00
Lorenzo Colitti
d4df358e42
Merge "Dup fds to stop finalizers from invalidating them." into nougat-mr1-cts-dev am: bfabfe75f9
...
am: 80c62eb79b
Change-Id: Iee5219bc701a3049340d49f4fb33cc1340325957
2017-08-09 16:35:45 +00:00
Lorenzo Colitti
80c62eb79b
Merge "Dup fds to stop finalizers from invalidating them." into nougat-mr1-cts-dev
...
am: bfabfe75f9
Change-Id: If02ea4f12870acb3e5e1bce9e9ddbc42c0fd05f0
2017-08-09 16:29:49 +00:00
Treehugger Robot
bfabfe75f9
Merge "Dup fds to stop finalizers from invalidating them." into nougat-mr1-cts-dev
2017-08-09 16:17:22 +00:00
shreerag
f99d8d82b4
No longer using specific watch device idle settings
...
Bug: 28091250
Change-Id: Id57c5a638f5a10367d13f6353ea3212745a3f06e
2017-08-07 23:40:25 +00:00
Etan Cohen
c4043aebc6
Merge "[AWARE][CTS] Check for location setting for test needing to disable Wi-Fi" into oc-dev am: ba16d61c91
...
am: 9cf74ade23
Change-Id: I39b679393d97288ac80eb73ca22f63466bc85a9e
2017-07-29 20:16:46 +00:00
Etan Cohen
9cf74ade23
Merge "[AWARE][CTS] Check for location setting for test needing to disable Wi-Fi" into oc-dev
...
am: ba16d61c91
Change-Id: Iaee56d95f394116b731e8092ad2507eb113bb50c
2017-07-29 20:11:16 +00:00
Etan Cohen
ba1f56050f
[AWARE][CTS] Check for location setting for test needing to disable Wi-Fi
...
Disabling Wi-Fi API which is available to CTS only disables the
infrastructure mode (association to an AP). This disables the Wi-Fi
chip (HAL/driver/firmware) only if location scanning is disabled,
otherwise the chip is still enabled.
The failing CTS Wi-Fi Aware test relied on disabling the Wi-Fi chip.
This cannot be done from CTS. Added a check for location scan setting
and skip the test if enabled.
Cannot fail and require the tester to disable location scans since other
CTS tests require it to be enabled.
Bug: 64125460
Test: run cts with and without location scans
Change-Id: I0582926dbf854c14b57dcdeb383db9b5f2a353a2
2017-07-28 22:30:33 +00:00
Chenbo Feng
526e6ca600
Merge "Add test to check sock addr in qtaguid ctrl file" into oc-dr1-dev am: c27e548346
...
am: c50605ed51
Change-Id: Ic5ac97d78af2d25cb9e35ee3cf82695fa64aaed6
2017-07-19 00:29:21 +00:00
Chenbo Feng
a6d4fe32f6
Merge "Rename the native test file" into oc-dr1-dev am: f00fd5886b
...
am: 9357731f9e
Change-Id: Idc8516cab9271cb2349ddf61a1e45b3866f52f1a
2017-07-19 00:28:27 +00:00
Chenbo Feng
c50605ed51
Merge "Add test to check sock addr in qtaguid ctrl file" into oc-dr1-dev
...
am: c27e548346
Change-Id: I8627db8fc0a811294bf8cf42939c0189d2041aa9
2017-07-19 00:00:21 +00:00
Chenbo Feng
9357731f9e
Merge "Rename the native test file" into oc-dr1-dev
...
am: f00fd5886b
Change-Id: I10ce840ec4fb2aea62730cbcff189ecdea3e9ee9
2017-07-18 23:59:34 +00:00
TreeHugger Robot
c27e548346
Merge "Add test to check sock addr in qtaguid ctrl file" into oc-dr1-dev
2017-07-18 23:49:08 +00:00