Commit Graph

789 Commits

Author SHA1 Message Date
Felipe Leme
cc1e3faea2 Merge "Added tests for idle apps and doze mode." into nyc-dev am: f76c309ebe
am: 999a4fef2d

* commit '999a4fef2d3e08d077e230cff7f042e40477696d':
  Added tests for idle apps and doze mode.

Change-Id: I5585cb62ca900333c031a94d7936ea178ad7ee61
2016-05-17 23:13:56 +00:00
Felipe Leme
999a4fef2d Merge "Added tests for idle apps and doze mode." into nyc-dev
am: f76c309ebe

* commit 'f76c309ebe0287aee4f729bbb997417ea938ef15':
  Added tests for idle apps and doze mode.

Change-Id: I9acd82ca0cb163ea12281418e23dfea0f5cb32ac
2016-05-17 23:06:34 +00:00
TreeHugger Robot
f76c309ebe Merge "Added tests for idle apps and doze mode." into nyc-dev 2016-05-17 22:40:45 +00:00
Aaron Holden
5e481ae589 Merge "Remove module-level WifiCheck preparers" into nyc-dev am: 4e0eb2e458
am: 769683c76d

* commit '769683c76dda1db7659724ce915f903c8cf95ee6':
  Remove module-level WifiCheck preparers

Change-Id: I5cc73a5cd3d05e21b590203a9ea399ef864cc9ce
2016-05-16 23:00:02 +00:00
Aaron Holden
769683c76d Merge "Remove module-level WifiCheck preparers" into nyc-dev
am: 4e0eb2e458

* commit '4e0eb2e4586a7e719e2deabcca1bd759a524a9e7':
  Remove module-level WifiCheck preparers

Change-Id: Iae73d1aaf52636a9e492e69dbedb590699ce2746
2016-05-16 22:57:18 +00:00
Aaron Holden
4e0eb2e458 Merge "Remove module-level WifiCheck preparers" into nyc-dev 2016-05-16 22:45:29 +00:00
Felipe Leme
88debac60e Added tests for idle apps and doze mode.
BUG: 28473659
BUG: 28521946
Change-Id: I4bc9166bf2050136fa86e374aac59f80afd76f1c
2016-05-13 15:08:16 -07:00
Android Build Merger (Role)
27327bc03b Merge "Merge "Covers more corner cases on restricted network modes:" into nyc-dev am: b10c777ceb am: c88f39571c" into nyc-mr1-dev-plus-aosp 2016-05-12 20:11:41 +00:00
Felipe Leme
0065f100a2 Merge "Covers more corner cases on restricted network modes:" into nyc-dev am: b10c777ceb
am: 3eb5851664

* commit '3eb5851664e0c604714f080fd1a812ca5edb321d':
  Covers more corner cases on restricted network modes:

Change-Id: I459897d90c63e115bf7b88b15c270e08e1b25ed5
2016-05-12 20:11:25 +00:00
Felipe Leme
3aec960f13 Merge "Covers more corner cases on restricted network modes:" into nyc-dev am: b10c777ceb
am: c88f39571c

* commit 'c88f39571cb380f5bf1251c1f534dc857ede025d':
  Covers more corner cases on restricted network modes:

Change-Id: Iffd229d78b2bd2f28825c7e74538855ba366a381
2016-05-12 20:11:25 +00:00
Felipe Leme
3eb5851664 Merge "Covers more corner cases on restricted network modes:" into nyc-dev
am: b10c777ceb

* commit 'b10c777cebf2a86605f850c4181f45dc67d2a9a6':
  Covers more corner cases on restricted network modes:

Change-Id: I8fd7ddb841e40f9e5697be2e5f2b109fcc71bf33
2016-05-12 20:08:51 +00:00
Aaron Holden
3361c86147 Remove module-level WifiCheck preparers
As WifiCheck is now declared in the CTS config, remove declarations in
the module configs.

Also downgrade TargetSetupErrors on failure to logged errors

bug:28234985
Change-Id: I2e1a369bc26aeca922686c4c3d8c033bb7f9fbc7
2016-05-11 09:55:44 -07:00
Felipe Leme
ed64e61b5f Covers more corner cases on restricted network modes:
- Tests what happens on foreground applications when a restriction (like
  Data Saver or Battery Saver modes) is turned on (prior tests would
  turn the restriction on *before* switching the app to foreground).
- Tests multiple restrictions simultaneously enabled.

Also improved existing code:

- Fixed background state check.
- Reused some common checks in helper methods.
- Retries checks for process state.

