Commit Graph

901 Commits

Author SHA1 Message Date
Felipe Leme
b2f0d2e01a Added tests for network restrictions while the screen is off. am: 2882cd2a7a am: f602c8fd12
am: f5ba7ef760

Change-Id: Iad1f31fa178040fef236b7e98efa481fcaebadda
2016-08-20 06:01:10 +00:00
Felipe Leme
f5ba7ef760 Added tests for network restrictions while the screen is off. am: 2882cd2a7a
am: f602c8fd12

Change-Id: Ie4ac91c0b23ceb0c3ed56cfba16ea2651f5bfb7c
2016-08-20 05:38:08 +00:00
Felipe Leme
2882cd2a7a Added tests for network restrictions while the screen is off.
BUG: 30785671
Change-Id: I1b211e545ff234272ff6acadfda9ce97765695a9
(cherry picked from commit b80a93061aa7d0a19b47a7dbb82f0dc06e3afb7e)
2016-08-20 03:58:09 +00:00
Felipe Leme
88825d228a Improve check for activity on top after launch. am: a871a99ebc am: b7ff856a2a am: b27e249370
am: fdceed85ed

Change-Id: If956df92b61dd8d6a973dc1d8007b8fa874b4d22
2016-08-16 00:57:14 +00:00
Felipe Leme
fdceed85ed Improve check for activity on top after launch. am: a871a99ebc am: b7ff856a2a
am: b27e249370

Change-Id: I4c34f3356545d6d9a5a2f76838770c591347fb55
2016-08-16 00:49:14 +00:00
Felipe Leme
aed757ba47 Improve check for activity on top after launch. am: a871a99ebc am: 226e261696
am: a6461a105d

Change-Id: Ia97c366eea2ababd3488d1cfef2931c5f863c5f9
2016-08-16 00:41:11 +00:00
Felipe Leme
a6461a105d Improve check for activity on top after launch. am: a871a99ebc
am: 226e261696

Change-Id: I9b9d517236994d6ddc42e0550bce9284eec98949
2016-08-16 00:37:56 +00:00
Felipe Leme
b7ff856a2a Improve check for activity on top after launch.
am: a871a99ebc

Change-Id: Ia2ae617d0c181eaed536ac81c6086d632fee6b24
2016-08-16 00:34:18 +00:00
Felipe Leme
226e261696 Improve check for activity on top after launch.
am: a871a99ebc

Change-Id: I5b1569ca013d964dec23077f70eaa29c1af4a5b0
2016-08-16 00:33:53 +00:00
Felipe Leme
a871a99ebc Improve check for activity on top after launch.
BUG: 30875754
Fixes: 30868243

Change-Id: I8b7624e35caef107743d61f312e220f8bc21b9b8
2016-08-15 15:50:38 -07:00
Felipe Leme
e9ef06260e Added tests for network restrictions while the screen is off.
BUG: 30785671
Change-Id: I1b211e545ff234272ff6acadfda9ce97765695a9
2016-08-10 13:16:15 -07:00
Neil Fuller
a4f5bc5c2b Merge "Initialize MockWebServer in setUp() not construction time" am: f1026cb99e am: 6406334d84 am: 626bc4b4ae
am: 0c9ef52771

Change-Id: I9e26298cd21675fee270e684530bcca9102953d9
2016-08-09 16:20:15 +00:00
Neil Fuller
0c9ef52771 Merge "Initialize MockWebServer in setUp() not construction time" am: f1026cb99e am: 6406334d84
am: 626bc4b4ae

Change-Id: Id488d2d8e9bc7feecf54ecb88cee65f84b61337c
2016-08-09 16:17:13 +00:00
Neil Fuller
6406334d84 Merge "Initialize MockWebServer in setUp() not construction time"
am: f1026cb99e

Change-Id: I9c114d40171d73c90dcc4e2ef75a2239d39e4e81
2016-08-09 16:12:27 +00:00
Neil Fuller
f1026cb99e Merge "Initialize MockWebServer in setUp() not construction time" 2016-08-09 16:06:23 +00:00
Felipe Leme
3d27e09442 Improvements on retry mechanism on network tests: am: 9c1322683f am: a0eb87471d
am: 7b068d139b

Change-Id: I2f12d28f3fe36cd3406e3f8b0d96b19b31189632
2016-08-02 22:33:14 +00:00
Felipe Leme
7b068d139b Improvements on retry mechanism on network tests: am: 9c1322683f
am: a0eb87471d

Change-Id: I0324e12cfd625ac102046d438e5ec8a5801c6688
2016-08-02 22:17:39 +00:00
Felipe Leme
9c1322683f Improvements on retry mechanism on network tests:
- Retry on all cases (not only when expecting connected).
- Uses exponential back-off for timeout.

BUG: 27803922
Fixes: 30509643

Change-Id: I42454f43158598a72e30f290c27c5a02e80ea6d2
2016-08-01 17:23:29 -07:00
Felipe Leme
431a6ce975 Merge \\"Cover more PendingIntent whitelist scenarios.\\" into nyc-mr1-dev am: 7ad28a9f49
am: a11a244f0f

Change-Id: Ie1068e4ea6e6d43081ad30dc45242599b62cc350
2016-06-30 21:34:46 +00:00
Felipe Leme
a11a244f0f Merge \"Cover more PendingIntent whitelist scenarios.\" into nyc-mr1-dev
am: 7ad28a9f49

Change-Id: I44317faff3ba4243f6a91e7b27384288bdc94f7c
2016-06-30 21:31:05 +00:00
Neil Fuller
a87e5240cc Initialize MockWebServer in setUp() not construction time
Should be a no-op but makes test suite creation cheaper.

Bug: 29820565
Change-Id: Ieee5568a6f477d591436275be4d4e7e3d5dbd322
2016-06-28 18:25:28 +01:00
Felipe Leme
e928006e67 Cover more PendingIntent whitelist scenarios.
BUG: 29480440
Change-Id: I961b765f40135efc06fbb3e5a4a94e8e333453da
2016-06-28 09:07:53 -07:00
Chih-hung Hsieh
9be03581ef resolve merge conflicts of 079d417 to stage-aosp-master am: 64b0e44329 am: 9197c89071
am: ab757b423f

Change-Id: If26141a6ea6bc4d7f9e2966cbd1b7309530c634e
2016-06-27 21:41:51 +00:00
Chih-Hung Hsieh
ab757b423f resolve merge conflicts of 079d417 to stage-aosp-master am: 64b0e44329
am: 9197c89071

Change-Id: I829286b8c46ba540a4bf57a1f5ba6aee04a70535
2016-06-27 21:39:12 +00:00
Chih-hung Hsieh
9197c89071 resolve merge conflicts of 079d417 to stage-aosp-master
am: 64b0e44329

Change-Id: Ia3b91ebb942b4ab413ef4c76a06880c62e8581f9
2016-06-27 21:36:48 +00:00
Chih-Hung Hsieh
64b0e44329 resolve merge conflicts of 079d417 to stage-aosp-master
Change-Id: Ib8b7ed43d6c8dc4a9b843e6d2a974af30bcba0a0
2016-06-24 12:17:53 -07:00
Phil Weaver
0179803560 Merge \\\"CTS: Only listen to wifi events when toggling wifi\\\" into nyc-dev am: 79fad1a209 am: 3eab917a25
am: 1cd1ded4dc

Change-Id: Ib555cdee85fb1a7e723abbde92c842dee6e0581b
2016-06-23 02:11:44 +00:00
Phil Weaver
1cd1ded4dc Merge \\"CTS: Only listen to wifi events when toggling wifi\\" into nyc-dev am: 79fad1a209
am: 3eab917a25

Change-Id: Id360ce70d4ce44b17564e31d5ca8017a0a2a876f
2016-06-23 02:03:04 +00:00
Phil Weaver
3eab917a25 Merge \"CTS: Only listen to wifi events when toggling wifi\" into nyc-dev
am: 79fad1a209