BUG: 28473659

Change-Id: Ifcf9cc6d895ccde0ab5177f9f5d8c347ce53b811
2016-05-09 12:48:29 -07:00
Android Build Merger (Role)
ff748bce55 Merge "Merge "Asserts foreground apps always have network access." into nyc-dev am: 68aeb4d914 am: 10dd3d7a84" into nyc-mr1-dev-plus-aosp 2016-05-06 23:22:53 +00:00
Felipe Leme
dac6960178 Merge "Asserts foreground apps always have network access." into nyc-dev am: 68aeb4d914
am: 10dd3d7a84

* commit '10dd3d7a84d2e5604d9a7e256646c5ed682d0280':
  Asserts foreground apps always have network access.

Change-Id: I1d549c0fb80da3d0b9338ff5b063bfc29b1b707a
2016-05-06 23:22:45 +00:00
Felipe Leme
1a29dff7a9 Merge "Asserts foreground apps always have network access." into nyc-dev am: 68aeb4d914
am: fb83bb3bf7

* commit 'fb83bb3bf780fa1dfbed71b7e20f3b61bf5f2173':
  Asserts foreground apps always have network access.

Change-Id: Ie752cd0240f4700be4c8e1ea2fada625de685365
2016-05-06 23:22:36 +00:00
Felipe Leme
10dd3d7a84 Merge "Asserts foreground apps always have network access." into nyc-dev
am: 68aeb4d914

* commit '68aeb4d9147942496beb2bf5fa78ae2428f15c82':
  Asserts foreground apps always have network access.

Change-Id: I32dd08add98d57c3feca224920d8028254102aab
2016-05-06 23:17:12 +00:00
Felipe Leme
6cd41f6d03 Asserts foreground apps always have network access.
BUG: 28473659
Change-Id: Iea6933a4630ff2e9c00a2d2e9e4a6f1a51de70f2
2016-05-06 14:28:03 -07:00
Android Build Merger (Role)
e7f3e4d681 Merge "Merge "Assert whitelists are revoked on uninstall." into nyc-dev am: cd8e99563b am: 11cda18ea6" into nyc-mr1-dev-plus-aosp 2016-05-06 17:46:59 +00:00
Felipe Leme
12e8043b89 Merge "Assert whitelists are revoked on uninstall." into nyc-dev am: cd8e99563b
am: 11cda18ea6

* commit '11cda18ea6bb5368bf766ca1841c52958541c633':

Change-Id: I12a4d2aea403d40dd8ca9c1417083fc7db9a2564
2016-05-06 17:46:50 +00:00
Android Build Merger (Role)
1eab284a54 Merge "Merge "Assert whitelists are revoked on uninstall." into nyc-dev am: cd8e99563b am: 11cda18ea6" into nyc-mr1-dev-plus-aosp 2016-05-06 17:46:07 +00:00
Felipe Leme
43829099b1 Merge "Assert whitelists are revoked on uninstall." into nyc-dev am: cd8e99563b
am: c180707aa4

* commit 'c180707aa4ca9a14f38c118103d003cbe0624ae2':
  Assert whitelists are revoked on uninstall.

Change-Id: I624660ebae235bd8cf5c5b80d471237bbc3db818
2016-05-06 17:45:54 +00:00
Felipe Leme
9e668d1e25 Merge "Assert whitelists are revoked on uninstall." into nyc-dev am: cd8e99563b
am: 11cda18ea6

* commit '11cda18ea6bb5368bf766ca1841c52958541c633':
  Assert whitelists are revoked on uninstall.

Change-Id: Id745562c9be8e014b7def2b0b1aabbd4dc7d99bb
2016-05-06 17:45:54 +00:00
Felipe Leme
11cda18ea6 Merge "Assert whitelists are revoked on uninstall." into nyc-dev
am: cd8e99563b

* commit 'cd8e99563b4accd3162bff1f002468971f4dc771':
  Assert whitelists are revoked on uninstall.

Change-Id: Ic91c283812b15a0db5ca26dc771c25f5aa8603a6
2016-05-06 17:40:49 +00:00
Felipe Leme
aa2e8ea1d8 Assert whitelists are revoked on uninstall.
BUG: 28616418
Change-Id: I909fd4c6024afe5b42560090c6e2f11b43c220de
2016-05-06 09:18:54 -07:00
Felipe Leme
707b549b42 Merge "Temporarily disable NetworkInfo check." into nyc-dev am: cdb30f18e4
am: d1fb27d37f