Change-Id: Ieadf318b07d99acd8a2b73748fdac806731169d4
2016-06-23 01:57:27 +00:00
Phil Weaver
79fad1a209 Merge "CTS: Only listen to wifi events when toggling wifi" into nyc-dev 2016-06-23 01:48:11 +00:00
Phil Weaver
0d7d1da503 CTS: Only listen to wifi events when toggling wifi
When counting all connectivity changed events, we were failing
on devices with sim cards because we were counting both wifi and
mobile connectivity changes the same. Since the test only
toggles wifi, changing the listener only to pay attention to wifi
changes.

Bug: 29346253
Change-Id: I1ed3b976bc21419218c780d4afc4a5e73f128496
2016-06-22 16:50:38 -07:00
Chih-Hung Hsieh
60bd0b56fb Fix misc-macro-parentheses warnings in cts.
Add parentheses around macro arguments used beside operators.
Use 'aoto' type to avoid clang-tidy warnings of missing parentheses
of 'TYPE *'.

Bug: 28705665
Change-Id: I5d2c3b2bdfb7775200f31a011758b9a35b14794d
2016-06-22 14:29:53 -07:00
Daniel Xie
03b6bd7273 Merge \\\\\\\\"Remove non-CTS packets assertion code\\\\\\\\" into marshmallow-cts-dev am: 0ba763ab98 am: 6ce150c6ae am: 5c4a3982a8 am: fd1fb4d863 am: 995005d649 am: 86ba00d2a9 am: 949d019a45
am: c8ce808664

Change-Id: Idacc412aac1906e750720f6483bbdeabae105686
2016-06-22 00:34:22 +00:00
Jun Tahara
c8ce808664 Merge \\\\\\\"Remove non-CTS packets assertion code\\\\\\\" into marshmallow-cts-dev am: 0ba763ab98 am: 6ce150c6ae am: 5c4a3982a8 am: fd1fb4d863 am: 995005d649 am: 86ba00d2a9
am: 949d019a45

Change-Id: I72f38904179cb53cc9f3f22174c4831113c7674b
2016-06-22 00:26:04 +00:00
Daniel Xie
949d019a45 Merge \\\\\\"Remove non-CTS packets assertion code\\\\\\" into marshmallow-cts-dev am: 0ba763ab98 am: 6ce150c6ae am: 5c4a3982a8 am: fd1fb4d863 am: 995005d649
am: 86ba00d2a9

Change-Id: I5d1edb0f813aaf3aa6b4558e5ce21e6b60fa340d
2016-06-22 00:23:13 +00:00
Jun Tahara
86ba00d2a9 Merge \\\\\"Remove non-CTS packets assertion code\\\\\" into marshmallow-cts-dev am: 0ba763ab98 am: 6ce150c6ae am: 5c4a3982a8 am: fd1fb4d863
am: 995005d649

Change-Id: I40f34d7a22b09a4ef5a4190f2a236b643062f306
2016-06-22 00:20:07 +00:00
Jun Tahara
fd1fb4d863 Merge \\\"Remove non-CTS packets assertion code\\\" into marshmallow-cts-dev am: 0ba763ab98 am: 6ce150c6ae
am: 5c4a3982a8

Change-Id: Idcd4a248c8f74e095ba4162d8a468dbd962c8163
2016-06-22 00:14:51 +00:00
Jun Tahara
6ce150c6ae Merge \"Remove non-CTS packets assertion code\" into marshmallow-cts-dev
am: 0ba763ab98

Change-Id: I9d9549d4388af53475a0457f7be1d55d88d5e72d
2016-06-22 00:09:33 +00:00
Lorenzo Colitti
fc2a160ecd Merge \\\"Clear local test results across DNS lookups.\\\" into nyc-dev am: cbdcf1d183 am: 0aeb28ea33
am: b2235a43b1

Change-Id: Icbce7badaf4d0f30fddca1bd0410396cf752d6bd
2016-06-21 06:37:10 +00:00
Lorenzo Colitti
b2235a43b1 Merge \\"Clear local test results across DNS lookups.\\" into nyc-dev am: cbdcf1d183
am: 0aeb28ea33

Change-Id: Id266f893a63d26adda867e7b62f23555f9bfeeac
2016-06-21 06:34:36 +00:00
Lorenzo Colitti
0aeb28ea33 Merge \"Clear local test results across DNS lookups.\" into nyc-dev
am: cbdcf1d183

Change-Id: Id9a662ddec527356e0c8a2850da2dabca8a44fb9
2016-06-21 06:33:08 +00:00
Lorenzo Colitti
abc35d5527 Clear local test results across DNS lookups.
If InetAddress.getAllByName("ipv6.google.com") throws
UnknownHostException, the test silently ignores it. This
causes a misleading failure, because the test then reuses the
addrs variable that is left over from the previous DNS query
for "www.google.com", and fails because it has an IPv4 address.

Fixes: 12210306
Bug: 29231261
Change-Id: I1dde945765d40a84eba139055306b07ebc97d0ec
2016-06-21 13:39:49 +09:00
Jun Tahara
349f7ed040 Remove non-CTS packets assertion code
Symptom:
testTrafficStatsForLocalhost fails when applications or services
except CTS are using network.

Root cause:
testTrafficStatsForLocalhost can't calculate the number of
non-localhost packets for CTS.
It includes the all of packets for applications/services except CTS
and non-localhost packets for CTS.

Solution:
Remove this assertion and only logging the number of packets.

Change-Id: I49243d59f359f3a543c6bdb46f6a2645cde8f292
2016-06-20 17:50:39 +09:00
Felipe Leme
a95ee01bb1 Merge \\\"Add non-parcelable extras to notification to make sure it does not crash the app.\\\" into nyc-dev am: c72edd7a89 am: 5d53b301dc
am: 64bc0d5dcc

Change-Id: Ieff870bfcf33b3ab637cccba1b78b8d9c014c85a
2016-06-16 18:43:53 +00:00
Felipe Leme
b556efaba1 Merge \\\"Add non-parcelable extras to notification to make sure it does not crash the app.\\\" into nyc-dev am: c72edd7a89 am: 677eb31ed4
am: 6b6f09dd70

Change-Id: If24d2cbe8cdbd544781a3d4da9f89ef596f936f4
2016-06-16 18:43:52 +00:00
Felipe Leme
64bc0d5dcc Merge \\"Add non-parcelable extras to notification to make sure it does not crash the app.\\" into nyc-dev am: c72edd7a89
am: 5d53b301dc

Change-Id: Id1d3ea4a4170c6947c2aec1b0b304e193507babd
2016-06-16 18:38:09 +00:00
Felipe Leme
6b6f09dd70 Merge \\"Add non-parcelable extras to notification to make sure it does not crash the app.\\" into nyc-dev am: c72edd7a89
am: 677eb31ed4

Change-Id: I76f5d5b31abbf329d4a59d11b74020319a65bd9d
2016-06-16 18:37:39 +00:00
Felipe Leme
5d53b301dc Merge \"Add non-parcelable extras to notification to make sure it does not crash the app.\" into nyc-dev
am: c72edd7a89

Change-Id: Icc8449c663d6fd97c8f8aff13afad936534a39a1
2016-06-16 18:35:13 +00:00
Felipe Leme
c3a9008e3d Add non-parcelable extras to notification to make sure it does not crash
the app.

BUG: 29402928
Change-Id: I4fc47535ae14e71c50b25285b2fe5375abdb4f11
2016-06-16 10:03:27 -07:00
Lorenzo Colitti
3eba73b40b Merge \\\"Log the address of the IPv4 address that causes the test to fail.\\\" into nyc-dev am: db3485a45e am: d1970e861b
am: 3716ad889d

Change-Id: Ic016cc7fd099207f22683c74eaffe92221a1f74b
2016-06-09 07:59:02 +00:00