* commit 'd1fb27d37f45d7ad979cba487e9db9281f9eed97':
  Temporarily disable NetworkInfo check.

Change-Id: I9382abde0ee1047a0c8ce67c78ab9fbf9099e90e
2016-05-04 20:32:47 +00:00
Felipe Leme
d1fb27d37f Merge "Temporarily disable NetworkInfo check." into nyc-dev
am: cdb30f18e4

* commit 'cdb30f18e44f14b32cfe76c572af22f82a816a00':
  Temporarily disable NetworkInfo check.

Change-Id: I2092f714c8db0b024e1ee9d5ba35e7a9a4023747
2016-05-04 20:06:53 +00:00
Felipe Leme
691e85def7 Temporarily disable NetworkInfo check.
There are known issues that cause these check to fail, and the fix has
not been submitted yet.

BUG: 28473659
BUG: 28521946
Change-Id: I26dfbebc2d07396ef89ac78230645e4791c708ee
2016-05-04 18:48:24 +00:00
Android Build Merger (Role)
df09edbe0e Merge "Merge "Improved connectivity check by also asserting NetworkInfo states." into nyc-dev am: fe6dc2b966 am: 00cf921893" into nyc-mr1-dev-plus-aosp 2016-05-04 01:06:14 +00:00
Felipe Leme
75e3d42cf6 Merge "Improved connectivity check by also asserting NetworkInfo states." into nyc-dev am: fe6dc2b966
am: 00cf921893

* commit '00cf921893fcacc17f4f3aaa4d01816422599873':
  Improved connectivity check by also asserting NetworkInfo states.

Change-Id: I13b6f775bec3eacdfad94beb7c6ec0f84c683550
2016-05-04 01:06:02 +00:00
Felipe Leme
676087c191 Merge "Improved connectivity check by also asserting NetworkInfo states." into nyc-dev am: fe6dc2b966
am: 83d4e32edf

* commit '83d4e32edfa1291545301e476301c8a6d1cc5944':
  Improved connectivity check by also asserting NetworkInfo states.

Change-Id: I29f619e29a0a7f1519bdadaba72e24b85102be06
2016-05-04 01:05:51 +00:00
Felipe Leme
00cf921893 Merge "Improved connectivity check by also asserting NetworkInfo states." into nyc-dev
am: fe6dc2b966

* commit 'fe6dc2b966686da65dae3e0766e56bf25844500c':
  Improved connectivity check by also asserting NetworkInfo states.

Change-Id: Icba9139f192182fe6adaf03ef813dc20bd66f681
2016-05-04 00:59:59 +00:00
Felipe Leme
50bce69fab Improved connectivity check by also asserting NetworkInfo states.
BUG: 28473659
BUG: 26571724
Change-Id: Iba687003431ed5c353412268726967a798f538da
2016-05-03 08:29:52 -07:00
Android Build Merger (Role)
4a8dbb8899 Merge "Merge "Added test for required packages whitelisted for Data Saver Mode." into nyc-dev am: 16ae24badd am: a8eac2bd2d" into nyc-mr1-dev-plus-aosp 2016-04-29 23:52:18 +00:00
Felipe Leme
de5b334ca0 Merge "Added test for required packages whitelisted for Data Saver Mode." into nyc-dev am: 16ae24badd
am: 9d9ca56079

* commit '9d9ca5607943a7b86f8ebf2b801032d541236a9f':
  Added test for required packages whitelisted for Data Saver Mode.

Change-Id: Id48eff1051969b37747987c37118b6a476419ce0
2016-04-29 23:52:06 +00:00
Felipe Leme
77b14e5a20 Merge "Added test for required packages whitelisted for Data Saver Mode." into nyc-dev am: 16ae24badd
am: a8eac2bd2d

* commit 'a8eac2bd2da354fe081606f69c72df309f19e063':
  Added test for required packages whitelisted for Data Saver Mode.

Change-Id: Ia9d77577b8815337c209489ecf613702af132073
2016-04-29 23:52:06 +00:00
Felipe Leme
9d9ca56079 Merge "Added test for required packages whitelisted for Data Saver Mode." into nyc-dev
am: 16ae24badd

* commit '16ae24badd79bf100b26dc4e6dfb3ed649a0c3ad':
  Added test for required packages whitelisted for Data Saver Mode.

Change-Id: I1916d82a0fcc883679e200f79594381d29afd6b2
2016-04-29 23:49:49 +00:00
Felipe Leme
fa8e24c3e6 Added test for required packages whitelisted for Data Saver Mode.
Also fixed code that checks for whitelist uids, otherwise it would pass
when the required uid is missing but a superset was present (for
example, when asking for 1009 but 10090 was whitelisted).

BUG: 28431507
Change-Id: Iaaa67e586907dba215496460445ad627ba7b63c5
2016-04-29 14:10:12 -07:00
Android Build Merger (Role)
533825f004 Merge "Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev am: 90419fc992 am: 4699aa522a am: 69db501b63 am: f9185c256f am: 8ad4295bec am: c847a249c6 am: ad20b76de7" into nyc-mr1-dev-plus-aosp 2016-04-29 11:23:08 +00:00
Marcus Nascimento
7f66977e0e Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev am: 90419fc992 am: 4699aa522a am: 69db501b63 am: f9185c256f am: 8ad4295bec am: c847a249c6
am: eaf3745bc8

* commit 'eaf3745bc8c6b8294c39452aac1f7da4829e597c':
  Add assertion message to assertions for testExecute_withMobile.

Change-Id: Id4cfcc459dcdd255941255a58115ee14f45ad409
2016-04-29 11:22:49 +00:00
Marcus Nascimento
8e5a1dd733 Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev am: 90419fc992 am: 4699aa522a am: 69db501b63 am: f9185c256f am: 8ad4295bec am: c847a249c6
am: ad20b76de7

* commit 'ad20b76de7998f2a086a973fd30b988ccdf98629':
  Add assertion message to assertions for testExecute_withMobile.

Change-Id: I6c062a484790800a8073d5328dbd4a4dda923750
2016-04-29 11:22:46 +00:00
Marcus Nascimento
eaf3745bc8 Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev am: 90419fc992 am: 4699aa522a am: 69db501b63 am: f9185c256f am: 8ad4295bec
am: c847a249c6

* commit 'c847a249c635808e41972f5ad123853c7c556c62':
  Add assertion message to assertions for testExecute_withMobile.

Change-Id: I6eb9291f36ec7f72879743e9b475eaf2186d3544
2016-04-29 11:20:20 +00:00
Marcus Nascimento
c847a249c6 Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev am: 90419fc992 am: 4699aa522a am: 69db501b63 am: f9185c256f
am: 8ad4295bec

* commit '8ad4295bec64574b3c05547efc29f225b385e6ce':
  Add assertion message to assertions for testExecute_withMobile.

Change-Id: Id4892624242d707920f285c13dbfd029f7f2cc3d
2016-04-29 11:17:44 +00:00
Marcus Nascimento
f9185c256f Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev am: 90419fc992 am: 4699aa522a
am: 69db501b63

* commit '69db501b632720dda1e5aba0ac8aa676f11247e8':
  Add assertion message to assertions for testExecute_withMobile.

Change-Id: I17fe6ca042b8ec387e082ef475538933e1e9a33c
2016-04-29 11:12:32 +00:00
Marcus Nascimento
4699aa522a Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev
am: 90419fc992

* commit '90419fc99220c249b29a09805c06f9a1fc25f0d1':
  Add assertion message to assertions for testExecute_withMobile.

Change-Id: Ifc327d9165a543b163c954d964c982fdd14ab1af
2016-04-29 11:05:01 +00:00
Android Merger
90419fc992 Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev 2016-04-29 10:59:36 +00:00
Marcus Nascimento
5d6e8323f6 Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev
am: ce158e65ae  -s ours

* commit 'ce158e65aec1b2c9687852872c9fd9ed74585144':
  Add assertion message to assertions for testExecute_withMobile.

Change-Id: I12a3b5e90ce51ebbc233d69126eb78e3a85d6ba3
2016-04-29 10:59:28 +00:00
Daniel Xie
ce158e65ae Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev 2016-04-28 16:44:37 +00:00
Marcus Nascimento
51eb8c19a0 Add assertion message to assertions for testExecute_withMobile.
Some partner test devices without a SIM Card or with no signal, thus
without mobile network data connection.

Added a message to check signal and SIM card and rerun the test.

Also added a verification that the network type is supported in the
event of a Connectivity Action's timeout. Unsuported network type could
be caused by a network stack crash.

Bug: 28207677
Change-Id: Ibca50359df7d5fb8371f4f4037fc81f029f48b30
2016-04-28 16:40:31 +00:00
Android Build Merger (Role)
a1205b4f14 Merge "Merge "Add more test coverage to ConnectivityManagerTest." into nyc-dev am: 25a61dc am: 733eb43" into nyc-mr1-dev-plus-aosp 2016-04-27 10:34:05 +00:00